JP2677021B2 - Token bus communication system - Google Patents

Token bus communication system

Info

Publication number
JP2677021B2
JP2677021B2 JP3019679A JP1967991A JP2677021B2 JP 2677021 B2 JP2677021 B2 JP 2677021B2 JP 3019679 A JP3019679 A JP 3019679A JP 1967991 A JP1967991 A JP 1967991A JP 2677021 B2 JP2677021 B2 JP 2677021B2
Authority
JP
Japan
Prior art keywords
token
circuit
data
sequence number
bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP3019679A
Other languages
Japanese (ja)
Other versions
JPH04258053A (en
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.)
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 JP3019679A priority Critical patent/JP2677021B2/en
Publication of JPH04258053A publication Critical patent/JPH04258053A/en
Application granted granted Critical
Publication of JP2677021B2 publication Critical patent/JP2677021B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はトークンパッシング方式
バスに接続されて通信を行う複数の通信制御装置を備え
る通信システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication system provided with a plurality of communication control devices connected to a token passing bus for communication.

【0002】[0002]

【従来の技術】トークンバス方式ではバス上のデータの
うち、SYNCコードと呼ばれる特殊なコードが付加さ
れたデータを制御語として扱っている。バスに接続され
る通信制御装置はこの制御語をもとに送信を行なってい
る。バスに接続される装置は各々固有のシーケンスナン
バを1つ持ち、このシーケンスナンバと同じ値を持った
制御語のトークンがバス上に現われると該当する装置は
送信権を得る。送信権を得た装置は送信するデータがあ
れば、データの先頭を表わす制御語(BOM)とデータ
の終了を表わす制御語(EOM)との間にデータを挿入
しバスに送出する。この時、BOMにはデータの受取先
を示すファンクションコード(FC)が付加されてお
り、バスに接続されている装置はBOMを検出するとF
Cをチェックし、自分が受け取るべきデータであるか確
認してデータを受信する。
2. Description of the Related Art In the token bus system, of the data on the bus, data to which a special code called a SYNC code is added is treated as a control word. The communication control device connected to the bus transmits based on this control word. Each device connected to the bus has one unique sequence number, and when a token of the control word having the same value as this sequence number appears on the bus, the corresponding device gets the transmission right. If there is data to be transmitted, the device that has acquired the transmission right inserts the data between the control word (BOM) indicating the beginning of the data and the control word (EOM) indicating the end of the data and sends the data to the bus. At this time, a function code (FC) indicating a data receiving destination is added to the BOM, and when the device connected to the bus detects the BOM, it is F
Check C, check if it is the data that should be received, and receive the data.

【0003】送信権を持っている装置は送信終了時また
は送信するデータがないとき、他の装置へ送信権を渡す
ために自分のシーケンスナンバに+1した値を付加して
トークンをバス上に送出する。バスに接続されている装
置の中で最も大きなシーケンスナンバを持つ装置がトー
クンを送出すると、このトークンのシーケンスナンバと
同じシーケンスナンバを持った装置は存在しないので、
次のトークンはバスに現われない。そして、規定時間以
内にトークンがバスに現われなかったとき(タイムアウ
トのとき)はシーケンスナンバが0の装置が送信権を得
る。シーケンスナンバの設定は電源投入時または再設定
指示が発行されたときに行なわれる。
At the end of transmission or when there is no data to be transmitted, the device having the transmission right sends a token to the bus by adding a value obtained by adding +1 to its own sequence number to pass the transmission right to another device. To do. When the device with the largest sequence number among the devices connected to the bus sends out the token, there is no device with the same sequence number as the sequence number of this token, so
The next token does not appear on the bus. When the token does not appear on the bus within the specified time (time-out), the device with the sequence number 0 gets the transmission right. The sequence number is set at power-on or when a reset instruction is issued.

【0004】各装置はトークンが1回巡回する間に、つ
まり、タイムアウトから次のタイムアウトまでの間に自
装置宛のトークンを受信しなかったとき、その装置は自
分の持つシーケンスナンバを−1する。このことによ
り、装置の故障等によってシーケンスナンバに欠番が生
じたとき、その欠番をつめてトークンの巡回を正常に行
なう。また、電源投入時などトークンの巡回の中に新た
に加わるときはタイムアウトになるのを待ち、タイムア
ウトになったときのトークンのシーケンスナンバを自装
置のシーケンスナンバとしている。
When each device does not receive a token addressed to itself during one cycle of token circulation, that is, between the timeout and the next timeout, the device decrements its own sequence number by -1. . As a result, when the sequence number has a missing number due to a device failure or the like, the token is normally circulated by closing the missing number. In addition, when a token is newly added during the circulation of the token such as when the power is turned on, it waits for a timeout, and the sequence number of the token at the time of timeout is used as the sequence number of its own device.

【0005】[0005]

【発明が解決しようとする課題】上述したように、シー
ケンスナンバは電源投入時の装置数や電源投入の順序に
よって同一装置であっても違う値になる。また、装置の
故障等によってシーケンスナンバに欠番が生じたとき、
故障が発生した装置のシーケンス番号より大きい値を持
つ各装置は、サーケンスナンバの欠番を生めるようにシ
ーケンスナンバを−1して、シーケンスナンバが連続す
るようにする。そとため、バスモニタ等によりバスに送
信されたトークンをモニタしてもそのトークンがどの装
置から送信されたものかわからない。この結果、装置の
評価や障害調査を効率よくできないという問題がある。
As described above, the sequence number has a different value depending on the number of devices when the power is turned on and the order of powering on even the same device. Also, when there is a missing number in the sequence number due to equipment failure, etc.,
Each device having a value larger than the sequence number of the device in which the failure has occurred makes the sequence number -1 so that the sequence number is missing so that the sequence numbers are consecutive. Therefore, even if a token sent to the bus is monitored by a bus monitor or the like, it is not possible to know from which device the token was sent. As a result, there is a problem that the evaluation of the device and the failure investigation cannot be performed efficiently.

【0006】[0006]

【課題を解決するための手段】本発明のトークンバス方
式通信システムは、トークンパッシング方式バスに接続
された複数の通信制御装置のそれぞれに前記トークンパ
ッシング方式バスを介してトークン及びデータの授受を
行うドライバ・レシーバ回路と、前記ドライバ・レシー
バ回路を介して受信したトークン及びデータを処理する
ための受信回路と、前記ドライバ・レシーバ回路を介し
てトークン及びデータを送信する送信回路と、送受信デ
ータの処理を行なうデータ処理回路と、トークンに付加
するIDナンバを記憶するIDナンバ記憶回路と、前記
各回路を制御する制御回路とを備え、システムの初期化
時に送信されてくる初期設定メッセージに付加された装
置固有の前記IDナンバを前記IDナンバ記憶回路に記
憶し、トークンを送信する際、前記IDナンバ記憶回路
に記憶された前記IDナンバを付加し、送信されたトー
クンが前記通信制御装置のどれから送信されたものか識
別可能とする。
In the token bus communication system of the present invention, tokens and data are transferred to and from each of a plurality of communication control devices connected to the token passing bus. A driver / receiver circuit, a receiver circuit for processing tokens and data received via the driver / receiver circuit, a transmitter circuit for transmitting tokens and data via the driver / receiver circuit, and processing of transmitted / received data And a control circuit for controlling each of the above circuits, and a data processing circuit for executing the above, an ID number storage circuit for storing an ID number to be added to the token, and a control circuit for controlling each circuit. The ID number unique to the device is stored in the ID number storage circuit, and the token is When signal, the ID number added to the ID number stored in the storage circuit, or identifiable to those transmission token transmitted from which of the communication control device.

【0007】[0007]

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

【0008】本発明の一実施例を示す図1を参照する
と、通信制御装置1はトークンパッシング方式バス(以
下、バスと略す)10に接続されたドライバ・レシーバ
20を有する。初期設定メッセージを受信したとき、ド
ライバ・レシーバ20は初期設定メッセージを受信回路
21へ送る。受信回路21は初期設定メッセージに付加
されたIDナンバをIDナンバ記憶レジスタ24に送
る。そして、受信回路21は初期設定メッセージを受信
したことを制御回路25に通知する。この通知を受けた
制御回路25は、通信制御装置1内のIDナンバ記憶レ
ジスタ24以外を初期化する。また、トークンを受信し
たときドライバ・レシーバ20はトークンを受信回路2
1へ送る。受信回路21はトークンを受信したこととト
ークンに付加されたシーケンスナンバを制御回路25へ
通知する。この通知を受けた制御回路25は、通知され
たシーケンスナンバと自装置のシーケンスナンバとを比
較し、一致していなければ次のトークンを受信するのを
待ち、上記の手順を繰り返す。一致していれば、自装置
が送信権を得たと考え、次に示す処理を行なう。
Referring to FIG. 1 showing an embodiment of the present invention, a communication control device 1 has a driver / receiver 20 connected to a token passing bus (hereinafter abbreviated as bus) 10. When receiving the initialization message, the driver / receiver 20 sends the initialization message to the reception circuit 21. The reception circuit 21 sends the ID number added to the initial setting message to the ID number storage register 24. Then, the receiving circuit 21 notifies the control circuit 25 that the initial setting message has been received. Upon receiving this notification, the control circuit 25 initializes the communication control device 1 except the ID number storage register 24. When the token is received, the driver / receiver 20 receives the token in the receiving circuit 2
Send to 1. The reception circuit 21 notifies the control circuit 25 that the token has been received and the sequence number added to the token. Upon receiving this notification, the control circuit 25 compares the notified sequence number with the sequence number of its own device, and if they do not match, waits to receive the next token and repeats the above procedure. If they match, it is considered that the own device has acquired the transmission right, and the following process is performed.

【0009】まず、制御回路25は送信権を得たことを
データ処理回路23に通知する。通知を受けたデータ処
理回路23は送信すべきデータがあるときデータを送信
回路22に送り、送信回路22はデータをドライバ・レ
シーバ20を介してバス10に送信する。データの送信
が終了したとき、または送信すべきデータがないとき、
データ処理回路23はその旨を制御回路25に通知す
る。制御回路25はこの通知を受けると自装置のシーケ
ンスナンバに+1した値のシーケンスナンバを送信回路
22に通知し、そのあとトークンを送信するよう送信回
路22に指令を出す。この指令を受けた送信回路22
は、トークンを送信する際にトークンに自装置のシーケ
ンスナンバに+1した値のシーケンスナンバとIDナン
バ記憶レジスタ24に記憶されたIDナンバとを付加し
てバス10に送信する。以上が送信権を得たときの処理
である。
First, the control circuit 25 notifies the data processing circuit 23 that the transmission right has been obtained. The data processing circuit 23 that has received the notification sends the data to the transmission circuit 22 when there is data to be transmitted, and the transmission circuit 22 transmits the data to the bus 10 via the driver / receiver 20. When the data has been sent or there is no data to send,
The data processing circuit 23 notifies the control circuit 25 to that effect. Upon receiving this notification, the control circuit 25 notifies the transmission circuit 22 of a sequence number having a value obtained by adding +1 to the sequence number of its own device, and thereafter issues a command to the transmission circuit 22 to transmit the token. The transmission circuit 22 which received this command
When transmitting a token, adds a sequence number of a value obtained by adding +1 to the sequence number of its own device and the ID number stored in the ID number storage register 24 and transmits the token to the bus 10. The above is the processing when the transmission right is obtained.

【0010】図2に通信制御装置1のトークンを示して
いる。TOKはこの通信データがトークンであることを
示すコードである。従来装置のトークンはシーケンスナ
ンバのみが付加されていたが、本発明の装置ではさらに
IDナンバが付加してある。このIDナンバは同一のバ
スに接続された装置の中で各装置固有の値になってい
る。
FIG. 2 shows a token of the communication control device 1. TOK is a code indicating that this communication data is a token. In the conventional device, only the sequence number is added to the token, but in the device of the present invention, the ID number is further added. This ID number is a value unique to each device among the devices connected to the same bus.

【0011】図3は5台の通信制御装置1でトークンバ
ス方式による通信を行なうときの物理的なバス10の構
成例と1台の装置が故障等により通信処理ができなくな
ったときの前後での各装置のシーケンスナンバと特定の
装置のトークンの変化を示している。図3(a)は5台
の装置はすべで作動しており、同図中においてIDナン
バ=6の装置1がシーケンスナンバ=4のトークンを送
信しているところを示す。図3(b)はIDナンバ=3
の装置1が故障等により通信処理ができなくなった例で
あり、図3(a)に於てシーケンスナンバが2より大き
い値であった装置1がシーケンスナンバを各々−1して
シーケンスナンバを再設定したところを示す。そして、
図3(b)中において上記と同じくIDナンバ=6の装
置1がトークンを送信しているところを示している。こ
のとき、トークンに付加されたシーケンスナンバは3に
なっている。
FIG. 3 shows a configuration example of the physical bus 10 when communication is performed by the five communication control devices 1 by the token bus method, and before and after communication processing cannot be performed due to a failure of one device. Shows the sequence number of each device and the token change of a specific device. FIG. 3A shows that all five devices are operating, and device 1 with ID number = 6 transmits a token with sequence number = 4 in the figure. FIG. 3B shows an ID number = 3.
3 is an example in which communication processing cannot be performed due to a failure or the like, and the device 1 whose sequence number is larger than 2 in FIG. The setting is shown. And
In FIG. 3B, the device 1 having the ID number = 6 is transmitting the token as in the above. At this time, the sequence number added to the token is 3.

【0012】[0012]

【発明の効果】以上説明したように本発明によれば、同
一バスに接続された装置の中で各装置固有のIDナンバ
を設定回路に記憶しておきトークンに付加することによ
り、バスモニタ等によりバスに送信されたトークンをモ
ニタしたとき、そのトークンがどの装置から送信された
ものか知ることができる。この結果、装置の評価や障害
調査を効率よく行なうことができる。
As described above, according to the present invention, among the devices connected to the same bus, the ID number unique to each device is stored in the setting circuit and added to the token, so that a bus monitor or the like can be obtained. When you monitor a token sent to the bus, you can see from which device the token was sent. As a result, it is possible to efficiently evaluate the device and investigate the failure.

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

【図1】本発明の一実施例を示す構成図である。FIG. 1 is a configuration diagram showing one embodiment of the present invention.

【図2】同実施例における通信制御装置のトークンを示
す。
FIG. 2 shows a token of the communication control device in the embodiment.

【図3】同実施例において装置5台でトークンバス方式
による通信を行なうときの物理的なバスの構成例と1台
の装置が故障等により通信処理ができなくなったときの
前後での各装置のシーケンスナンバ及びトークンの変化
とを示す。
FIG. 3 is a physical bus configuration example when five devices perform communication by the token bus system in the same embodiment, and each device before and after communication processing cannot be performed due to a failure of one device. The sequence number and the change of the token are shown.

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

1 通信制御装置 10 トークンパッシング方式バス 20 ドライバ・レシーバ 21 受信回路 22 送信回路 23 データ処理回路 24 IDナンバ記憶レジスタ 25 制御回路 1 Communication Control Device 10 Token Passing Bus 20 Driver / Receiver 21 Reception Circuit 22 Transmission Circuit 23 Data Processing Circuit 24 ID Number Storage Register 25 Control Circuit

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】トークンパッシング方式パスに接続された
複数の通信制御装置のそれぞれに前記トークンパッシン
グ方式パスを介してトークン及びデータの授受を行うド
ライバ・レシーバ回路と、前記ドライバ・レシーバ回路
を介して受信したトークン及びデータを処理するための
受信回路と、前記ドライバ・レシーバ回路を介してトー
クン及びデータを送信する送信回路と、送受信データの
処理を行うデータ処理回路と、トークンに付加するID
ナンバを記憶するIDナンバ記憶回路と、前記各回路を
制御する制御回路とを備え、システムの初期化時に送信
されてくる初期設定メッセージに付加された装置固有の
前記IDナンバを前記IDナンバ記憶回路に記憶し、ト
ークンを送信する際、前記IDナンバ記憶回路に記憶さ
れた前記IDナンバをデータの送信権の順序を示しかつ
可変的に装置固有に与えられるシーケンスナンバと共に
付加し、前記シーケンスナンバの変更があったときも
信されたトークンが前記通信制御装置のどれから送信さ
れたものか識別可能とすることを特徴とするトークンバ
ス方式通信システム。
1. A driver / receiver circuit for exchanging tokens and data to and from each of a plurality of communication control devices connected to a token passing system path, and a driver / receiver circuit for exchanging tokens and data. A receiving circuit for processing the received token and data, a transmitting circuit for transmitting the token and data through the driver / receiver circuit, a data processing circuit for processing the transmitted / received data, and an ID added to the token
An ID number storage circuit for storing a number and a control circuit for controlling each circuit are provided, and the ID number peculiar to the device added to the initialization message transmitted at the time of system initialization is stored in the ID number storage circuit. When transmitting a token, the ID number stored in the ID number storage circuit indicates the order of data transmission right, and
With a sequence number that is variably assigned to the device
A token-bus communication system, wherein the token-bus communication system is characterized in that, even when the sequence number is changed, the transmitted token can be identified from which of the communication control units the token was transmitted.
JP3019679A 1991-02-13 1991-02-13 Token bus communication system Expired - Lifetime JP2677021B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3019679A JP2677021B2 (en) 1991-02-13 1991-02-13 Token bus communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3019679A JP2677021B2 (en) 1991-02-13 1991-02-13 Token bus communication system

Publications (2)

Publication Number Publication Date
JPH04258053A JPH04258053A (en) 1992-09-14
JP2677021B2 true JP2677021B2 (en) 1997-11-17

Family

ID=12005920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3019679A Expired - Lifetime JP2677021B2 (en) 1991-02-13 1991-02-13 Token bus communication system

Country Status (1)

Country Link
JP (1) JP2677021B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60260247A (en) * 1984-06-07 1985-12-23 Canon Inc Data transmission control system

Also Published As

Publication number Publication date
JPH04258053A (en) 1992-09-14

Similar Documents

Publication Publication Date Title
US5371897A (en) Method for requesting identification of a neighbor node in a data processing I/O system
US6728908B1 (en) I2C bus protocol controller with fault tolerance
EP0472814B1 (en) Channel paths in a computer I/O system
US4511958A (en) Common bus access system using plural configuration tables for failure tolerant token passing among processors
EP0137438B1 (en) Method for passing a token in a local-area network
WO1989007869A1 (en) Uneven token distribution technique for token based local area network
CA2030604C (en) Master slave industrial token passing network
JPH0756644B2 (en) Status change notification device and method
EP0472836B1 (en) Acquiring addresses in an input/output system
US7685442B2 (en) Method and systems for a radiation tolerant bus interface circuit
JP2005277978A (en) Method and device for automatically setting identification number
JP2677021B2 (en) Token bus communication system
US20020183009A1 (en) Radio communication within a computer system
US8050176B2 (en) Methods and systems for a data processing system having radiation tolerant bus
JPH05300152A (en) Address setter
JP2006262386A (en) Control system
JP3067160B2 (en) Communication control device
JPH04258052A (en) Token bus type communication system
JPS61167246A (en) Loop transmitting method
JPH06334668A (en) Multiplexed transmission system
JPS61253950A (en) Network control system
JPH0650865B2 (en) Token passing method Bus test equipment
JPH01289337A (en) Test equipment for token passing system bus
JPH0650866B2 (en) Token passing bus test equipment
JPH0650867B2 (en) Token passing bus test equipment

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970624