JP3194381B2 - Bus management method - Google Patents

Bus management method

Info

Publication number
JP3194381B2
JP3194381B2 JP2000090766A JP2000090766A JP3194381B2 JP 3194381 B2 JP3194381 B2 JP 3194381B2 JP 2000090766 A JP2000090766 A JP 2000090766A JP 2000090766 A JP2000090766 A JP 2000090766A JP 3194381 B2 JP3194381 B2 JP 3194381B2
Authority
JP
Japan
Prior art keywords
node
bus
channel
communication
value
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
JP2000090766A
Other languages
Japanese (ja)
Other versions
JP2000312217A (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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2000090766A priority Critical patent/JP3194381B2/en
Publication of JP2000312217A publication Critical patent/JP2000312217A/en
Application granted granted Critical
Publication of JP3194381B2 publication Critical patent/JP3194381B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

〔発明の詳細な説明〕[Detailed description of the invention]

【0002】[0002]

【従来の技術】ディジタルVTR、モニタ、チューナ等
のAV機器やパソコン等をバスに接続し、これらの機器
間でディジタルビデオ信号、ディジタルオーディオ信号
等を送受する通信システムが提案されている。
2. Description of the Related Art There has been proposed a communication system in which AV devices such as digital VTRs, monitors, tuners and the like, personal computers and the like are connected to a bus, and digital video signals, digital audio signals and the like are transmitted and received between these devices.

【0003】この種の通信システムとして、図8に示す
ものが提案されている。この通信システムは、ルート
(根)ノード21、リーフ(葉)ノード22、ブランチ
(枝)ノード23、リーフノード24、リーフノード2
5を備えている。そして、ノード21−22間、ノード
21―23間、ノード23−24間及びノード23−2
5間の入出力ポートは、2組のツイストペアケーブルに
より接続されている。ノード21〜25は、前記したよ
うに、ディジタルVTR、モニタ、チューナ、パソコン
等であり、各々1個以上の入出力ポートを持っている。
各ノード21〜25にはアンプと中継器が内蔵されてい
るので、図8の通信システムは、図9に示されているよ
うな各ノード21〜25がバス26に接続されている通
信システムと等価である。
[0003] As this type of communication system, the one shown in FIG. 8 has been proposed. This communication system includes a root (root) node 21, a leaf (leaf) node 22, a branch (branch) node 23, a leaf node 24, a leaf node 2
5 is provided. Then, between the nodes 21 and 22, between the nodes 21 and 23, between the nodes 23 and 24, and between the nodes 23 and 2
The input / output ports between the five are connected by two twisted pair cables. As described above, the nodes 21 to 25 are a digital VTR, a monitor, a tuner, a personal computer, and the like, and each have one or more input / output ports.
Since each node 21 to 25 has a built-in amplifier and repeater, the communication system in FIG. 8 is the same as the communication system in which each node 21 to 25 is connected to the bus 26 as shown in FIG. Are equivalent.

【0004】図8においては、ノード21の下位にノー
ド22とノード23が接続され、さらにノード23の下
位にノード24とノード25が接続された階層構造にな
っている。別の言い方をすれば、ノード21がノード2
2及び23の親ノードであり、ノード23がノード24
及びノード25の親ノードである。まず、この階層構造
を決定する手順について説明する。
FIG. 8 shows a hierarchical structure in which a node 22 and a node 23 are connected below a node 21, and a node 24 and a node 25 are connected below the node 23. In other words, node 21 is node 2
2 and 23 are parent nodes, and node 23 is node 24
And the parent node of the node 25. First, a procedure for determining the hierarchical structure will be described.

【0005】ノード21―22間、21−23間、23
−24間及び23―25間をケーブルで接続すると、1
個の入出力ポートのみが他のノードと接続されているノ
ードは、自分と接続されているノードに対して、相手が
親ノードである旨を伝達する。図8に示す通信システム
の場合、ノード24及び25がノード23に対して、ノ
ード23が親ノードである旨を伝達し、ノード22はノ
ード21に対して、ノード21が親ノードである旨を伝
達する。
[0005] Between nodes 21-22, 21-23, 23
If cables are connected between -24 and 23-25, 1
A node in which only the I / O ports are connected to another node transmits to the node connected thereto that the other party is the parent node. In the case of the communication system shown in FIG. 8, the nodes 24 and 25 communicate to the node 23 that the node 23 is the parent node, and the node 22 informs the node 21 that the node 21 is the parent node. introduce.

【0006】また、複数個の入出力ポートが他のノード
と接続されているノードは、自分に対して親ノードであ
る旨を伝達してきたノード以外のノードに対して、相手
が親ノードである旨を伝達する。図8の場合、ノード2
3がノード21に対して、ノード21が親ノードである
旨を伝達し、ノード21がノード23に対して、ノード
23が親ノードである旨を伝達する。この時、ノード2
1とノード23間では、互いに相手ノードが親ノードで
ある旨を伝達することになるので、先に親ノードである
旨を伝達されてしまったノードが親ノードとなる。図8
はノード21が親ノードとなった場合を示している。
A node having a plurality of input / output ports connected to another node is a parent node with respect to a node other than the node that has transmitted the fact that the node is a parent node to itself. Communicate to the effect. In the case of FIG. 8, node 2
3 informs node 21 that node 21 is the parent node, and node 21 informs node 23 that node 23 is the parent node. At this time, node 2
Since node 1 and node 23 communicate with each other that the partner node is the parent node, the node that has previously been notified of the parent node is the parent node. FIG.
Indicates that the node 21 has become the parent node.

【0007】次に、各ノードのアドレスを付与する手順
について説明する。ノードのアドレスは、基本的には親
ノードが子ノードに対してアドレスの付与を許可するこ
とにより行う。子ノードが複数ある場合には、例えば、
ポート番号の若い方に接続されている子ノードから順に
許可をする。
Next, a procedure for assigning an address of each node will be described. The address of a node is basically obtained by allowing a parent node to assign an address to a child node. If there are multiple child nodes, for example,
Permits in order from the child node connected to the port with the lowest port number.

【0008】図8において、ノード21のポート#1に
ノード22が接続され、ポート#2にノード23が接続
されている場合、ノード21はノード22に対してアド
レスの付与を許可する。ノード22は自分にアドレス
を付与し、自分にアドレスを付与したことを示すデー
タをバスに送出する。次に、ノード21は、ノード23
に対してアドレスの決定を許可する。ノード23は、ポ
ート#1に接続されているノード24に対してアドレス
の付与を許可する。ノード24は、自分にアドレスを
付与する。次に、ノード23は、ポート#2に接続され
ているノード25に対してアドレスの付与を許可する。
ノード25は、自分にアドレスを付与する。ノード2
3は、子ノード24及び25のアドレス付与が終了した
ら自分にアドレスを付与する。ノード21は、子ノー
ド22及び23のアドレス付与が終了したら自分にアド
レスを付与する。
In FIG. 8, when the node 22 is connected to the port # 1 of the node 21 and the node 23 is connected to the port # 2, the node 21 permits the node 22 to assign an address. The node 22 assigns an address to itself, and sends data indicating that the address has been assigned to itself to the bus. Next, the node 21
Allows the address to be determined. The node 23 permits the node 24 connected to the port # 1 to assign an address. The node 24 assigns an address to itself. Next, the node 23 permits the node 25 connected to the port # 2 to assign an address.
The node 25 assigns an address to itself. Node 2
3 assigns an address to itself when the address assignment of the child nodes 24 and 25 is completed. The node 21 assigns an address to itself when the address assignment of the child nodes 22 and 23 is completed.

【0009】この図8に示す通信システムでは、ディジ
タルビデオ信号のように一定のデータレートで連続的に
通信を行う同期通信と、制御コマンドなどを必要に応じ
て不定期に伝送する非同期通信の両方を行うことができ
る。
In the communication system shown in FIG. 8, both synchronous communication for continuously communicating at a constant data rate like a digital video signal and asynchronous communication for transmitting a control command or the like irregularly as necessary. It can be performed.

【0010】また、この通信システムでは、図10に示
されているように、所定の周期、例、125μsの周期
の通信サイクルで通信が行われる。通信サイクルの始め
にはサイクルスタートパケットcspがあり、それに続
いて同期通信のためのパケットを送信する期間が設定さ
れる。同期通信を行うバケットそれぞれにチャンネル番
号1,2,3・・・Nを付けることにより、複数の同期
通信を行うことが可能である。例えば、ノード22から
ノード23に対する通信にチャンネル1が割り付けられ
ているとすると、ノード22はサイクルスタートパケッ
トcspの直後にチャンネル番号1を付けた同期通信パ
ケットを送信し、ノード23はバスを監視し、チャンネ
ル番号1が付いた同期通信パケットを取り込むことで通
信が行われる。同様に、チャンネル2は、例えばノード
24からノード21に対する通信に割り付けることがで
きる。また、1つのチャンネルのパケットを複数のノー
ドが受信することもできる。
In this communication system, as shown in FIG. 10, communication is performed in a communication cycle of a predetermined cycle, for example, a cycle of 125 μs. At the beginning of the communication cycle, there is a cycle start packet csp, followed by a period for transmitting a packet for synchronous communication. A plurality of synchronous communications can be performed by assigning channel numbers 1, 2, 3,... N to each bucket for performing the synchronous communications. For example, assuming that channel 1 is allocated to the communication from the node 22 to the node 23, the node 22 transmits a synchronous communication packet with the channel number 1 immediately after the cycle start packet csp, and the node 23 monitors the bus. The communication is performed by taking in a synchronous communication packet with channel number 1. Similarly, channel 2 can be assigned to communication from node 24 to node 21, for example. A plurality of nodes can receive a packet of one channel.

【0011】複数の同期通信が行われるときは、サイク
ルスタートパケットcspの直後に、複数のチャンネル
の同期通信パケットの送信が試みられるが、その場合は
バスによって決まっている調停手段(例、CSMA/C
D)により、まず1つのチャンネルの同期通信パケット
が送信され、引き続き他のチャンネルの同期通信バケッ
トが順次送信される。
When a plurality of synchronous communications are performed, transmission of synchronous communication packets of a plurality of channels is attempted immediately after the cycle start packet csp. In this case, arbitration means (for example, CSMA / CSM) determined by a bus is used. C
According to D), first, a synchronous communication packet of one channel is transmitted, and subsequently, a synchronous communication bucket of another channel is sequentially transmitted.

【0012】そして、全てのチャンネルの同期通信パケ
ットの送信が終了した後、次のサイクルスタートパケッ
トcspまでの期間が非同期通信に使用される。非同期
通信バケット(図10ではバケットA,B)には送信ノ
ード及び受信ノードのアドレスが付いており、各ノード
は自分のアドレスが付いたパケットを取り込む。
After the transmission of the synchronous communication packets of all the channels is completed, a period until the next cycle start packet csp is used for asynchronous communication. Asynchronous communication buckets (buckets A and B in FIG. 10) have addresses of the transmitting node and the receiving node, and each node takes in a packet with its own address.

【0013】なお、以上説明した通信システムの詳細は
「IEEE P1394 シリアルバス仕様書」として
公開されているので、更なる詳細な説明は省略する。
Since the details of the communication system described above are disclosed as "IEEE P1394 Serial Bus Specifications", further detailed description will be omitted.

【0014】[0014]

【発明が解決しようとする課題】上述のような通信シス
テムが正しく動作するためには、それぞれの同期通信が
異なるチャンネル番号を持ち、且つ全てのチャンネルの
同期通信パケットの通信時間の合計が同期通信の周期を
越えないように管理することが必要である。そのために
は、あるノードが同期通信を始める前に、まずその通信
に必要な通信容量がバスに残っているかどうかを確認
し、残っていれば使われていないチャンネルを割り付け
てもらうことが必要である。
In order for the above-mentioned communication system to operate properly, each synchronous communication has a different channel number and the total communication time of synchronous communication packets of all channels is determined by the synchronous communication. It is necessary to manage so as not to exceed the cycle of To do this, before a node starts synchronous communication, it is necessary to first check whether the communication capacity required for the communication remains on the bus, and if so, assign a channel that is not being used. is there.

【0015】同期通信で使用される通信容量とチャンネ
ル番号を管理するために、バスに接続されているノード
の1つがバス管理ノードとなり、必要な管理を行うよう
にするのが普通である。この場合、他のノードは同期通
信を開始する前に、まず非同期通信パケットを用いてバ
ス管理ノードに対して使用したい通信容量を示し、チャ
ンネルの割り付けを要求する。バス管理ノードは、既に
使用されている同期通信の通信容量に要求のあった通信
容量を加えてもバスの最大通信容量を越えないかどうか
を調べる。そして、越えなければ使用されていないチャ
ンネル番号と共に同期通信の許可を通知し、越えてしま
えばチャンネルの割り付けを拒否する旨を通知する。同
期通信を終了したら、バス管理ノードに対して使用しな
くなる通信容量とチャンネル番号を通知する。
In order to manage the communication capacity and the channel number used in the synchronous communication, one of the nodes connected to the bus usually serves as a bus management node to perform necessary management. In this case, before starting the synchronous communication, the other nodes first indicate the communication capacity to be used to the bus management node using the asynchronous communication packet, and request the channel management to allocate the channel. The bus management node checks whether adding the requested communication capacity to the already used synchronous communication communication capacity does not exceed the maximum communication capacity of the bus. Then, if it does not exceed, it notifies the permission of the synchronous communication together with the unused channel number, and if it exceeds, it notifies that the channel assignment is rejected. When the synchronous communication is completed, the communication capacity and the channel number which are not used are notified to the bus management node.

【0016】このようにバスの管理には複雑な処理が必
要であるため、例えばパーソナルコンピュータ等を中心
とした通信システムでは、パーソナルコンピュータをバ
ス管理ノードとすることにより、このパーソナルコンピ
ュータが備えるソフトウェアにより処理を行うのが普通
である。この方法をディジタルVTR、チューナ、モ二
夕等のAV機器間の通信システムに適用する場合、AV
機器に加えてパーソナルコンピュータ等の強力なデータ
処理機能を有する機器をバスに接続することが必要にな
るため、通信システムのコストがアップしてしまう。
As described above, the bus management requires complicated processing. For example, in a communication system centering on a personal computer or the like, by using a personal computer as a bus management node, the software provided in the personal computer can be used. Processing is usually performed. When this method is applied to a communication system between AV devices such as a digital VTR, a tuner, and a modem,
Since it is necessary to connect a device having a powerful data processing function, such as a personal computer, to the bus in addition to the device, the cost of the communication system increases.

【0017】本発明は、このような問題点を解決するた
めに提案されるものであり、バスに接続された複数のノ
ード間で同期通信を行うシステムにおいて、バスの管理
を簡単に行う方法を提供することを目的とする。
The present invention has been proposed to solve such a problem. In a system for performing synchronous communication between a plurality of nodes connected to a bus, a method for easily managing a bus is proposed. The purpose is to provide.

【0018】[0018]

【課題を解決するための手段】上述したような課題を解
決するため、本発明は、バスに接続された複数のノード
間で同期通信を行うシステムスにおけるバス管理方法で
あって、複数のノード中、チャンネルの使用状況を記憶
する第1の記憶手段及びバスの使用状況を記憶する第2
の記憶手段を備える所定のノードをバス管理ノードと
し、各ノードが同期通信を開始するときに、第1及び第
2の記憶手段の内容を読み出し、空きチャンネルと空き
容量があれば、使用を開始するチャンネルの番号及びバ
ス容量をそれぞれ第1及び第2の記憶手段に書き込む。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention relates to a bus management method in a system for performing synchronous communication between a plurality of nodes connected to a bus. Medium, first storage means for storing the use status of the channel, and second storage means for storing the use status of the bus
A predetermined node provided with the storage means is defined as a bus management node, and when each node starts synchronous communication, the contents of the first and second storage means are read out, and if there is a free channel and a free capacity, use is started. The number of the channel to be used and the bus capacity are written in the first and second storage means, respectively.

【0019】ここで、各ノードは、複数の異なる周波数
の通信クロックを有する。
Here, each node has a plurality of communication clocks having different frequencies.

【0020】[0020]

【発明の実施の形態】以下、本発明に係るバス管理方法
を図面を参照して具体的に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a bus management method according to the present invention will be specifically described with reference to the drawings.

【0021】ここで、図1は本発明の概念を説明する図
であり、図2は図1における使用チャンネルレジスタ及
びバス容量レジスタの構成の一例を示す図である。
FIG. 1 is a diagram for explaining the concept of the present invention, and FIG. 2 is a diagram showing an example of the configuration of the used channel register and the bus capacity register in FIG.

【0022】ここで、バス管理ノード11には、図1に
示すように、使用チャンネルレジスタREG1とバス容
量レジスタREG2が設けられている。また、使用チャ
ンネルレジスタREG1は、図2(a)に示すように、
例えば32ビットの容量を有し、各ビットがチャンネル
0〜31の使用状態を示す(1:使用中、0:未使
用)。さらに、バス容量レジスタREG2は、図2
(b)に示すように、例えば32ビットの容量を持ち、
バスの残り容量又は使用中の容量の合計を示す値を有し
ている。
Here, as shown in FIG. 1, the bus management node 11 is provided with a used channel register REG1 and a bus capacity register REG2. Further, as shown in FIG. 2A, the used channel register REG1 is
For example, it has a capacity of 32 bits, and each bit indicates the use state of channels 0 to 31 (1: in use, 0: unused). Further, the bus capacity register REG2 is
As shown in (b), for example, it has a capacity of 32 bits,
It has a value indicating the total remaining capacity of the bus or the capacity in use.

【0023】通信システム内の他のノード12は、同期
通信を開始する前に、非同期通信パケットでバス管理ノ
ード11に設けられた使用チャンネルレジスタREG1
とバス容量レジスタREG2に対して読み出し命令を送
信し、その内容を読み出すことにより、未使用チャンネ
ルの番号とバスの残り容量を確認する。そして、未使用
チャンネルがあり、且つバスの残り容量があれば、使用
するチャンネルの番号及び使用するバスの容量がそれぞ
れ使用チャンネルレジスタREG1及びバス容量レジス
タREG2に記憶されるように、これらのレジスタに対
して書き込み命令を送信する。バス管理ノード11が同
期通信を開始する場合には、内部の使用チャンネルレジ
スタREG1及びバス容量レジスタREG2に対して書
き込み命令と読み出し命令を与えることにより同様に処
理する。
Before starting the synchronous communication, the other nodes 12 in the communication system use the used channel register REG1 provided in the bus management node 11 with an asynchronous communication packet.
Then, a read command is transmitted to the bus capacity register REG2 and the contents thereof are read to confirm the number of the unused channel and the remaining capacity of the bus. If there is an unused channel and the remaining capacity of the bus, the number of the channel to be used and the capacity of the bus to be used are stored in these registers so that they are stored in the used channel register REG1 and the bus capacity register REG2, respectively. Send a write command to it. When the bus management node 11 starts synchronous communication, the same processing is performed by giving a write command and a read command to the internal use channel register REG1 and the bus capacity register REG2.

【0024】本発明を、前述した図8に示す通信システ
ムに適用した場合、全てのノード11,12に使用チャ
ンネルレジスタREG1とバス容量レジスタREG2に
設けておく。そして、バス管理ノード11は、ルートノ
ードであるノード21にする。全てのノードに使用チャ
ンネルレジスタREG1とバス容量レジスタREG2を
設けておけば、どのノードがルートノードになってもバ
スの管理を行うことできる。また、ルートノード以外の
ノードをバス管理ノードとすることもできる。
When the present invention is applied to the communication system shown in FIG. 8 described above, all the nodes 11 and 12 are provided in the used channel register REG1 and the bus capacity register REG2. Then, the bus management node 11 is set to the node 21 which is the root node. If the use channel register REG1 and the bus capacity register REG2 are provided for all nodes, the bus can be managed regardless of which node becomes the root node. Also, a node other than the root node can be set as a bus management node.

【0025】以下、図3〜図7を参照しながら本発明方
法をさらに具体的に説明する。なお、以下に示すフロー
チャートにおいて、判断ステップにおけるYESをY、
NOをNと略して記載した。
Hereinafter, the method of the present invention will be described more specifically with reference to FIGS. In the following flowchart, YES in the determination step is Y,
NO is abbreviated as N.

【0026】図3は、同期通信を開始する前にチャンネ
ルを取る手順の一例を示すフローチャートである。
FIG. 3 is a flowchart showing an example of a procedure for taking a channel before starting synchronous communication.

【0027】この図において、同期通信を行うノード1
2は、まずステップS1で、バス管理ノード11内の使
用チャンネルレジスタREG1の内容を読み出す命令を
送信し、読み出されたREG1の内容を見て、0のビッ
トがあるかどうか判断する。そして、0のビットがなけ
れば空きチャンネルがないので処理を終了する。また、
0のピットがあれば、ステップS2で、使用したいチャ
ンネル番号に対応するビットを1にセットするための書
き込み命令を送信する。
In this figure, node 1 which performs synchronous communication
2. First, in step S1, a command for reading the contents of the used channel register REG1 in the bus management node 11 is transmitted, and the read contents of REG1 are checked to determine whether or not there is a bit of 0. If there is no 0 bit, the process is terminated because there is no free channel. Also,
If there is a pit of 0, a write command for setting the bit corresponding to the channel number to be used to 1 is transmitted in step S2.

【0028】次に、ステップS3で、バス管理ノード1
2に対してバス容量レジスタREG2の内容を読み出す
命令を送信し、読み出されたチャンネルレジスタREG
1の内容を見る。そして、バス容量レジスタRED2の
値、すなわちバスの残り容量と同期通信で新たに使用す
るバス容量値を比較し、バス容量レジスタRED2の値
のほうが多いか等しい場合には同期通信が可能であるか
ら、ステップS4で、バス容量レジスタRED2の値か
ら新たに使用するバス容量値を引いた値を新たなバス容
量レジスタRED2の値とするための書き込み命令を送
信し、ステップS5で、同期通信を開始する。一方、ス
テップS3で、新たに使用するバス容量値のほうが多い
場合には同期通信ができないので、バス管理ノード12
は、ステップS2で1にセットしたビットを0に戻すた
めの書き込み命令を送信する(ステップS6)。
Next, at step S3, the bus management node 1
2. The instruction to read the contents of the bus capacity register REG2 is transmitted to the channel register REG2.
Look at the contents of 1. Then, the value of the bus capacity register RED2, ie, the remaining capacity of the bus, is compared with the bus capacity value newly used in the synchronous communication. If the value of the bus capacity register RED2 is larger or equal, the synchronous communication is possible. In step S4, a write command is transmitted to set a value obtained by subtracting the newly used bus capacity value from the value of the bus capacity register RED2 as a new value of the bus capacity register RED2. In step S5, synchronous communication is started. I do. On the other hand, if the newly used bus capacity value is larger in step S3, synchronous communication cannot be performed.
Transmits a write command for returning the bit set to 1 in step S2 to 0 (step S6).

【0029】図4は、同期通信を終了した後でチャンネ
ルを返す手順の1例を示すフローチャートである。な
お、以下の説明においてレジスタRED1、RED2の
内容を読む際、読み出し命令を送信する点及びレジスタ
RED1、RED2の内容を書き換える際に書き込み命
令を送信する点の記載は省略する。
FIG. 4 is a flowchart showing an example of a procedure for returning a channel after ending synchronous communication. In the following description, the description of transmitting a read command when reading the contents of the registers RED1 and RED2 and transmitting a write command when rewriting the contents of the registers RED1 and RED2 will be omitted.

【0030】この図4において、ステップS11で通信
が終了すると、まず、ステップS12で使用チャンネル
レジスタREG1の使用を終えたチャンネル番号に対応
するビットを0にリセットする。次に、ステップS13
でバス容量レジスタRED2の値に使用を終えたバス容
量値を加算する。
In FIG. 4, when the communication is completed in step S11, first, in step S12, the bit corresponding to the channel number for which the use channel register REG1 has been used is reset to 0. Next, step S13
Then, the used bus capacity value is added to the value of the bus capacity register RED2.

【0031】以上に説明した手順によれは、バス管理ノ
ード11は、書き込み命令及び読み出し命令に応答する
だけの簡単な動作でチャンネルの割り付けが可能である
が、この手順では複数のノードが競合した場合には正し
い処理を行うことができない。そこで、このような場合
に対処することのできる手順を図5〜図7を参照しなが
ら説明する。
According to the above-described procedure, the bus management node 11 can allocate the channel by a simple operation merely responding to the write command and the read command. In this procedure, a plurality of nodes compete. In this case, correct processing cannot be performed. Therefore, a procedure that can cope with such a case will be described with reference to FIGS.

【0032】図5は、使用チャンネルレジスタRED1
のビットをセットする手順、すなわち図3に示すステッ
プS1とS2に対応する手順を示すフローチャートであ
る。
FIG. 5 shows the used channel register RED1.
4 is a flowchart showing a procedure for setting the bit of the data, that is, a procedure corresponding to steps S1 and S2 shown in FIG.

【0033】まず、ステップS21で、ノード2は、使
用チャンネルレジスタRED1の値を読む。この値をa
とすると、ノード12は、ステップS22で、aに0の
ビットがあるかどうかを判断する。なお、以上の処理
は、実質的に図3のステップS1と同一である。そし
て、aに0のピットがなければ空きチャンネルがないの
で、ノード2は、チャンネルを取る手順を終了する。ま
た、aに0のビットがあれば、ステップS23で、同期
通信に使用したいチャンネルのビットを1にした値をb
とする。そして、ステップS24で、使用チャンネルレ
ジスタRED1の値がaであればこれをbに書き換え
る。
First, in step S21, the node 2 reads the value of the used channel register RED1. This value is a
Then, in step S22, the node 12 determines whether or not a has a 0 bit. The above processing is substantially the same as step S1 in FIG. Then, if there is no pit of 0 in a, there is no free channel, so the node 2 ends the procedure for taking a channel. If a has a bit of 0, a value obtained by setting the bit of the channel to be used for the synchronous communication to 1 is set to b in step S23.
And Then, in step S24, if the value of the used channel register RED1 is a, this is rewritten to b.

【0034】ステップS24は、他のノード12との競
合を避けるために設けた処理である。このステップS2
4は、実際にはチャンネルを取りたいノードがバス管理
ノード11に対して、使用チャンネルレジスタRED1
の値がaであればこれをbに書き換える命令を送信する
ことで実現する。使用チャンネルレジスタRED1の値
がaであるということは、このノードがステップS21
で使用チャンネルレジスタRED1の値を読み出した時
からステップS24までの間に他のノード12が使用チ
ャンネルレジスタRED1の値を書き換えていないこと
を意味する。これに対して、使用チャンネルレジスタR
ED1の値がaでないということは、他のノード12が
使用チャンネルレジスタRED1の値を書き換えたこと
を意味する。
Step S24 is a process provided to avoid a conflict with another node 12. This step S2
4 indicates that the node that actually wants to take a channel notifies the bus management node 11 of the used channel register RED1.
If the value of a is a, this is realized by sending an instruction to rewrite this to b. The fact that the value of the used channel register RED1 is a means that this node
Means that another node 12 has not rewritten the value of the used channel register RED1 between the time when the value of the used channel register RED1 was read and the step S24. On the other hand, the used channel register R
That the value of ED1 is not a means that another node 12 has rewritten the value of the used channel register RED1.

【0035】次に、ノード12は、ステップS25で書
き換えが成功したかどうかを判断し、成功であれば処理
を終了し、失敗であればステップS21へ移行する。こ
こで、成功/失敗の判断は、例えばバス管理ノード11
から送信される書き込み結果の通知に基づいて行っても
よいし、使用チャンネルレジスタRED1の値を読み出
し、これがbに書き換えられているか否かの確認して行
ってもよい。
Next, the node 12 determines whether or not the rewriting has succeeded in step S25. If the rewriting has succeeded, the node 12 ends the processing. If the rewriting has failed, the node 12 proceeds to step S21. Here, the success / failure is determined, for example, by the bus management node 11.
May be performed based on the notification of the write result transmitted from the CPU, or may be performed by reading the value of the used channel register RED1 and confirming whether or not the value has been rewritten to b.

【0036】次に、図6は、バス容量レジスタRED2
の値からバス容量値を引く手順、すなわち前述した図3
のステップS3とS4に対応する手順を示すフローチャ
ートである。
FIG. 6 shows a bus capacity register RED2.
The procedure for subtracting the bus capacitance value from the value in FIG.
6 is a flowchart showing a procedure corresponding to steps S3 and S4 of FIG.

【0037】まず、ステップS31で、ノード12は、
バス容量レジスタRED2の値を読む。この値をcとす
ると、ステップS32で、cと新たに使用するバス容量
値との大小関係を判断する。なお、以上の処理は、実質
的に図3のステップS3と同一である。そして、cが新
たに使用するバス容量値より小さければ、同期通信を行
うことができないので、図3のステップS6と同様、使
用チャンネルレジスタRED1の値を元に戻す。また、
cが新たに使用するバス容量値より大きければ、同期通
信が可能であるから、ノード12は、ステップS33
で、cから使用したいバス容量値を引いた値をdとす
る。そして、ステップS34で、バス容量レジスタRE
D2の値がcであれば、ノード2は、これをdに書き換
える。
First, in step S31, the node 12
Read the value of the bus capacity register RED2. Assuming that this value is c, a magnitude relationship between c and the newly used bus capacity value is determined in step S32. The above processing is substantially the same as step S3 in FIG. If c is smaller than the newly used bus capacity value, synchronous communication cannot be performed, so that the value of the used channel register RED1 is returned to the original value as in step S6 of FIG. Also,
If c is larger than the newly used bus capacity value, synchronous communication is possible, and the node 12 proceeds to step S33.
Then, a value obtained by subtracting the bus capacity value to be used from c is d. Then, in step S34, the bus capacity register RE
If the value of D2 is c, node 2 rewrites it to d.

【0038】ステップS34は、他のノード12との競
合を避けるために設けた処理である。バス容量レジスタ
RED2の値がcであるということは、このノード12
がステップS31でバス容量レジスタRED2の値を読
み出した時からステップS34までの間に他のノードが
バス容量の値を書き換えていないことを意味する。これ
に対して、バス容量レジスタRED2の値がcでないと
いうことは、他のノードがバス容量レジスタの値を書き
換えたことを意味する。
Step S34 is a process provided to avoid a conflict with another node 12. The fact that the value of the bus capacity register RED2 is c indicates that this node 12
Means that no other node has rewritten the value of the bus capacitance between the time when the value of the bus capacitance register RED2 was read in step S31 and the time in step S34. On the other hand, the fact that the value of the bus capacity register RED2 is not c means that another node has rewritten the value of the bus capacity register.

【0039】次に、ノード2は、ステップS35で書き
換えが成功したかどうかを判断し、成功であれば処理を
終了し、失敗であればステップS31へ移行する。
Next, the node 2 determines whether or not the rewriting has succeeded in step S35. If the rewriting has succeeded, the node 2 ends the process. If the rewriting has failed, the process proceeds to step S31.

【0040】図7は、バス容量レジスタRED2の値に
バス容量値を足す手順、すなわち図4に示すステップS
13に対応する手順を示すフローチャートである。
FIG. 7 shows a procedure for adding the bus capacity value to the value of the bus capacity register RED2, that is, step S shown in FIG.
13 is a flowchart illustrating a procedure corresponding to No. 13.

【0041】まず、ステップS41で、ノード12は、
バス容量レジスタRED2の値を読み、この値をeとす
る。次に、ノード12は、ステップS42で、eに使用
を終えたバス容量値を足した値をfとする。次に、ノー
ド12は、ステップS43で、バス容量レジスタRED
2の値=eであれば、これをfに書き換える。そして、
ステップS44で、ノード12は、書き換えが成功した
かどうかを判断し、成功であれば処理を終了し、失敗で
あればステップS41へ移行する。この手順における各
処理の意味は、前述した図5及び図6の説明から明らか
であるから詳細な説明は省略する。
First, in step S41, the node 12
The value of the bus capacity register RED2 is read, and this value is set to e. Next, in step S42, the node 12 sets f to a value obtained by adding the used bus capacitance value to e. Next, in step S43, the node 12 sets the bus capacity register RED.
If the value of 2 = e, this is rewritten to f. And
In step S44, the node 12 determines whether the rewriting has succeeded. If the rewriting has succeeded, the node 12 ends the process. If the rewriting has failed, the node 12 proceeds to step S41. The meaning of each process in this procedure is clear from the description of FIGS. 5 and 6 described above, and thus detailed description is omitted.

【0042】ここで、バス容量レジスタRED2に記憶
する値について説明する。
Here, the values stored in the bus capacity register RED2 will be described.

【0043】本例では、バス容量レジスタRED2は、
同期通信サイクル125μs中、同期通信に使用可能な
期間のうちまだ使用していない時間を、例えば通信の基
本クロックを単位として計数した値、すなわち時間を単
位とした値を記憶する。一例として、98.304Mb
psのバスシステムで、通信の基本クロックが49.1
52MHzの場合、125μs中、100μsを同期通
信に使用可能にする(残りの25μsは、前述した図1
0に示すように、サイクルスタートバケットの送信と非
同期通信に使用される。)と、バス容量の最大値は基本
クロック4915個分になる。したがって、バス容量レ
ジスタRED2は、最初に4915にセットされ、ノー
ド12に対してチャンネルを割り付ける度に使用したバ
ス容量値に対応するクロック数分だけ値を減らしてい
く。
In this example, the bus capacity register RED2 is
In the synchronous communication cycle of 125 μs, a value obtained by counting, for example, a basic clock for communication as a unit of a time not used yet, that is, a value in units of time, of a period usable for synchronous communication is stored. As an example, 98.304 Mb
ps bus system, the communication basic clock is 49.1
In the case of 52 MHz, 100 μs out of 125 μs can be used for synchronous communication (the remaining 25 μs corresponds to FIG.
As shown by 0, it is used for transmission of a cycle start bucket and asynchronous communication. ), The maximum value of the bus capacity is equivalent to 4915 basic clocks. Therefore, the bus capacity register RED2 is initially set to 4915, and each time a channel is allocated to the node 12, the value is reduced by the number of clocks corresponding to the used bus capacity value.

【0044】例えば、10Mbpsの同期通信を開始す
る場合、同期通信1サイクル当たり1250bitのデ
ータを送信することになる。このデータを送信するのに
かかる時間は、データ本体を送信するための625基本
クロック周期にバスの調停等にかかるオーバーヘッド時
間を加えた時間になる。オーバーヘッドを1μsとする
と、これは50基本クロック周期に相当するので、計6
75をバス容量レジスタRED2から減算することにな
る。
For example, when starting 10 Mbps synchronous communication, 1250 bits of data are transmitted per synchronous communication cycle. The time required to transmit this data is the time obtained by adding the overhead time required for bus arbitration and the like to the 625 basic clock cycle for transmitting the data body. Assuming that the overhead is 1 μs, this corresponds to 50 basic clock periods, so that a total of 6
75 is subtracted from the bus capacity register RED2.

【0045】通信システム内の各ノードが複数の異なる
周波数の基本クロック(例、4 9.152MHz、2
×49,152MHz、4×4 9.152MHz等)
で通信が可能であり、且つ異なる基本クロックによる同
期通信が行われる場合には、どの基本クロックによる同
期通信を行う時にも、バス容量レジスタRED2に記憶
する値は複数の基本クロックから選択した1つの基本ク
ロックで計数した値にすればよい。
Each node in the communication system has a plurality of basic clocks having different frequencies (eg, 4.152 MHz,
× 49, 152 MHz, 4 × 4 9.152 MHz, etc.)
In the case where synchronous communication is performed using different basic clocks, the value stored in the bus capacity register RED2 is a value selected from a plurality of basic clocks when performing synchronous communication using any of the basic clocks. What is necessary is just to make it the value counted by the basic clock.

【0046】次に、同期通信中に通信システムの構成が
変わった場合の動作について説明する。例えば、前述し
た図8の通信システムにおいて、ノード23とノード2
4の間で同期通信中にノード21とノード23間のケー
ブルを外すと、ノード23とノード24を含む通信シス
テム内にバス管理ノードがなくなってしまう。
Next, the operation when the configuration of the communication system changes during the synchronous communication will be described. For example, in the communication system of FIG.
If the cable between the node 21 and the node 23 is disconnected during the synchronous communication between the nodes 4, the bus management node disappears in the communication system including the nodes 23 and 24.

【0047】そこで、このような問題を避けるために、
同期通信中にノードが外されたり、接続されたりしたと
きには、新しい構成の通信システムでアドレスが最大の
ノード(ルートノード)を新しいバス管理ノードとす
る。そして、同期通信中であったノードは、バス管理ノ
ードが決定されたら所定の時間内に新しい管理ノードに
対してチャンネル獲得手順を実行し、新たに同期通信を
開始するノードは前記所定の時間経過後にチャンネル獲
得手順を実行するように構成する。同期通信中であった
ノードは、新しい管理ノードが決定されたら直ちに同期
通信を開始し、並行してチャンネル獲得手順を実行して
もよい。
Therefore, in order to avoid such a problem,
When a node is disconnected or connected during synchronous communication, a node (root node) having the largest address in a communication system having a new configuration is set as a new bus management node. Then, the node that was performing the synchronous communication executes the channel acquisition procedure for the new management node within a predetermined time after the bus management node is determined, and the node that newly starts the synchronous communication executes the predetermined time lapse. It is configured to execute the channel acquisition procedure later. The node that was performing the synchronous communication may start the synchronous communication immediately after the new management node is determined, and may execute the channel acquisition procedure in parallel.

【0048】このようにすれば、管理ノードが変わった
場合でも、管理ノードが変化する前に同期通信中であっ
たノードに対して優先的にチャンネルが割り付けられ、
新しい管理ノードのレジスタには管理ノード変化前の状
態が反映されることになる。
In this way, even when the management node changes, a channel is preferentially allocated to the node that was performing synchronous communication before the management node changed,
The state before the change of the management node is reflected in the register of the new management node.

【0049】以上の説明、通信システム内の全ノードが
使用チャンネルレジスタREG1とバス容量レジスタR
EG2を持つものとしたが、そうでない場合には、例え
ば、アドレス0のノードから順に使用チャンネルレジス
タREG1とバス容量レジスタREG2を持つノードを
検索し、最初に見つかったノードをバス管理ノードとす
ればよい。
As described above, all nodes in the communication system use the used channel register REG1 and the bus capacity register R.
Although it is assumed that the node has EG2, otherwise, for example, a node having the used channel register REG1 and the bus capacity register REG2 is searched in order from the node at address 0, and the first node found is set as the bus management node. Good.

【0050】[0050]

【発明の効果】上述したように、本発明は、バス管理ノ
ードが第1の記憶手段と第2の記憶手段に対する読み出
し命令及び書き込み命令に応答するだけで、チャンネル
番号とバスの容量の管理を行うことができるので、簡単
なハードウェアで実現できる。
As described above, according to the present invention, the bus management node responds to the read command and the write command for the first storage means and the second storage means, and manages the channel number and the bus capacity. It can be implemented with simple hardware.

【0051】さらに、各ノードが複数の異なる周波数の
通信クロックにより通信を行うことにより、チャンネル
毎に異なる速度の通信を混在させることができるので、
ビデオデータ、オーディオデータ等異なる伝送レートの
データに対応することができる。
Further, since each node performs communication using a plurality of communication clocks having different frequencies, communication at different speeds can be mixed for each channel.
It can handle data of different transmission rates such as video data and audio data.

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

【図1】本発明に係るバス管理方法が用いられる通信シ
ステムの概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a communication system in which a bus management method according to the present invention is used.

【図2】バス管理ノードに設けられる使用チャンネルレ
ジスタ及びバス容量レジスタの構成の一例を示す図であ
る。
FIG. 2 is a diagram illustrating an example of a configuration of a used channel register and a bus capacity register provided in a bus management node.

【図3】同期通信を開始する前にチャンネルを取る手順
の一例を示すフローチャートである。
FIG. 3 is a flowchart illustrating an example of a procedure for taking a channel before starting synchronous communication.

【図4】同期通信を終了した後でチャンネルを返す手順
の一例を示すフローチャートである。
FIG. 4 is a flowchart illustrating an example of a procedure for returning a channel after ending synchronous communication.

【図5】ノード間の競合を避けて使用チャンネルレジス
タのビットをセットする手順を示すフローチャートであ
る。
FIG. 5 is a flowchart showing a procedure for setting a bit of a used channel register while avoiding contention between nodes.

【図6】ノード間の競合を避けてバス容量レジスタの値
からバス容量値を引く手順を示すフローチャートであ
る。
FIG. 6 is a flowchart showing a procedure for subtracting a bus capacity value from a value of a bus capacity register while avoiding competition between nodes.

【図7】ノード間の競合を避けてバス容量レジスタの値
にバス容量値を足す手順を示すフローチャートである。
FIG. 7 is a flowchart showing a procedure for adding a bus capacity value to the value of a bus capacity register while avoiding contention between nodes.

【図8】バスに接続された複数のノード間で同期通信を
行う通信システムの一例を示す図である。
FIG. 8 is a diagram illustrating an example of a communication system that performs synchronous communication between a plurality of nodes connected to a bus.

【図9】図8に示す通信システムを等価的に示すブロッ
ク図である。
FIG. 9 is a block diagram equivalently showing the communication system shown in FIG. 8;

【図10】図8に示す通信システムにおけるバス上のデ
ータ構造の一例を示す図である。
FIG. 10 is a diagram illustrating an example of a data structure on a bus in the communication system illustrated in FIG. 8;

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

11 バス管理ノード、 12 他のノード、 21
ルートノード、 22,24,25 リーフノード、
23 ブランチノード、REG1 使用チャンネルレジ
スタ、 REG2バス容量レジスタ
11 bus management node, 12 other nodes, 21
Root node, 22, 24, 25 leaf node,
23 branch node, REG1 used channel register, REG2 bus capacity register

───────────────────────────────────────────────────── フロントページの続き (72)発明者 嶋 久登 東京都品川区北品川6丁目7番35号 ソ ニー株式会社内 (56)参考文献 特開 平3−218139(JP,A) 特開 平3−249838(JP,A) 特開 昭63−46837(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04L 12/28 ──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Hisato Shima 6-7-35 Kita Shinagawa, Shinagawa-ku, Tokyo Inside Sony Corporation (56) References JP-A-3-218139 (JP, A) JP-A Heisei 3-249838 (JP, A) JP-A-63-46837 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04L 12/28

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 バスに接続された複数のノード間で同期
通信を行うシステムにおけるバス管理方法であって、 上記複数のノード中、チャンネルの使用状況を記憶する
第1の記憶手段及びバスの使用状況を記憶する第2の記
憶手段を備える所定のノードをバス管理ノードとし、各
ノードは同期通信を開始する時に、上記第1及び第2の
記憶手段の内容を読み出し、空きチャンネルと空き容量
があれば、使用を開始するチャンネルの番号及びバス容
量をそれぞれ上記第1及び第2の記憶手段に書込むこと
を特徴とするバス管理方法。
1. A bus management method in a system for performing synchronous communication between a plurality of nodes connected to a bus, wherein the first storage means for storing a use state of a channel among the plurality of nodes and use of the bus. A predetermined node provided with a second storage means for storing a situation is defined as a bus management node. Each node reads the contents of the first and second storage means when starting synchronous communication, and determines whether an available channel and an available capacity are available. If there is, a bus management method characterized by writing the number of the channel to start using and the bus capacity to the first and second storage means, respectively.
【請求項2】 各ノードは、複数の異なる周波数の通信
クロックを有することを特徴とする請求項1記載のバス
管理方法。
2. The bus management method according to claim 1, wherein each node has a plurality of communication clocks having different frequencies.
JP2000090766A 1993-07-19 2000-03-27 Bus management method Expired - Lifetime JP3194381B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000090766A JP3194381B2 (en) 1993-07-19 2000-03-27 Bus management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000090766A JP3194381B2 (en) 1993-07-19 2000-03-27 Bus management method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP20005593A Division JP3194318B2 (en) 1993-07-19 1993-07-19 Bus management method

Publications (2)

Publication Number Publication Date
JP2000312217A JP2000312217A (en) 2000-11-07
JP3194381B2 true JP3194381B2 (en) 2001-07-30

Family

ID=18606327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000090766A Expired - Lifetime JP3194381B2 (en) 1993-07-19 2000-03-27 Bus management method

Country Status (1)

Country Link
JP (1) JP3194381B2 (en)

Also Published As

Publication number Publication date
JP2000312217A (en) 2000-11-07

Similar Documents

Publication Publication Date Title
JP3194318B2 (en) Bus management method
CA2152242C (en) Communication system and electronic apparatus
KR100662484B1 (en) method for controlling bus in digital interface
JPH10229410A (en) Data processor, electronic device, and communication system
JP3291926B2 (en) Electronic device control method
JP3194381B2 (en) Bus management method
JP3348330B2 (en) Communication control method
JP3194380B2 (en) Electronics
JP3194382B2 (en) Bus management method
JP3221442B2 (en) Electronics
JP3219085B2 (en) Bus management method
CA2351189C (en) Bus management method
JP3396928B2 (en) Communication system control method and communication device
KR100628177B1 (en) apparatus and method for controlling bus in digital interface
CA2354102C (en) Communication system and electronic apparatus
JP3356129B2 (en) Communication equipment
JP2003110566A (en) Electronic 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: 20010501

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

Free format text: PAYMENT UNTIL: 20090601

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100601

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100601

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110601

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120601

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120601

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130601

Year of fee payment: 12

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term