JPH0673939U - Communication bus controller - Google Patents

Communication bus controller

Info

Publication number
JPH0673939U
JPH0673939U JP1445393U JP1445393U JPH0673939U JP H0673939 U JPH0673939 U JP H0673939U JP 1445393 U JP1445393 U JP 1445393U JP 1445393 U JP1445393 U JP 1445393U JP H0673939 U JPH0673939 U JP H0673939U
Authority
JP
Japan
Prior art keywords
baton
communication bus
carrier
address
station
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
JP1445393U
Other languages
Japanese (ja)
Inventor
功司 隠田
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP1445393U priority Critical patent/JPH0673939U/en
Publication of JPH0673939U publication Critical patent/JPH0673939U/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】 (修正有) 【目的】 通信バスの使用効率を向上させること。 【構成】 送信元アドレスと宛先アドレスに従って接続
デバイス・リストを更新するバトン確認部、受信したバ
トンが自局宛てのものか否かを検知する自局バトン生成
部、宛先アドレス,自局アドレス及び接続デバイス・リ
ストを参照して宛先アドレスに自局アドレスが含まれて
いないときにキャリアを通信バスへ送出するキャリア生
成部、通信バス上の他装置からのキャリアを受信するキ
ャリア確認部、キャリア受信がなく自局バトン生成部の
検知出力がある場合には宛先アドレスをバトンに付加
し、キャリア受信があり自局バトン生成部の検知出力が
ある場合には接続デバイス・リストに格納されていない
アドレスを宛先アドレスとしてバトンに付加して通信バ
スへ送出するバトン生成部を備える。
(57) [Summary] (Modified) [Purpose] To improve the usage efficiency of the communication bus. [Configuration] Baton confirmation unit that updates the connected device list according to the source address and destination address, own station baton generation unit that detects whether the received baton is addressed to the own station, destination address, own station address and connection The device list refers to the carrier generation unit that sends the carrier to the communication bus when the destination address does not include its own address, the carrier confirmation unit that receives the carrier from another device on the communication bus, and the carrier reception If there is a detection output of the local station baton generator, the destination address is added to the baton, and if there is carrier reception and there is a detection output of the local station baton generator, an address not stored in the connected device list is added. A baton generator is provided that is added to the baton as a destination address and is sent to the communication bus.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案は、通信バスに接続されてバトンを周回させ、このバトンが自分のとこ ろに回ってきたときに、通信バスを使用するバトン・パス方式の通信バス制御装 置に関し、詳しくは、通信バスの使用効率を向上しようとするものである。 The present invention relates to a baton path type communication bus control device that uses a communication bus when it is connected to a communication bus to orbit a baton, and when the baton comes around to itself, more specifically, It is intended to improve the bus usage efficiency.

【0002】[0002]

【従来の技術】[Prior art]

バトン・パス方式の通信は、通信バスに接続されている装置にあって、バトン が自局に回ってきたときのみ通信バスの使用権を許され、通信バスの使用を終了 するとこのバトンを次の装置に渡し、次々とバトンが渡されて通信バスが使用さ れ、再び自局にバトンが回ってくるのを待つ方式である。 現在、使用されているバトン・パス方式の通信バスでは、接続可能な最大装置 数Nを定め、装置番号(アドレス)順に、例えばアドレス1→2,2→3,…, N−1→N,N→1,1→2,…,というようにバトンを巡回させている。そし て、自分宛のバトンを受信した装置が通信バスを使用をしている。 また、このバトン・パス方式は、バトンが指定する装置番号を有する装置が通 信バスに接続されていなくてもバトンが送出されるように構築されている。例え ば、最大装置数N=4のとき、装置番号1,3,4の3台の装置が接続されてい るとすると、装置番号1から、一旦、装置番号2の装置を宛先とするバトンが送 出されるが、実際には装置番号2の装置は接続されていないので、装置番号1の 装置はこのバトンに対する応答なしを検出し、次の装置番号3を持つ装置へ再び バトンを送出し直す。これにより、装置番号3の装置が応答し、バトン巡回を続 行させることができる。 このようにして、装置の運転中に、新たな装置が通信バスの空き番号の位置に 追加接続されてもバトンは送付され、この新たな装置もバトン・パス方式に参加 することができるものである。 In the baton-pass communication, the right to use the communication bus is granted only when the baton comes to its own station in the device connected to the communication bus. It is a method of waiting for batons to come back to its own station, after passing the batons to other devices, using the communication buses one after another. In the baton path communication bus currently used, the maximum number N of connectable devices is determined, and, for example, addresses 1 → 2, 2 → 3, ..., N−1 → N, in the device number (address) order. The batons are cycled in the order of N → 1, 1 → 2, .... Then, the device that receives the baton addressed to itself is using the communication bus. Further, the baton path method is constructed so that the baton is transmitted even if the device having the device number designated by the baton is not connected to the communication bus. For example, if the maximum number of devices N = 4 and three devices with device numbers 1, 3, and 4 are connected, a baton destined for the device with device number 2 from device number 1 will be sent. Although it is sent, the device with device number 2 is not actually connected, so the device with device number 1 detects that there is no response to this baton, and sends the baton again to the device with the next device number 3. . As a result, the device with the device number 3 responds and the patrol of the baton can be continued. In this way, the baton will be sent even if a new device is additionally connected to the position of the vacant number of the communication bus during the operation of the device, and this new device can also participate in the baton path method. is there.

【0003】[0003]

【考案が解決しようとする課題】 このような従来の技術にあっては、次のような問題が存在していた。 即ち、最大装置数Nが大きく、かつ接続されている装置数が少ないと、各装置 から送出されるバトンの大半は応答なしバトンであり、バトン及び通信バスの使 用効率が悪くなるという問題点があった。 この問題を解決するため、本願出願人は、実願平2−77933号(実開平4 −36346号)「バトンパス方式の通信バス制御装置」を提案し、通信バスに 接続されている全ての装置を接続デバイス・リストに登録し、後から追加接続さ れた装置については、当該装置宛のバトンがないときに当該装置がコリジョン・ データを発生し、続いて同報通信を行って新たな装置からその装置番号(アドレ ス)を送出して各装置は内部の接続デバイス・リストを更新する、という方式を 開示した。 しかしながら、この方式にあっても、“自分が接続されておらず、これから同 報通信を行う”という旨の新たなパターンをコリジョン・データとして生成し、 かつこのコリジョン・データを検出するコリジョン・データ検出回路を新たに設 置しなければならず、実現するためには装置構成が複雑化するという問題があっ た。[Problems to be Solved by the Invention] The following problems existed in such a conventional technique. That is, if the maximum number of devices N is large and the number of connected devices is small, most of the batons sent from each device are non-response batons, and the use efficiency of the baton and the communication bus deteriorates. was there. In order to solve this problem, the applicant of the present application has proposed “Paton path communication bus control device” of Japanese Patent Application No. 2-77933 (Kaikai No. 4-36346), and all the devices connected to the communication bus are proposed. For devices that have been added to the device list after being registered in the connected device list, collision data will be generated by the device when there is no baton for the device, and then a new broadcast will be performed. We have disclosed a method in which the device sends its device number (address) and each device updates its internal connected device list. However, even with this method, a new pattern that "I am not connected and will perform broadcast communication from now on" is generated as collision data, and collision data that detects this collision data is generated. The detection circuit had to be newly installed, and there was a problem that the device configuration became complicated in order to realize it.

【0004】 本考案は、このような課題を解決したものであり、新規な装置が追加接続され たときでも、簡単な構成によってこの装置宛にバトンが送出されるようにするこ とにより、通信バスの使用効率を向上させることを目的とする。The present invention solves such a problem, and even when a new device is additionally connected, the baton is sent to this device with a simple configuration, thereby performing communication. The purpose is to improve the bus usage efficiency.

【0005】[0005]

【課題を解決するための手段】[Means for Solving the Problems]

このような目的を達成する本考案の構成は、通信バスに接続され、通信バスに 接続されている全ての装置をリスト形式で登録する接続デバイス・リストを有す るとともに、送信元アドレスと宛先アドレスとを含むバトンを周回させ、バトン が回ってきたときに通信バスの使用権を得る通信バス制御装置において、バトン 内の送信元アドレスと宛先アドレスに従って接続デバイス・リストを更新するバ トン確認部と、バトン確認部からの宛先アドレスと自局アドレスとを比較して受 信したバトンが自局宛てのものか否かを検知する自局バトン生成部と、バトンが 一巡してバトン確認部からの宛先アドレス,自局アドレス及び接続デバイス・リ ストを参照して宛先アドレスに自局アドレスが含まれていないときにキャリアを 通信バスへ送出するキャリア生成部と、通信バス上の他装置からのキャリアを受 信するキャリア確認部と、キャリア確認部のキャリア受信がなく自局バトン生成 部の検知出力がある場合には接続デバイス・リストを参照して宛先アドレスをバ トンに付加しキャリア確認部のキャリア受信があり自局バトン生成部の検知出力 がある場合には接続デバイス・リストに格納されていないアドレスを宛先アドレ スとしてバトンに付加して通信バスへ送出するバトン生成部とを備えることを特 徴とする通信バス制御装置である。 The configuration of the present invention which achieves such an object has a connected device list which is connected to the communication bus and registers all devices connected to the communication bus in a list format, and also has a source address and a destination. In the communication bus control unit that circulates the baton including the address and obtains the right to use the communication bus when the baton comes around, the baton confirmation unit that updates the connected device list according to the source address and the destination address in the baton. Then, the baton confirmation unit compares the destination address from the baton confirmation unit with the own station address to detect whether the received baton is addressed to the own station, and the baton completes a loop from the baton confirmation unit. Sends the carrier to the communication bus when the destination address does not include the own station address by referring to the destination address, own station address and connected device list of If there is no carrier reception in the carrier confirmation section that receives a carrier from another device on the communication bus, and there is no carrier reception in the carrier confirmation section and the detection output of the local station baton generation section, the connected device list is displayed. If the destination address is added to the button and the carrier is received by the carrier confirmation section and the detection output of the local station baton generation section is detected, an address not stored in the connected device list is added to the button as the destination address. The communication bus control device is characterized by including a baton generation unit for transmitting the data to the communication bus.

【0006】[0006]

【作用】[Action]

本考案の通信バス制御装置は、新規に追加接続された装置から送出されたキャ リアを検出したときに、接続デバイス・リストに登録されていないアドレスを宛 先アドレスとしてバトンを送出し、その応答バトンによって新規な装置の装置番 号を接続デバイス・リストに登録する。 When the carrier sent from the newly added device is detected, the communication bus control device of the present invention sends the baton with the address not registered in the connected device list as the destination address, and returns the response. The device number of the new device is registered in the connected device list by the baton.

【0007】[0007]

【実施例】【Example】

以下、図面を用いて本考案を詳細に説明する。 図1は、本考案を実施した通信バス制御装置10の構成ブロック図である。 この図では、通信バスBに本考案の通信バス制御装置10が1台接続されてい る例が示されているが、実際には、このような通信バス制御装置は通信バスBに 複数台接続され、通信バスBの使用を許可するバトンを巡回させているものとす る。 本考案の通信バス制御装置10は、通信バスBからのバトンを受けるレシーバ 2、レシーバ2で受けた各種情報を処理する受信処理部3、通信バスBへバトン を送出するドライバ4、ドライバ4から送出すべき各種情報を生成する送信処理 部5、通信バスBに接続されている全ての装置の番号をリスト形式で登録する接 続デバイス・リスト6、当該通信バス制御装置10の装置番号(アドレス)を格 納する自局アドレス部7、受信したバトンの宛先アドレスと自局アドレス部7の 自局アドレスとを比較してこのバトンが当該装置10に対するものか否かを検知 する自局バトン生成部8を備えるものである。 これらの構成要素は、従来の装置と同様のものであり、本考案装置は、特に、 受信処理部3と送信処理部5の内部構成に特色があるものである。 Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a configuration block diagram of a communication bus control device 10 embodying the present invention. In this figure, an example is shown in which one communication bus control device 10 of the present invention is connected to the communication bus B, but in reality, a plurality of such communication bus control devices are connected to the communication bus B. It is assumed that the baton that permits the use of the communication bus B is circulated. The communication bus control device 10 of the present invention includes a receiver 2 that receives a baton from the communication bus B, a reception processing unit 3 that processes various information received by the receiver 2, a driver 4 that sends a baton to the communication bus B, and a driver 4. A transmission processing unit 5 for generating various information to be transmitted, a connection device list 6 for registering the numbers of all devices connected to the communication bus B in a list format, and a device number (address of the communication bus control device 10). ), The destination address of the received baton is compared with the own address of the own address section 7 to detect whether this baton is for the device 10 or not. The unit 8 is provided. These components are the same as those of the conventional device, and the device of the present invention is particularly characterized by the internal configurations of the reception processing unit 3 and the transmission processing unit 5.

【0008】 受信処理部3は、通信バスBから受信したバトンを取り扱うとともに、このバ トンの内容(送信元アドレス、宛先アドレス)に従って接続デバイス・リスト6 の内容を更新するバトン確認部31と、通信バスB上の他装置からのキャリアを 検出するキャリア確認部32とを有する。The reception processing unit 3 handles the baton received from the communication bus B, and updates the contents of the connected device list 6 according to the contents of the baton (source address, destination address), and a baton confirmation unit 31. The carrier confirmation unit 32 detects a carrier from another device on the communication bus B.

【0009】 ここで、キャリアとは、この通信バス制御装置10も含め、通信バスBに接続 されている装置にあって、自局宛のバトンが検出されないときに送信処理部5か ら送出するデータである。従来のコリジョン・データと異なるところは、コリジ ョン・データは、バトン巡回を中断させて同報通信を行うための起動信号を含む ような、予め定めた複雑なパターンを有するデータであるが、本考案におけるキ ャリアとは、通信バスBが使用状態にないことを表すハイ・インピーダンス状態 に対し、特に定めない簡単な“H”,“L”パターンである。即ち、ここでいう キャリアは、バトンが巡回されている合間の通信バスBの空き状態に検出される 何らかのパターンであり、このキャリアにより、通信バスBに接続されている各 装置は、新たな装置が追加接続されたことを知る。Here, the carrier, including the communication bus control device 10, is a device connected to the communication bus B, and is sent from the transmission processing unit 5 when the baton addressed to the own station is not detected. The data. Unlike the conventional collision data, the collision data is data having a predetermined complicated pattern such as a start signal for interrupting the baton patrol and performing broadcast communication. The carrier in the present invention is a simple "H" or "L" pattern that is not particularly defined for the high impedance state indicating that the communication bus B is not in use. That is, the carrier here is some pattern that is detected in the idle state of the communication bus B during the patrol of the baton, and each device connected to the communication bus B by this carrier is a new device. Find out that an additional connection has been made.

【0010】 送信処理部5は、バトンが一巡してもバトン確認部31からの宛先アドレスに 自局アドレスが指定されなく、かつ、送信元アドレスが接続デバイス・リスト6 上に存在する当該装置の一つ前の局である場合に、キャリアを生成するキャリア 生成部51を有するとともに、次の装置のためのバトンを生成するバトン生成部 52を有する。 バトン生成部52は、詳しくは、キャリア確認部32のキャリア検出がなく、 かつ自局バトン生成部8から自局宛バトンであることを表す出力がある場合に、 接続デバイス・リスト6を参照して、次にバトンを送出すべき装置宛のバトンを 生成するとともに、キャリア確認部32のキャリア検出が有り、かつ自局バトン 生成部8からの自局宛バトンであることを表す出力がある場合に、接続デバイス ・リスト6に登録されていないアドレスに対応する装置に対してバトンを生成す るブロックである。The transmission processing unit 5 does not specify the own address as the destination address from the baton confirmation unit 31 even if the baton makes one round, and the transmission source address of the device concerned exists on the connected device list 6. In the case of the previous station, it has a carrier generation unit 51 that generates a carrier and a baton generation unit 52 that generates a baton for the next device. More specifically, the baton generation unit 52 refers to the connected device list 6 when there is no carrier detection by the carrier confirmation unit 32 and there is an output from the local station baton generation unit 8 indicating that it is a local station addressed baton. Then, a baton for the device to which the baton is to be transmitted next is generated, carrier detection is performed by the carrier confirmation unit 32, and there is an output from the local station baton generation unit 8 indicating that the baton is the local station. 2 is a block for generating batons for devices corresponding to addresses not registered in the connected device list 6.

【0011】 次に、このように構成された本考案装置の動作を図2、図3及び図4のフロー チャートを用いて説明する。 図2は、通常動作時のフローと、通信バスB上にキャリアを検出し、新規に追 加接続された装置にバトンを送出するフローとを合わせて表したフローチャート である。 はじめに、新たな装置が通信バスBに追加接続されていない状態の通常動作時 を説明する。 受信処理部3のバトン確認部31はレシーバ2を介して、通信バスB上に、予 め定めておいた一定時間内にバトンを受信したか否かを検出する。 バトンを検出できなかったとき“N”は、のフローとして後で説明する。 一定時間内にバトンを受信したとき“Y”は、バトン確認部31は当該バトン 内の送信元アドレスをみて、この送信元アドレスが接続デバイス・リスト6に登 録されていなければ、その送信元アドレスに対応するように接続デバイス・リス ト6の内容を更新する。Next, the operation of the device of the present invention configured as described above will be described with reference to the flow charts of FIGS. 2, 3 and 4. FIG. 2 is a flow chart showing the flow of the normal operation and the flow of detecting the carrier on the communication bus B and sending the baton to the newly added device. First, the normal operation when a new device is not additionally connected to the communication bus B will be described. The baton confirmation unit 31 of the reception processing unit 3 detects whether or not the baton is received on the communication bus B via the receiver 2 within a predetermined fixed time. When the baton cannot be detected, "N" will be described later as a flow of. When the baton is received within a certain time, “Y” indicates that the baton confirmation unit 31 looks at the source address in the baton, and if this source address is not registered in the connected device list 6, the source The contents of the connected device list 6 are updated to correspond to the address.

【0012】 次に、バトン確認部31はこのバトン内の宛先アドレスを調べる。この宛先ア ドレスがこの装置宛(自局宛)でないとき“N”は、のフローとして後で説明 する。 自局宛であるとき“Y”は、この自局アドレスが接続デバイス・リスト6に登 録されていなければ、この接続デバイス・リスト6を更新する。Next, the baton confirmation unit 31 checks the destination address in this baton. When this destination address is not addressed to this device (own station), "N" will be described later as a flow of. When it is addressed to its own station, "Y" updates this connected device list 6 if this own station address is not registered in the connected device list 6.

【0013】 一方、キャリア確認部32は、通信バスB上に、他装置からのキャリアが予め 定めた一定時間継続して送出されているか否かをみており、この時点でキャリア が検出されなければ、送信処理部5にその旨を伝える。 そして、受信したバトンが自局宛のものでありかつキャリアが検出されないと き、バトン生成部52は、通常のデータ通信を行い、接続デバイス・リスト6か ら次にバトンを送出すべき装置番号(NXA)を読み出し、新たなバトンを生成 してドライバ4を介して通信バスB上に送出する。On the other hand, the carrier confirmation unit 32 checks whether or not the carrier from another device is continuously transmitted to the communication bus B for a predetermined time, and if the carrier is not detected at this time. , To that effect to the transmission processing unit 5. Then, when the received baton is addressed to the own station and the carrier is not detected, the baton generation unit 52 performs normal data communication, and the device number to which the baton is to be transmitted next from the connected device list 6. (NXA) is read, a new baton is generated, and the new baton is sent to the communication bus B via the driver 4.

【0014】 また、キャリア確認部32において、他装置からのキャリアが一定時間継続し て検出された場合は、次のフローとなる。 即ち、整数n=自局アドレスMYAとし、最大装置数Nと数nとを比較する。 比較の結果、一致していなければ(“N”)n=n+1とし、また、一致して いれば(“Y”)n=1とし、接続デバイス・リスト6を参照し、この値nが次 にバトンを送出すべき装置番号NXAと等しいか否か調べる。 ここで、n=NXAであれば、次にバトンを送出すべき装置は接続デバイス・ リスト6に存在することが判明し、通常動作をすべく、このフローチャートの最 初のステップに戻る。 n=NXAでなく、装置番号nを有する装置が接続デバイス・リスト6に登録 されていないときは、装置番号nに対して、バトン生成部52からバトンを送出 する。In addition, when the carrier confirmation unit 32 detects a carrier from another device for a certain period of time, the flow is as follows. That is, the integer n = own station address MYA is set, and the maximum number N of devices and the number n are compared. As a result of the comparison, if they do not match (“N”) n = n + 1, and if they match (“Y”) n = 1, the connected device list 6 is referred to, and this value n is Then, it is checked whether or not it is equal to the device number NXA for sending the baton. Here, if n = NXA, it is found that the device to which the baton is to be transmitted next is in the connected device list 6, and the process returns to the first step of this flowchart for normal operation. When n = NXA is not satisfied and the device having the device number n is not registered in the connected device list 6, the baton generator 52 sends a baton to the device number n.

【0015】 一定時間内にバトンを受信した場合“Y”は、バトン確認部31は当該バトン 内の送信元アドレスをみるステップに戻り、この送信元アドレスが接続デバイス ・リスト6に挙げられていなければ、この接続デバイス・リスト6に装置番号n を登録する。 一定時間内にバトンを受信しなかった場合“N”は、最大装置数Nと数nとを 比較し、n=n+1、またはn=1とし、この装置番号nに対してバトンを送出 し、上記と同じ手順を繰り返す。If the baton is received within a certain time, “Y”, the baton confirmation unit 31 returns to the step of checking the source address in the baton, and the source address must be listed in the connected device list 6. For example, the device number n is registered in this connected device list 6. When the baton is not received within a certain time, “N” compares the maximum number N of devices with the number n, sets n = n + 1 or n = 1, and sends the baton to this device number n. Repeat the same procedure as above.

【0016】 即ち、当該通信バス制御装置10にバトンが回ってきて、かつ、通信バスB上 にキャリアを検出した場合には、当該装置10の装置番号(アドレス)MYAに +1したアドレス、または、当該装置10のアドレスが最大装置数Nである場合 にはアドレス“1”を宛先アドレスNXAとしたバトンを送出し、これに応答し たバトンが一定時間内に返信されなければ、更に、宛先アドレスをインクリメン トしてバトンを送出する動作を繰り返し、応答バトンが返信された時点で、この バトン内の送信元アドレスにより、接続デバイス・リスト6の内容を更新する。 これにより接続デバイス・リスト6に、新たに追加接続された装置の装置番号を 追加登録することができ、次からは新たに追加接続された装置を含め、全ての装 置にバトンを巡回させることができる。That is, when a baton is coming to the communication bus control device 10 and a carrier is detected on the communication bus B, an address obtained by adding 1 to the device number (address) MYA of the device 10 or If the address of the device 10 is the maximum number N of devices, a baton with the address "1" as the destination address NXA is sent out, and if the baton responding to this is not returned within a fixed time, the destination address Is repeated and the baton is transmitted, and when the response baton is returned, the contents of the connected device list 6 are updated with the source address in the baton. As a result, the device number of the newly connected device can be additionally registered in the connected device list 6, and from now on, the batons will be circulated to all devices including the newly connected device. You can

【0017】 図3は、通信バスB上にバトンが全く巡回されていない場合のフローチャート であり、図2のフローチャートにおける最初のステップ、即ち、一定時間内にバ トンを受信できなかったときに起動される動作である。 この場合は、当該通信バス制御装置10の自局アドレスMYAを整数nとし、 接続デバイス・リスト6の内容を一旦クリアする。 そして、最大装置数Nと数nとを比較し、一致していなければ(“N”)n= n+1とし、一致していれば(“Y”)n=1とし、この値nが自局アドレスM YAと等しいか否か調べる。FIG. 3 is a flow chart when no baton is circulated on the communication bus B. The first step in the flow chart of FIG. 2, that is, when the baton cannot be received within a fixed time, it is activated. This is the operation performed. In this case, the own station address MYA of the communication bus control device 10 is set to an integer n, and the contents of the connected device list 6 are cleared once. Then, the maximum device number N and the number n are compared, and if they do not match, (“N”) n = n + 1, and if they match, (“Y”) n = 1, and this value n Check if it is equal to the address M YA.

【0018】 ここで、n=MYA(“Y”)であれば、図2のフローチャートのステップ に戻る。 n=MYAでない場合(“N”)は、装置番号nに対して、バトン生成部52 からバトンを送出する。 そして、一定時間内に応答バトンを受信した場合“Y”は、図2のフローチャ ートのステップに戻り、一定時間内に応答バトンを受信しなかった場合“N” は、最大装置数Nと数nとを比較し、n=n+1、またはn=1とし、この装置 番号nに対してバトンを送出する手順を繰り返す。Here, if n = MYA (“Y”), the process returns to the step of the flowchart of FIG. If n = MYA is not satisfied (“N”), the baton generator 52 sends the baton to the device number n. When the response baton is received within the fixed time, “Y” returns to the flow chart step of FIG. 2, and when the response baton is not received within the fixed time, “N” is the maximum number N of devices. The number n is compared, n = n + 1 or n = 1 is set, and the procedure for sending the baton to the device number n is repeated.

【0019】 このようにして、通信バスB上にバトンが全く巡回されていない場合は、自ら バトンを送出し、応答バトンのあった装置に対応して、接続デバイス・リスト6 に、順次、その装置番号(アドレス)を登録していく。In this way, when no baton is circulated on the communication bus B, the baton is transmitted by itself, and the connected device list 6 is sequentially connected to the device having the response baton. Register the device number (address).

【0020】 図4は、この通信バス制御装置10が通信バスBに新たに追加接続された場合 に、通信バスBへキャリアを送出する動作を表すフローチャートであり、このと きの動作は、図2のフローチャートのはじめの数ステップに示す動作と同様であ る。 即ち、図2において、はじめに、バトン確認部31は、一定時間内に通信バス B上にバトンを受信するか否か検出する。 バトンを検出できなかった場合は、ステップから図3に示すフローチャート の動作へ遷移する。 一方、バトンを受信した場合は、このバトン内の送信元アドレスに従って、接 続デバイス・リスト6の内容を更新する。 次に、このバトン内の宛先アドレスを調べ、当該装置宛のバトンかどうかをみ る。当該装置は新たに追加接続したばかりであるので、その宛先アドレスは当該 装置宛のものであることはなく、ステップ、即ち、図4に表すフローチャート に遷移する。FIG. 4 is a flowchart showing the operation of sending a carrier to the communication bus B when the communication bus control device 10 is newly connected to the communication bus B. The operation at this time is shown in FIG. The operation is similar to that shown in the first few steps of the flowchart of FIG. That is, in FIG. 2, first, the baton confirmation unit 31 detects whether or not the baton is received on the communication bus B within a fixed time. When the baton cannot be detected, the process transitions from step to the operation of the flowchart shown in FIG. On the other hand, when the baton is received, the contents of the connected device list 6 are updated according to the source address in the baton. Next, check the destination address in this baton to see if it is a baton for the device. Since the device has just been newly connected, the destination address is not addressed to the device, and the process proceeds to step, that is, the flowchart shown in FIG.

【0021】 バトン確認部31は接続デバイス・リスト6を参照し、このリストに自局アド レス(装置番号)が登録されているか確認する。 登録されている場合(“Y”)は、ステップから図2のフローチャートに示 す動作に戻る。 登録されていない場合(“N”)は、バトンが全ての装置を回って一巡するの を検出し、更に、一定時間後、その次のバトンを受信したときに、その送信元ア ドレスを接続デバイス・リスト6に登録する。 このような動作を繰り返し、バトン内の送信元アドレスがバトン順序でみたと きの当該装置の一つ前の装置番号PRAとなったときに、一定時間、通信バスB へキャリアを送出する。The baton confirmation unit 31 refers to the connected device list 6 and confirms whether or not its own station address (device number) is registered in this list. If it is registered (“Y”), the process returns from the step to the operation shown in the flowchart of FIG. If it is not registered (“N”), it detects that the baton goes around all the devices and makes a round, and after a certain time, when the next baton is received, the source address is connected. Register in device list 6. By repeating such an operation, when the source address in the baton becomes the device number PRA one before the device in the baton order, the carrier is sent to the communication bus B for a certain period of time.

【0022】 このようにして、新たに通信バスBに追加接続された装置は、巡回しているバ トンをその都度検出してその送信元アドレスを接続デバイス・リスト6に登録し ていき、登録した送信元アドレスが前局アドレスとなったときに、キャリアを通 信バスB上に送出する。In this way, the device newly connected to the communication bus B detects the circulating button each time and registers the transmission source address in the connected device list 6, and registers it. When the transmitted source address becomes the previous station address, the carrier is transmitted to the communication bus B.

【0023】 ここで、本考案装置を用いたシステムを想定し、具体的にその動作を説明する と、次のようになる。 例えば、接続可能な最大デバイス数N=12、接続デバイス・リスト6の内容 が[1,3,4,8,9,12](装置が6台接続されている例)であり、かつ 自局アドレスMYAが“4”のとき、次局アドレスNXAは“8”、前局アドレ スPRAは“3”である。Now, assuming a system using the device of the present invention, the operation thereof will be specifically described as follows. For example, the maximum number of connectable devices N = 12, the content of the connected device list 6 is [1, 3, 4, 8, 9, 12] (an example in which 6 devices are connected), and When the address MYA is "4", the next station address NXA is "8" and the previous station address PRA is "3".

【0024】 そして、装置番号(自局アドレス)“4”の装置は、通常動作時は、自分のと ころへバトンが回ってきたときは通信バスBを使用し、続いて接続デバイス・リ スト6を参照して装置番号(次局アドレス)“8”の装置に対して、バトンを送 出する。The device with the device number (own address) “4” uses the communication bus B when the baton comes around to the device during the normal operation, and then the connected device list. 6, the baton is sent to the device having the device number (next station address) “8”.

【0025】 ここに、新たに、通信バスB上に、装置番号(アドレス)“6”の位置に装置 が追加接続された場合を想定する。 装置番号“6”の装置は、バトンを検出すると、その送信元アドレスを検出し て接続デバイス・リスト6に登録していき、このリストを生成する。そして、バ トン一巡を検出し、かつ送信元アドレスがこの装置番号“6”の一つ前の装置番 号“4”(PRA)となったときに、通信バスB上に一定時間キャリアを送出す る。Here, it is assumed that a device is newly connected to the position of the device number (address) “6” on the communication bus B. When the device number “6” detects the baton, it detects the source address and registers it in the connected device list 6, and generates this list. Then, when the loop of the buttons is detected and the transmission source address becomes the device number "4" (PRA) immediately before the device number "6", the carrier is transmitted on the communication bus B for a certain period of time. Give out.

【0026】 装置番号“4”の装置がバトンを送出する時点にあたって装置番号“6”から のキャリアを検出し、装置番号“4”の装置は、バトン順序の次のアドレスに対 応する宛先アドレスNXA“5”,“6”,“7”に対してバトンを送出し、応 答バトンがあったときに、その装置番号(“6”)を接続デバイス・リスト6に 追加登録する。The device with the device number “4” detects the carrier from the device number “6” at the time of sending the baton, and the device with the device number “4” receives the destination address corresponding to the next address in the baton order. A baton is sent to NXA "5", "6", "7", and when there is a response baton, the device number ("6") is additionally registered in the connected device list 6.

【0027】 尚、上述した本考案装置は、通信バスBが二重化されているようなシステム二 も適用できる。 また、バトンを巡回させるにあたって、接続デバイス・リスト上にある装置宛 のバトンと、接続デバイス・リスト上にない装置宛のバトンとを区別できるよう に、その形態を異なるようにしてもよい。 更に、一定時間継続して送出されたキャリアを検出したいずれの装置は、その 時点で、接続デバイス・リスト上に登録されていない全てのアドレスに対応する 装置番号をその宛先アドレスとして、バトンを送出するようにしてもよい。The device of the present invention described above can also be applied to a system 2 in which the communication bus B is duplicated. Further, when the batons are circulated, the modes may be different so that a baton destined for a device on the connected device list and a baton destined for a device not on the connected device list can be distinguished. Furthermore, any device that has detected a carrier that has been continuously transmitted for a certain period of time sends a baton with the device number corresponding to all addresses not registered on the connected device list as its destination address. You may do it.

【0028】[0028]

【考案の効果】[Effect of device]

以上説明したように、本考案によれば、従来、応答なしバトンにより使用効率 の悪かったバトン・パス方式のバスの使用効率を、コリジョン検出機能等を付加 することなく、向上させることができる。即ち、新規な装置が追加接続されたと きでも、簡単な構成によってこの装置宛にバトンが送出されるようにすることに より、通信バスの使用効率を向上させることができる。 As described above, according to the present invention, it is possible to improve the usage efficiency of a baton-pass type bus, which has conventionally been poorly used due to a non-response baton, without adding a collision detection function or the like. That is, even if a new device is additionally connected, the baton can be sent to this device with a simple configuration, so that the use efficiency of the communication bus can be improved.

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

【図1】本考案の通信バス制御装置を表す構成ブロック
図である。
FIG. 1 is a configuration block diagram showing a communication bus control device of the present invention.

【図2】本考案装置の動作を表すフローチャートであ
る。
FIG. 2 is a flow chart showing the operation of the device of the present invention.

【図3】本考案装置の動作を表すフローチャートであ
る。
FIG. 3 is a flowchart showing the operation of the device of the present invention.

【図4】本考案装置の動作を表すフローチャートであ
る。
FIG. 4 is a flowchart showing the operation of the device of the present invention.

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

10 通信バス制御装置 2 レシーバ 3 受信処理部 31 バトン確認部 32 キャリア確認部 4 ドライバ 5 送信処理部 51 キャリア生成部 52 バトン生成部 6 接続デバイス・リスト 7 自局アドレス 8 自局バトン生成部 B 通信バス制御装置 10 communication bus control device 2 receiver 3 reception processing unit 31 baton confirmation unit 32 carrier confirmation unit 4 driver 5 transmission processing unit 51 carrier generation unit 52 baton generation unit 6 connected device list 7 own station address 8 own station baton generation unit B communication Bus controller

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】通信バスに接続され、前記通信バスに接続
されている全ての装置をリスト形式で登録する接続デバ
イス・リストを有するとともに、送信元アドレスと宛先
アドレスとを含むバトンを周回させ、前記バトンが回っ
てきたときに前記通信バスの使用権を得る通信バス制御
装置において、前記バトン内の前記送信元アドレスと前
記宛先アドレスに従って前記接続デバイス・リストを更
新するバトン確認部と、前記バトン確認部からの前記宛
先アドレスと自局アドレスとを比較して受信した前記バ
トンが自局宛てのものか否かを検知する自局バトン生成
部と、前記バトンが一巡して前記バトン確認部からの前
記宛先アドレス,前記自局アドレス及び前記接続デバイ
ス・リストを参照して前記宛先アドレスに前記自局アド
レスが含まれていないときにキャリアを前記通信バスへ
送出するキャリア生成部と、前記通信バス上の他装置か
らの前記キャリアを受信するキャリア確認部と、前記キ
ャリア確認部のキャリア受信がなく前記自局バトン生成
部の検知出力がある場合には前記接続デバイス・リスト
を参照して前記宛先アドレスを前記バトンに付加し前記
キャリア確認部のキャリア受信があり前記自局バトン生
成部の検知出力がある場合には前記接続デバイス・リス
トに格納されていないアドレスを前記宛先アドレスとし
て前記バトンに付加して前記通信バスへ送出するバトン
生成部とを備えることを特徴とする通信バス制御装置。
1. A baton including a source address and a destination address is connected to a communication bus and has a connected device list for registering all devices connected to the communication bus in a list format, In a communication bus control device that obtains the right to use the communication bus when the baton comes around, a baton confirmation unit that updates the connected device list according to the source address and the destination address in the baton, and the baton. From the baton confirmation unit, a local station baton generation unit that detects whether or not the received baton by comparing the destination address and the local station address from the confirmation unit is addressed to the local station, and the baton completes a cycle. Of the destination address, the own station address and the connected device list of When there is no carrier, a carrier generation unit that sends a carrier to the communication bus, a carrier confirmation unit that receives the carrier from another device on the communication bus, and a self-station baton generation unit that does not receive a carrier by the carrier confirmation unit If there is a detection output of the above, if the destination address is added to the baton with reference to the connected device list and there is a carrier reception of the carrier confirmation section and there is a detection output of the own station baton generation section, A communication bus control device, comprising: a baton generator that adds an address not stored in a connected device list to the baton as the destination address and sends the address to the communication bus.
JP1445393U 1993-03-26 1993-03-26 Communication bus controller Pending JPH0673939U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1445393U JPH0673939U (en) 1993-03-26 1993-03-26 Communication bus controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1445393U JPH0673939U (en) 1993-03-26 1993-03-26 Communication bus controller

Publications (1)

Publication Number Publication Date
JPH0673939U true JPH0673939U (en) 1994-10-18

Family

ID=11861466

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1445393U Pending JPH0673939U (en) 1993-03-26 1993-03-26 Communication bus controller

Country Status (1)

Country Link
JP (1) JPH0673939U (en)

Similar Documents

Publication Publication Date Title
CA1265257A (en) Local area network with carrier sense collision avoidance
AU655303B2 (en) Method and apparatus for data collision detection in a multi-processor communication system
JPH04142642A (en) Information processor having communication function
US6298360B1 (en) Method and apparatus for generating a highly random number while using existing circuitry
US7397786B2 (en) Hardware assist system and method for the timing of packets in a wireless network
JPH07112201B2 (en) Method and apparatus for assigning addresses to remote terminals in a LAN
EP0893019B1 (en) Multiplex communication interface circuit and method
JPH0673939U (en) Communication bus controller
CA2066146A1 (en) Method for transmitting data to a plurality of data stations
JP3486946B2 (en) Multicast communication relay device
JP2844036B2 (en) Communication control device
JPH0628322A (en) Information processor
JP2863392B2 (en) Equipment for testing network equipment
JPH03286644A (en) Method and system for controlling multiple address communication
JPH05324545A (en) Bus controller
JPH0735469Y2 (en) Baton pass communication bus controller
JP3154626B2 (en) Serial transmission device
US6704325B1 (en) Method to recognize streaming memory aligned and non-memory aligned data patterns with optimal hardware reuse
JP3066198B2 (en) Token bus communication system
JP2570192B2 (en) Loop type local area network system
JP2827331B2 (en) Bus control device
JPH0619801A (en) Information processor
JPS6238637A (en) Control system for transmission in multi-drop
JPH04129346A (en) Communication system provided with duplicate address detection function
JPH07120288B2 (en) Redundant message detection processing method of data processing device