JP2012244581A - Communication device, semiconductor device, and setting method for device id - Google Patents
Communication device, semiconductor device, and setting method for device id Download PDFInfo
- Publication number
- JP2012244581A JP2012244581A JP2011115967A JP2011115967A JP2012244581A JP 2012244581 A JP2012244581 A JP 2012244581A JP 2011115967 A JP2011115967 A JP 2011115967A JP 2011115967 A JP2011115967 A JP 2011115967A JP 2012244581 A JP2012244581 A JP 2012244581A
- Authority
- JP
- Japan
- Prior art keywords
- port
- self
- packet
- signal
- devices
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
通信装置、半導体装置、装置IDの設定方法に関する。 The present invention relates to a communication device, a semiconductor device, and a device ID setting method.
従来、CD等の再生装置やカメラ等のデジタルデータを送信する装置は、表示装置(モニタ)やスピーカなどの出力装置と接続される。このように接続される装置は、データ通信のためのシリアルインタフェースを備える。シリアルインタフェースは、例えば、IEEE1394規格のインタフェースである。 Conventionally, a playback device such as a CD or a device that transmits digital data such as a camera is connected to an output device such as a display device (monitor) or a speaker. The device connected in this way includes a serial interface for data communication. The serial interface is, for example, an IEEE 1394 standard interface.
近年、例えば、複数の表示装置に同じ画像を表示することと、互いに異なる映像を表示することを切替える等のように、出力に関する要望が多様化している。このため、複数の出力装置を接続し、受信したデジタルデータを出力装置に出力する受信装置が提案されている。 In recent years, for example, there has been a diversification of requests regarding output such as switching between displaying the same image on a plurality of display devices and displaying different images. For this reason, a receiving apparatus that connects a plurality of output apparatuses and outputs received digital data to the output apparatus has been proposed.
例えば、図28に示すように、受信装置200の半導体装置201は、上記のインタフェースを備える。インタフェースは、図示しない送信装置と接続され、互いを認識するために必要な認識番号(装置ID)を自動で取得する。例えば、半導体装置201のインタフェースは、「0」の装置IDを取得する。半導体装置201は、送信装置(ソース装置)から送信されるデータを受信する。この半導体装置201には、3つの表示装置202,203,204とスピーカ205が接続されている。半導体装置201は、各表示装置202〜204とスピーカ205に信号に出力する複数のインタフェースを備える。
For example, as illustrated in FIG. 28, the
このように1つの半導体装置201に搭載された複数のインタフェースは、互いに影響しあい、半導体装置の安定動作を損なう場合がある。また、接続装置の種類や接続数が異なる場合、未使用のインタフェース(端子)が無駄となるため、用途に応じた半導体装置を用意する必要がある。このような用途別の半導体装置は、開発コストの上昇を招く。
As described above, a plurality of interfaces mounted on one
これに対し、図29に示す受信装置210は、シリアルインタフェースにより接続された複数の半導体装置211〜214を含む。各半導体装置211〜214は、出力装置(表示装置202〜204,スピーカ205)とそれぞれ接続される。このように、出力装置の種類や接続数に応じた半導体装置を、シリアルインタフェースを介して接続して受信装置を構成することにより、接続等の要望に容易に対応することができる。
On the other hand, the
ところで、シリアルインタフェースを介して接続された複数の半導体装置211〜214は、互いを認識するために必要な認識番号(装置ID)を自動で取得する。つまり、各半導体装置211〜214は、互いに異なる装置IDを取得する。これにより、例えば出力装置の接続数が異なる受信装置を容易に構成することができる。
By the way, the plurality of
上記のように、互いに異なる装置IDを取得した半導体装置211〜214は、シリアルインタフェースにより接続されたネットワークにおいて、個々の装置(ノード)として認識される。このため、受信装置210が接続されたネットワークは、受信装置210に含まれる半導体装置211〜214の数だけ、装置IDを取得する処理(装置認識処理)を繰り返すため、受信装置210を認識するために必要な時間が長くなる。また、このネットワークは、新たな装置の接続、又は装置の切り離しによってネットワークの構成を認識する、つまり装置IDを取得する処理を行う。そして、ネットワークを構成する装置は、外来ノイズ等により装置の切り離しと装置の接続を認識し、装置IDの自動的な取得を行うため、通信可能な状態となるまでの復帰時間が、図28に示す受信装置200が接続されたネットワークと比べて長い。
As described above, the
上記のネットワークに接続可能な機器において、装置IDを取得しない技術が提案されている(例えば、特許文献1,2参照)。このように、装置IDを取得しないようにすることで、ネットワークに接続されたノード数の低減と、復帰時間の短縮を図ることが可能となる。
In devices that can be connected to the above-described network, technologies that do not acquire a device ID have been proposed (for example, see
ところで、上記のように装置IDを取得しない装置は、ネットワークアナライザのように、装置IDを取得する2つの装置間に挿入接続されるもの、即ち2つのポートにそれぞれ装置IDを取得する装置が接続される。このため、この装置自体がリーフ、つまり他の装置と接続されたポートが1つの場合、装置IDを取得する処理が正常に終了しなくなり、ネットワーク全体の通信ができなくなる虞がある。 By the way, as described above, a device that does not acquire a device ID is inserted and connected between two devices that acquire a device ID, such as a network analyzer, that is, a device that acquires a device ID is connected to each of two ports. Is done. For this reason, when the device itself is a leaf, that is, when there is one port connected to another device, the process for obtaining the device ID may not be completed normally and communication of the entire network may not be possible.
本発明の一観点によれば、通信装置は、外部装置とともにネットワークに含まれる複数の内部装置を有し、前記複数の内部装置のうちの1つの内部装置は、前記外部装置と接続されるポートと、前記複数の内部装置のうちの他の内部装置と接続されたポートを有し、前記複数の内部装置はそれぞれ、トポロジ構築後の自己識別シーケンスにおいて、前記トポロジ構築によって決定されたポートの親子関係と、前記決定されたポートに対応する接続情報とに基づいて、外部接続の親ポートから許可信号を受信した場合、セルフIDパケットを送信して装置IDを取得し、内部接続の親ポートから前記許可信号を受信した場合、前記親ポートにキャンセル信号を出力し、前記自己識別シーケンスを終了する物理層制御回路を有する。 According to an aspect of the present invention, a communication device includes a plurality of internal devices included in a network together with an external device, and one internal device of the plurality of internal devices is a port connected to the external device. And ports connected to other internal devices of the plurality of internal devices, each of the plurality of internal devices being a parent and child of the ports determined by the topology construction in a self-identification sequence after the topology construction. Based on the relationship and the connection information corresponding to the determined port, when a permission signal is received from the parent port of the external connection, a self ID packet is transmitted to obtain a device ID, and from the parent port of the internal connection When the permission signal is received, the physical layer control circuit outputs a cancel signal to the parent port and ends the self-identification sequence.
本発明の一観点によれば、ネットワークの初期化を正常に終了することが可能となる。 According to one aspect of the present invention, it is possible to finish network initialization normally.
(第一実施形態)
以下、第一実施形態を図1〜図12に従って説明する。
図1に示すように、ネットワークは、2つの送信装置(ソース装置)11,12と1つの受信装置(シンク装置)13を有している。送信装置11は、未接続状態のポート11aと、ケーブル14を介して受信装置13のポート13aと接続されたポート11bを有している。同様に、送信装置12は、ケーブル15を介して受信装置13のポート13bと接続されたポート12aと、未接続状態のポート12bとを有している。
(First embodiment)
The first embodiment will be described below with reference to FIGS.
As shown in FIG. 1, the network includes two transmission devices (source devices) 11 and 12 and one reception device (sink device) 13. The
送信装置11,12は、映像データや音声データ等のデジタルデータを送信する装置、例えばパーソナルコンピュータ、ハードディスク装置(HDD)、レコーダ、プリンタ、デジタルカメラ等である。各送信装置11,12は、所定の規格(例えば、IEEE1394規格)に対応するコントローラ(IEEE1394プロトコルコントローラ(IPC:IEEE1394 Protcol Controller))を有している。各送信装置11,12のコントローラは、所定の規格に従って他の装置とシリアル通信する。送信装置11,12はそれぞれ、映像データや音声データを送信する。なお、以下の説明において、各送信装置11,12が通信を行うように説明する。
The
受信装置13には、表示装置16,17とスピーカ18が接続されている。表示装置16,17は、例えば液晶表示パネル(LCD:Liquid Crysatl Display)である。表示装置16,17及びスピーカ18は出力装置の一例である。受信装置13は、出力装置がそれぞれ接続された処理装置21〜23を有している。表示装置16は処理装置21に接続され、表示装置17は処理装置22に接続され、スピーカ18は処理装置23に接続されている。処理装置21〜23は例えばプリント配線板(PCB)24に実装されている。各処理装置21〜23は、受信したデータを、対応する出力装置16〜18に出力する。
各処理装置21〜23は、送信装置11,12と同様に、所定の規格(例えば、IEEE1394規格)に対応するコントローラ(IEEE1394プロトコルコントローラ(IPC:IEEE1394 Protcol Controller))を有している。従って、各処理装置21〜23と送信装置11,12はそれぞれ、所定の規格(IEEE1394規格)のネットワークに含まれる装置(ノード)として機能する。各処理装置21〜23のコントローラは、所定の規格に従って他の装置とシリアル通信する。処理装置21〜23はそれぞれ、受信した映像データや音声データを、対応する出力装置に出力する。なお、以下の説明において、各処理装置21〜23が通信を行うように説明することがある。また、送信装置及び通信装置(処理装置)を単にノードとして説明することがある。
Each of the processing devices 21 to 23 has a controller (
処理装置21〜23はそれぞれ、上記所定の規格に対応する2つのポートP0,P1を有している。第1の処理装置21のポートP0は、プリント配線板24に形成された配線24aと、受信装置13外部の伝送路であるケーブル14を介して送信装置11に接続されている。第1の処理装置21のポートP1は、装置内部の伝送路、例えばプリント配線板24に形成された配線24bを介して第2の処理装置22のポートP0に接続されている。第2の処理装置22のポートP1は、装置内部の伝送路(プリント配線板24に形成された配線24c)を介して第3の処理装置23のポートP0に接続されている。第3の処理装置23のポートP1は、プリント配線板24に形成された配線24dと、受信装置13外部の伝送路であるケーブル15を介して送信装置12に接続されている。
Each of the processing devices 21 to 23 has two ports P0 and P1 corresponding to the predetermined standard. The port P0 of the first processing device 21 is connected to the
つまり、第1の処理装置21のポートP0と第3の処理装置23のポートP1は、受信装置13外部の伝送路に接続される外部接続ポートである。そして、第1の処理装置21のポートP1と、第2の処理装置22のポートP0,P1と、第3の処理装置23のポートP0は、受信装置13内部の伝送路(配線)と接続された内部接続ポートである。
That is, the port P0 of the first processing device 21 and the port P1 of the
また、各処理装置21〜23はそれぞれ、ポートP0,P1に対応する設定端子D0,D1を有している。各処理装置21〜23の設定端子D0,D1は、ポートP0,P1の接続状態に応じてプルアップ又はプルダウンされている。例えば、外部の伝送路と接続されるポートに対応する設定端子はプルアップされ、外部の伝送路と接続されないポートに対応する設定端子はプルダウンされる。 In addition, each of the processing devices 21 to 23 has setting terminals D0 and D1 corresponding to the ports P0 and P1, respectively. The setting terminals D0 and D1 of the processing devices 21 to 23 are pulled up or pulled down according to the connection state of the ports P0 and P1. For example, a setting terminal corresponding to a port connected to an external transmission path is pulled up, and a setting terminal corresponding to a port not connected to an external transmission path is pulled down.
従って、第1の処理装置21のポートP0は、受信装置13外部の装置(送信装置11)と接続され、ポートP1は受信装置13内部の装置(処理装置22)と接続される。これらに対し、第1の処理装置21の設定端子D0はプルアップされ、設定端子D1はプルダウンされている。同様に、第2の処理装置22のポートP0,P1は内部の装置(処理装置21,23)にそれぞれ接続され、設定端子D0,D1はプルダウンされている。また、第3の処理装置23のポートP0は内部の装置(処理装置22)に接続され、ポートP1は外部の装置(送信装置12)に接続されている。従って、第3の処理装置23の設定端子D0はプルダウンされ、設定端子D1はプルアップされている。
Accordingly, the port P0 of the first processing device 21 is connected to a device (transmission device 11) outside the reception device 13, and the port P1 is connected to a device (processing device 22) inside the reception device 13. On the other hand, the setting terminal D0 of the first processing device 21 is pulled up, and the setting terminal D1 is pulled down. Similarly, the ports P0 and P1 of the
各処理装置21〜23は、それぞれ設定端子D0,D1の状態(電圧レベル)に基づいて、対応するポートP0,P1の接続状態が、外部接続状態か内部接続状態かを判定する。そして、各処理装置21〜23はそれぞれ、バスのコンフィグレーションにおいて、ポートP0,P1の接続状態等に基づいて、自装置の状態(ノードID)を設定する。 Each of the processing devices 21 to 23 determines whether the connection state of the corresponding ports P0 and P1 is an external connection state or an internal connection state based on the state (voltage level) of the setting terminals D0 and D1, respectively. Then, each of the processing devices 21 to 23 sets its own device state (node ID) based on the connection state of the ports P0 and P1 in the bus configuration.
バスのコンフィグレーションは、バス初期化(Bus−Initialize)、ツリー識別(Tree−Identfy)、自己識別(Self−Identfy)の各フェーズを含む。 The bus configuration includes phases of bus initialization (Bus-Initialize), tree identification (Tree-Identify), and self-identification (Self-Identify).
バス初期化フェーズにおいて、バスリセットが発生し、すべてのノード(送信装置11,12及び処理装置21〜23)はトポロジに関する情報を消去する。
次いで、ツリー識別フェーズにおいて、各ノードは、各ノード間の親子関係を設定する。そして、接続形態等に応じて任意のノードがルートノード(許可装置)に決定される。次いで、自己識別フェーズにおいて、送信装置11,12は、所定のシーケンスに従って、それぞれ装置ID(ノードID)を取得する。例えば、図1に示すように、送信装置11は「1」の装置IDを取得し、送信装置12は「0」の装置IDを取得する。
In the bus initialization phase, a bus reset occurs, and all the nodes (the
Next, in the tree identification phase, each node sets a parent-child relationship between the nodes. Then, an arbitrary node is determined as a root node (permitted device) according to the connection form and the like. Next, in the self-identification phase, the
処理装置21〜23は、ノードの決定(ルートノードか否か)、各ポートP0,P1の接続状態(外部接続状態,内部接続状態)、各ポートの親子関係(親ポート:Parent Port,子ポート:Child Port)に応じて、自己識別フェーズの処理を実行する。この自己識別フェーズにおいて、処理装置21〜23のうち、1つのノードが装置IDを取得し、他の2つのノードは装置IDを取得しない。 The processing devices 21 to 23 determine the node (whether or not it is a root node), the connection state of each port P0, P1 (external connection state, internal connection state), and the parent-child relationship of each port (parent port: Parent Port, child port) : Child Port), the self-identification phase process is executed. In this self-identification phase, one of the processing devices 21 to 23 acquires the device ID, and the other two nodes do not acquire the device ID.
自己識別フェーズにおける処理は、以下の(a)〜(e)を含む。
(a)内部接続状態の親ポートから許可信号(Grant信号)を受信した場合、受信した親ポートに対してキャンセル信号(Cancel信号)を出力し、装置IDの取得を行わない。
The process in the self-identification phase includes the following (a) to (e).
(A) When a permission signal (Grant signal) is received from the parent port in the internal connection state, a cancel signal (Cancel signal) is output to the received parent port, and the device ID is not acquired.
(b)外部接続状態の親ポートからGrant信号を受信した場合は、セルフIDパケットを送信して装置IDを取得する。
(c)子ポートからCancel信号を受信した場合、その子ポートの識別(Identify)を完了する。なお、子ポートにおけるIdentifyの完了は、「非接続状態」、「Identifyの完了を示すIdent_done信号の受信」「Grant信号に対するCancel信号の受信」を含む。
(B) When a Grant signal is received from a parent port in an external connection state, a device ID is acquired by transmitting a self ID packet.
(C) When the Cancel signal is received from the child port, the identification (Identify) of the child port is completed. The completion of Identify in the child port includes “not connected state”, “reception of an Identity_done signal indicating completion of Identify”, and “reception of a Cancel signal for the Grant signal”.
(d)複数の子ポートを持つノードにおいて、Identifyが完了していない1つの子ポートからGrant信号を出力するとき、Identifyが完了していない他の子ポートにIdle信号を出力する。その後、Grant信号を出した子ポートからData_Prefix信号またはセルフIDパケットを受信した後、Identifyが完了していない他の子ポートに受信した信号(Data_Prefix信号又はセルフIDパケット)を出力する。Identifyが完了していない1つの子ポートからGrant信号を出力するとき、Identifyが完了している他の子ポートに対してData_Prefix信号を出力する。 (D) In a node having a plurality of child ports, when a Grant signal is output from one child port whose Identity has not been completed, an Idle signal is output to another child port whose Identity has not been completed. Thereafter, after receiving the Data_Prefix signal or the self ID packet from the child port that has issued the Grant signal, the received signal (Data_Prefix signal or self ID packet) is output to another child port that has not completed Identity. When a Grant signal is output from one child port whose Identity has not been completed, a Data_Prefix signal is output to another child port whose Identity has been completed.
(e)ルートノード(すべてのポートが子ポート)の場合は、セルフIDパケットを送信して装置IDを取得する。
上記(a)〜(e)の処理を含む自己識別フェーズを終了した処理装置21〜23は、例えば処理装置21は装置ID(=2)を持ち、処理装置22,23は装置IDを持たない(ID=non)。これにより、受信装置13は、1つの処理装置21が取得した装置ID(図1においてID=2)を有するノードとしてネットワーク中に存在することになる。
(E) In the case of a root node (all ports are child ports), a self ID packet is transmitted to obtain a device ID.
For example, in the processing devices 21 to 23 that have completed the self-identification phase including the processes (a) to (e), the processing device 21 has a device ID (= 2), and the
即ち、図1に示すネットワークは、3つのノード(送信装置11,12及び処理装置21)が装置IDをそれぞれ取得する。従って、すべてのノードが装置IDを取得する場合と比べ、バスのコンフィグレーションが短い時間で終了する。従って、例えばバスリセットが発生してから通信可能な状態となるまでの復帰時間が短くなる。
That is, in the network shown in FIG. 1, three nodes (
装置IDを取得した処理装置(ノード)は、自装置と装置IDの取得をキャンセルした処理装置に対しチャネルを設定し、設定したチャネル番号を送信装置11,12に通知する。送信装置11,12は、それぞれ設定されたチャネル番号とデータを含むデータパケットを送信する。処理装置21〜23は、自己のチャネル番号を含むデータパケットを受け取り、データパケットに含まれるデータを、接続された装置(図1では表示装置16,17、スピーカ18)に出力する。
The processing device (node) that has acquired the device ID sets a channel for the processing device that has canceled the acquisition of the device ID and its own device, and notifies the
各処理装置21〜23は互いに他の装置から独立しているため、それぞれの装置21〜23に含まれるインタフェースは、互いに干渉しない。このため、個々の処理装置21〜23に含まれる回路をそれぞれ独立して設計・開発・動作確認を行うことができる。 Since the processing devices 21 to 23 are independent from each other, the interfaces included in the respective devices 21 to 23 do not interfere with each other. Therefore, the circuits included in the individual processing devices 21 to 23 can be independently designed, developed, and checked for operation.
次に、コントローラの構成例を説明する。
図2に示すコントローラ30は、例えば図1に示す処理装置21に含まれる。コントローラ30は、処理装置21のポートP0に対応するポート回路40a(1394Port0と表記)と、ポートP1に対応するポート回路40b(1394Port1と表記)とを有している。
Next, a configuration example of the controller will be described.
The
ポート回路40a内の受信回路41は、1394バス(図1に示す配線24a及びバスケーブル14)を介して相手ノード(送信装置11)と接続されている。この受信回路41は、送信装置11から受信する電気信号を装置内部で扱う電気信号に変換して物理層制御回路50に出力する。受信回路41は、送信装置11から受信するパケットデータ(セルフIDパケットやアイソクロナスパケット等)を物理層制御回路50のデータ再同期部51に出力するレシーバ回路41aと、送信装置11から受信するアービトレーション信号を物理層制御回路50のアービトレーション制御部52に出力するレシーバ回路41bとを有している。
The receiving
ポート回路40a内の送信回路42は、物理層制御回路50から入力される電気信号を、IEEE1394規格の電気信号に変換して送信装置11に送信する。送信回路42では、出力制御部42aが、物理層制御回路50から入力されるパケットデータ又はアービトレーション制御部52から入力されるアービトレーション制御信号のいずれか一方を選択し、ドライバ回路42bを通じて送信装置11に出力する。
The
なお、図1に示す処理装置22と接続されるポート回路40bは、ポート回路40aと同様の構成を有しているため、同一の部材にそれぞれ同一の符号を付して示し、それら各要素についての説明を省略する。
Since the
物理層制御回路50は、バスの状態モニタ、バスリセット発生時のバスのコンフィグレーション、スピードシグナリングやアービトレーションなどを行う。なお、バスのコンフィグレーション(バスリセットシーケンス)では、トポロジ中のすべてのノードのバスに関する情報の初期化と、ルートノードの決定と、各ノードの物理ID(ノードID)の決定と、ノードIDを通知するためのセルフIDパケットの送信とが行われる。また、この物理層制御回路50は、ポート回路40a,40bから入力される電気信号をリンク層が扱う論理信号に変換し、インタフェース回路(PHY−Link Interface)60を通じてリンク層に出力する。一方、物理層制御回路50は、リンク層からインタフェース回路60を通じて入力される論理信号を電気信号に変換してポート回路40a,40bに出力する。なお、リンク層では、データCRCやヘッダCRCの生成、CRCチェックやパケットの送受信制御が行われる。ポート回路40a,40b、物理層制御回路50及びインタフェース回路60は、物理層回路に含まれる。
The physical
物理層制御回路50のデータ再同期部51は、アービトレーション制御部52からの制御信号に応答して、各レシーバ回路41aからの受信パケットデータをリンク層が扱う論理信号に変換してシリアルパラレル変換部53に出力する。また、データ再同期部51は、受信パケットデータをリピート転送するためにリピートデータとして選択回路56に出力する。データ再同期部51は、受信パケットデータの終了を示す終了信号(End of Packet)をアービトレーション制御部52に出力する。
In response to the control signal from the
シリアルパラレル変換部53は、データ再同期部51から入力される論理信号(シリアルデータ)をパラレルデータに変換してインタフェース回路60を介してリンク層回路に出力する。インタフェース回路60は、リンク層回路から出力されるパケットデータ(アイソクロナスパケット等)を選択回路55に出力する。
The serial /
選択回路55には、SelfIDパケット生成部(パケット生成部)57からセルフIDパケットが供給される。選択回路55は、アービトレーション制御部52から入力される選択信号に応じて、パケットデータとセルフIDパケットとのいずれか一方を選択し、パラレルシリアル変換部54に出力する。
The
パラレルシリアル変換部54は、パケットデータ又はセルフIDパケットをシリアルデータに変換して送信パケットデータとして選択回路56に出力する。
選択回路56は、アービトレーション制御部52から入力される選択信号に応じて、パラレルシリアル変換部54からの送信パケットデータ又はデータ再同期部51からのリピートデータのいずれか一方を選択し、上記出力制御部42aに出力する。
The parallel-
The
アービトレーション制御部52は、物理層のメインコントローラである。このアービトレーション制御部52には、各レシーバ回路41bからのアービトレーション信号、データ再同期部51からの終了信号が入力される。そして、アービトレーション制御部52は、これらの信号に基づいて、リンク層からのアービトレーションのリクエストに対する応答、各ポート回路40a,40bの管理及び制御、バスのリセット及びコンフィグレーションなどを行う。
The
アービトレーション制御部52は、パケット生成部57にバスリセット信号(BusReset)を出力する。また、アービトレーション制御部52は、自ノードのセルフIDパケットの送信が許可されたことを示す送信許可信号(SelfID_TX)と、他ノードからセルフIDパケットを受信したことを示す受信信号(SelfID_RX)とを、パケット生成部57に出力する。
The
パケット生成部57は、セルフIDパケット(self−ID packet)を生成する。そして、パケット生成部57は、セルフIDパケットの数をカウントしたカウンタ値を記憶している。パケット生成部57は、バスリセット信号(BusReset)に応答してカウント値をクリア(=0)する。パケット生成部57は、受信信号(SelfID_RX)に応答してカウント値をインクリメント(+1)する。そして、パケット生成部57は、送信許可信号(SelfID_TX)に応答して、カウント値を設定した装置ID(Physical node ID)を含むセルフIDパケット(self−ID packet)を生成する。このように生成されたセルフIDパケットは、上記送信回路42等を通じて他ノードにブロードキャスト送信される。
The
アービトレーション制御部52は、図1に示す設定端子D0の接続に応じたレベルの接続情報信号SD0と、設定端子D1の接続に応じたレベルの接続情報信号SD1を入力する。接続情報信号SD0は、図1に示すポートP0、即ち図2に示すポート回路40aに対応し、その信号SD0のレベルはポート回路40aの接続状態を示す。同様に、接続情報信号SD1は、図1に示すポートP1、即ち図2に示すポート回路40bに対応し、その信号SD1のレベルはポート回路40bの接続状態を示す。
The
アービトレーション制御部52は、接続情報信号SD0のレベルに基づいて、対応するポート回路40a(図1に示すポートP0)の接続状態を判定する。図1に示すように、設定端子D0は、受信装置13外部の送信装置11に接続されたポートP0に対応してプルアップされる。設定端子D1は、受信装置13内部の処理装置22に接続されたポートP1に対応してプルダウンされる。従って、図2に示すアービトレーション制御部52は、Hレベルの接続情報信号SD0に基づいて、ポート回路40aが、外部接続状態にあると判定する。また、アービトレーション制御部52は、Lレベルの接続情報信号SD1に基づいて、ポート回路40bが、内部接続状態にあると判定する。そして、アービトレーション制御部52は、各ポート回路40a,40bの接続状態に基づいて、ネットワークの初期化を行うシーケンスのうち、自己識別シーケンスを実行する。
The
次に、アービトレーション制御部52の動作の概略を説明する。
図3に示すように、アービトレーション制御部52は、リセットやタイムアウトの発生、または1394バスの初期化信号であるバスリセット(BusReset)信号を受信すると、1394バスを初期化するバスリセット(BusReset)シーケンスを開始する。バスリセットシーケンスでは、R0:Reset StartとR1:Reset Waitの2つの状態が定義されている。ネットワーク全体が初期化シーケンスに入ったことを確認すると、トポロジの構築を行うツリー識別(Tree−Identify)シーケンスに進む。
Next, an outline of the operation of the
As shown in FIG. 3, the
ツリー識別シーケンスでは、T0:Tree ID start、T1:Child Handshake、T2:Parent Handshake、T3:Root Contentionの4つの状態が定義されている。このツリー識別シーケンスにおいて、1394バスケーブルを介して接続されたポートに対して、アービトレーション権限の上位側と下位側を決定する。各装置は、接続相手が上位(親)であるポートを親ポートとし、接続相手が下位(子)であるポートを子ポートとする。また、他の装置が接続されていないポートは「切(off)」に設定される。そして、すべてのポートが子ポートである装置がルート(Root)ノードに決定される。 In the tree identification sequence, four states of T0: Tree ID start, T1: Child Handshake, T2: Parent Handshake, and T3: Root Contention are defined. In this tree identification sequence, the upper side and lower side of the arbitration authority are determined for the ports connected via the 1394 bus cable. In each device, a port whose connection partner is higher (parent) is a parent port, and a port whose connection partner is lower (child) is a child port. A port to which no other device is connected is set to “off”. Then, a device in which all ports are child ports is determined as a root node.
トポロジの構築を完了すると、装置IDの割り当てを行う自己識別(Self Identify)シーケンスを開始する。図1に示す処理装置21〜23の自己識別シーケンスでは、S0:Self ID start、S1:Self ID Grant、S2:Self ID Receive、S3:Send Speed Capabilities、S4:Self ID Transmit、S5:Self ID Cancelの6つの状態が定義されている。 When the construction of the topology is completed, a self identification sequence for assigning a device ID is started. In the self-identification sequence of the processing devices 21 to 23 shown in FIG. 1, S0: Self ID start, S1: Self ID Grant, S2: Self ID Receive, S3: Send Speed Capabilities, S4: Self ID Transmit, S5: Self ID. The following six states are defined.
図1に示す送信装置11,12は、自己識別シーケンスにおいて、セルフIDパケットを送信し、装置IDを確定する。受信装置13に含まれる処理装置21〜23のうち、ルートノードに決定された処理装置、又は外部接続の親ポートを有する処理装置はセルフIDパケットを送信し装置IDを確定する。一方、処理装置21〜23のうち、内部接続の親ポートを有する処理装置は、装置IDの取得をキャンセルする。 The transmission apparatuses 11 and 12 shown in FIG. 1 transmit a self ID packet and determine the apparatus ID in the self-identification sequence. Among the processing devices 21 to 23 included in the receiving device 13, the processing device determined as the root node or the processing device having the parent port of the external connection transmits a self ID packet to determine the device ID. On the other hand, among the processing devices 21 to 23, the processing device having the parent port for internal connection cancels the acquisition of the device ID.
自己識別シーケンスを完了すると、通常転送のアービトレーションを行う通常アービトレーション(Normal arbitration)シーケンスを開始する。通常アービトレーションでは、A0:Idle、A1:Request Test、A2:Request Delay、A3:Request、A4:Grant、A5:Receive、A6:Transmitの7つの状態が定義されている。送信装置11,12及び処理装置21〜23は、互いに通信を行い、データを送受信する。
When the self-identification sequence is completed, a normal arbitration sequence for normal transfer arbitration is started. In normal arbitration, seven states of A0: Idle, A1: Request Test, A2: Request Delay, A3: Request, A4: Grant, A5: Receive, and A6: Transmit are defined. The
次に、処理装置21〜23における自己識別シーケンスの各状態を説明する。
図4に示すように、初期状態である状態S0へは、ツリー識別シーケンスの状態T2から、遷移する。この状態S0において、ルートノード、又はGrant信号の受信を条件として状態S1へ遷移する。
Next, each state of the self-identification sequence in the processing devices 21 to 23 will be described.
As shown in FIG. 4, the state transitions to the initial state S0 from the state T2 of the tree identification sequence. In this state S0, a transition is made to state S1 on condition that a root node or a Grant signal is received.
状態S1では、図5に示すフローチャートに従って動作する。そして、状態S1において、Grant信号を出力した子ポートからData_Prefix信号の受信を条件として状態S2へ遷移する。 In state S1, it operates according to the flowchart shown in FIG. Then, in the state S1, a transition is made to the state S2 on condition that the Data_Prefix signal is received from the child port that has output the Grant signal.
状態S2はSelf−IDパケットを受信している状態である。連結されたパケット(Concatenated_packet)を受信した場合、状態S2から状態S2へ遷移する。 State S2 is a state in which a Self-ID packet is received. When the concatenated packet (Concatenated_packet) is received, the state transits from the state S2 to the state S2.
状態S2において、Identifyの完了を示すIdent_done信号の受信を条件として状態S3へ遷移する。
状態S3において、SPEED_SIGNAL_LENGTHの経過を条件として状態S0へ遷移する。
In the state S2, the process transits to the state S3 on condition that an Identity_done signal indicating completion of Identify is received.
In the state S3, the state transitions to the state S0 on condition that SPEED_SIGNAL_LENGTH has elapsed.
状態S1において、Grant信号を出力したポートからパケットの始まりを示すData_prifix信号の受信を条件として状態S2へ遷移する。
状態S2において、Idle信号の受信、又はGrant信号の受信、又はData_Prefix信号の受信を条件として状態S0へ遷移する。
In the state S1, the state transitions to the state S2 on condition that the Data_prifix signal indicating the start of the packet is received from the port that has output the Grant signal.
In the state S2, the state transitions to the state S0 on condition that the Idle signal is received, the Grant signal is received, or the Data_Prefix signal is received.
また、上記状態S1において、Grant信号を出力した子ポートからキャンセル(Cancel)信号の受信を条件として状態S3へ遷移する。キャンセル信号は、例えば1394a−2000の規格の[Arb_A_Tx,Arb_B_Tx]=[Z,0]、[Arb_A_Rx,Arb_B_Rx]=[0,0]である。 Further, in the state S1, the state transitions to the state S3 on condition that a cancel signal is received from the child port that has output the Grant signal. The cancel signal is, for example, [Arb_A_Tx, Arb_B_Tx] = [Z, 0], [Arb_A_Rx, Arb_B_Rx] = [0, 0] of the 1394a-2000 standard.
上記状態S1において、ルートノード、又は親ポートが外部接続状態であってすべての子ポートに対する識別(Identify)の完了を条件として状態S4へ遷移する。識別(Identify)の完了は、ポートが非接続であるか、Ident_done信号又はCancel信号の受信より成立する。 In the state S1, the root node or the parent port is in the external connection state, and the state transitions to the state S4 on condition that the identification (Identification) for all the child ports is completed. Completion of identification (Identify) is established when the port is not connected or when an Identity_done signal or a Cancel signal is received.
状態S4において、ルートノード、又はData_Prefix信号の受信を条件として、通常アービトレーション(Normal arbitration)シーケンスの状態A0へ遷移する。 In the state S4, on the condition that the root node or the Data_Prefix signal is received, the state transitions to the state A0 of the normal arbitration sequence.
上記状態S1において、ルートノード、又は親ポートが内部接続状態であってすべての子ポートに対する識別(Identify)の完了を条件として状態S5へ遷移する。識別(Identify)の完了は、ポートが非接続であるか、Ident_done信号又はCancel信号の受信より成立する。 In the state S1, the state transitions to the state S5 on condition that the root node or the parent port is in the internal connection state and the identification (Identify) for all the child ports is completed. Completion of identification (Identify) is established when the port is not connected or when an Identity_done signal or a Cancel signal is received.
状態S5において、Data_Prefix信号の受信を条件として、通常アービトレーション(Normal arbitration)シーケンスの状態A0へ遷移する。
[S1:Self−ID Grant]
次に、状態S1におけるSelf−ID Grantの処理を説明する。
In the state S5, on the condition that the Data_Prefix signal is received, the state transits to the state A0 of the normal arbitration sequence.
[S1: Self-ID Grant]
Next, Self-ID Grant processing in the state S1 will be described.
図5に示すように、アービトレーション制御部52は、状態S1に遷移する(IN)と、ステップ71の処理を実行する。ステップ71において、Identifyの完了している子ポートにData_Prefix信号を出力する。また、ステップ71において、Identifyの完了していない最も小さなポート番号の子ポートにGrant信号を出力する。また、ステップ71において、上記以外、即ちIdentifyの完了していない子ポートのうち、最も小さなポート番号より大きなポート番号の子ポートにIdle信号を出力する。
As illustrated in FIG. 5, the
次いで、すべての子ポートのIdentifyが完了したか否かを判定し(ステップ72)、完了した場合(判定:Yes)、自装置がルートノード(Root)であるか、または親ポートが外部接続であるかを判定する(ステップ73)。ルートノード、又は親ポートが外部接続である場合(判定:Yes)、状態S4へ遷移する。一方、ルートノード以外であり、親ポートが内部接続の場合(判定:No)、状態S5へ遷移する。 Next, it is determined whether or not all child ports have been identified (step 72). If completed (determination: Yes), the device is the root node (Root) or the parent port is externally connected. It is determined whether or not there is (step 73). When the root node or the parent port is an external connection (determination: Yes), the flow goes to the state S4. On the other hand, if it is other than the root node and the parent port is internally connected (determination: No), the flow goes to the state S5.
上記ステップ72において完了していない場合(判定:No)、Grant信号を出力した子ポートからData_Prefix信号を受信したか否かを判定する(ステップ74)。Data_Prefix信号を受信した場合(判定:Yes)、子ポートへのGrant信号の出力を停止(Idle信号を出力)し(ステップ75)、状態S2へ遷移する。 If not completed in step 72 (determination: No), it is determined whether or not a Data_Prefix signal is received from the child port that has output the Grant signal (step 74). When the Data_Prefix signal is received (determination: Yes), the output of the Grant signal to the child port is stopped (the Idle signal is output) (step 75), and the state transitions to the state S2.
一方、ステップ74においてData_Prefix信号を受信していない場合、Grant信号を出力した子ポートからCancel信号を受信したか否かを判定する(ステップ76)。Cancel信号を受信した場合(判定Yes)、子ポートのIdentifyを完了に設定し、子ポートへのGrant信号の出力を停止(Idle信号を出力)し(ステップ77)、状態S3へ遷移する。
On the other hand, if the Data_Prefix signal has not been received in
一方、ステップ76においてCancel信号を受信していないと判定した場合(判定:No)、ステップ74へ遷移する。
[S5:Self−ID Cancel]
次に、状態S5におけるSelf−ID Cancelの処理を説明する。
On the other hand, if it is determined in
[S5: Self-ID Cancel]
Next, the Self-ID Cancel process in the state S5 will be described.
図6に示すように、アービトレーション制御部52は、状態S5に遷移する(IN)と、親ポートにキャンセル(Cancel)信号を出力し、親ポートにSpeed Capability Signalを出力し、子ポートにData_Prefix信号を出力する(ステップ81)。
As shown in FIG. 6, when transitioning to the state S5 (IN), the
次いで、SPEED_SIGNAL_LENGTHの経過を判定し(ステップ82)、経過するまで同ステップを繰り返す、つまりループする。
次いで、親ポートへのCancel信号の出力を停止(Idle信号を出力)し、親ポートへのSpeed Capability singalの出力を停止する(ステップ83)。
Next, it is determined whether or not SPEED_SIGNAL_LENGTH has elapsed (step 82), and the same step is repeated until it elapses, that is, a loop is performed.
Next, the output of the Cancel signal to the parent port is stopped (Idle signal is output), and the output of the Speed Capability signal to the parent port is stopped (step 83).
次いで、親ポートからData_Prefix信号を受信したかを判定し(ステップ84)、Data_Prefix信号を受信するまでループする。親ポートからData_Prefix信号を受信すると、通常アービトレーション(Normal arbitration)シーケンスの状態A0へ遷移する。 Next, it is determined whether a Data_Prefix signal has been received from the parent port (step 84), and a loop is performed until the Data_Prefix signal is received. When the Data_Prefix signal is received from the parent port, the state transitions to the state A0 of the normal arbitration sequence.
次に、ネットワークにおける各装置の動作を説明する。
なお、図1に示す送信装置11,12を、例えば図7(a)に示すように「装置1」「装置2」と表記する。また、図1に示す受信装置13を長方形破線枠で示し、各処理装置21,22,23を、「装置A」「装置B」「装置C」と表記する。そして、動作説明において、各表記を用いて説明する。また、以下の説明に対応する図において、親ポートを単に「親」、子ポートを単に「子」と表記する。
Next, the operation of each device in the network will be described.
1 are represented as “
[接続例1]
図7(a)に示すように、受信装置は、直列に接続された装置A〜Cを含み、装置Aがルートノードに決定される。装置Aにおいて、外部接続状態の子ポートには装置1が接続され、装置Cにおいて、外部接続状態の子ポートには装置2が接続されている。
[Connection example 1]
As illustrated in FIG. 7A, the receiving device includes devices A to C connected in series, and the device A is determined as a root node. In device A,
図7(a)に示すように、ルートノードに決定された装置Aは、子ポートのうちの1つ、例えば装置Bが接続された子ポートからGrant信号を出力する。装置Bは、親ポートから受信したGrant信号に応答して、子ポートからGrant信号を出力する。同様に、装置Cは、親ポートから受信したGrant信号に応答して、子ポートからGrant信号を出力する。つまり、装置B,Cは、Grant信号を転送(リピート)する。 As shown in FIG. 7A, the device A determined as the root node outputs a Grant signal from one of the child ports, for example, the child port to which the device B is connected. In response to the Grant signal received from the parent port, the device B outputs the Grant signal from the child port. Similarly, the device C outputs the Grant signal from the child port in response to the Grant signal received from the parent port. That is, the devices B and C transfer (repeat) the Grant signal.
図7(b)に示すように、親ポートからGrant信号を受信した装置2は、パケットの先頭を示すData_Prefix信号(D_prefixと表記)を出力する。D_prefix信号を受信した装置Cは状態S2へ遷移し、D_prefixを送信、つまり転送する。同様に、装置B,Aは、D_prefix信号を転送する。子ポートからD_prefix信号を受信した装置C,B,Aは、子ポートに対するGrant信号の出力を停止する。
As illustrated in FIG. 7B, the
次いで、装置2は、セルフIDパケットの数をカウントしたカウント値に従って、図7(c)に示すように、カウント値を設定した装置IDを含むセルフIDパケット(SelfID−P)を親ポートから送信し、装置ID(=0)を確定する。装置C,B,Aは、ID=0のセルフIDパケット(SelfID−P)を転送する。装置C,B,Aと装置1は、セルフIDパケット(SelfID−P)の受信を終了すると、図4に示す状態S2から状態S0へ遷移する。
Next, according to the count value obtained by counting the number of self ID packets, the
次いで、装置2は、図7(d)に示すように、セルフIDの完了を示すIdent_done信号(Ident_Dと表記)を親ポートから出力する。Ident_D信号を受信した装置Cは、子ポートを、Identifyが完了したポートとして設定する。
Next, as illustrated in FIG. 7D, the
ルートノードである装置Aは、図4に示す状態S0から状態S1へ遷移し、図7(e)に示すように、Grant信号を出力する。装置Bは、Grant信号を転送する。装置Cは、親ポートからGrant信号を受信すると、親ポートが内部接続状態であり子ポートのIdentifyが完了しているため、図5に示すフローチャート(ステップ72:Yes,ステップ73:No)に従って状態S5へ遷移し、図7(e)に示すように、子ポートからD_prefix信号を出力する。 The device A that is the root node transits from the state S0 shown in FIG. 4 to the state S1, and outputs a Grant signal as shown in FIG. 7 (e). Device B forwards the Grant signal. When the device C receives the Grant signal from the parent port, the parent port is in the internal connection state and the child port Identify is completed, so the state is in accordance with the flowchart shown in FIG. 5 (step 72: Yes, step 73: No). The process proceeds to S5, and a D_prefix signal is output from the child port as shown in FIG.
また、状態S5へ遷移した装置Cは、図7(f)に示すように、親ポートからキャンセル信号(Cancel)を出力する。キャンセル信号(Cancel)を受信した装置Bは、図5に示すフローチャート(ステップ76:Yes,ステップ77)に従って、子ポートをIdentifyが完了したポートとして設定し、子ポートに対するGrant信号の出力を停止する。そして、装置Bは、図4に示す状態S1から状態S3へと遷移する。そして、装置Bは、SPEED_SIGNAL_LENGTHの経過後、状態S0へと遷移する。 In addition, as shown in FIG. 7F, the device C that has transitioned to the state S5 outputs a cancel signal (Cancel) from the parent port. The device B that has received the cancel signal (Cancel) sets the child port as a port that has completed the Identify according to the flowchart shown in FIG. 5 (step 76: Yes, step 77), and stops outputting the Grant signal to the child port. . And the apparatus B changes from state S1 shown in FIG. 4 to state S3. Device B then transitions to state S0 after SPEED_SIGNAL_LENGTH has elapsed.
状態S0へ遷移した装置Bは、親ポートから受信するGrant信号に応答して状態S1へ遷移する。このとき、装置Bは、子ポートのIdentifyが完了し、親ポートが内部接続であるため、図5に示すフローチャート(ステップ72,73)に従って状態S5へ遷移する。状態S5へ遷移した装置Bは、図6に示すフローチャートに従って、図7(f)に示すように、親ポートからキャンセル信号(Cancel)を出力する。このように、装置C,Bは、ネットワークの接続関係における上位側の装置(装置B、A)にキャンセル信号(Cancel)を伝達し、装置IDを持たない(ID=non)装置に確定する。 The device B that has transitioned to the state S0 transitions to the state S1 in response to the Grant signal received from the parent port. At this time, the device B completes the identity of the child port and the parent port is an internal connection, so the device B transitions to the state S5 according to the flowchart (steps 72 and 73) shown in FIG. The device B that has transitioned to the state S5 outputs a cancel signal (Cancel) from the parent port, as shown in FIG. 7F, according to the flowchart shown in FIG. In this way, the devices C and B transmit the cancel signal (Cancel) to the higher-level devices (devices B and A) in the network connection relationship, and are determined to have no device ID (ID = non).
装置Bからキャンセル信号を受信した装置Aは、図5に示すフローチャート(ステップ76,77)に従って、子ポートをIdentify完了に設定し、図4に示す状態S1から状態S3へと遷移する。更に、装置Aは、SPEED_SIGNAL_LENGTHの経過後、状態S0へと遷移する。装置Aはルートノードであるため、図4に示す状態S0から状態S1へ遷移する。 The device A that has received the cancel signal from the device B sets the child port to “Identify complete” according to the flowchart (steps 76 and 77) shown in FIG. 5, and transitions from the state S1 to the state S3 shown in FIG. Furthermore, the device A transitions to the state S0 after SPEED_SIGNAL_LENGTH has elapsed. Since device A is a root node, the state transitions from state S0 to state S1 shown in FIG.
状態S1において、装置Aは、装置Bに接続された子ポートにおけるIdentifyが完了しているため、図7(g)に示すように、他の子ポートからGrant信号を出力し、Identifyが完了した子ポートからD_prefix信号を出力する。装置B、CはD_prefix信号を転送する。 In state S1, since device A has completed Identify at the child port connected to device B, as shown in FIG. 7G, the Grant signal is output from the other child port, and Identity has been completed. The D_prefix signal is output from the child port. Devices B and C transfer the D_prefix signal.
Grant信号を受信した装置1は、図8(a)に示すように、D_prefix信号を出力する。装置A〜Cは、D_prefix信号を転送する。更に、装置1は、セルフIDパケットの数をカウントしたカウント値に従って、図8(b)に示すように、カウント値を設定した装置IDを含むセルフIDパケット(SelfID−P)を送信し、装置ID(ID=1)を確定する。装置A〜Cは、セルフIDパケット(SelfID−P)を転送する。
The
次いで、装置1は、図8(c)に示すように、Identifyの完了を示すIdent_D信号を出力する。Ident_D信号を受信した装置Aは、図4に示す状態S2から状態S3へと遷移し、すべての子ポートのIdentifyが完了する。従って、装置Aは、図4に示す状態S0を経由して状態S1へ遷移する。状態S1に遷移した装置Aは、図5に示すフローチャートに従って、図8(d)に示すように、Identifyが完了した子ポートからD_prefix信号を出力する。装置B,Cは、D_prefix信号を転送する。
Next, as illustrated in FIG. 8C, the
そして、装置Aは、図5に示すフローチャート(ステップ72,73:Yes)に従って、状態S1から状態S4へ遷移する。状態S4に遷移した装置Aは、セルフIDパケットの数をカウントしたカウント値に従って、図8(e)に示すように、カウント値を設定した装置IDを含むセルフIDパケット(SelfID−P)を各子ポートから送信し、装置ID(ID=2)を確定する。状態S4においてセルフIDパケットを送信した装置Aは、ルートノードであるため、セルフIDシーケンスを終了し、通常アービトレーションの状態A0へと遷移する。 And the apparatus A changes from state S1 to state S4 according to the flowchart (steps 72 and 73: Yes) shown in FIG. As shown in FIG. 8E, the device A that has transitioned to the state S4 sends each self ID packet (SelfID-P) including the device ID for which the count value has been set, according to the count value obtained by counting the number of self ID packets. Transmit from the child port to determine the device ID (ID = 2). Since the device A that has transmitted the self ID packet in the state S4 is a root node, the device A ends the self ID sequence and transitions to the normal arbitration state A0.
上記の処理により、図8(f)に示すように、装置1と装置2はそれぞれ「1」,「0」の装置IDを取得する。ルートノードに決定された装置Aは「2」の装置IDを取得し、装置B,Cは装置IDを取得しない(ID=non)。従って、ネットワーク上では、受信装置に含まれる装置A〜Cのうち、装置Aのみが認識され、装置Bと装置Cは認識されない。その結果、受信装置13は、ネットワーク上において、装置Aが取得した装置ID(=2)を持つ1つの装置として認識される。
By the above processing, as shown in FIG. 8F, the
なお、図7(a)において、ルートノードに決定した装置AがGrant信号を装置1に出力した場合、装置1が最初に装置ID(=0)を取得する。そして、装置AがGrant信号を装置Bに出力すると、上記と同様にして装置2が「1」の装置IDを取得し、装置B,Cは装置IDを取得しない(ID=non)。そして、装置Aが「2」の装置IDを取得し、自己識別シーケンスを終了する。
In FIG. 7A, when the device A determined as the root node outputs a Grant signal to the
また、装置Cがルートノードに決定した場合、装置Aがルートノードに決定した場合と同様に、装置Aは上記の装置Cと同様に動作して装置IDを取得しない(ID=non)。そして、装置Cが装置IDを取得し、自己識別シーケンスを終了する。また、装置Bがルートノードに決定した場合、装置A,Cは上記の装置Cと同様に動作して装置IDを取得しない(ID=non)。そして、装置Bが装置IDを取得し、自己識別シーケンスを終了する。 When the device C is determined as the root node, the device A operates in the same manner as the device C and does not acquire the device ID (ID = non), similarly to the case where the device A is determined as the root node. Then, the device C acquires the device ID and ends the self-identification sequence. When the device B is determined as the root node, the devices A and C operate in the same manner as the device C and do not acquire the device ID (ID = non). And the apparatus B acquires apparatus ID and complete | finishes a self-identification sequence.
上記したように、受信装置13に含まれる装置A〜Cのうちの1つがルートノードに決定した場合、他の装置は内部接続状態の親ポートを持つ。その内部接続状態の親ポートを持つ装置は装置IDの取得をキャンセルする。そして、ルートノードに決定した装置は、装置IDを取得する。その結果、装置A〜Cを含む受信装置13は、ルートノードに決定した装置が取得した装置IDを持つ1つの装置として、ネットワーク中の他の装置から認識される。 As described above, when one of the devices A to C included in the receiving device 13 is determined as the root node, the other device has a parent port in an internal connection state. The device having the parent port in the internal connection state cancels the acquisition of the device ID. Then, the device determined as the root node acquires the device ID. As a result, the receiving device 13 including the devices A to C is recognized from other devices in the network as one device having the device ID acquired by the device determined as the root node.
[接続例2]
図9(a)に示すように、受信装置は、直列に接続された装置A〜Cを含み、装置Aがルートノードに決定される。装置Aにおいて、外部接続状態の子ポートには装置1が接続されている。装置Cにおいて、外部接続状態のポートは非接続状態にある。なお、装置Cは、親ポートが設定され、子ポートが設定されていないノードであるが、説明の便宜上、上記[接続例1]と同様に、子ポート(「子」と表記)として説明する。
[Connection example 2]
As illustrated in FIG. 9A, the receiving device includes devices A to C connected in series, and the device A is determined as the root node. In the device A, the
図9(a)に示すように、ルートノードに決定された装置Aは、子ポートからGrant信号を出力する。装置Bは、Grant信号を転送する。Grant信号を受信した装置Cは、親ポートが内部接続状態であり、子ポートが非接続状態、つまり子ポートのIdentifyが完了しているため、図4に示す状態S1から状態S5へと遷移する。状態S5へ遷移した装置Cは、図9(b)に示すように、親ポートにキャンセル信号(Cancel)を出力する。装置Bは、キャンセル信号を転送する。従って、装置Bと装置Cは、図7(f)示す状態と同様に、装置IDを持たない装置(ID=non)に確定する。 As shown in FIG. 9A, the device A determined as the root node outputs a Grant signal from the child port. Device B forwards the Grant signal. The device C that has received the Grant signal transitions from the state S1 to the state S5 shown in FIG. 4 because the parent port is in the internally connected state and the child port is in the disconnected state, that is, the child port has been identified. . The device C that has transitioned to the state S5 outputs a cancel signal (Cancel) to the parent port, as shown in FIG. 9B. Device B transfers a cancel signal. Accordingly, the devices B and C are determined as devices having no device ID (ID = non) as in the state shown in FIG.
ルートノードである装置Aは、図7(g)、図8(a)〜図8(f)と同様に、図9(c)〜図9(g),図10(a),図10(b)に示すように動作し、装置IDを取得する。同様に、装置1は、装置IDを取得する。
The device A, which is the root node, is similar to FIGS. 7 (g) and 8 (a) to 8 (f) in FIGS. 9 (c) to 9 (g), FIG. 10 (a), and FIG. Operate as shown in b) to obtain the device ID. Similarly, the
上記の処理により、図10(b)に示すように、装置1は「0」の装置IDを取得する。また、受信装置に含まれる装置Aは「1」の装置IDを取得し、装置B,Cは装置IDを取得しない(ID=non)。従って、ネットワーク上では、装置Aのみが認識される。その結果、受信装置13は、ネットワーク上において、装置Aが取得した装置ID(=2)を持つ1つの装置として認識される。
By the above processing, as shown in FIG. 10B, the
上記したように、装置Cはルートノードではなく、内部接続状態の親ポート以外のポートは非接続状態にある。つまり、装置IDを取得しない装置Cがリーフノード状態に接続されたネットワークにおいても、自己識別シーケンスを終了することができる。 As described above, the device C is not a root node, and ports other than the parent port in the internally connected state are in a disconnected state. That is, the self-identification sequence can be completed even in a network in which the device C that does not acquire the device ID is connected to the leaf node state.
なお、装置Bがルートノードに決定した場合、装置Cは、上記と同様に動作し、装置IDを取得しない。このようにネットワークが決定した場合であっても、自己識別シーケンスを終了することができる。 When device B is determined as the root node, device C operates in the same manner as described above and does not acquire a device ID. Even when the network is determined in this way, the self-identification sequence can be terminated.
また、装置Cがルートノードに決定した場合、上記の接続例1と同様に、装置Aと装置Bは装置1と装置Cとの間に接続された装置であり、装置IDを取得しない(ID=non)。そして、ルートノードに決定した装置Cは、上記の接続例1と同様に、装置ID(=1)を取得し、自己識別シーケンスを終了する。
When device C is determined as the root node, similarly to connection example 1 above, device A and device B are devices connected between
[接続例3]
図11(a)に示すように、受信装置は、直列に接続された装置A〜Cを含む。装置Aにおいて、外部接続状態の親ポートには装置1が接続され、装置Cにおいて、外部接続状態の子ポートには装置2が接続されている。装置1がルートノードに決定される。
[Connection example 3]
As shown in FIG. 11A, the receiving device includes devices A to C connected in series. In the device A, the
この場合、装置Bは、内部接続状態の親ポートを持ち、子ポートに装置Cが接続されている。また、装置Cは、内部接続状態の親ポートを持ち、子ポートに装置2が接続されている。従って、装置Bと装置Cは、上記の接続例1の図7(a)〜図7(e)と同様に、図11(a)〜図11(e)に示すように動作し、装置IDを取得しない(ID=non)装置として確定する。
In this case, the device B has a parent port in an internal connection state, and the device C is connected to the child port. In addition, the device C has a parent port in an internal connection state, and the
装置Aは、外部接続状態の親ポートを持ち、子ポートに装置Bが接続されている。従って、装置Aは、図11(f)に示すように、装置BからCancel信号を受信すると、子ポートのIdentifyが完了したポートとして設定する。そして、装置Aは、図4に示すように、状態S1から状態S3へと遷移し、SPEED_SIGNAL_LENGTHの経過後、状態S0へと遷移する。そして、図11(f)に示すように、ルートノードである装置1が出力するGrant信号を受信して、図4に示す状態S1へと遷移する。
Device A has a parent port in an external connection state, and device B is connected to a child port. Therefore, as shown in FIG. 11F, when the device A receives the Cancel signal from the device B, the device A sets the child port as a port that has been identified. Then, as shown in FIG. 4, the device A transitions from the state S1 to the state S3, and transitions to the state S0 after SPEED_SIGNAL_LENGTH has elapsed. Then, as shown in FIG. 11 (f), the Grant signal output from the
状態S1に遷移した装置Aは、図5に示すフローチャートに従って、図11(g)に示すように、子ポートからD_prefix信号を出力する。また、装置Aは、すべての子ポートのIdentifyが完了し、親ポートが外部接続状態であるため、図5に示すフローチャートに従って、状態S1から状態S4へと遷移する。そして、装置Aは、セルフIDパケットの数をカウントしたカウント値に従って、図12(a)に示すように、装置IDを含むセルフIDパケット(SelfID−P)を送信し、装置ID(=1)を確定する。次いで、図12(b)に示すように、装置Aは、Ident_D信号を親ポートから出力する。 The device A that has transitioned to the state S1 outputs the D_prefix signal from the child port, as shown in FIG. 11 (g), according to the flowchart shown in FIG. Further, since all of the child ports have been identified and the parent port is in the external connection state, apparatus A transitions from state S1 to state S4 according to the flowchart shown in FIG. Then, according to the count value obtained by counting the number of self ID packets, device A transmits a self ID packet (SelfID-P) including a device ID as shown in FIG. 12A, and device ID (= 1). Confirm. Next, as illustrated in FIG. 12B, the device A outputs an Identity_D signal from the parent port.
図12(c)に示すように、装置1は、子ポートからD_prefixを出力し、装置A〜CはD_prefix信号を転送する。次に、装置1は、セルフIDパケットの数をカウントしたカウント値に従って、図12(d)に示すように、装置IDを含むセルフIDパケット(SelfID−P)を送信し、装置ID(=2)を確定する。
As shown in FIG. 12C, the
上記の処理により、図12(e)に示すように、装置1と装置2はそれぞれ「2」,「0」の装置IDを取得する。外部接続状態のポートが親ポートに決定された装置Aは、「1」の装置IDを取得し、装置B,Cは装置IDを取得しない(ID=non)。従って、ネットワーク上では、受信装置に含まれる装置A〜Cのうち、装置Aのみが認識され、装置Bと装置Cは認識されない。その結果、受信装置13は、ネットワーク上において、装置Aが取得した装置ID(=1)を持つ1つの装置として認識される。
By the above processing, as shown in FIG. 12E, the
なお、装置2がルートノードに決定した場合、装置A,Bは内部接続状態の親ポートを持ち、装置Cは外部接続状態の親ポートを持つ。従って、装置A,Bは、上記の装置B,Cと同様にして装置IDを取得しない(ID=non)。そして、装置Cは、上記の装置Aと同様にして装置ID(=1)を取得する。そして、装置2が「2」の装置IDを取得し、自己識別シーケンスを終了する。
When the
上記したように、受信装置13に含まれる装置A〜C以外の装置がルートノードに決定した場合、ルートノードに近い装置のポートが外部接続状態の親ポートに決定され、他の装置は内部接続状態の親ポートを持つ。その内部接続状態の親ポートを持つ装置は装置IDの取得をキャンセルする。そして、外部接続状態の親ポートを持つ装置は、装置IDを取得する。その結果、装置A〜Cを含む受信装置13は、外部接続状態の親ポートを持つ装置が取得した装置IDを持つ1つの装置として、ネットワーク中の他の装置から認識される。 As described above, when a device other than the devices A to C included in the receiving device 13 is determined as the root node, the port of the device close to the root node is determined as the parent port in the external connection state, and the other devices are internally connected. Has a parent port of state. The device having the parent port in the internal connection state cancels the acquisition of the device ID. Then, a device having a parent port in an external connection state acquires a device ID. As a result, the receiving device 13 including the devices A to C is recognized by other devices in the network as one device having the device ID acquired by the device having the parent port in the external connection state.
以上記述したように、本実施形態によれば、以下の効果を奏する。
(1)送信装置11,12と接続された受信装置13は、表示装置16,17とスピーカ18が接続されている。受信装置13は、送信装置11,12から受信したデータに応じた信号を、表示装置16,17とスピーカ18に出力する。受信装置13は、表示装置16,17、スピーカ18とそれぞれ接続された処理装置21,22,23を有している。処理装置21〜23は送信装置11,12と通信可能であり、ネットワークに含まれる。
As described above, according to the present embodiment, the following effects can be obtained.
(1) The receiving device 13 connected to the transmitting
各処理装置21〜23は、ネットワークのトポロジ構築によって、ポートの親子関係が決定される。また、各処理装置21〜23は、ポートの接続状態、つまり、ポートが受信装置13の外部の装置と接続されている外部接続状態か、受信装置13の内部の装置と接続されている内部接続状態かを、端子D0,D1により設定されている。 In each of the processing devices 21 to 23, the parent-child relationship of the ports is determined by the network topology construction. In addition, each of the processing devices 21 to 23 has a port connection state, that is, an external connection state in which the port is connected to an external device of the reception device 13 or an internal connection in which the port is connected to an internal device of the reception device 13. The state is set by terminals D0 and D1.
各処理装置21〜23のうち、外部接続状態の親ポートを持つ処理装置は、トポロジ構築後の自己識別シーケンスにおいて、外部接続の親ポートから許可信号(Grant信号)を受信した場合、状態S4に遷移してセルフIDパケットを送信し、装置IDを取得する。また、内部接続状態の親ポートを持つ処理装置は、自己識別シーケンスにおいて、親ポートから許可信号(Grant信号)を受信した場合、状態S5へ遷移して親ポートにキャンセル信号を出力し、自己識別シーケンスを終了する。従って、内部接続状態の親ポートを持つ処理装置は、装置IDを取得しない。 Among the processing devices 21 to 23, when a processing device having a parent port in the external connection state receives a permission signal (Grant signal) from the parent port in the external connection in the self-identification sequence after the topology construction, the processing device enters the state S4. A transition is made and a self ID packet is transmitted to obtain a device ID. Further, when the processing device having the parent port in the internally connected state receives a permission signal (Grant signal) from the parent port in the self-identification sequence, the processing device transits to the state S5 and outputs a cancel signal to the parent port. End the sequence. Therefore, the processing device having the parent port in the internal connection state does not acquire the device ID.
従って、受信装置13に含まれる処理装置21〜23のうち、1つの処理装置が装置IDを取得し、他の2つの処理装置は装置IDを取得しない。この結果、受信装置13は1つの処理装置が取得した装置IDを持つ装置として、ネットワークに含まれる他の装置(送信装置11,12)に認識される。従って、全ての処理装置が装置IDを取得する場合と比べ、バスのコンフィグレーションが短い時間で終了する。従って、例えばバスリセットが発生してから通信可能な状態となるまでの復帰時間を短くすることができる。
Accordingly, one of the processing devices 21 to 23 included in the receiving device 13 acquires the device ID, and the other two processing devices do not acquire the device ID. As a result, the receiving device 13 is recognized by other devices (transmitting
(2)装置IDを取得した処理装置(ノード)は、自装置と装置IDの取得をキャンセルした処理装置に対しチャネルを設定し、設定したチャネル番号を送信装置11,12に通知する。送信装置11,12は、それぞれ設定されたチャネル番号とデータを含むデータパケットを送信する。処理装置21〜23は、自己のチャネル番号を含むデータパケットを受け取り、データパケットに含まれるデータを、接続された装置(図1では表示装置16,17、スピーカ18)に出力する。このように、装置IDを取得しない処理装置について、確実にデータの送受信を行うことができる。
(2) The processing device (node) that has acquired the device ID sets a channel for the processing device that has canceled the acquisition of the device ID and its own device, and notifies the
(3)各処理装置21〜23は互いに他の装置から独立しているため、それぞれの装置21〜23に含まれるインタフェースは、互いに干渉しない。このため、個々の処理装置21〜23に含まれる回路をそれぞれ独立して設計・開発・動作確認を行うことができる。 (3) Since the processing devices 21 to 23 are independent from each other, the interfaces included in the respective devices 21 to 23 do not interfere with each other. Therefore, the circuits included in the individual processing devices 21 to 23 can be independently designed, developed, and checked for operation.
(4)内部接続状態の親ポートを持ち、子ポートの識別(Identify)が完了した処理装置は、親ポートから受信した許可信号(Grant信号)に応答してキャンセル信号(Cancel)を親ポートから出力し、自己識別シーケンスを終了する。従って、装置IDを取得しない処理装置の子ポートに他の装置が接続されていないリーフノードであっても、自己識別シーケンスを正常に終了させることができる。 (4) A processing apparatus having an internally connected parent port and having completed identification (Identify) of the child port sends a cancel signal (Cancel) from the parent port in response to the permission signal (Grant signal) received from the parent port. Output and end the self-identification sequence. Therefore, even if the leaf node has no other device connected to the child port of the processing device that does not acquire the device ID, the self-identification sequence can be terminated normally.
(第二実施形態)
以下、第二実施形態を図13〜図25に従って説明する。
なお、第一実施形態と同じ部材については同じ符号を付し、その説明のすべて又は一部を省略する。
(Second embodiment)
Hereinafter, the second embodiment will be described with reference to FIGS.
In addition, about the same member as 1st embodiment, the same code | symbol is attached | subjected and the description of all or one part is abbreviate | omitted.
図13に示すように、コントローラ100は、3つのポート回路40a,40b,40cと、物理層制御回路110と、インタフェース回路120を有している。
ポート回路40cは、他のポート回路40a,40bと同様の構成を有している。
As shown in FIG. 13, the
The
物理層制御回路110は、図2に示す物理層制御回路50と同様に、データ再同期部51、シリアルパラレル変換部53、パラレルシリアル変換部54、選択回路55,56を有している。更に、物理層制御回路110は、ポート回路40a,40b,40cに対応する3つのレジスタ111a,111b,111c、アービトレーション制御部112、SelfIDパケット生成部(パケット生成部)113を有している。
Similar to the physical
第1のレジスタ111aには、第1のポート回路40aの接続状態に対応する接続状態情報が、上位の回路(例えば、処理装置全体を制御する制御回路)からインタフェース回路120を介して格納される。接続状態情報は、ポート回路40aが受信装置のポート接続された場合には例えば「1」の情報、ポート回路40aが受信装置に含まれる他の処理装置に接続されている場合には例えば「0」の情報である。
The
同様に、第2のレジスタ111bには、第2のポート回路40bの接続状態に対応する接続状態情報が格納される。また、第3のレジスタ111cには、第3のポート回路40cの接続状態に対応する接続状態情報が格納される。
Similarly, the second register 111b stores connection state information corresponding to the connection state of the
アービトレーション制御部112は、各レジスタ111a〜111cに格納された接続状態情報を読み出し、対応する各ポート回路40a〜40cの接続状態を判定する。そして、アービトレーション制御部112は、各ポート回路40a〜40cの接続状態(外部接続,内部接続)と、ネットワークにおける各ポート回路40a〜40cの接続状態(親ポート、子ポート、非接続)に基づいて、装置IDを設定する。
The arbitration control unit 112 reads the connection state information stored in each of the
パケット生成部113は、SelfIDパケット抽出部(パケット抽出部)114とChildポート数演算部(ポート数演算部)115を有している。パケット抽出部114は、シリアルパラレル変換部53から出力されるパラレルデータから接続ポート数を抽出してポート数演算部115に出力する。接続ポート数は、受信したセルフIDパケット(self−ID packet)に含まれるポートの状態を示すフィールドのうち、アクティブなフィールドの数である。ポート数演算部115は、パケット抽出部114から出力されるポート数に基づいて、自装置が含まれる装置が持つポート数を算出する。
The
例えば、図16(a)に示すように、1つの装置(受信装置)130は3つの装置(処理装置)A,B,Cを有し、各装置A〜Cは図13に示すコントローラ100を有している。従って、各装置A〜Cはそれぞれ、3つのポートを持つ。そして、装置A〜Cを含む受信装置130は、各装置A〜Cが持つポートのうち、外部接続状態に設定されたポートを持つ。例えば、図16(a)に示す受信装置130は、4つのポートを持つ装置として認識されなければならない。このため、コントローラ100のポート数演算部115は、自己識別のフェーズにおいて送信されるセルフIDパケットに基づいて、自装置が含まれる装置のポート数を算出する。
For example, as shown in FIG. 16A, one device (receiving device) 130 includes three devices (processing devices) A, B, and C, and each of the devices A to C includes the
図15に示すように、セルフIDパケットSPは、先頭パケットSP1と、2つの連結パケットSP2,SP3を含む。なお、連結パケットの数は、セルフIDパケットを送信する装置が持つポートの数に依存する。ネットワークにおいて、最大4個のパケット(先頭パケットと3個の連結パケット)が送信される。 As shown in FIG. 15, the self ID packet SP includes a head packet SP1 and two concatenated packets SP2 and SP3. Note that the number of concatenated packets depends on the number of ports of the device that transmits the self ID packet. In the network, a maximum of four packets (first packet and three concatenated packets) are transmitted.
各パケットSP1〜SP3の先頭の「10」は、当該パケットがセルフIDパケットSPであることを示す。先頭パケットSP1には、送信元の物理IDを示すphy_ID(physical_ID)、リンク層とトランザクション層がアクティブであるか否かを示すL(link_active)等のフィールドが設けられている。また、先頭パケットSP1には、現在のPHY_Configuration.gap_countの値を示すgap_cnt(gap_count)、転送スピード能力を示すSP(PHY_SPEED)等のフィールドが設けられている。また、先頭パケットSP1には、ブリッジ能力を示すbrdg(bridge)、バス又はアイソクロナス・リソースマネージャ候補を示すc(CONTENDER)、パワークラスを示すpwr(POWER_CLASS)、ポートの接続状態を示すp0〜p2(NPORT)等のフィールドが設けられている。さらに、先頭パケットSP1には、バスリセットを発効したノードであることを示すi(initiated_reset)、「1」の場合にセルフIDパケットSPが続くことを示すm(more_packets)等のフィールドが設けられている。連結パケットSP2には、上記phy_ID、Extended self−ID packet Sequence numberを示すn、「0」に設定されるReservedビットであるrsv、ポートの接続状態を示すp3〜p10、上記m等のフィールドが設けられている。連結パケットSP3には、phy_IDフィールド、nフィールド、rsvフィールド、ポートの接続状態を示すp11〜p15フィールド、等が設けられている。 “10” at the head of each of the packets SP1 to SP3 indicates that the packet is a self ID packet SP. The head packet SP1 is provided with fields such as phy_ID (physical_ID) indicating the physical ID of the transmission source and L (link_active) indicating whether the link layer and the transaction layer are active. In addition, the current packet PHY_Configuration. Fields such as gap_cnt (gap_count) indicating the value of gap_count and SP (PHY_SPEED) indicating transfer speed capability are provided. Further, the head packet SP1 includes a bridg (bridge) indicating a bridge capability, c (CONTENTER) indicating a bus or isochronous resource manager candidate, pwr (POWER_CLASS) indicating a power class, and p0 to p2 (NPORT) indicating a port connection state. ) Etc. are provided. Further, the first packet SP1 is provided with fields such as i (initiated_reset) indicating that the node has issued the bus reset, and m (more_packets) indicating that the self-ID packet SP continues in the case of “1”. Yes. The concatenated packet SP2 is provided with fields such as phy_ID, n indicating an extended self-ID packet sequence number, rsv which is a reserved bit set to “0”, p3 to p10 indicating a port connection state, and m described above. It has been. The concatenated packet SP3 is provided with a phy_ID field, an n field, an rsv field, a p11 to p15 field indicating a connection state of ports, and the like.
セルフIDパケットSPのp0〜p15フィールドには、ポートの状態に応じてアクティブ(Active)状態を示すデータ(「10」又は「11」)が格納される。図13に示すパケット抽出部114は、セルフIDパケットSPのp0〜P15フィールドを抽出し、このアクティブ状態であるポートの数をポート数演算部115に出力する。
Data (“10” or “11”) indicating an active state is stored in the p0 to p15 fields of the self ID packet SP according to the port state. The
ポート数演算部115は、図14に示すフローチャートに従って動作し、ポートの数を算出する。そして、パケット生成部113は、算出されたポート数の数だけアクティブ状態(「11」)に設定したp0〜p15フィールドを含むセルフIDパケットを生成する。
The port
次に、ポート数演算部115が実行するポート数演算処理を説明する。
図14に示すように、ポート数Ch_Port_Numに「0」をセットする(ステップ141)。
Next, the port number calculation process executed by the port
As shown in FIG. 14, “0” is set to the number of ports Ch_Port_Num (step 141).
次いで、図13に示すアービトレーション制御部112が出力する受信信号(SelfID_RX)が「1」か否かを判定する(ステップ142)。受信信号(SelfID_RX)は、他ノードからセルフIDパケットを受信したことを示す。従って、セルフIDパケットを受信するまで待機する。 Next, it is determined whether or not the reception signal (SelfID_RX) output from the arbitration control unit 112 shown in FIG. 13 is “1” (step 142). The reception signal (SelfID_RX) indicates that a self ID packet has been received from another node. Therefore, it waits until a self ID packet is received.
セルフIDパケットを受信すると、図13に示すパケット抽出部114から出力される接続ポート数が「1」か否かを判定する(ステップ143)。接続ポート数が「1」の場合(判定YES)、ポート数演算部115は、ポート数Ch_Port_Numに「1」を加算し(ステップ144)、ステップ142へ移る。
When the self ID packet is received, it is determined whether or not the number of connection ports output from the
ステップ143において、接続ポート数が「1」ではない場合(判定NO)、ポート数演算部115は、接続ポート数が「3」以上か否かを判定する(ステップ145)。接続ポート数が「3」以上の場合(判定YES)、接続ポート数から「2」を減算した値をポート数Ch_Port_Numから減算し、ステップ142へ移る。また、ステップ145において、接続ポート数が「3」以上ではない場合(判定NO)、ステップ142へ移る。
If the number of connection ports is not “1” in step 143 (determination NO), the port
次に、ネットワークにおける各装置の動作を説明する。
[接続例4]
図16(a)に示すように、受信装置130は装置1〜4と接続されている。装置1〜4は、例えば送信装置である。装置1はルートノードである。受信装置130は装置(処理装置)A〜Cを有し、各装置A〜Cはそれぞれ、図13に示すコントローラ100を含む。
Next, the operation of each device in the network will be described.
[Connection example 4]
As illustrated in FIG. 16A, the receiving
装置Aは、装置1に接続されたポート(外部接続状態)と、装置4に接続されたポート(外部接続状態)と、装置Bに接続されたポート(内部接続状態)を有している。装置Bは、装置Aに接続されたポート(内部接続状態)と、非接続状態のポート(外部接続状態)と、装置Cに接続されたポート(内部接続状態)を有している。装置Cは、装置Bに接続されたポート(内部接続状態)と、装置4に接続されたポート(外部接続状態)と、装置2に接続されたポート(外部接続状態)を有している。 Device A has a port connected to device 1 (external connection state), a port connected to device 4 (external connection state), and a port connected to device B (internal connection state). The device B has a port connected to the device A (internal connection state), a non-connected port (external connection state), and a port connected to the device C (internal connection state). The device C has a port connected to the device B (internal connection state), a port connected to the device 4 (external connection state), and a port connected to the device 2 (external connection state).
ツリー識別シーケンスにおいて、各装置1〜4,A〜Cのポートの親子関係が決定され、装置1はルートノードに決定される。尚、以下の説明に対応する図において、親ポートを単に「親」、子ポートを単に「子」と表記する。また、装置Bにおいて、便宜上、非接続状態のポートに対して「子」と表記する。
In the tree identification sequence, the parent-child relationships of the ports of the
図16(a)に示すように、ルートノードに決定した装置1は、子ポートからGrant信号を出力する。装置Aは、図5に示すフローチャートに従って、Identifyが完了していない最も小さなポート番号の子ポート(例えば、装置Bに接続された子ポート)にGrant信号を出力する。装置Bは、Identifyが完了していない子ポートにGrant信号を出力する。装置Cは、Identifyが完了していない最も小さなポート番号の子ポート(例えば、装置2に接続された子ポート)にGrant信号を出力する。なお、図示しないが、装置Aは、図5に示すフローチャートに従って、上記以外のIdentifyが完了していない子ポート(装置3が接続された子ポート)にIdle信号を出力する。同様に、装置Cは、上記以外のIdentifyが完了していない子ポート(装置4が接続された子ポート)にIdle信号を出力する。
As shown in FIG. 16A, the
図16(b)に示すように、装置2は、パケットの先頭を示すData_Prefix信号(D_prefixと表記)を出力する。装置C,B,Aは、D_prefix信号を転送する。また、装置Cと装置Aは、D_prefix信号を、装置4と装置3にそれぞれ出力する。
As shown in FIG. 16B, the
次いで、図16(c)に示すように、装置2は、セルフIDパケットの数をカウントしたカウント値に従って、図16(c)に示すように、カウント値を設定した装置IDを含むセルフIDパケット(SelfID−P)を親ポートから送信し、装置ID(=0)を確定する。装置Cは、ID=0のセルフIDパケット(SelfID−P)を、装置Bと装置4に送信する。装置Bは、ID=0のセルフIDパケット(SelfID−P)を装置Aに送信する。装置Aは、ID=0のセルフIDパケット(SelfID−P)を、装置1と装置3に送信する。
Next, as shown in FIG. 16 (c), the
次いで、図16(d)に示すように、装置2は、セルフIDの完了を示すIdent_done信号(Ident_Dと表記)を親ポートから出力する。装置Cは、Ident_D信号を受信した子ポートを、Identifyが完了したポートとして設定し、図4に示す状態S3へ遷移する。装置A,Bは、図4に示す状態S0へ遷移する。
Next, as illustrated in FIG. 16D, the
次いで、図17(a)に示すように、装置1は、Grant信号を出力する。装置A,BはGrant信号を転送する。装置Cは、親ポートからGrant信号を受信すると図4に示す状態S1へ遷移する。そして、装置Cは、図5に示すフローチャートに従って、Identifyが完了している子ポートから装置2にD_prefix信号を出力する。また、装置Cは、Identifyが完了していない子ポートから装置4にGrant信号を出力する。
Next, as illustrated in FIG. 17A, the
装置4は、装置2と同様に、図17(b)に示すように、D_prefix信号を出力する。装置C,B,AはD_prefix信号を転送する。次いで、装置4は、図17(c)に示すように、装置ID(=1)を含むセルフIDパケットを送信する。装置C,B,AはセルフIDパケットを転送する。次いで、装置4は、図17(d)に示すように、Ident_D信号を送信する。装置Cは、Identify信号を受信した子ポートを、Identifyが完了したポートとして設定する。
As with the
次いで、図18(a)に示すように、装置1はGrant信号を出力する。装置A,BはGrant信号を転送する。装置Cは、Grant信号に応答して図4に示す状態S1へ遷移し、図5に示すフローチャートに従って、Identifyが完了した子ポートから装置2と装置4にD_prefix信号を出力する。
Next, as shown in FIG. 18A, the
次いで、装置Cは、すべての子ポートのIdentifyが完了し、親ポートが内部接続状態であるため、図5に示すフローチャートに従って、図4に示す状態S5へ遷移する。状態S5へ遷移した装置Cは、図6に示すフローチャートに従って、図18(b)に示すように、親ポートから装置Bにキャンセル信号(Cancel)を送信する。 Next, the device C completes identification of all the child ports, and the parent port is in the internal connection state. Therefore, the device C transits to the state S5 shown in FIG. The device C that has transitioned to the state S5 transmits a cancel signal (Cancel) from the parent port to the device B as illustrated in FIG. 18B according to the flowchart illustrated in FIG.
装置Bは、図18(a)に示すGrant信号の受信により、状態S1にある。キャンセル信号(Cancel)を受信した装置Bは、図5に示すフローチャート(ステップ76,77)に従って、子ポートをIdentify完了に設定し、図4に示す状態S1から状態S3へと遷移する。更に、装置Bは、状態S3から状態S0,状態S1を経て状態S5へと遷移し、装置Aにキャンセル信号(Cancel)を出力する。 The device B is in the state S1 by receiving the Grant signal shown in FIG. The device B that has received the cancel signal (Cancel) sets the child port to “Identify complete” according to the flowchart (steps 76 and 77) shown in FIG. 5, and transitions from the state S1 shown in FIG. 4 to the state S3. Further, the device B transits from the state S3 to the state S5 through the states S0 and S1, and outputs a cancel signal (Cancel) to the device A.
このように、装置C,Bは、装置IDを持たない(ID=non)装置に確定する。
キャンセル信号(Cancel)を受信した装置Aは、図4に示す状態S1から状態S3へと遷移し、更に状態S0を経て状態S1へ遷移する。状態S1へ遷移した装置Aは、図18(b)に示すように、装置3にGrant信号を出力する。
As described above, the devices C and B are determined as devices having no device ID (ID = non).
The device A that has received the cancel signal (Cancel) transits from the state S1 shown in FIG. 4 to the state S3, and further transits to the state S1 via the state S0. The device A that has transitioned to the state S1 outputs a Grant signal to the
Grant信号を受信した装置3は、図18(c)に示すように、D_prefix信号を出力する。次いで、装置3は、図18(d)に示すように、装置ID(=2)を含むセルフIDパケット(SelfID−P)を出力する。更に、装置3は、図19(a)に示すように、Ident_D信号を出力する。装置Aは、Ident_Dを受信した子ポートを、Identifyが完了した子ポートに設定する。
The
次いで、図19(b)に示すように、装置1は、Grant信号を出力する。Grant信号を受信した装置Aは、Identifyが完了した子ポートからD_prefix信号を出力する。
Next, as illustrated in FIG. 19B, the
次いで、図19(c)に示すように、装置1は、Grant信号を出力する。Grant信号を受信した装置Aは、図4に示す状態S1から状態S4へと遷移し、装置1にD_prefix信号を出力する。次いで、装置Aは、図19(d)に示すように、装置ID(=3)を含むセルフIDパケット(SelfID−P)を送信する。次いで、装置Aは、図20(a)に示すように、Ident_D信号を装置1に出力する。装置1は、Ident_D信号を受信した子ポートを、Identifyが完了した子ポートに設定する。
Next, as illustrated in FIG. 19C, the
次いで、装置1は、図20(b)に示すように、D_prefix信号を出力する。次いで、装置1は、図20(c)に示すように、装置ID(=4)を含むセルフIDパケット(SelfID−P)を送信する。
Next, the
上記の処理により、図20(d)に示すように、ネットワークに含まれる各装置の装置IDが確定する。受信装置130に含まれる装置A〜Cのうち、装置Aが装置ID(=3)を取得し、装置B及び装置Cは装置IDを取得しない(ID=non)。従って、受信装置130は、装置Aが取得した装置ID(=3)を持つ装置として、ネットワーク上の他の装置1〜4に認識される。
With the above processing, as shown in FIG. 20D, the device IDs of the respective devices included in the network are determined. Among the devices A to C included in the receiving
また、装置IDを取得した装置Aは、図13に示すパケット生成部113(ポート数演算部115)により算出されたポート数(=4)に応じて、図15に示すp0〜p3フィールドにアクティブ状態を示すデータ(「11」)を格納したセルフIDパケットを送信する。従って、受信装置130は、4つのポートを持つ装置として、ネットワーク上の他の装置に認識される。
The device A that has acquired the device ID is active in the p0 to p3 fields shown in FIG. 15 according to the number of ports (= 4) calculated by the packet generation unit 113 (port number calculation unit 115) shown in FIG. A self ID packet storing data indicating the state (“11”) is transmitted. Accordingly, the receiving
[接続例5]
図21(a)に示すように、受信装置130は装置1〜3と接続されている。受信装置130は装置(処理装置)A〜Cを有し、各装置A〜Cはそれぞれ、図13に示すコントローラ100を含む。
[Connection example 5]
As illustrated in FIG. 21A, the receiving
装置Aは、装置1に接続されたポート(外部接続状態)と、非接続状態のポート(外部接続状態)と、装置Bに接続されたポート(内部接続状態)を有している。装置Bは、装置Aに接続されたポート(内部接続状態)と、装置3に接続されたポート(外部接続状態)と、装置Cに接続されたポート(内部接続状態)を有している。装置Cは、装置Bに接続されたポート(内部接続状態)と、非接続状態のポート(外部接続状態)と、装置2に接続されたポート(外部接続状態)を有している。 Device A has a port connected to device 1 (external connection state), a non-connected port (external connection state), and a port connected to device B (internal connection state). Device B has a port connected to device A (internal connection state), a port connected to device 3 (external connection state), and a port connected to device C (internal connection state). The device C includes a port connected to the device B (internal connection state), a non-connected port (external connection state), and a port connected to the device 2 (external connection state).
ツリー識別シーケンスにおいて、各装置1〜3,A〜Cのポートの親子関係が決定され、装置Aはルートノードに決定されている。尚、装置A,Cにおいて、便宜上、非接続状態のポートに対して「子」と表記する。
In the tree identification sequence, the parent-child relationships of the ports of the
装置Aは、子ポートからGrant信号を出力する。装置B,CはGrantを転送する。Grant信号を受信した装置2は、図21(b)に示すように、D_prefix信号を送信する。装置C,B,AはD_prefix信号を転送する。装置Bは装置3にD_prefix信号を出力する。次いで、装置2は、図21(c)に示すように、装置ID(=0)を含むセルフIDパケットを送信する。次いで、装置2は、図21(d)に示すように、Ident_D信号を出力する。装置Cは、Ident_D信号を受信した子ポートを、Identifyが完了した子ポートに設定する。
Device A outputs a Grant signal from the child port. Devices B and C transfer Grant. The
次いで、図22(a)に示すように、装置Aは、Grant信号を出力する。装置BはGrant信号を転送する。装置Cは、Identifyが完了した子ポートにD_prefix信号を出力する。また、装置Cは、図22(b)に示すように、親ポートにキャンセル信号(Cancel)を出力する。これにより、装置Cは、装置IDを持たない(ID=non)装置に確定する。 Next, as shown in FIG. 22A, the device A outputs a Grant signal. Device B forwards the Grant signal. The device C outputs a D_prefix signal to the child port for which the identify has been completed. Device C outputs a cancel signal (Cancel) to the parent port as shown in FIG. As a result, the device C is determined as a device having no device ID (ID = non).
キャンセル信号を受信した装置Bは、Identifyの完了していない子ポートにGrant信号を出力する。Grant信号を受信した装置3は、図22(c)に示すように、D_prefix信号を出力する。次いで、装置3は、図22(d)に示すように、装置ID(=1)を含むセルフIDパケットを送信する。次いで、装置3は、図23(a)に示すように、Ident_D信号を出力する。装置Bは、Ident_D信号を受信した子ポートを、Identifyの完了した子ポートに設定する。
The device B that has received the cancel signal outputs a Grant signal to a child port for which Identity has not been completed. The
次いで、図23(b)に示すように、装置AはGrant信号を出力する。装置Bは、図4に示す状態S5へ遷移し、図23(c)に示すように、親ポートにキャンセル信号(Cancel)を出力する。これにより、装置Bは、装置IDを持たない(ID=non)装置に確定する。 Next, as shown in FIG. 23B, the device A outputs a Grant signal. The device B transitions to the state S5 shown in FIG. 4, and outputs a cancel signal (Cancel) to the parent port as shown in FIG. 23 (c). As a result, the device B is determined as a device having no device ID (ID = non).
次いで、装置Aは、装置1にGrant信号を出力する。装置1は、図23(d)に示すように、D_prefix信号を出力する。次いで、装置1は、図24(a)に示すように、装置ID(=2)を含むセルフIDパケット(SelfID−P)を送信する。次いで、装置1は、図24(b)に示すように、Ident_D信号を出力する。装置Aは、Ident_D信号を受信した子ポートを、Identifyの完了した子ポートに設定する。
Next, the device A outputs a Grant signal to the
次いで、装置Aは、図24(c)に示すように、D_prefix信号を出力する。次いで、装置Aは、図24(d)に示すように、装置ID(=3)を含むセルフIDパケット(SelfID−P)を送信する。 Next, apparatus A outputs a D_prefix signal as shown in FIG. Next, as shown in FIG. 24D, the device A transmits a self ID packet (SelfID-P) including the device ID (= 3).
上記の処理におり、図25に示すように、ネットワークに含まれる各装置の装置IDが確定する。受信装置130のうち、ルートノードに決定した装置Aは装置ID(=3)を取得し、装置B及び装置Cは装置IDを取得しない(ID=non)。従って、受信装置130は、装置Aが取得した装置ID(=3)を持つ装置として、ネットワーク上の他の装置1〜4に認識される。
In the above processing, as shown in FIG. 25, the device ID of each device included in the network is determined. Among the receiving
[ポート数の演算例]
次に、受信装置130が持つポート数の算出について説明する。
図13に示すポート数演算部115は、他の装置から出力されたセルフIDパケットの受信回数をカウントする。
[Operation example of the number of ports]
Next, calculation of the number of ports that the receiving
The
例えば、図16(a)に示すように接続されたネットワークにおいて、ポート数演算部115は、装置2〜4が出力したセルフIDパケットに基づいて、ポート数Ch_Port_Numが「3」となる。従って、パケット生成部113は、図15に示すp0〜p3フィールドにアクティブ状態を示すデータを格納したセルフIDパケットを生成する。
For example, in the network connected as shown in FIG. 16A, the port
また、図21(a)に示すように接続されたネットワークにおいて、ポート数演算部115は、装置2,3が出力したセルフIDパケットに基づいて、ポート数Ch_Port_Numが「2」となる。従って、パケット生成部113は、図15に示すp0〜p2フィールドにアクティブ状態を示すデータを格納したセルフIDパケットを生成する。
In the network connected as shown in FIG. 21A, the port
また、図26に示すように、ネットワークは、装置1〜8と受信装置130を含む。各装置1〜8が送信するセルフIDパケット、接続されたポートの数に対応する情報を含む。従って、装置1,2,5,7,8はポート数=1であり、装置3,4はポート数=2であり、装置6はポート数=3である。従って、図14に示すフローチャートにおいて、ステップ144の処理を5回実行し、ステップ146の処理を1回実行する。その結果、ポート数Ch_Port_Numは「4」(=(+1)×5ー(3−2)×1)となる。
Further, as illustrated in FIG. 26, the network includes
なお、図26に示すネットワークの場合、ルートノードに決定した装置Aは、「8」の装置IDを取得する。従って、装置Aが出力するセルフIDパケットSPは、図27に示す先頭パケットSP1と連結パケットSP2を含む。先頭パケットSP1は、Phy_IDフィールドに「001000」が格納され、p0〜p2フィールドに「11」が格納され、mフィールドに「1」が格納されている。連結パケットSP2は、Phy_IDフィールドに「001000」が格納され、p3フィールドに「11」が格納され、mフィールドに「0」が格納されている。 In the case of the network shown in FIG. 26, the device A determined as the root node acquires the device ID “8”. Accordingly, the self ID packet SP output by the device A includes the head packet SP1 and the concatenated packet SP2 shown in FIG. In the first packet SP1, “001000” is stored in the Phy_ID field, “11” is stored in the p0 to p2 fields, and “1” is stored in the m field. In the concatenated packet SP2, “001000” is stored in the Phy_ID field, “11” is stored in the p3 field, and “0” is stored in the m field.
以上記述したように、本実施形態によれば、第一実施形態の効果に加え、以下の効果を奏する。
(5)3つのポートを持つ処理装置(装置A〜C)を有する受信装置130において、1つの処理装置が装置IDを取得し、他の2つの処理装置は装置IDを取得しない。従って、受信装置130は、ネットワークに含まれる他の装置1〜4において、1つの装置IDを取得した装置として認識される。このため、例えばバスリセットが発生してから通信可能な状態となるまでの復帰時間を短くすることができる。
As described above, according to this embodiment, in addition to the effects of the first embodiment, the following effects can be obtained.
(5) In the receiving
(6)セルフIDパケット生成部113は、パケット抽出部114と、ポート数演算部115を有する。パケット抽出部114は、受信したセルフIDパケットからポート数を抽出する。ポート数演算部115は、パケット抽出部114にて抽出されたポート数に基づいて、受信装置130が持つポート数を算出する。そして、パケット生成部113は、算出されたポート数に応じてアクティブに設定されたp0〜p15フィールドを含むセルフIDパケットを生成する。従って、複数の処理装置を有する受信装置130が持つポート数を容易に算出することができる。
(6) The self ID
(他の実施形態)
なお、上記実施形態は、これを適宜変更した以下の態様にて実施することもできる。
・上記第一実施形態において、1つ又は3つ以上のポート回路を有する装置としてもよい。また、第二実施形態において、2つ以下又は4つ以上のポート回路を有する装置としてもよい。
(Other embodiments)
In addition, the said embodiment can also be implemented in the following aspects which changed this suitably.
In the first embodiment, a device having one or three or more port circuits may be used. In the second embodiment, it may be a device having two or less or four or more port circuits.
・上記各実施形態において、受信装置に含まれる処理装置の数を、2つ又は4つ以上に変更してもよい。また、各処理装置の接続は適宜変更されてもよい。例えば、図16(a)に示す受信装置130において、装置Bをブランチノードとする、つまり装置Bに3つの処理装置を接続してもよい。
In each of the above embodiments, the number of processing devices included in the receiving device may be changed to two or four or more. Moreover, the connection of each processing apparatus may be changed as appropriate. For example, in the receiving
・上記各実施形態におけるネットワーク内のノード数に特に制限はない。
・上記各実施形態では、複数の装置A〜Cを含む受信装置に具体化したが、送信装置や送受信装置に具体化してもよい。
-There is no restriction | limiting in particular in the number of nodes in the network in each said embodiment.
In each of the above embodiments, the receiving device includes a plurality of devices A to C. However, the receiving device may be specified as a transmitting device or a transmitting / receiving device.
・上記実施形態では、送信装置11〜14,A〜CをIEEE1394規格に準拠した装置に具体化したが、これに限らず、例えばIDB−1394規格やUSB規格に準拠した装置に具体化してもよい。
In the above embodiment, the
上記各実施形態に関し、以下の付記を開示する。
(付記1)
外部装置と接続される通信装置であって、
前記外部装置とともにネットワークに含まれる複数の内部装置を有し、
前記複数の内部装置のうちの1つの内部装置は、前記外部装置と接続されるポートと、前記複数の内部装置のうちの他の内部装置と接続されたポートを有し、
前記複数の内部装置はそれぞれ、
トポロジ構築後の自己識別シーケンスにおいて、前記トポロジ構築によって決定されたポートの親子関係と、前記決定されたポートに対応する接続情報とに基づいて、外部接続の親ポートから許可信号を受信した場合、セルフIDパケットを送信して装置IDを取得し、内部接続の親ポートから前記許可信号を受信した場合、前記親ポートにキャンセル信号を出力し、前記自己識別シーケンスを終了する物理層制御回路を有することを特徴とする通信装置。
(付記2)
前記物理層制御回路は、
前記キャンセル信号を受信した子ポートを、識別の完了した子ポートに設定する、ことを特徴とする付記1に記載の通信装置。
(付記3)
前記複数の内部装置のうち、全てのポートが子ポートに決定した前記内部装置は、全ての子ポートの識別が完了した場合に、前記セルフIDパケットを送信して装置IDを取得する、ことを特徴とする付記1又は2に記載の通信装置。
(付記4)
受信したセルフIDパケットからポート数を抽出するパケット抽出部と、
前記パケット抽出部にて抽出されたポート数に基づいて、前記外部装置と接続されるポート数を算出するポート数演算部と、
を含み、
前記ポート数演算部にて算出されたポート数に応じてポートを示すフィールドにアクティブに設定した前記セルフIDパケットを生成するパケット生成部を備えたことを特徴とする付記1〜3のうちの何れか一項に記載の通信装置。
(付記5)
前記ポート数演算部は、
「3」以上のポート数から「2」を減算した結果を、ポート数が「1」のセルフIDパケットの数から減算して前記外部装置と接続されるポート数を算出する、ことを特徴とする付記4に記載の通信装置。
(付記6)
外部装置と接続される通信装置であって、
前記外部装置とともにネットワークに含まれ、前記ネットワークのトポロジ構築によって親子関係が決定されたポートを持ち、前記決定されたポートに対応する接続情報が設定された複数の内部装置を有し、
前記複数の内部装置のうち、親ポートの接続情報が外部接続に設定された前記内部装置は、前記親ポートから許可信号を受信し、セルフIDパケットを送信して装置IDを取得し、
前記複数の内部装置のうち、親ポートの接続情報が内部接続に設定された前記内部装置は、前記親ポートから許可信号を受信し、前記親ポートにキャンセル信号を出力し、自己識別シーケンスを終了する、
ことを特徴とする通信装置。
(付記7)
トポロジ構築後の自己識別シーケンスにおいて、前記トポロジ構築によって決定されたポートの親子関係と、前記決定されたポートに対応する接続情報とに基づいて、外部接続の親ポートから許可信号を受信した場合、セルフIDパケットを送信して装置IDを取得し、内部接続の親ポートから前記許可信号を受信した場合、前記親ポートにキャンセル信号を出力し、装置ID割り当てシーケンスを終了する物理層制御回路を有することを特徴とする半導体装置。
(付記8)
トポロジ構築後の自己識別シーケンスにおいて、
前記トポロジ構築によって決定されたポートの親子関係と、前記決定されたポートに対応する接続情報とに基づいて、
外部接続の親ポートから許可信号を受信した場合、セルフIDパケットを送信して装置IDを取得して前記自己識別シーケンスを終了し、
内部接続の親ポートから前記許可信号を受信した場合、前記親ポートにキャンセル信号を出力し、前記自己識別シーケンスを終了する、
ことを特徴とする装置IDの設定方法。
The following notes are disclosed regarding the above embodiments.
(Appendix 1)
A communication device connected to an external device,
A plurality of internal devices included in the network together with the external devices;
One internal device of the plurality of internal devices has a port connected to the external device and a port connected to another internal device of the plurality of internal devices,
Each of the plurality of internal devices is
In the self-identification sequence after topology construction, when a permission signal is received from the parent port of the external connection based on the parent-child relationship of the ports determined by the topology construction and the connection information corresponding to the determined port, A physical layer control circuit that transmits a self ID packet to acquire a device ID and outputs a cancel signal to the parent port when the permission signal is received from an internally connected parent port, and ends the self identification sequence; A communication device.
(Appendix 2)
The physical layer control circuit is
The communication apparatus according to
(Appendix 3)
Among the plurality of internal devices, the internal device, in which all ports are determined as child ports, transmits the self ID packet and acquires a device ID when identification of all the child ports is completed. The communication apparatus according to
(Appendix 4)
A packet extraction unit that extracts the number of ports from the received self-ID packet;
Based on the number of ports extracted by the packet extraction unit, a port number calculation unit that calculates the number of ports connected to the external device;
Including
Any one of
(Appendix 5)
The port number calculation unit includes:
Calculating the number of ports connected to the external device by subtracting the result of subtracting “2” from the number of ports equal to or greater than “3” from the number of self ID packets having the number of ports of “1”. The communication apparatus according to
(Appendix 6)
A communication device connected to an external device,
A plurality of internal devices that are included in the network together with the external device, have ports whose parent-child relationship is determined by topology construction of the network, and in which connection information corresponding to the determined ports is set;
Among the plurality of internal devices, the internal device whose parent port connection information is set to external connection receives a permission signal from the parent port, transmits a self ID packet to acquire a device ID,
Among the plurality of internal devices, the internal device whose parent port connection information is set to internal connection receives a permission signal from the parent port, outputs a cancel signal to the parent port, and ends the self-identification sequence. To
A communication device.
(Appendix 7)
In the self-identification sequence after topology construction, when a permission signal is received from the parent port of the external connection based on the parent-child relationship of the ports determined by the topology construction and the connection information corresponding to the determined port, A physical layer control circuit that transmits a self-ID packet to acquire a device ID and outputs a cancel signal to the parent port when the permission signal is received from a parent port of an internal connection, and ends the device ID assignment sequence A semiconductor device.
(Appendix 8)
In the self-identification sequence after topology construction,
Based on the parent-child relationship of the ports determined by the topology construction and the connection information corresponding to the determined ports,
When a permission signal is received from the parent port of the external connection, a self ID packet is transmitted to obtain a device ID, and the self identification sequence is terminated.
When the permission signal is received from the parent port of the internal connection, a cancel signal is output to the parent port, and the self-identification sequence is terminated.
A method for setting a device ID.
11,12 送信装置(外部装置)
13 受信装置(通信装置)
16,17 表示装置(出力装置)
18 スピーカ(出力装置)
21〜23 処理装置(内部装置、半導体装置)
30,100 コントローラ
50,110 物理層制御回路
57,113 パケット生成部
114 パケット抽出部
115 ポート数演算部
P0,P1 ポート
SP セルフIDパケット
11, 12 Transmitting device (external device)
13 Receiving device (communication device)
16, 17 Display device (output device)
18 Speaker (output device)
21-23 Processing equipment (internal equipment, semiconductor equipment)
30, 100
Claims (6)
前記外部装置とともにネットワークに含まれる複数の内部装置を有し、
前記複数の内部装置のうちの1つの内部装置は、前記外部装置と接続されるポートと、前記複数の内部装置のうちの他の内部装置と接続されたポートを有し、
前記複数の内部装置はそれぞれ、
トポロジ構築後の自己識別シーケンスにおいて、前記トポロジ構築によって決定されたポートの親子関係と、前記決定されたポートに対応する接続情報とに基づいて、外部接続の親ポートから許可信号を受信した場合、セルフIDパケットを送信して装置IDを取得し、内部接続の親ポートから前記許可信号を受信した場合、前記親ポートにキャンセル信号を出力し、前記自己識別シーケンスを終了する物理層制御回路を有することを特徴とする通信装置。 A communication device connected to an external device,
A plurality of internal devices included in the network together with the external devices;
One internal device of the plurality of internal devices has a port connected to the external device and a port connected to another internal device of the plurality of internal devices,
Each of the plurality of internal devices is
In the self-identification sequence after topology construction, when a permission signal is received from the parent port of the external connection based on the parent-child relationship of the ports determined by the topology construction and the connection information corresponding to the determined port, A physical layer control circuit that transmits a self ID packet to acquire a device ID and outputs a cancel signal to the parent port when the permission signal is received from an internally connected parent port, and ends the self identification sequence; A communication device.
前記キャンセル信号を受信した子ポートを、識別の完了した子ポートに設定する、ことを特徴とする請求項1に記載の通信装置。 The physical layer control circuit is
2. The communication apparatus according to claim 1, wherein the child port that has received the cancel signal is set as a child port that has been identified.
前記パケット抽出部にて抽出されたポート数に基づいて、前記外部装置と接続されるポート数を算出するポート数演算部と、
を含み、
前記ポート数演算部にて算出されたポート数に応じてポートを示すフィールドにアクティブに設定した前記セルフIDパケットを生成するパケット生成部を備えたことを特徴とする請求項1〜3のうちの何れか一項に記載の通信装置。 A packet extraction unit that extracts the number of ports from the received self-ID packet;
Based on the number of ports extracted by the packet extraction unit, a port number calculation unit that calculates the number of ports connected to the external device;
Including
The packet generation unit for generating the self ID packet that is set to be active in a field indicating a port according to the number of ports calculated by the port number calculation unit. The communication apparatus as described in any one.
前記トポロジ構築によって決定されたポートの親子関係と、前記決定されたポートに対応する接続情報とに基づいて、
外部接続の親ポートから許可信号を受信した場合、セルフIDパケットを送信して装置IDを取得して前記自己識別シーケンスを終了し、
内部接続の親ポートから前記許可信号を受信した場合、前記親ポートにキャンセル信号を出力し、前記自己識別シーケンスを終了する、
ことを特徴とする装置IDの設定方法。 In the self-identification sequence after topology construction,
Based on the parent-child relationship of the ports determined by the topology construction and the connection information corresponding to the determined ports,
When a permission signal is received from the parent port of the external connection, a self ID packet is transmitted to obtain a device ID, and the self identification sequence is terminated.
When the permission signal is received from the parent port of the internal connection, a cancel signal is output to the parent port, and the self-identification sequence is terminated.
A method for setting a device ID.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011115967A JP5729129B2 (en) | 2011-05-24 | 2011-05-24 | COMMUNICATION DEVICE, SEMICONDUCTOR DEVICE, AND DEVICE ID SETTING METHOD |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011115967A JP5729129B2 (en) | 2011-05-24 | 2011-05-24 | COMMUNICATION DEVICE, SEMICONDUCTOR DEVICE, AND DEVICE ID SETTING METHOD |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012244581A true JP2012244581A (en) | 2012-12-10 |
JP5729129B2 JP5729129B2 (en) | 2015-06-03 |
Family
ID=47465768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011115967A Active JP5729129B2 (en) | 2011-05-24 | 2011-05-24 | COMMUNICATION DEVICE, SEMICONDUCTOR DEVICE, AND DEVICE ID SETTING METHOD |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5729129B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019036768A (en) * | 2017-08-10 | 2019-03-07 | 日立オートモティブシステムズ株式会社 | Semiconductor device and manufacturing method |
CN114416185A (en) * | 2021-12-27 | 2022-04-29 | 深信服科技股份有限公司 | Network port ordering method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001313646A (en) * | 2000-04-27 | 2001-11-09 | Sony Corp | Electronic device and method for controlling state of its physical layer circuit |
JP2004328424A (en) * | 2003-04-25 | 2004-11-18 | Toshiba Corp | Connection controller and control method of electronic device |
-
2011
- 2011-05-24 JP JP2011115967A patent/JP5729129B2/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001313646A (en) * | 2000-04-27 | 2001-11-09 | Sony Corp | Electronic device and method for controlling state of its physical layer circuit |
JP2004328424A (en) * | 2003-04-25 | 2004-11-18 | Toshiba Corp | Connection controller and control method of electronic device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019036768A (en) * | 2017-08-10 | 2019-03-07 | 日立オートモティブシステムズ株式会社 | Semiconductor device and manufacturing method |
CN114416185A (en) * | 2021-12-27 | 2022-04-29 | 深信服科技股份有限公司 | Network port ordering method, device, equipment and storage medium |
CN114416185B (en) * | 2021-12-27 | 2024-04-09 | 深信服科技股份有限公司 | Network port ordering method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
JP5729129B2 (en) | 2015-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6157972A (en) | Apparatus and method for processing packetized information over a serial bus | |
US6122248A (en) | Data transmission system with bus failure recovery | |
US7701855B2 (en) | Communication device, communication system, communication method, communication program and recording medium storing the communication program | |
JP3487768B2 (en) | Signal transmission equipment | |
US20100257400A1 (en) | Network loop healing apparatus and methods | |
KR100746900B1 (en) | Electronic equipment, and method for controlling state of physical layer circuit thereof | |
JP3599048B2 (en) | Data transfer control system, electronic device, program, and data transfer control method | |
TWI445374B (en) | Remote management system and remote management method | |
EP1193914A2 (en) | Data transmission and reception | |
JP5729129B2 (en) | COMMUNICATION DEVICE, SEMICONDUCTOR DEVICE, AND DEVICE ID SETTING METHOD | |
KR101319981B1 (en) | Communication connector enabling to identify communication status independently and communication apparatus comprising the communication connector | |
JP2008522550A (en) | Multirate optical transponder | |
US8559424B2 (en) | Data communication method and communication apparatus | |
JP4040654B2 (en) | Communication control circuit and communication control method | |
JP2008236217A (en) | Flexray network connecting method, flexray network and electronic control unit for flexray network | |
JP2007324681A (en) | Connection apparatus to ieee serial bus | |
JP5618805B2 (en) | COMMUNICATION DEVICE, NETWORK SYSTEM, AND COMMUNICATION METHOD | |
JP4683120B2 (en) | Electronic device and communication method | |
WO2012071870A1 (en) | Optical network unit terminal and passive optical network system | |
KR100336876B1 (en) | A Real-Time Data Communication Device | |
Richter et al. | Architecture and performance of CR4-a transparent communication mean for field buses and LANs | |
KR101343060B1 (en) | Communication connector enabling to identify communication status independently | |
JP2015119297A (en) | Electronic apparatus, control device and communication method | |
JP5347761B2 (en) | Network control method and interface device | |
TWI453605B (en) | Data transmission selection circuit and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140129 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20141028 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20141215 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20150310 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150323 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5729129 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |