JP5088078B2 - Network system and communication device - Google Patents

Network system and communication device Download PDF

Info

Publication number
JP5088078B2
JP5088078B2 JP2007260430A JP2007260430A JP5088078B2 JP 5088078 B2 JP5088078 B2 JP 5088078B2 JP 2007260430 A JP2007260430 A JP 2007260430A JP 2007260430 A JP2007260430 A JP 2007260430A JP 5088078 B2 JP5088078 B2 JP 5088078B2
Authority
JP
Japan
Prior art keywords
frame
node
transmission
mode
data
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 - Fee Related
Application number
JP2007260430A
Other languages
Japanese (ja)
Other versions
JP2009094588A (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.)
Yamaha Corp
Original Assignee
Yamaha 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
Priority to JP2007260430A priority Critical patent/JP5088078B2/en
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to EP08165731A priority patent/EP2045962B1/en
Priority to US12/244,765 priority patent/US7987224B2/en
Priority to DE602008002193T priority patent/DE602008002193D1/en
Priority to EP09170804A priority patent/EP2129039B1/en
Priority to AT09170809T priority patent/ATE503316T1/en
Priority to DE602008005864T priority patent/DE602008005864D1/en
Priority to AT08165731T priority patent/ATE478494T1/en
Priority to DE602008005722T priority patent/DE602008005722D1/en
Priority to EP09170809A priority patent/EP2129040B1/en
Priority to AT09170804T priority patent/ATE504134T1/en
Publication of JP2009094588A publication Critical patent/JP2009094588A/en
Priority to US12/855,277 priority patent/US8560725B2/en
Priority to US12/855,215 priority patent/US8401684B2/en
Application granted granted Critical
Publication of JP5088078B2 publication Critical patent/JP5088078B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、複数のノード間で音響信号の伝送を行うためのネットワークシステム及びこのようなネットワークシステムにおいてノードとして機能する通信装置に関する。 The present invention relates to a network system for transmitting an acoustic signal between a plurality of nodes and a communication device functioning as a node in such a network system .

従来から、複数のノード間で音響信号の伝送を行うためのオーディオネットワークシステムが知られており、コンサート、演劇、音楽製作、構内放送等において用いられている。このようなオーディオネットワークシステムの例としては、以下の非特許文献1,2に記載のような、CobraNet(商標),EtherSound(商標)が知られている。   2. Description of the Related Art Conventionally, an audio network system for transmitting an acoustic signal between a plurality of nodes is known and used in concerts, plays, music production, private broadcasting, and the like. As examples of such an audio network system, CobraNet (trademark) and EtherSound (trademark) as described in Non-Patent Documents 1 and 2 below are known.

「CobraNet(TM)」、[online]、バルコム株式会社、[平成18年3月21日検索]、インターネット<URL:http://www.balcom.co.jp/cobranet.htm>"CobraNet (TM)", [online], Valcom Corporation, [March 21, 2006 search], Internet <URL: http://www.balcom.co.jp/cobranet.htm> Carl Conrad、「EtherSound(TM) in a studio environment」、[online]、Digigram S.A.、[平成18年3月21日検索]、インターネット<URL:http://www.ethersound.com/news/getnews.php?enews_key=101>Carl Conrad, "EtherSound (TM) in a studio environment", [online], Digigram SA, [March 21, 2006 search], Internet <URL: http://www.ethersound.com/news/getnews. php? enews_key = 101>

また、オーディオネットワークシステムには、一般的に、アナログ入力,アナログ出力,デジタル入力,デジタル出力,ミキシング,エフェクト付与,録音再生,リモート制御,あるいはこれらの組み合わせ等の各種機能を有する音響機器を任意に接続できることが要望される。   In addition, in general, an audio network system arbitrarily includes an audio device having various functions such as analog input, analog output, digital input, digital output, mixing, effect addition, recording / playback, remote control, or a combination thereof. It is desired to be able to connect.

しかしながら、このような従来のオーディオネットワークシステムには、以下のような問題があった。
すなわち、例えばCobraNet(商標)においては、バス型のネットワークに複数のノードがそれぞれ作成したフレーム(複数フレーム)を送信するので、フレーム間のギャップが生じて伝送効率が悪いという問題があった。
However, such a conventional audio network system has the following problems.
That is, for example, in CobraNet (trademark), since frames (multiple frames) respectively created by a plurality of nodes are transmitted to a bus type network, there is a problem that gaps between frames occur and transmission efficiency is poor.

また、物理的に伝送可能なチャンネル(ch)数が、ノード間の結線(ネットワークの構成)の変更によって変化するため、フレームの伝送ルートを考慮して、必要なch数の伝送ができるようにシステムを構成しなければならず、設計が難しいという問題があった。
これは、送信元のノードから末端のノードまでのノード数によってデータが届くまでの時間が変わり、かつ、全ノードにデータが届くまで次の通信をしないため、ネットワークを構成するノード数が多いとデータの転送に時間がかかり、帯域をロスする等の理由によるものである。
In addition, since the number of channels (ch) that can be physically transmitted changes due to changes in the connection (configuration of the network) between the nodes, the necessary number of channels can be transmitted in consideration of the frame transmission route. The system had to be configured, and there was a problem that it was difficult to design.
This is because the time until data arrives depends on the number of nodes from the source node to the terminal node, and the next communication is not performed until the data reaches all nodes. This is because data transfer takes time and bandwidth is lost.

また、EtherSound(商標)においては、障害発生時に音切れを防止する対策が取られておらず、ノード間の結線の切断が生じた場合に音声がストップしてしまうという問題があった。フレームに複数のパケットが含まれているため、伝送制御が複雑になる上に、時間当たりで伝送できるデータ量が十分でないという問題もあった。
さらに、CobraNet(商標)の場合と同様、フレームの伝送ルートを考慮して、必要なch数の伝送ができるようにシステムを構成しなければならず、設計が難しいという問題もあった。
In addition, EtherSound (trademark) does not take measures to prevent sound interruption when a failure occurs, and there is a problem that the sound stops when the connection between nodes is disconnected. Since a frame includes a plurality of packets, transmission control is complicated, and there is a problem that the amount of data that can be transmitted per time is not sufficient.
Furthermore, as in the case of CobraNet (trademark), the system must be configured so that the necessary number of channels can be transmitted in consideration of the transmission route of the frame, and there is a problem that the design is difficult.

そこで、本件出願人は、これらの問題を解決する技術として、所定周期で音声伝送フレームを循環させるリング型の伝送経路を有するオーディオネットワークシステムを提案した(特願2006−84253)。
このネットワークシステムにおいては、音声伝送フレーム内に波形データをベタで記録しているため、管理が簡単であり、通信帯域を無駄なく利用して音声伝送を行うことができる。また、音声伝送フレームにシステム内の全ノードを巡回させるため、フレームの伝送ルートを特に意識せずにノード間の結線の変更を簡単に行うことができる。
Therefore, the present applicant has proposed an audio network system having a ring-type transmission path that circulates a voice transmission frame at a predetermined cycle as a technique for solving these problems (Japanese Patent Application No. 2006-84253).
In this network system, waveform data is solidly recorded in a voice transmission frame, so that management is simple and voice transmission can be performed using the communication band without waste. Further, since all the nodes in the system are circulated in the voice transmission frame, the connection between the nodes can be easily changed without paying particular attention to the frame transmission route.

また、このネットワークシステムは、システムを構成可能なノードが接続された場合に、音声伝送フレームの生成を行うマスタノードを自動的に決定し、接続されたノード間で音声信号を伝送するモードに移行する構成となっている。
そして、このネットワークシステムにおいては、一旦音声信号を伝送するモードに移行した後、ケーブルの切断やノードの異常等により、音声伝送フレームの伝送経路が切断された場合でも、マスタノードの存在する側では、切断の生じた位置で伝送経路を切り縮めて、縮小された伝送経路の範囲で音声伝送フレームの伝送を継続できる。
In addition, when a node capable of configuring the system is connected, the network system automatically determines a master node for generating a voice transmission frame, and shifts to a mode for transmitting a voice signal between the connected nodes. It is the composition to do.
In this network system, even if the transmission path of the voice transmission frame is cut off due to cable disconnection or node abnormality after the transition to the voice signal transmission mode, on the side where the master node exists The transmission path can be shrunk at the position where the disconnection occurs, and the transmission of the voice transmission frame can be continued within the range of the reduced transmission path.

しかしながら、このネットワークシステムにおいては、切断により分断されたシステムのうち、マスタノードの存在しない側では、リング型の伝送経路を用いたデータ伝送ができなくなってしまうという問題があった。
一方、リング型の伝送経路を循環させるフレームには、波形データ以外にも、コマンドやイーサネットフレーム等の種々のデータを記載して伝送し、そのデータをノード間で授受させることが考えられる。従って、マスタノードと切り離されてしまった装置についても、リング型の伝送経路を用いたデータ伝送を維持したいという要望があった。
そして、上述したこれまでのネットワークシステムでは、このような要求に十分に応えることはできなかった。
However, in this network system, there is a problem in that data transmission using a ring-type transmission path cannot be performed on the side where the master node does not exist among the systems divided by disconnection.
On the other hand, in addition to waveform data, various data such as commands and Ethernet frames may be described and transmitted in a frame that circulates in a ring-type transmission path, and the data may be exchanged between nodes. Accordingly, there has been a demand for maintaining data transmission using a ring-type transmission path even for a device that has been disconnected from the master node.
The above-described network systems have not been able to meet such requirements sufficiently.

この発明は、このような問題を解決し、マスタノードが生成する、複数の音響信号の記憶領域を備えた音声伝送フレームを各装置間に形成されるループ状の伝送経路に沿って一定周期で循環させるネットワークシステムを構成する際に、何らかの理由でマスタノードから切り離されてしまった装置群があった場合でも、その装置群の間で、ループ状の伝送経路に沿って一定周期で循環させるフレームを用いたデータ伝送を行えるようにすることを目的とする。   The present invention solves such a problem, and generates a voice transmission frame having a plurality of acoustic signal storage areas generated by a master node along a loop-shaped transmission path formed between devices at a constant cycle. When configuring a network system to be circulated, even if there is a device group that has been disconnected from the master node for some reason, a frame that circulates between the device groups along a loop-shaped transmission path at a fixed period The purpose is to enable data transmission using the.

上記の目的を達成するため、この発明のネットワークシステムは、それぞれ単方向の通信を行う受信手段及び送信手段を2組備えた複数のノードを、あるノードの1組の受信手段及び送信手段を次のノードの1組の送信手段及び受信手段とそれぞれ接続することにより順次接続して形成したネットワークシステムにおいて、上記各ノードに、上記複数のノードのうち1つを臨時のマスタノードと定められており、その臨時のマスタノードが生成する、コマンド伝送のための初期通信フレームの記憶領域を備えた伝送フレームノード間に形成されるループ状の伝送経路に沿って一定周期で循環、各ノードでその伝送フレームへ上記初期通信フレームの書き込み及び/又は読み出しを行うことにより、接続された一連のノード間で初期通信フレームの伝送を行う臨時通信モード、及び上記複数のノードのうち1つマスタノードと定められており、そのマスタノードが生成する、複数の音響信号の記憶領域を備えた音声伝送フレームノード間に形成されるループ状の伝送経路に沿って一定周期で循環、各ノードでその音声伝送フレームへ音響信号の書き込み及び/又は読み出しを行うことにより、接続された一連のノード間で音響信号の伝送を行う音声伝送モードによる通信を選択的に実行する通信制御手段を設け、そのネットワークシステムにおいてマスタノードが設定された場合に、そのマスタノードによる制御の下で、上記各ノードに上記音声伝送モードの動作を開始させ、そのネットワークシステムのいずれかの箇所においてノード間の接続の切断が生じた場合に、その切断によって生じた2つのノード群のうち、上記マスタノードが存在する側のノード群の各ノードは、上記音声伝送モードの動作を維持してその各ノードにより形成されるループ状の伝送経路にそって上記音声伝送フレームの循環を継続し、上記マスタノードが存在しない側のノード群の各ノードは、自動的に上記臨時通信モードの動作に移行するようにしたものである。 In order to achieve the above object, a network system according to the present invention includes a plurality of nodes each including two sets of receiving means and transmitting means for performing unidirectional communication, and a set of receiving means and transmitting means for a certain node. in the network system formed by sequentially connecting by a set of transmission means and receiving means and each of the nodes connected, to each node, which is defined as the temporary master node to one of the plurality of nodes the master node of the extraordinary produces, circulates at a constant period along the loop-shaped transmission path transmission frame having a storage area of the initial communication frame is formed between the nodes for the command transmission, each node The initial communication is performed between a series of connected nodes by writing and / or reading the initial communication frame in the transmission frame. Temporary communication mode for transmitting the frame, and one of which is defined as the master node, the master node generates, audio transport frame by each node having a storage area of a plurality of audio signals among the plurality of nodes Sound signals between a series of connected nodes by circulating at regular intervals along a loop-shaped transmission path formed between them and writing and / or reading sound signals to / from the sound transmission frame at each node. Communication control means for selectively executing communication in a voice transmission mode for performing transmission of data, and when the master node is set in the network system, the voice transmission to each of the nodes under the control of the master node Mode operation is started and the connection between the nodes is cut off at any point in the network system Of the two node groups generated by the disconnection, each node of the node group on the side where the master node exists maintains the operation of the voice transmission mode and is in a loop transmission path formed by each node. Accordingly, the circulation of the voice transmission frame is continued, and each node of the node group on the side where the master node does not exist automatically shifts to the operation in the temporary communication mode.

このようなネットワークシステムにおいて、上記各ノードの通信制御手段を、上記送信手段からその送信手段と接続されている隣接ノードに対して上記初期通信フレームを送信する初期通信モードの動作も可能な手段であり、かつ、ノードの起動時又はリセット時にはその初期通信モードで動作する手段とし、そのネットワークシステムにおいて、上記音声伝送モード又は上記臨時通信モードにおいて形成されるループ状の伝送経路の端部に位置するノードは、上記初期通信モードで動作中のノードが自ノードに直接接続されていることを検出した場合にその初期通信モードで動作中のノードにアクセスしてそのノードを自ノードが属するループ状の伝送経路に組み入れ、上記臨時通信モードで動作中のノードが自ノードに直接接続されていることを検出した場合にその臨時通信モードで動作中のノードにリセット命令を送信してリセットを行わせ、そのノードの動作を上記初期通信モードに戻した上でそのノードにアクセスしてそのノードを自ノードが属するループ状の伝送経路に組み入れる動作を行うようにするとよい。 In such a network system, the communication control means of each node is a means capable of operating in the initial communication mode for transmitting the initial communication frame from the transmitting means to an adjacent node connected to the transmitting means. Yes, and means that operates in the initial communication mode when the node is started or reset, and is located at the end of the loop-shaped transmission path formed in the voice transmission mode or the temporary communication mode in the network system When a node detects that a node operating in the initial communication mode is directly connected to the own node, the node accesses the node operating in the initial communication mode and makes the node the loop-like node to which the own node belongs. A node that is incorporated in the transmission path and is operating in the above-mentioned temporary communication mode is directly connected to its own If this is detected, a reset command is sent to the node operating in the ad hoc communication mode to reset it, the node operation is returned to the initial communication mode, the node is accessed, and the node is It is preferable to perform an operation for incorporation into a loop transmission path to which the own node belongs.

さらに、上記各ノードに、上記リセット命令を受信した場合に、上記ループ状の伝送経路の形成に関する自機の機能をリセットして上記ループ状の伝送経路から離脱すると共に、そのリセット命令を受信した側と反対側の隣接ノードに対してリセット命令を送信するリセット伝達手段を設けるとよい。 Further, when the reset command is received by each of the nodes, the function of the own device relating to the formation of the loop-shaped transmission path is reset to leave the loop-shaped transmission path and the reset command is received. It is preferable to provide a reset transmission means for transmitting a reset command to an adjacent node on the opposite side to the side.

さらに、上記初期通信モードで動作中のノードが、同じく初期通信モードで動作中のノードが自ノードに直接接続されていることを検出した場合に、その検出したノードとネゴシエーションして、自ノードとその検出したノードのいずれかを上記臨時のマスタノードに設定し、自ノードとその検出したノードとを上記臨時通信モードに移行させて、自ノードとその検出したノードとで上記ループ状の伝送経路を形成するようにするとよい。
さらに、上記音声伝送モード又は上記臨時通信モードにおいて形成されるループ状の伝送経路の端部に位置するノードは、自ノードと異なるループ状の伝送経路を形成し、かつ上記音声伝送モードで動作中のノードが自ノードに直接接続されていることを検出した場合、その検出したノードを自ノードが属するループ状の伝送経路に組み入れる動作を行わないようにするとよい。
また、この発明の別のネットワークシステムは、それぞれ単方向の通信を行う受信手段及び送信手段を2組備えた複数のノードを、あるノードの1組の受信手段及び送信手段を次のノードの1組の送信手段及び受信手段とそれぞれ接続することにより順次接続して形成したネットワークシステムであって、そのネットワークシステムは、上記複数のノードがそれぞれ、自身の上記受信手段及び上記送信手段と接続されている隣接するノードとの間で双方向に通信する初期通信モードと、上記複数のノードのうち1つが臨時のマスタノードと定められており、その臨時のマスタノードが生成する、コマンド伝送のための初期通信フレームの記憶領域を備えた伝送フレームが各ノード間に形成されるループ状の伝送経路に沿って一定周期で循環し、各ノードでその伝送フレームへ上記初期通信フレームの書き込み及び/又は読み出しを行うことにより、接続された一連のノード間で初期通信フレームの伝送を行う臨時通信モードと、上記複数のノードのうち1つがマスタノードと定められており、そのマスタノードが生成する、複数の音響信号の記憶領域を備えた音声伝送フレームが各ノード間に形成されるループ状の伝送経路に沿って一定周期で循環し、各ノードでその音声伝送フレームへ音響信号の書き込み及び/又は読み出しを行うことにより、接続された一連のノード間で音響信号の伝送を行う音声伝送モードとのうち何れか1のモードによる通信を選択的に実行し、そのネットワークシステムの端部に位置するノードに新たなノードが接続されたことを検出し、その検出に応じて上記新たなノードを含む1乃至複数のノードで形成された他のネットワークシステムが上記初期通信モード、上記臨時通信モード及び上記音声伝送モードのいずれのモードで動作しているかを識別し、上記他のネットワークシステムのモードがそのネットワークシステムのモードより下位のモードである場合は、上記他のネットワークシステムをそのネットワークシステムに組み込み、上記他のネットワークシステムのモードがそのネットワークシステムのモードより上位のモードである場合は、そのネットワークシステムが上記他のネットワークシステムに組み込まれるよう制御するようにしたものである。
また、上記のネットワークシステムにおいて、上記初期通信モード、上記臨時通信モード、および上記音声モードのうち、上記初期通信モードを最下位のモードとするとともに上記音声伝送モードを最上位のモードとし、上記組み込まれたネットワークシステムが、組み込まれた先のネットワークシステムが実行するモードにて通信を実行するようにするとよい。
さらに、上記初期通信モードはそのネットワークシステムを構成するノードの数が1の場合に実行されるモードとし、そのネットワークシステムと上記他のネットワークシステムとが共に初期通信モードで動作している場合は、両ネットワークシステムを形成するノードのうち1つを臨時のマスタノードとして決定し、上記臨時通信モードによる通信を開始するようにするとよい。
さらに、上記ノードの少なくとも1つに、ユーザの操作に応じて、そのネットワークを構成するノードから、上記音声伝送モードにおいて上記マスタノードとして機能する1のノードを決定するマスタノード決定手段を設けるとよい。
また、この発明の通信装置は、複数のノードを接続して形成したネットワークシステムにおける上記ノードとして機能する通信装置において、上記ネットワークシステムの伝送経路に沿って隣接する一のノードから受信する、複数の音響信号の記憶領域を備えた音声伝送フレームへ音響信号の書き込み及び/又は読み出しを行い、その音声伝送フレームを上記ネットワークシステムの伝送経路に沿って隣接する他のノードへ送出する音声伝送モードにて、上記隣接するノード間での通信を行う通信手段と、上記ネットワークシステム上において、上記音声伝送フレームの制御を行うマスタノードが不在であることを検出し、その検出に応じて、上記音声伝送フレームに代えて、コマンド伝送のための記憶領域を備えた伝送フレームの送受信及びその伝送フレームに対するコマンド又はレスポンスを示すデータの書き込み及び/又は読み出しを行う臨時通信モードへ、上記通信手段の動作を自動的に移行させる通信制御手段とを設けたものである。
このような通信装置において、上記通信制御手段が、当該通信装置が上記臨時通信モードにおける臨時のマスタノードとして動作すべきか否かを判定し、臨時のマスタノードとして動作すべきであると判定した場合に、周期的に上記伝送フレームを生成し、その生成した伝送フレームを上記隣接する他のノードへ送出するようにするとよい。
さらに、上記通信制御手段が、上記音声伝送フレームの制御を行うマスタノードが上記ネットワークシステムに設定されたことに応じて、上記臨時通信モードから上記音声伝送モードに上記通信手段の動作を移行させるようにするとよい。
Further, when the node operating in the initial communication mode detects that the node operating in the initial communication mode is directly connected to the own node, the node is negotiated with the detected node, One of the detected nodes is set as the temporary master node, the local node and the detected node are shifted to the temporary communication mode, and the loop-shaped transmission path between the local node and the detected node It is good to form.
Furthermore, the node located at the end of the loop transmission path formed in the voice transmission mode or the temporary communication mode forms a loop transmission path different from the own node and is operating in the voice transmission mode. When it is detected that this node is directly connected to the own node, it is preferable not to perform the operation of incorporating the detected node into the loop transmission path to which the own node belongs.
In another network system of the present invention, a plurality of nodes each having two sets of receiving means and transmitting means for performing unidirectional communication are provided, and one set of receiving means and transmitting means of a certain node is set as one of the next node. A network system formed by sequentially connecting a pair of transmitting means and receiving means, wherein the plurality of nodes are respectively connected to their receiving means and transmitting means. An initial communication mode for bidirectional communication with adjacent nodes, and one of the plurality of nodes is defined as a temporary master node, and the temporary master node generates a command transmission A transmission frame having a storage area for an initial communication frame circulates at a constant cycle along a loop-shaped transmission path formed between the nodes. A temporary communication mode for transmitting an initial communication frame between a series of connected nodes by writing and / or reading the initial communication frame to / from the transmission frame at each node, and one of the plurality of nodes An audio transmission frame having a storage area for a plurality of acoustic signals generated by the master node is circulated at a constant cycle along a loop-shaped transmission path formed between the nodes. Each node can write and / or read an acoustic signal to / from the audio transmission frame, thereby selecting communication in one of the audio transmission modes for transmitting the acoustic signal between a series of connected nodes. And detect that a new node is connected to a node located at the end of the network system, and respond to the detection. Identifying whether the other network system formed by one or more nodes including the new node is operating in the initial communication mode, the temporary communication mode, or the voice transmission mode. If the mode of the network system is a mode lower than the mode of the network system, the other network system is incorporated into the network system, and the mode of the other network system is a mode higher than the mode of the network system. In some cases, the network system is controlled to be incorporated into the other network system.
Further, in the network system, the initial communication mode, the temporary communication mode, and the voice mode are set to the lowest mode and the voice transmission mode is set to the highest mode, and the built-in The network system may be configured to execute communication in a mode that is executed by the previous network system that is incorporated.
Further, the initial communication mode is a mode that is executed when the number of nodes constituting the network system is 1, and when both the network system and the other network system are operating in the initial communication mode, One of the nodes forming both network systems may be determined as a temporary master node to start communication in the temporary communication mode.
Further, at least one of the nodes may be provided with a master node determining means for determining one node functioning as the master node in the voice transmission mode from the nodes constituting the network according to a user operation. .
Further, the communication device of the present invention is a communication device functioning as the node in a network system formed by connecting a plurality of nodes, and receives a plurality of signals received from one adjacent node along the transmission path of the network system. In an audio transmission mode in which an audio signal is written to and / or read from an audio transmission frame having a storage area for the audio signal, and the audio transmission frame is sent to another node adjacent along the transmission path of the network system. Detecting that there is no communication node for performing communication between the adjacent nodes and a master node for controlling the voice transmission frame on the network system, and in response to the detection, the voice transmission frame is detected. Instead of sending and receiving and transmitting transmission frames with storage areas for command transmission. To the write data indicating the command or response to a transmission frame and / or temporary communication mode for reading, is provided with a communication control means for automatically shifts the operation of the communication means.
In such a communication apparatus, when the communication control means determines whether or not the communication apparatus should operate as a temporary master node in the temporary communication mode, and determines that it should operate as a temporary master node In addition, it is preferable to periodically generate the transmission frame and send the generated transmission frame to the other adjacent nodes.
Further, the communication control means shifts the operation of the communication means from the temporary communication mode to the voice transmission mode in response to setting of a master node for controlling the voice transmission frame in the network system. It is good to.

以上のようなこの発明のネットワークシステム及び通信装置によれば、マスタノードが生成する、複数の音響信号の記憶領域を備えた音声伝送フレームを各装置間に形成されるループ状の伝送経路に沿って一定周期で循環させるネットワークシステムを構成する際に、何らかの理由でマスタノードから切り離されてしまった装置群があった場合でも、その装置群の間で、ループ状の伝送経路に沿って一定周期で循環させるフレームを用いたデータ伝送を行えるようにすることができる。 According to the network system and the communication device of the present invention as described above, the audio transmission frame having a plurality of acoustic signal storage areas generated by the master node is formed along the loop-shaped transmission path formed between the devices. When configuring a network system that circulates at a fixed cycle, even if there is a device group that has been disconnected from the master node for some reason, a fixed cycle is performed along the looped transmission path between the device groups. It is possible to perform data transmission using a frame that is circulated in the network.

以下、この発明を実施するための最良の形態を図面に基づいて具体的に説明する。
1. この発明の実施形態のオーディオネットワークシステムの概要
1.1 全体構成
まず、図1に、この発明のネットワークシステムの実施形態であるオーディオネットワークシステムの概略を示す。
図1(a),(b)に示すように、このオーディオネットワークシステム1は、それぞれ単方向の通信を行う受信手段である受信インタフェース(I/F)と送信手段である送信I/Fの組を2組備えたノードA〜Cを、通信ケーブルCBで順次接続することにより構成したものである。ここでは3つのノードにより構成した例を示しているが、ノードの数は任意でよい。
Hereinafter, the best mode for carrying out the present invention will be specifically described with reference to the drawings.
1. 1. Outline of Audio Network System of Embodiment of Present Invention 1.1 Overall Configuration First, FIG. 1 shows an outline of an audio network system which is an embodiment of a network system of the present invention.
As shown in FIGS. 1A and 1B, the audio network system 1 is a set of a reception interface (I / F) that is a reception unit that performs unidirectional communication and a transmission I / F that is a transmission unit. Are configured by sequentially connecting nodes A to C having two sets of communication cables CB. Here, an example of three nodes is shown, but the number of nodes may be arbitrary.

ノードAにおいては、受信I/F_AR1と送信I/F_AT1が一組のI/Fで、受信I/F_AR2と送信I/F_AT2がもう一組のI/Fである。ノードB及びCについても、符号の先頭の文字「A」を「B」あるいは「C」に置き換えたI/Fが、同様な関係に当たる。   In the node A, the reception I / F_AR1 and the transmission I / F_AT1 are a set of I / Fs, and the reception I / F_AR2 and the transmission I / F_AT2 are another set of I / Fs. For nodes B and C, the I / F in which the first character “A” of the code is replaced with “B” or “C” has the same relationship.

そして、ノード間の接続は、1組の受信I/F及び送信I/Fを、別のノードの1組の送信I/F及び受信I/Fとそれぞれ通信ケーブルCBで接続することにより行っている。例えば、ノードAとノードBとの間では、受信I/F_AR2と送信I/F_BT1とを接続すると共に、送信I/F_AT2と受信I/F_BR1とを接続している。また、ノードBとノードCとの間では、ノードBのもう1組のI/Fと、ノードCの1組のI/Fとを接続している。
なお、図1に示す各ノードは、アナログ入力,アナログ出力,デジタル入力,デジタル出力,ミキシング,エフェクト付与,録音再生,リモート制御,あるいはこれらの組み合わせ等の各種機能を有する音響信号処理装置である。ノード毎に機能が違っていても当然構わない。
The connection between the nodes is performed by connecting one set of reception I / F and transmission I / F to one set of transmission I / F and reception I / F of another node through a communication cable CB. Yes. For example, between the node A and the node B, the reception I / F_AR2 and the transmission I / F_BT1 are connected, and the transmission I / F_AT2 and the reception I / F_BR1 are connected. Further, between the node B and the node C, another set of I / F of the node B and one set of I / F of the node C are connected.
Each node shown in FIG. 1 is an acoustic signal processing device having various functions such as analog input, analog output, digital input, digital output, mixing, effect application, recording / playback, remote control, or a combination thereof. Of course, it does not matter if the function is different for each node.

ここで、(a)に示すように、各ノードを、端部を有する1本のラインのように接続した状態を、「カスケード接続」と呼ぶことにする。そしてこの場合、各ノード間を結ぶケーブルCBにより、破線で示すように1つのリング状のデータ伝送経路を形成することができ、各ノードは、この経路でフレームを一定周期で循環させるように伝送し、そのフレームに対して必要な情報を読み書きすることにより、経路上の任意のノードとの間でデータの送受信を行うことができる。このように、システム内に1つのリング状のデータ伝送経路が構築する動作モードを、「シングルモード」と呼ぶことにする。
そして、オーディオネットワークシステム1内において、1つのノードがマスタノードとなり、音響信号を伝送するためのフレームを生成し、定期的に伝送経路を循環させたり、ネットワークの管理を行ったりする。このマスタノードが生成するフレームを、その他のフレームと区別して「TLフレーム」と呼ぶことにする。
Here, as shown in (a), a state in which each node is connected like a single line having an end is referred to as “cascade connection”. In this case, one ring-shaped data transmission path can be formed by the cable CB connecting the nodes as shown by a broken line, and each node transmits the frame so as to circulate at a constant cycle. By reading and writing necessary information with respect to the frame, data can be transmitted / received to / from any node on the path. In this way, an operation mode in which one ring-shaped data transmission path is constructed in the system is referred to as “single mode”.
In the audio network system 1, one node becomes a master node, generates a frame for transmitting an acoustic signal, periodically circulates the transmission path, and manages the network. The frame generated by the master node is referred to as a “TL frame” in distinction from other frames.

また、(a)に示したカスケード接続に加え、両端のノードで使用していないI/F同士も通信ケーブルCBで接続すると、(b)に示すように、リング状のデータ伝送経路を2つ形成することができる。そして、各ノードは、これらの経路でそれぞれフレームを伝送し、その各フレームに対して必要な情報を読み書きすることにより、経路上の任意のノードとの間でデータの送受信を行うことができる。このようなノード間の接続状態を、「ループ接続」と呼ぶことにする。また、システム内に2つのリング状のデータ伝送経路を構築する動作モードを、「ツインモード」と呼ぶことにする。   Further, in addition to the cascade connection shown in (a), when the I / Fs not used in the nodes at both ends are also connected by the communication cable CB, two ring-shaped data transmission paths are provided as shown in (b). Can be formed. Each node can transmit / receive data to / from any node on the path by transmitting a frame through these paths and reading / writing necessary information for each frame. Such a connection state between nodes is referred to as “loop connection”. An operation mode in which two ring-shaped data transmission paths are constructed in the system is referred to as “twin mode”.

ただし、オーディオネットワークシステム1においては、シングルモードの動作が基本形であり、ツインモードの動作を許可するか否かは、マスタノードに設定しておく。そして、ツインモードの動作を許可しない設定がなされている場合には、後述のように、ループ接続がなされた場合でもシングルモードの動作を継続する。従って、接続状態と動作モードとは、必ずしも対応しない。   However, in the audio network system 1, the single mode operation is a basic type, and whether or not the twin mode operation is permitted is set in the master node. When the setting for not permitting the twin mode operation is made, the single mode operation is continued even when the loop connection is made, as will be described later. Therefore, the connection state and the operation mode do not necessarily correspond.

また、図1ではケーブルを2本示しているが、1組の受信I/Fと送信I/Fとを近接してあるいは一体として設ければ、2本を束ねて1本にしたケーブルにより、1組のI/F同士の接続を行うことも可能である。
また、各ノードには、必要なI/Fを設ければ、(c)に示すように、外部機器Nを接続し、外部機器Nから受信したデータをTLフレームに書き込んで他のノードに送信したり、TLフレームから読み出したデータを外部機器Nに送信したりすることもできる。
In addition, although two cables are shown in FIG. 1, if a pair of reception I / F and transmission I / F are provided close to each other or integrally, two cables are bundled into one, It is also possible to connect a pair of I / Fs.
If each node is provided with the necessary I / F, as shown in (c), the external device N is connected, and the data received from the external device N is written in the TL frame and transmitted to other nodes. It is also possible to transmit data read from the TL frame to the external device N.

このような外部機器Nとしては、例えば外付けのコンソールが考えられる。そして、コンソールがユーザから受け付けた操作に応じたコマンドをノードBに送信し、ノードBがこれをTLフレームに書き込んで他のノードに送信したり、他のノードがTLフレームに書き込んで送信してきた応答やレベルデータ等をノードBが読み出してコンソールに送信し、コンソールにおける操作子状態の表示やレベル表示に使用するといった動作を行わせることが考えられる。   As such an external device N, for example, an external console can be considered. Then, the console transmits a command corresponding to the operation received from the user to the node B, and the node B writes this in the TL frame and transmits it to the other node, or the other node writes in the TL frame and transmits it. It is conceivable that the node B reads out a response, level data, and the like, transmits it to the console, and performs an operation such as using the console to display the operator state or level.

1.2 TLフレームの構成
次に、図2に、上述した伝送経路で伝送されるTLフレームの構成例を示す。また、図3に、TLフレーム中の波形データ領域、イーサネットフレーム領域及びITLフレーム領域のより詳細な構成を示す。なお、これらの図に示した各領域の幅は必ずしもデータ量と対応しない。
1.2 Configuration of TL Frame Next, FIG. 2 shows a configuration example of a TL frame transmitted through the transmission path described above. FIG. 3 shows a more detailed configuration of the waveform data area, the Ethernet frame area, and the ITL frame area in the TL frame. Note that the width of each area shown in these figures does not necessarily correspond to the data amount.

図2に示すように、このTLフレーム100は、サイズが1282バイトであり、先頭から順に、プリアンブル101,管理データ102,波形データ(オーディオデータ)領域103,制御データ領域104,FCS(Frame Check Sequence)105の各領域からなる。各領域のサイズは、その領域に記載するデータ量に関わらずそれぞれ一定である。また、ここで示すFCS105以外の各領域のサイズは一例であり、適宜変更してよい。   As shown in FIG. 2, this TL frame 100 is 1282 bytes in size, and in order from the top, is a preamble 101, management data 102, a waveform data (audio data) area 103, a control data area 104, an FCS (Frame Check Sequence). ) 105 areas. The size of each area is constant regardless of the amount of data described in that area. Moreover, the size of each area | region other than FCS105 shown here is an example, and may be changed suitably.

そして、プリアンブル101は、計8バイトのデータであり、IEEE(Institute of Electrical and Electronic Engineers)802.3で規定されるプリアンブルとSFD(Start Frame Delimiter)とを記載する。   The preamble 101 is a total of 8 bytes of data, and describes a preamble and an SFD (Start Frame Delimiter) defined by IEEE (Institute of Electrical and Electronic Engineers) 802.3.

また、このオーディオネットワークシステム1においては、送信I/Fから送出されるフレームは、1本の接続ケーブルCBで接続された受信I/Fにしか届かないから、アドレスの記載はあまり意味がない。そこで、TLフレーム100には、宛先アドレスは記載する必要はなく、ここではその記載領域は設けていない。   In the audio network system 1, since the frame transmitted from the transmission I / F reaches only the reception I / F connected by the single connection cable CB, the address description is not very meaningful. Therefore, it is not necessary to describe the destination address in the TL frame 100, and no description area is provided here.

また、管理データ102は、8バイトのデータであり、オーディオネットワークシステム1内の各ノードがTLフレームに含まれるデータの管理に利用するデータとして、フレームの種類を区別するためのフレームタイプ,システム内のどの伝送経路を循環させるかフレームかを示すリングID,フレーム通し番号であるフレームID,波形データ103中の波形データのch数等を記載する。なお、フレームタイプとしては、このフレームがTLフレームであることを示すデータを記載する。また、ツインモードを許可しない場合、システム内の伝送経路は1つのみであるから、リングIDは固定の値となる。   The management data 102 is 8-byte data, and is used as data used by each node in the audio network system 1 to manage data included in the TL frame. A ring ID indicating which transmission path is to be circulated, a frame ID which is a frame serial number, the number of channels of waveform data in the waveform data 103, and the like are described. As the frame type, data indicating that this frame is a TL frame is described. When the twin mode is not permitted, the ring ID is a fixed value because there is only one transmission path in the system.

そして、波形データ領域103としては1024バイトを確保し、音響信号のデータである1サンプル32ビットの波形データを256ch分記載できる。すなわち、本システムでは、1つのTLフレーム100を循環させることにより、256ch分の音響信号を伝送することができる。なお、256ch中の伝送に使われていないch(空きch)の領域については、そこに何が記載されているか気にしなくて良い。本実施形態では、伝送する波形データのビット数が32ビットでない例えば16ビットや24ビットなどの場合でも、各ch毎に32ビットの領域を用意しその領域内に記載するようになっている。しかし、波形データのビット数に応じて各chの領域のサイズを変更するようにしてもよい。その場合、16ビットの波形データは512ch分伝送可能であり、24ビットであれば340ch分伝送可能になる。   Further, 1024 bytes are secured as the waveform data area 103, and one sample of 32 bits of waveform data, which is data of the acoustic signal, can be described for 256 channels. That is, in this system, by circulating one TL frame 100, it is possible to transmit acoustic signals for 256 channels. Note that it is not necessary to worry about what is described in the area of ch (empty ch) that is not used for transmission in 256 ch. In this embodiment, even when the number of bits of waveform data to be transmitted is not 32 bits, for example, 16 bits or 24 bits, a 32-bit area is prepared for each channel and described in the area. However, the size of each channel area may be changed according to the number of bits of the waveform data. In this case, 16-bit waveform data can be transmitted for 512 channels, and if it is 24 bits, 340 channels can be transmitted.

また、図3(a)に示すように、波形データ領域103においては、予めオーディオネットワークシステム1を構成する各ノードにchを割り当てておき、各ノードは、自身に割り当てられたchの位置に、出力波形データの書き込みを行う。このchの割り当ては、システム全体を制御するコントローラ(例えば、何れかのノードの制御CPUや図1(c)に示した外部機器)が行うものであり、システムの動作中に適宜変更可能である。また、ノード毎に連続した位置のchを割り当てる必要はないし、どのノードにも割り当てない空きchがあってもよい。   Further, as shown in FIG. 3A, in the waveform data area 103, a channel is assigned to each node constituting the audio network system 1 in advance, and each node is located at the position of the channel assigned to itself. Write output waveform data. This channel assignment is performed by a controller (for example, a control CPU of any node or the external device shown in FIG. 1C) that controls the entire system, and can be changed as appropriate during the operation of the system. . Further, it is not necessary to assign ch at consecutive positions for each node, and there may be empty ch that is not assigned to any node.

一方、制御データ領域104としては238バイトを確保し、ここには、イーサネットフレーム領域106、ITLフレーム領域107、および管理データ領域108設けている。
このうちイーサネットフレーム領域106には、IP(Internet Protocol)に基づくノード間通信用のパケットであるIPパケットをさらにフレーム化したIEEE(Institute of Electrical and Electronic Engineers)802.3形式のフレーム(イーサネットフレーム)を記載する。
On the other hand, 238 bytes are secured as the control data area 104, and an Ethernet frame area 106, an ITL frame area 107, and a management data area 108 are provided here.
The Ethernet frame area 106 includes an IEEE (Institute of Electrical and Electronic Engineers) 802.3 format frame (Ethernet frame) obtained by further framing IP packets, which are packets for inter-node communication based on IP (Internet Protocol). Is described.

また、記載すべきイーサネットフレームが用意したサイズ(ここでは178バイト)に収まらない場合には、フレームの送信側で必要な数のブロックに分割し、TLフレーム1つにつき、そのブロック1つを記載する。そして、フレームの受信側で複数のTLフレーム100からデータを取り出して結合し、分割前のフレームを復元することにより、通常のイーサネット(登録商標)での伝送と同様にイーサネットフレームをノード間で伝送することができる。
IEEE802.3形式のフレームの最大サイズは1526バイトであり、一方、分割・復元の制御用に数バイトの分割制御データを加えたとしても、1TLフレーム毎に約170バイトの送信ができるので、1つのイーサネットフレームの送信は、最大でも9フレームで完了する。
Also, if the Ethernet frame to be described does not fit in the prepared size (here 178 bytes), it is divided into the required number of blocks on the frame transmission side, and one block is described for each TL frame. To do. Then, on the frame receiving side, data is extracted from a plurality of TL frames 100 and combined, and the frame before division is restored, so that Ethernet frames are transmitted between nodes in the same manner as normal Ethernet (registered trademark) transmission. can do.
The maximum size of the IEEE802.3 format frame is 1526 bytes. On the other hand, even if several bytes of division control data are added for division / restoration control, about 170 bytes can be transmitted for each TL frame. Transmission of one Ethernet frame is completed in a maximum of 9 frames.

図3(b)に、このイーサネットフレーム領域106に記載するデータの詳細を示す。
このうち、ブロック数は、送信するフレームをいくつのブロックに分割したかを示す情報である。
ブロック番号は、該当ブロックが分割したブロックのうち何番目のブロックであるかを示す情報である。
送信元IDは、イーサネットフレーム領域106へデータを書き込んだノードを示す情報である。後述するフリートークンは、この送信元IDを特殊な値に設定することにより記載できる。また、送信元IDは、装置のMACアドレスにより記載することができる。なお、オーディオネットワークシステム1のノードとなる各装置は、送信I/Fと受信I/Fを2つずつ備えているが、それぞれ別個のMACアドレスを持つのではなく、装置として1つのMACアドレスを持つ。
FIG. 3B shows details of data described in the Ethernet frame area 106.
Among these, the number of blocks is information indicating how many blocks the frame to be transmitted is divided into.
The block number is information indicating what number of blocks the corresponding block is divided.
The transmission source ID is information indicating a node that has written data to the Ethernet frame area 106. A free token to be described later can be described by setting the transmission source ID to a special value. Further, the transmission source ID can be described by the MAC address of the device. Each device that is a node of the audio network system 1 has two transmission I / Fs and two reception I / Fs. However, each device does not have a separate MAC address, but has one MAC address as a device. Have.

データサイズは、該当ブロックに記載したフレームデータのサイズを示す情報である。
フレームデータは、送信するイーサネットフレームのデータである。最終ブロックについては、末尾に空き領域ができるが、受信側で、データサイズの情報に従って、データのある領域のみ読み取るようにすれば問題ない。
The data size is information indicating the size of the frame data described in the corresponding block.
Frame data is data of an Ethernet frame to be transmitted. The last block has an empty area at the end, but there is no problem if the receiving side reads only an area with data in accordance with data size information.

また、ITLフレーム領域107には、隣接ノード間でのコマンド及びコマンドに対する応答の伝送に使用するフレームであるITLフレームのデータを記載する。このITLフレームは、後述のように、システム形成初期の情報伝達にも使用するし、システム形成後の情報伝達にも使用する。
またここでも、イーサネットフレーム領域106の場合と同様、記載すべきITLフレームが用意したサイズ(ここでは50バイト)に収まらない場合には、フレームの送信側で必要な数のブロックに分割して記載し、受信側でこれを結合して復元することができる。
In the ITL frame area 107, data of an ITL frame that is a frame used for transmission of a command and a response to the command between adjacent nodes is described. As will be described later, this ITL frame is used for information transmission at the initial stage of system formation and also for information transmission after system formation.
Also here, as in the Ethernet frame area 106, if the ITL frame to be described does not fit in the prepared size (50 bytes here), it is divided into the required number of blocks on the frame transmission side. Then, it can be restored by combining them on the receiving side.

図3(c)に、このITLフレーム領域107に記載するデータの詳細を示す。
この図に示したブロック数、ブロック番号、データサイズ、フレームデータ、空き領域は、上述のイーサネットフレーム領域106の場合と同趣旨である。
しかし、ITLフレームの場合は、基本的には隣接ノードへの情報の伝達に用いるものである。そして、離れたノードに伝達する場合でも、後述のように、途中のノードが一旦内容を参照した上で同じ内容のフレームを次のノードに送信する、という方式で伝送を行う。従って、ITLフレーム領域107にデータを書き込んだノードは、必ずTLフレームを受信したノードの隣接ノード(TLフレームを入力した受信I/Fと直接接続されているノード)である。このため、ITLフレーム領域107には送信元ノードIDの記載は必要ない(ただし、後述のように、ITLフレーム自体には送信元ノード及び宛先ノードを示す情報としてそれらのノードのMACアドレスを記載する)。
FIG. 3C shows details of data described in the ITL frame area 107.
The number of blocks, block number, data size, frame data, and free area shown in this figure have the same meaning as in the case of the Ethernet frame area 106 described above.
However, in the case of an ITL frame, it is basically used for transmitting information to adjacent nodes. Even when transmitting to a distant node, as will be described later, transmission is performed by a method in which an intermediate node once refers to the content and then transmits a frame having the same content to the next node. Therefore, the node that has written data in the ITL frame area 107 is always a node adjacent to the node that has received the TL frame (the node that is directly connected to the reception I / F that has input the TL frame). Therefore, it is not necessary to describe the transmission source node ID in the ITL frame area 107 (however, as described later, the MAC addresses of these nodes are described in the ITL frame itself as information indicating the transmission source node and the destination node. ).

管理データ領域108は、オーディオネットワークシステム1内の各ノードがTLフレームに含まれるデータの管理に利用するデータを記載する領域である。ここに記載するデータとしては、例えば、TLフレーム100が伝送中に切断されたことを示す切断検出フラグSDF,TLフレーム100の伝送にエラーが生じたことを示すエラーフラグEDF,レベル表示に使用するレベルデータ等が挙げられる。
なお、制御データ領域104内にITLフレームや管理データを記載する専用の領域(ここでは各10バイト)を設けたのは、それらのデータを定常的に伝達するためである。
また、FCS105は、IEEE802.3で規定される、フレームのエラーを検出するためのフィールドである。
The management data area 108 is an area in which data used by each node in the audio network system 1 for managing data included in the TL frame is described. As data described here, for example, a disconnection detection flag SDF indicating that the TL frame 100 is disconnected during transmission, an error flag EDF indicating that an error has occurred in the transmission of the TL frame 100, and a level display are used. For example, level data.
The reason why a dedicated area (here, 10 bytes each) for describing the ITL frame and management data is provided in the control data area 104 is to constantly transmit the data.
The FCS 105 is a field for detecting frame errors defined by IEEE 802.3.

次に、図4に、ITLフレームのデータ構成を示す。
ITLフレームの形式には2通りのものがあり、上述のITLフレーム領域107に書き込むのは、図4(a)に示す通常の形式のものである。(b)に示すのは、特殊な用途に用いるITLフレームの形式である。
このうち、(a)に示す通常のITLフレーム110は、プリアンブル111,フレームタイプ112,データサイズ113,送信元ID114,宛先ID115,送信元ポート116,コマンド種類117,パラメータ118,ダミーデータ118a,FCS119の各領域からなる。
Next, FIG. 4 shows the data structure of the ITL frame.
There are two types of ITL frames, and writing into the ITL frame area 107 is in the normal format shown in FIG. Shown in (b) is an ITL frame format used for special purposes.
Among these, the normal ITL frame 110 shown in FIG. 4A includes a preamble 111, a frame type 112, a data size 113, a transmission source ID 114, a destination ID 115, a transmission source port 116, a command type 117, a parameter 118, dummy data 118a, and FCS 119. It consists of each area.

そして、このうちプリアンブル111及びFCS119の形式は、図2に示したTLフレーム100の場合と同様である。
また、フレームタイプ112は、TLフレーム100に管理データ102として記載されているフレームタイプと同趣旨のデータである。ただし、ここでは、このフレームがITLフレームであることを示すデータを記載する。
TLフレーム100においてフレームタイプを管理データ102の先頭バイトに記載するとすると、TLフレーム100とITLフレーム110とでは、プリアンブル111、フレームタイプ112及びFCS119が、共通のフォーマットとなる。
Of these, the format of the preamble 111 and the FCS 119 is the same as that of the TL frame 100 shown in FIG.
The frame type 112 is data having the same meaning as the frame type described as the management data 102 in the TL frame 100. However, here, data indicating that this frame is an ITL frame is described.
If the frame type is described in the first byte of the management data 102 in the TL frame 100, the preamble 111, the frame type 112, and the FCS 119 have a common format in the TL frame 100 and the ITL frame 110.

また、データサイズ113としては、ダミーデータ118aを除くフレーム中のデータ量を示す情報を記載する。
送信元ID114及び宛先ID115としては、それぞれ送信元装置及び宛先装置のMACアドレスを記載する。
また、送信元ポート116としては、各ノードが複数備える送信I/Fのうち、どの送信I/Fから送信したかを示す情報を記載する。
コマンド種類117としては、このITLフレーム110がどのコマンド(又は応答)を伝達するものであるかを示すコマンドIDを記載する。コマンドの内容については後にいくつか例を挙げる。
パラメータ118としては、コマンド毎に異なるパラメータデータを記載する。
ダミーデータ118aは、フレーム長を一定にするための、特に意味を持たないデータである。
As the data size 113, information indicating the data amount in the frame excluding the dummy data 118a is described.
As the transmission source ID 114 and the destination ID 115, the MAC addresses of the transmission source device and the destination device are described, respectively.
As the transmission source port 116, information indicating from which transmission I / F the transmission I / F included in each node is transmitted is described.
As the command type 117, a command ID indicating which command (or response) is transmitted by the ITL frame 110 is described. Some examples of command content will be given later.
As the parameter 118, different parameter data is described for each command.
The dummy data 118a is data having no particular meaning for making the frame length constant.

また、(b)に示す特殊なITLフレーム120は、プリアンブル111、フレームタイプ112及びFCS119のみからなる。これらのデータの形式は、ITLフレーム110の場合と同様である。そして、ITLフレーム120の場合、フレームタイプ112の情報として、フレームの用途を示す情報を記載する。
このような形式のITLフレーム120は、オーディオネットワークシステム1においては、後述するノード間の距離計測や切断通知のような、特殊な用途に用いる。そこで、以後、ITLフレームの符号として「110」を用いるが、特に断らない限り、ITLフレーム120についても同等な取扱いが可能である。
Also, the special ITL frame 120 shown in (b) includes only the preamble 111, the frame type 112, and the FCS 119. The format of these data is the same as that of the ITL frame 110. In the case of the ITL frame 120, information indicating the use of the frame is described as the information of the frame type 112.
The ITL frame 120 having such a format is used in the audio network system 1 for special purposes such as distance measurement between nodes and a disconnection notification described later. Hence, “110” is used as the code of the ITL frame, but the ITL frame 120 can be handled in the same manner unless otherwise specified.

1.3 TLフレームの伝送方式
次に、図5に、図2に示したTLフレーム100の伝送タイミングを示す。
この図に示すように、オーディオネットワークシステム1においては、TLフレーム100を、96kHz(キロヘルツ)のサンプリング周期1周期である10.4μsec(マイクロ秒)毎に1つ、ノード間で循環させ、各ノードはTLフレームの所望のchへの音響信号の書き込みないし所望のchからの音響信号の読み出しを行うようになっている。従って、各サンプリング周期に、256の伝送chについて、それぞれ1サンプル分の波形データを、各ノード間で伝送できる。
1.3 TL Frame Transmission Method Next, FIG. 5 shows the transmission timing of the TL frame 100 shown in FIG.
As shown in this figure, in the audio network system 1, the TL frame 100 is circulated between nodes every 10.4 μsec (microseconds), which is one sampling period of 96 kHz (kilohertz). Is configured to write an acoustic signal to a desired channel of a TL frame or read an acoustic signal from a desired channel. Therefore, one sample of waveform data can be transmitted between the nodes for each of 256 transmission channels in each sampling period.

1Gbps(ギガビット・パー・セカンド)のイーサネット(登録商標)方式のデータ転送を採用すれば、TLフレーム100の時間長は、1ナノ秒×8ビット×1282バイト=10.26μsecであり、1サンプリング周期内に伝送が完了する。
なお、1282バイトの場合、フレーム間の時間間隔を無視すれば、計算上は1sec/10.26μsec=97.47kHzのサンプリング周期まで対応可能であり、96kHzのサンプリング周期であれば、10.4μsec/8ビット/1ナノ秒=1300バイトのフレームサイズまで伝送可能である。しかし、フレーム間には所定時間以上の空きが必要であり、また、フレームの伝送タイミングが前後に揺れる可能性があるので、TLフレームのサイズ(時間長)はそれらを考慮した上で決定される。
If data transfer of Ethernet (registered trademark) system of 1 Gbps (Gigabit per second) is adopted, the time length of the TL frame 100 is 1 nanosecond × 8 bits × 1282 bytes = 10.26 μsec, and 1 sampling period The transmission is completed within.
In the case of 1282 bytes, if the time interval between frames is ignored, it can be calculated up to a sampling period of 1 sec / 10.26 μsec = 97.47 kHz, and if it is 96 kHz, it is 10.4 μsec / Transmission is possible up to a frame size of 8 bits / 1 nanosecond = 1300 bytes. However, a space of a predetermined time or more is required between frames, and the frame transmission timing may fluctuate back and forth. Therefore, the size (time length) of the TL frame is determined in consideration of them. .

次に、図6に、オーディオネットワークシステム1上での音響信号の伝送時(音声伝送モード)における、図2に示したTLフレームの伝送状況を示す。図6に示すのは、シングルモードの場合の例である。
ここでは、ノードAからノードDまでの4つのノードをカスケード接続したオーディオネットワークシステムを考える。そして、このシステム内の各ノードに図2に示したTLフレーム100を循環させる場合、いずれか1つのノードをマスタノードに定め、そのノードのみが新たなサンプリング周期のTLフレーム(通し番号の異なるTLフレーム)の生成を行い、サンプリング周期毎に生成されたTLフレームを次のノードへ送信する。マスタノード以外のノードはスレーブノードであり、それぞれ前のノードからTLフレームを受信し、次のノードへ送信する転送処理を行う。
Next, FIG. 6 shows a transmission state of the TL frame shown in FIG. 2 when an acoustic signal is transmitted (audio transmission mode) on the audio network system 1. FIG. 6 shows an example in the single mode.
Here, an audio network system in which four nodes from node A to node D are cascade-connected is considered. When the TL frame 100 shown in FIG. 2 is circulated to each node in this system, one of the nodes is determined as a master node, and only that node is a TL frame with a new sampling period (a TL frame with a different serial number). ) Is generated, and the TL frame generated every sampling period is transmitted to the next node. Nodes other than the master node are slave nodes, each of which performs a transfer process of receiving a TL frame from the previous node and transmitting it to the next node.

そして、マスタノードBが最初に図で右向きに、ワードクロックのタイミングに合わせて、ノードCに向かってTLフレームを送信すると、そのTLフレームは、破線で示すように、ノードB→C→D→C→B→A→Bの順で伝送され、ノードBに戻ってくる。マスタノードから見て、一巡するTLフレームを最初に送信する側を前方側と呼び、2回目に送信する側を後方側と呼ぶ。また、この伝送の際、各ノードは、TLフレームを受信してから送信するまでに、他のノードから受信すべき波形データや制御データをTLフレームから読み取り、また他のノードに送信すべき波形データや制御データをTLフレームに書き込む。   Then, when the master node B first transmits a TL frame toward the node C in the right direction in accordance with the timing of the word clock, the TL frame is transmitted from the node B → C → D → as shown by the broken line. The data is transmitted in the order of C → B → A → B and returns to the node B. When viewed from the master node, the side that first transmits a TL frame that makes a round is called the front side, and the side that transmits the second time is called the rear side. In this transmission, each node reads waveform data and control data to be received from another node from the TL frame and transmits the waveform data to be transmitted to the other node after receiving the TL frame. Data and control data are written into the TL frame.

そして、マスタノードは、TLフレームが伝送経路を1周して戻ってくると、そのTLフレームの管理データ102を書き換えて後のサンプル周期のTLフレームを生成し、適当なサンプル周期での送信に供する。またこのとき、マスタノードも他のノードと同様にTLフレームに対してデータの読み書きを行う。TLフレームの生成については後に詳述する。   Then, when the TL frame returns around the transmission path once, the master node rewrites the management data 102 of the TL frame to generate a TL frame having a later sample period, and transmits it at an appropriate sample period. Provide. At this time, the master node also reads / writes data from / to the TL frame in the same manner as other nodes. The generation of the TL frame will be described in detail later.

以上を繰り返すことにより、1サンプリング周期につき1つのTLフレームに、(a)から(e)に時系列的に示すように、各ノードを循環させることができる。これらの図において、黒塗りの矢印はTLフレームの先頭を、黒丸はTLフレームの末端を示す。線の矢印は、TLフレームの切れ目を分かり易くするために記載したものである。   By repeating the above, each node can be circulated in one TL frame per sampling period as shown in time series from (a) to (e). In these drawings, the black arrow indicates the beginning of the TL frame, and the black circle indicates the end of the TL frame. Line arrows are described for easy understanding of TL frame breaks.

なお、各スレーブノードは、TLフレームの全てを受信してからデータの読み書きや次のノードへの送信を行う必要はなく、先頭から必要なバイト数だけ受信したら、データの読み書きや次のノードへの送信の処理を開始してしまってよい。そしてその後、TLフレームの末端まで、受信するのとほぼ同じ速さでデータの読み書きや送信を行って行けばよい。ただし、マスタノードについては、後述する通り、TLフレームの全てを受信してから、その内容に基づいて新たなTLフレームの生成を行うことが好ましい。   Each slave node does not need to read / write data or transmit to the next node after receiving all of the TL frames. When receiving the required number of bytes from the beginning, each slave node reads / writes data to the next node. You may have started the process of sending. After that, it is sufficient to read / write and transmit data at almost the same speed as the reception until the end of the TL frame. However, for the master node, as described later, it is preferable to generate a new TL frame based on the contents after receiving all of the TL frames.

また、シングルモードの場合、両端のノード以外のノードは、1周のうちに2度TLフレームを通過させることになるが、このうちITLフレーム領域107以外のデータの読み書きを行うのは1度のみである。どちらでその読み書きを行うかは、最初にTLフレームを通過させる時、図で右向きにTLフレームを通過させる時等、任意に定めればよい。読み書きを行わない場合には、単に送信元アドレスと後述する存在確認情報だけ書き換えてTLフレームの残りの部分はスルーさせればよい。   In the single mode, the nodes other than the nodes at both ends pass the TL frame twice in one cycle. Of these, data other than the ITL frame area 107 is read / written only once. It is. Which of the reading and writing is performed may be arbitrarily determined when the TL frame is first passed or when the TL frame is passed rightward in the drawing. When reading and writing is not performed, it is only necessary to rewrite only the transmission source address and presence confirmation information described later, and to pass through the remaining portion of the TL frame.

ITLフレームについては、両方向の隣接ノードに伝達できることが好ましい。そこで、図で右向きにTLフレームを通過させる時には、右側の隣接ノード(又はその先にあるノード)に送信すべきITLフレームのデータをITLフレーム領域107に書き込み、図で左向きにTLフレームを通過させる時には、左側の隣接ノード(又はその先にあるノード)に送信すべきITLフレームのデータをITLフレーム領域107に書き込んで送信するようにするとよい。   It is preferable that the ITL frame can be transmitted to adjacent nodes in both directions. Therefore, when passing the TL frame in the right direction in the figure, the data of the ITL frame to be transmitted to the adjacent node on the right side (or the node ahead thereof) is written in the ITL frame area 107, and the TL frame is passed in the left direction in the figure. In some cases, ITL frame data to be transmitted to the adjacent node on the left side (or a node ahead thereof) may be written in the ITL frame area 107 and transmitted.

また、各ノードにおいて、TLフレームのデータを書き換えるためや、受信側のネットワーククロック(送信元のノードの動作クロックに対応)と送信側のネットワーククロック(当該ノードの動作クロックに対応)の周波数やタイミングの差を吸収するために、TLフレームの受信時にバッファリングを行う必要があるので、TLフレームの受信開始から送信開始まで幾分かのタイムラグが生じる。   Also, in each node, the frequency and timing of rewriting TL frame data and the frequency and timing of the receiving side network clock (corresponding to the operating clock of the transmitting node) and the transmitting side network clock (corresponding to the operating clock of the node) In order to absorb the difference, it is necessary to perform buffering at the time of receiving the TL frame, so that there is some time lag from the start of reception of the TL frame to the start of transmission.

そして、ネットワークで伝送される音響信号の伝送遅延(サンプリング周期単位)を最小にしたい場合は、上記のタイムラグの量を考慮して、マスタノードがあるワードクロックのタイミングで送信開始したTLフレームを、次の次のワードクロックより所定時間α(マスタノード内での新TLフレームの準備に係る時間に対応する)だけ前のタイミングに、マスタノードが受信完了できるようにすればよい。   Then, if you want to minimize the transmission delay (sampling period unit) of the acoustic signal transmitted over the network, considering the amount of time lag above, the TL frame that started transmission at the timing of a word clock with a master node, The master node may be configured to be able to complete reception at a timing preceding the next next word clock by a predetermined time α (corresponding to a time related to preparation of a new TL frame in the master node).

後に詳述するが、この場合、例えばS番目のTLフレームに基づいて、2サンプリング周期先に送信するS+2番目のTLフレームを生成する。
しかし、2サンプリング周期先に送信するTLフレームを生成することは必須ではなく、kを2以上の自然数として、S番目のTLフレームに基づいて、kサンプリング周期先に送信するS+k番目のTLフレームを生成するようにすることも可能である。この場合のkを、「周期更新量k」と呼ぶことにする。
As will be described in detail later, in this case, for example, based on the Sth TL frame, an S + 2nd TL frame to be transmitted two sampling periods ahead is generated.
However, it is not indispensable to generate a TL frame to be transmitted two sampling periods ahead. Based on the S-th TL frame, k is an S + k-th TL frame to be transmitted ahead k sampling periods. It is also possible to generate it. In this case, k is referred to as “periodic update amount k”.

そして、一般に、kの値に応じて、マスタノードがあるワードクロックのタイミングで送信開始したTLフレームを、k周期先のワードクロックより所定時間αだけ前のタイミングに、マスタノードが受信完了できるようにすれば、音響信号の伝送が可能である。従って、ノード数が増え、送信したTLフレームがマスタノードに戻ってくるまでの時間が増加した場合でも、kの値を増加させることにより、音響信号が伝送可能な状態を維持することができる。   In general, according to the value of k, the master node can complete the reception of the TL frame that has started to be transmitted at the timing of a certain word clock by a predetermined time α before the word clock ahead of k cycles. If so, transmission of acoustic signals is possible. Therefore, even when the number of nodes increases and the time until the transmitted TL frame returns to the master node increases, the state in which the acoustic signal can be transmitted can be maintained by increasing the value of k.

この周期更新量kは、マスタノードが適宜設定し、その内容を、周期更新量kの設定を示すパラメータ設定フレームをブロードキャストする等により、システム中の全ノードに伝達すればよい。
ただし、本システムでは各ノードで受信する音響信号のタイミングを相互に合わせているので、kを大きくしてマスタノードにおけるTLフレームの受信完了タイミング遅れを許容できるようにする(許容量はワードクロック単位で定められる)と、その分だけ、伝送される音響信号にワードクロック単位で伝送遅延が生じる。
The periodic update amount k may be appropriately set by the master node, and the contents thereof may be transmitted to all the nodes in the system by broadcasting a parameter setting frame indicating the setting of the periodic update amount k.
However, in this system, since the timing of the acoustic signal received at each node is matched with each other, k is increased so that the delay in the completion of reception of the TL frame at the master node can be allowed (the allowable amount is in units of word clocks). The transmission delay is generated in units of word clocks in the transmitted acoustic signal.

本システムにおいては、以上のような方式のデータ伝送を行うことにより、1サンプリング周期内にTLフレームを1周させることのできる程度のノード数であれば、ネットワーク内で常にTLフレームのサイズに応じた一定の伝送帯域幅を確保することができる。そして、この帯域幅は、特定のノード間でのデータ伝送量の多寡には影響されない。   In this system, if the number of nodes is such that the TL frame can be circulated once within one sampling period by performing data transmission in the above manner, the network always responds to the size of the TL frame. A certain transmission bandwidth can be secured. This bandwidth is not affected by the amount of data transmission between specific nodes.

なお、ツインモードの場合には、図1からわかるように、マスタノードBが生成して図で右向きに送信したTLフレームを、ノードB→C→D→A→Bの順で伝送する伝送経路と、マスタノードBが生成して図で左向きに送信したTLフレームを、ノードB→A→D→C→Bの順で伝送する伝送経路とができることになる。そして。この伝送の際、各ノードは、TLフレームを受信してから送信するまでに、他のノードから受信すべき波形データや制御データをTLフレームから読み取り、また他のノードに送信すべき波形データや制御データをTLフレームに書き込む。   In the case of the twin mode, as can be seen from FIG. 1, the transmission path for transmitting the TL frame generated by the master node B and transmitted rightward in the figure in the order of the nodes B → C → D → A → B. Then, a transmission path for transmitting the TL frame generated by the master node B and transmitted to the left in the figure in the order of node B → A → D → C → B can be formed. And then. During this transmission, each node reads the waveform data and control data to be received from other nodes from the TL frame and receives the waveform data to be transmitted to the other nodes until it is transmitted after receiving the TL frame. Write control data to the TL frame.

また、ツインモードの場合、TLフレームが伝送経路を1周する間に全てのノードを1回ずつ通過することになるため、各ノードは、その通過の際にデータの読み書きを行う。
そして、オーディオネットワークシステム1の全体として、2つの伝送経路のフレームに同じデータを書き込んで循環させる二重化通信と、2つの伝送経路のフレームに別々のデータを書き込んで循環させる二倍化通信とを、選択的に行うことができる。
In the twin mode, since each TL frame passes through all the nodes once while going around the transmission path, each node reads and writes data during the passage.
Then, as a whole of the audio network system 1, duplex communication for writing and circulating the same data in the frames of the two transmission paths, and double communication for writing and circulating different data in the frames of the two transmission paths, It can be done selectively.

このうち、二重化通信の場合には、フレームは2つになっても同じデータを記載するため、1サンプリング周期当たりに伝送可能な情報量、すなわち通信の帯域幅は、カスケード接続の場合と同じである。しかし、1ヶ所で断線が生じても速やかにカスケード接続の伝送に移行し、同じ帯域幅でのデータ伝送を維持することができる。また、2つのフレームの内容を比較することにより、データが正確に伝送されているかどうかを確認することができる。
一方、二倍化通信の場合には、1サンプリング周期当たりにフレーム2つ分のデータを伝送可能であるから、通信の帯域幅を、カスケード接続の場合の2倍にすることができる。
このどちらを行うかは、マスタノードに設定しておけばよい。
Of these, in the case of duplex communication, the same data is described even if there are two frames, so the amount of information that can be transmitted per sampling period, that is, the communication bandwidth is the same as in the case of cascade connection. is there. However, even if a disconnection occurs at one location, it is possible to quickly shift to cascade connection transmission and maintain data transmission with the same bandwidth. Further, by comparing the contents of the two frames, it can be confirmed whether or not the data is correctly transmitted.
On the other hand, in the case of doubling communication, since data for two frames can be transmitted per sampling period, the bandwidth of communication can be doubled in the case of cascade connection.
Which to do is set in the master node.

1.4 システムを構成する各装置のハードウェア構成及び基本動作
次に、以上説明してきたようなTLフレームの伝送を行うためのハードウェア及びその動作について説明する。
まず、図7に、上述のオーディオネットワークシステム1を構成する各ノードとなる音響信号処理装置のハードウェア構成を示す。
図7に示すように、この音響信号処理装置2は、CPU201,フラッシュメモリ202,RAM203,外部機器I/F(インタフェース)204,表示器205,操作子206を備え、これらがシステムバス207により接続されている。また、外部機器I/F204とシステムバス207とに接続するカードI/O(入出力部)210も備えている。
1.4 Hardware Configuration and Basic Operation of Each Device that Configures the System Next, hardware for transmitting a TL frame as described above and its operation will be described.
First, FIG. 7 shows a hardware configuration of an acoustic signal processing device that is each node constituting the audio network system 1 described above.
As shown in FIG. 7, the acoustic signal processing device 2 includes a CPU 201, a flash memory 202, a RAM 203, an external device I / F (interface) 204, a display 205, and an operator 206, which are connected by a system bus 207. Has been. A card I / O (input / output unit) 210 connected to the external device I / F 204 and the system bus 207 is also provided.

そして、CPU201は、この音響信号処理装置2の動作を統括制御する制御手段であり、フラッシュメモリ202に記憶された所要の制御プログラムを実行することにより、表示器205における表示を制御したり、操作子206の操作を検出してその操作に従ってパラメータの値の設定/変更や各部の動作を制御したり、コマンドをカードI/O210を介して他の音響信号処理装置に送信したり、カードI/O210を介して他の音響信号処理装置から受信したコマンドに従った処理を行ったりする。   The CPU 201 is a control unit that performs overall control of the operation of the acoustic signal processing device 2, and controls the display on the display unit 205 by executing a required control program stored in the flash memory 202, The operation of the child 206 is detected, parameter value setting / changing and operation of each part are controlled according to the operation, a command is transmitted to another acoustic signal processing device via the card I / O 210, and the card I / O Processing according to a command received from another acoustic signal processing apparatus via O210 is performed.

フラッシュメモリ202は、CPU201が実行する制御プログラムを始め、電源を切っても残しておくべきデータを記憶する書き換え可能な不揮発性記憶手段である。
RAM203は、一時的に記憶すべきデータを記憶したり、CPU201のワークメモリとして使用したりする記憶手段である。
The flash memory 202 is a rewritable non-volatile storage unit that stores a control program executed by the CPU 201 and data that should remain even after the power is turned off.
The RAM 203 is a storage unit that stores data to be temporarily stored or used as a work memory for the CPU 201.

外部機器I/F204は、種々の外部機器を接続し入出力を行うためのインタフェースであり、例えば外部のディスプレイ、マウス、文字入力用のキーボード、操作パネル、PC(パーソナルコンピュータ)等を接続するためのインタフェースが用意される。
外部機器I/F204は、カードI/O210のオーディオバス217にも接続しており、オーディオバス217を流れる波形データを外部装置に送信したり、外部装置から受信した波形データをオーディオバス217に入力したりすることができる。
The external device I / F 204 is an interface for connecting various external devices to perform input / output. For example, an external display, a mouse, a keyboard for inputting characters, an operation panel, a PC (personal computer), and the like are connected. Interface is prepared.
The external device I / F 204 is also connected to the audio bus 217 of the card I / O 210. The waveform data flowing through the audio bus 217 is transmitted to the external device, and the waveform data received from the external device is input to the audio bus 217. You can do it.

表示器205は、CPU201による制御に従って種々の情報を表示する表示手段であり、例えば、液晶ディスプレイ(LCD)や発光ダイオード(LED)によって構成することができる。
操作子206は、音響信号処理装置2に対する操作を受け付けるためのものであり、種々のキー、ボタン、ダイヤル、スライダ等によって構成することができる。
The display unit 205 is a display unit that displays various information according to control by the CPU 201, and can be configured by, for example, a liquid crystal display (LCD) or a light emitting diode (LED).
The operation element 206 is for accepting an operation on the acoustic signal processing apparatus 2 and can be constituted by various keys, buttons, dials, sliders, and the like.

また、カードI/O210は、オーディオバス217と制御バス218を備え、これらのバスに種々のカードモジュールを装着することにより、音響信号処理装置2に対する音響信号及び制御信号の入出力及びその処理を行うことができるようにするためのインタフェースである。ここに装着される各カードモジュールは、オーディオバス217を介して相互に波形データを送受信すると共に、制御バス218を介してCPU201との間で制御信号を送受信し、CPU201の制御を受ける。   The card I / O 210 also includes an audio bus 217 and a control bus 218. By mounting various card modules on these buses, input / output of acoustic signals and control signals to the acoustic signal processing device 2 and processing thereof are performed. It is an interface that allows you to do it. Each card module mounted here transmits / receives waveform data to / from each other via the audio bus 217, and transmits / receives a control signal to / from the CPU 201 via the control bus 218, and is controlled by the CPU 201.

オーディオバス217は、任意のカードから任意のカードへ、複数チャンネルの波形データをサンプリング周期に基づくタイミングで各1サンプルずつ時分割伝送する音響信号伝送用ローカルバスである。接続された複数カードの何れか1つがマスタとなり、当該カードが生成し供給するワードクロックに基づいてオーディオバス217の時分割伝送の基準タイミングを制御する。その他の各カードはスレーブとなり、その基準タイミングに基づいて各カードのワードクロックを生成する。   The audio bus 217 is an acoustic signal transmission local bus that time-divisionally transmits a plurality of channels of waveform data one sample at a time based on a sampling period from an arbitrary card to an arbitrary card. Any one of a plurality of connected cards becomes a master, and controls the reference timing of time division transmission of the audio bus 217 based on a word clock generated and supplied by the card. Each other card becomes a slave and generates a word clock for each card based on the reference timing.

すなわち、各カードで生成されるワードクロックは、マスタとなるカードのワードクロックに同期した共通のクロックとなり、ノード内の複数のカードは、共通のサンプリング周波数で波形データの処理を行う。さらに、各カードは、自身のワードクロックに基づいて処理した波形データ及び処理すべき波形データを、上記の基準タイミングに基づく時分割タイミングで、オーディオバス217を介して他のカードに送信し、また他のカードから受信する。   That is, the word clock generated by each card becomes a common clock synchronized with the word clock of the card serving as the master, and the plurality of cards in the node process the waveform data at the common sampling frequency. Furthermore, each card transmits the waveform data processed based on its own word clock and the waveform data to be processed to other cards via the audio bus 217 at the time division timing based on the reference timing, and Receive from another card.

図7には、カードI/O210にDSP(デジタル・シグナル・プロセッサ)カード211,212,アナログ入力カード213,アナログ出力カード214,ネットワークI/Fカード215を装着した例を示している。
カードI/O210に装着される各種カードは、そのカードの機能に応じた波形データの処理を、それぞれ、ワードクロック(波形データのサンプリング周期)に基づくタイミングで実行する。
FIG. 7 shows an example in which DSP (digital signal processor) cards 211 and 212, an analog input card 213, an analog output card 214, and a network I / F card 215 are mounted on the card I / O 210.
Various cards mounted on the card I / O 210 execute waveform data processing corresponding to the function of the card at a timing based on the word clock (waveform data sampling period).

このうち、DSPカード211,212は、オーディオバス217から取得した波形データに対し、ワードクロックに基づくタイミングで、ミキシング、イコライジング、エフェクト付与を始めとする種々の処理を行う信号処理手段である。処理後のデータも、オーディオバス217に出力する。また、複数chの波形データの入力を受け付けて処理し、複数chの波形データを出力することができる。   Among these, the DSP cards 211 and 212 are signal processing means for performing various processes such as mixing, equalizing, and applying effects on the waveform data acquired from the audio bus 217 at timing based on the word clock. The processed data is also output to the audio bus 217. Further, it can receive and process input of waveform data of a plurality of channels and output waveform data of a plurality of channels.

アナログ入力カード213は、A/D(アナログ/デジタル)変換回路を備え、マイク等の音声入力装置から入力するアナログ音響信号を、デジタルの波形データに変換してオーディオバス217に供給する機能を有する。複数chの信号を並列して処理することも可能である。
アナログ出力カード214は、D/A(デジタル/アナログ)変換回路を備え、オーディオバス217から取得したデジタルの波形データをアナログの音響信号に変換して、スピーカ等の音声出力装置に出力する機能を有する。
The analog input card 213 includes an A / D (analog / digital) conversion circuit, and has a function of converting an analog acoustic signal input from a voice input device such as a microphone into digital waveform data and supplying the digital waveform data to the audio bus 217. . It is also possible to process signals of a plurality of channels in parallel.
The analog output card 214 includes a D / A (digital / analog) conversion circuit, converts the digital waveform data acquired from the audio bus 217 into an analog acoustic signal, and outputs it to an audio output device such as a speaker. Have.

ネットワークI/Fカード215は、送信I/Fと受信I/Fを2組備え、図1乃至図6を用いて説明したTLフレーム100及びITLフレーム110の伝送と、TLフレーム100に対する波形データや制御データ等の読み書きを行う機能とを有する。その詳細については後述する。また、カードI/O210には、ネットワークI/Fカードを複数枚装着することが可能であり、各ネットワークI/Fカード毎に別々のオーディオネットワークに接続することができる。その場合、音響信号処理装置2は、複数のオーディオネットワークを接続するブリッジとしての動作を行う。
また、ここで挙げたもの以外でも、その他カード216として、デジタル入出力、音源、レコーダ、エフェクタ等の、種々のカードモジュールを装着可能とすることが考えられる。
The network I / F card 215 includes two sets of a transmission I / F and a reception I / F. The transmission of the TL frame 100 and the ITL frame 110 described with reference to FIGS. And a function of reading and writing control data and the like. Details thereof will be described later. In addition, a plurality of network I / F cards can be mounted on the card I / O 210, and each network I / F card can be connected to a separate audio network. In this case, the acoustic signal processing device 2 performs an operation as a bridge that connects a plurality of audio networks.
In addition to those listed here, it is conceivable that various card modules such as a digital input / output, a sound source, a recorder, and an effector can be mounted as the other card 216.

なお、上述のように、カードI/O210に装着されたカードは、共通のワードクロックに従って音響信号の処理を行うが、音響信号処理装置2がマスタノードである場合は、装着されたカードのうちの何れか1枚がネットワークI/Fカード215を含む他のカードへワードクロックを供給し、ネットワークI/Fカード215はマスタノードとしてサンプリング周期毎にTLフレームを送信する。音響信号処理装置2がスレーブノードである場合は、ネットワークI/Fカード215がTLフレームの受信タイミングに基づいてワードクロックを生成(再生)し、カードI/O210に装着された他のカードへワードクロックを供給する。   As described above, the card attached to the card I / O 210 processes the acoustic signal according to the common word clock. However, if the acoustic signal processing device 2 is a master node, 1 supplies a word clock to other cards including the network I / F card 215, and the network I / F card 215 transmits a TL frame every sampling period as a master node. When the audio signal processing device 2 is a slave node, the network I / F card 215 generates (reproduces) a word clock based on the reception timing of the TL frame, and transmits the word to other cards attached to the card I / O 210. Supply the clock.

次に、図8に、ネットワークI/Fカード215の構成をより詳細に示す。
図8に示すように、ネットワークI/Fカード215は、フレームの送受信に使用する第1,第2の受信I/F31,33及び第1,第2の送信I/F34,32を備え、また、フレームを用いたデータ送受信に関する処理を行うフレーム処理部220と、音響信号処理装置2のうちネットワークI/Fカード215以外の部分とのインタフェースとなる上位層I/F70とを有する。
Next, FIG. 8 shows the configuration of the network I / F card 215 in more detail.
As shown in FIG. 8, the network I / F card 215 includes first and second reception I / Fs 31 and 33 and first and second transmission I / Fs 34 and 32 used for frame transmission / reception, and A frame processing unit 220 that performs processing related to data transmission / reception using frames, and an upper layer I / F 70 that serves as an interface with the acoustic signal processing device 2 other than the network I / F card 215.

このうち、第1,第2の受信I/F31,33及び第1,第2の送信I/F34,32は、図1に示した2組の受信I/F及び送信I/Fと対応する通信手段であり、それぞれ通信ケーブルと接続するための所定のコネクタ(メス側)を備えている。通信ケーブルの接続に際しては、第1の受信I/F31と第1の送信I/F34とを1組とし、第2の送信I/F32と第2の受信I/F33とを1組とする。これらのI/Fは、上述した1サンプリング周期内のTLフレームの伝送に十分な能力を有していれば、どのような通信方式でデータ通信行うI/Fであってもよいが、ここでは1Gbpsのイーサネット方式のデータ転送を行うI/Fを採用している。   Among these, the first and second reception I / Fs 31 and 33 and the first and second transmission I / Fs 34 and 32 correspond to the two sets of reception I / F and transmission I / F shown in FIG. It is a communication means and is provided with a predetermined connector (female side) for connecting to each communication cable. When connecting the communication cables, the first reception I / F 31 and the first transmission I / F 34 are set as one set, and the second transmission I / F 32 and the second reception I / F 33 are set as one set. These I / Fs may be I / Fs that perform data communication by any communication method as long as they have sufficient ability to transmit the TL frame within one sampling period described above. An I / F that performs 1 Gbps Ethernet data transfer is employed.

現在、1Gイーサネットには、通信ケーブルCBとしてRJ45コネクタ付きCAT5eケーブル(シールドされていないツイストペア)を使用する1000BASE−Tと、光ファイバやSTPケーブル(シールドされたツイストペア)を使用する1000BASE−Xの2種類があるが、本実施形態にはその何れを用いることもできる。また、1Gイーサネット以外の広帯域ネットワーク技術を用いても良い。例えば、FiberChannel、SDH(Synchronous Digital Hierarchy)/SONET(Synchronous Optical NETwork)などである。   Currently, for 1G Ethernet, 1000BASE-T using a CAT5e cable with an RJ45 connector (unshielded twisted pair) as a communication cable CB and 1000BASE-X using an optical fiber or an STP cable (shielded twisted pair) are used. There are various types, any of which can be used in the present embodiment. In addition, broadband network technology other than 1G Ethernet may be used. For example, FiberChannel, SDH (Synchronous Digital Hierarchy) / SONET (Synchronous Optical NETwork), and the like.

受信I/Fは、通信ケーブルCBを伝播する電気信号や光信号からキャリアであるネットワーククロックを抽出し、抽出されたクロックに基づいて該電気信号や光信号からバイト単位(ないしワード単位)のデジタルデータのデータ列を復調して出力する。送信I/Fは、ネットワーククロックと送信すべきバイト単位(ないしワード単位)のデジタルデータ列を入力し、該ネットワーククロックをキャリアとして伝送用の電気信号や光信号に変調して通信ケーブルCBに出力する。   The reception I / F extracts a network clock as a carrier from an electric signal or an optical signal propagating through the communication cable CB, and digitally performs byte unit (or word unit) from the electric signal or optical signal based on the extracted clock. Demodulate the data string of data and output it. The transmission I / F inputs a network clock and a digital data string in byte units (or word units) to be transmitted, modulates the network clock into an electric signal or optical signal for transmission, and outputs it to the communication cable CB. To do.

また、上位層I/F70は、図7に示したオーディオバス217及び制御バス218に対してデータを入出力するためのインタフェースである。
そして、ここでは5つのデータ入出力ポートを備えており、このうち2つのIP_Packetポートは、TLフレーム100のイーサネットフレーム領域106から読み出したイーサネットフレームに含まれるIPパケットや、イーサネットフレームを生成してイーサネットフレーム領域106に書き込んで送信するIPパケットの制御バス218を介した入出力を行うためのものである。
The upper layer I / F 70 is an interface for inputting / outputting data to / from the audio bus 217 and the control bus 218 shown in FIG.
Here, five data input / output ports are provided, and two of these IP_Packet ports generate an IP packet or an Ethernet frame included in the Ethernet frame read from the Ethernet frame area 106 of the TL frame 100 and generate an Ethernet frame. This is for inputting / outputting IP packets to be written and transmitted to the frame area 106 via the control bus 218.

また、COMポートは、ネットワークI/Fカード215側の制御部40と、音響信号処理装置2本体側のCPU201との間で、制御バス218を介してコマンドやデータを送受信するためのポートである。
Audio_Inポート及びAudio_Outポートは、オーディオバス217を介して波形データを入出力するためのポートである。
The COM port is a port for transmitting and receiving commands and data via the control bus 218 between the control unit 40 on the network I / F card 215 side and the CPU 201 on the acoustic signal processing device 2 main body side. is there.
The Audio_In port and Audio_Out port are ports for inputting / outputting waveform data via the audio bus 217.

一方、フレーム処理部220は、大別すると、第1及び第2のデータ入出力部10,20,セレクタ35〜38,制御部40,ワードクロック生成部41を有する。
このうち、制御部40は、CPU,ROM,RAM等を有し、ネットワークI/Fカード215の動作に関する全般的な制御及び、後述するような、ITLフレームを用いて伝達されたコマンドや応答に関する制御を行う。制御バス218を介して通信可能な本体側のCPU201から、ネットワークI/Fカード215の動作に必要な、音響信号処理装置2のMACアドレス、動作モード(マスタ/スレーブ,シングルモードのみ/ツインモード可等)等の設定情報を取得する機能も有する。
そして、制御部40は、ノードの接続順を示す後述するトポロジーテーブルの管理も行う。
On the other hand, the frame processing unit 220 roughly includes first and second data input / output units 10 and 20, selectors 35 to 38, a control unit 40, and a word clock generation unit 41.
Among these, the control unit 40 includes a CPU, a ROM, a RAM, and the like. Take control. From the CPU 201 on the main body side that can communicate via the control bus 218, the MAC address and operation mode (master / slave, single mode only / twin mode possible) of the acoustic signal processing device 2 necessary for the operation of the network I / F card 215 Etc.) and the like.
And the control part 40 also manages the topology table mentioned later which shows the connection order of a node.

また、ワードクロック生成部41は、オーディオバス217における波形データの転送や、オーディオバス217に接続される各種カードモジュールにおける信号データ処理のタイミングの基準となるワードクロックを生成するワードクロック生成手段である。
マスタノードにおいては、ワードクロック生成部41は、ネットワークI/Fカード215独自のタイミング、ないし、オーディオバス217を介して供給される他のカードからのワードクロックに同期したタイミングでワードクロックを生成し、そのクロックをTLフレーム100の送信タイミングの基準としても用いるが、スレーブノードにおいては、ワードクロック生成部42はTLフレームの受信タイミングを基準としてワードクロックを生成する。
The word clock generation unit 41 is a word clock generation unit that generates a word clock serving as a reference for timing of signal data processing in various card modules connected to the audio bus 217 and transfer of waveform data in the audio bus 217. .
In the master node, the word clock generation unit 41 generates a word clock at a timing unique to the network I / F card 215 or synchronized with a word clock from another card supplied via the audio bus 217. Although the clock is also used as a reference for the transmission timing of the TL frame 100, in the slave node, the word clock generation unit 42 generates a word clock based on the reception timing of the TL frame.

また、第1,第2のデータ入出力部10,20はそれぞれ、図示しない動作クロック発生部の発生する動作クロックに基づいて動作し、対応する受信I/Fが受信したTLフレーム100から所望のデータを読み出す読出手段及び、受信したTLフレーム100に対して所望のデータの書き込みを行う書込手段として機能する。また、TLフレーム100を循環させる伝送経路が確立されていないノードに対し、ITLフレーム110の送受信を直接(TLフレーム100に書き込まずに)行う機能も有する。そして、これらの、第1,第2のデータ入出力部10,20入出力部の機能は同等なものであるので、第1のデータ入出力部10について代表して説明する。   Each of the first and second data input / output units 10 and 20 operates based on an operation clock generated by an operation clock generation unit (not shown), and performs a desired operation from the TL frame 100 received by the corresponding reception I / F. It functions as reading means for reading data and writing means for writing desired data to the received TL frame 100. Also, it has a function of directly transmitting / receiving the ITL frame 110 (without writing to the TL frame 100) to / from a node for which a transmission path for circulating the TL frame 100 is not established. Since the functions of the first and second data input / output units 10 and 20 are the same, the first data input / output unit 10 will be described as a representative.

第1のデータ入出力部10は、TLフレーム受信部11,波形データ受信バッファ12,TLデータ受信バッファ13,MAC処理部14,ディレイバッファ15,波形データ送信バッファ16,TLデータ送信バッファ17,TLフレーム送信部18,ITLフレーム受信部51,ITLデータ受信バッファ52,ITLデータ送信バッファ53,ITLフレーム送信部54を備える。これらのうち各送受信部及び各バッファは、基本的には先に書き込まれたデータが先に読み出されるFIFO(ファーストイン・ファーストアウト)形式で動作するものである。   The first data input / output unit 10 includes a TL frame reception unit 11, a waveform data reception buffer 12, a TL data reception buffer 13, a MAC processing unit 14, a delay buffer 15, a waveform data transmission buffer 16, a TL data transmission buffer 17, and a TL. A frame transmission unit 18, an ITL frame reception unit 51, an ITL data reception buffer 52, an ITL data transmission buffer 53, and an ITL frame transmission unit 54 are provided. Of these, each transmitting / receiving unit and each buffer basically operate in a FIFO (first-in first-out) format in which data written first is read first.

これらのうち、TLフレーム受信部11は、受信したTLフレーム100からのデータの読み出しを行うと共に、そのTLフレーム100をディレイバッファ15に格納する機能を有し、ITLフレーム受信部51は、受信したITLフレーム110からのデータの読み出しを行う機能を有する。   Among these, the TL frame receiving unit 11 has a function of reading data from the received TL frame 100 and storing the TL frame 100 in the delay buffer 15. The ITL frame receiving unit 51 receives the received TL frame 100. It has a function of reading data from the ITL frame 110.

そして、TLフレーム受信部11及びITLフレーム受信部51は、第1の受信I/F31がキャリアとして抽出したネットワーククロックNC1の供給を受けて、それに同期して第1の受信I/F31からのデータの受け取りを行う。ただし、TLフレーム受信部11が第1の受信I/Fからのデータを受け取るのは、セレクタ35が第1の受信I/F側を選択している場合のみである。 Then, the TL frame receiving unit 11 and the ITL frame receiving unit 51 receive the supply of the network clock NC1 extracted as the carrier by the first reception I / F 31, and synchronize with the data from the first reception I / F 31. Receive. However, the TL frame reception unit 11 receives data from the first reception I / F only when the selector 35 selects the first reception I / F side.

第1の受信I/F31から受け取るデータがどのフレームに係るものであるかは、図2及び図4を用いて説明した各フレーム中のフレームタイプのデータを参照すればわかるため、TLフレーム受信部11及びITLフレーム受信部51は、自身が処理すべきフレーム以外は、読み捨てるようにすればよい。特に、ITLフレーム受信部51には、全てのフレームのデータを受け取ることになるが、ITLフレーム110,120以外のフレームは、特に処理せずに廃棄する。   The frame received by the first reception I / F 31 is related to which frame can be known by referring to the frame type data in each frame described with reference to FIGS. 11 and the ITL frame receiving unit 51 should just discard the frames other than the frames to be processed by themselves. In particular, the ITL frame receiving unit 51 receives data of all frames, but discards frames other than the ITL frames 110 and 120 without any particular processing.

ここで、ITLフレーム110の送受信に関する第1のデータ入出力部10の機能について先に説明する。
ITLフレーム受信部51は、ITLフレーム110を受信した場合、そのデータをITLデータ受信バッファ52に書き込む。そして、フレームにエラーがないことを確認して制御部40に出力し、制御部40はそのフレームに記載されたコマンドの内容に従った処理(自機宛でないコマンドを転送する処理も含む)を行う。
Here, the function of the first data input / output unit 10 related to transmission / reception of the ITL frame 110 will be described first.
When the ITL frame reception unit 51 receives the ITL frame 110, the ITL frame reception unit 51 writes the data in the ITL data reception buffer 52. Then, it is confirmed that there is no error in the frame and output to the control unit 40. The control unit 40 performs processing according to the contents of the command described in the frame (including processing for transferring a command not addressed to the own device). Do.

また、ITLデータ送信バッファ53は、第2の送信I/F32に接続されているノードに送信すべきITLフレーム110のデータを格納するバッファであり、制御部40が、その書き込みを行う。
そして、セレクタ36がITLフレーム送信部54側を選択している場合、ITLフレーム送信部54が、適当なタイミングでITLデータ送信バッファ53に格納されているITLフレーム110を読み出し、第2の送信I/F32に供給して接続先のノードに対して送信させる。セレクタ36がTLフレーム送信部18側を選択している場合には、ITLデータ送信バッファ53に格納されているITLフレーム110の送信はTLフレーム送信部18が行うため、ITLフレーム送信部54は特に何の動作もしない。
The ITL data transmission buffer 53 is a buffer for storing data of the ITL frame 110 to be transmitted to the node connected to the second transmission I / F 32, and the control unit 40 performs the writing.
When the selector 36 selects the ITL frame transmission unit 54 side, the ITL frame transmission unit 54 reads the ITL frame 110 stored in the ITL data transmission buffer 53 at an appropriate timing, and the second transmission I / F32 is supplied and transmitted to the connection destination node. When the selector 36 selects the TL frame transmission unit 18 side, the transmission of the ITL frame 110 stored in the ITL data transmission buffer 53 is performed by the TL frame transmission unit 18. No action is taken.

これらの、ITLフレーム受信部51及びITLフレーム送信部54によるITLフレーム110の送受信は、ブロックには分割せず、フレーム単位で行う。
以上の各部の機能により、ネットワークI/Fカード215は、ITLフレーム110を用いた隣接ノードとの通信を、図で右向きの伝送経路で行うことができる。図で左向きの伝送経路で通信を行う場合には、第2のデータ入出力部20を用いる。
The transmission / reception of the ITL frame 110 by the ITL frame reception unit 51 and the ITL frame transmission unit 54 is performed in units of frames without being divided into blocks.
With the function of each unit described above, the network I / F card 215 can perform communication with an adjacent node using the ITL frame 110 through a transmission path directed to the right in the drawing. The second data input / output unit 20 is used when communication is performed on the left transmission path in the figure.

次に、TLフレーム100の送受信に関する第1のデータ入出力部10の機能について説明する。
まず、TLフレーム受信部11は、TLフレーム100のデータを受け取ると、そのデータのうち、読み出すべき伝送chの波形データを波形データ受信バッファ12に書き込み、ITLフレーム領域107のデータをITLデータ受信バッファ52に書き込み、読み出すべきイーサネットフレーム領域106のデータ及び管理データを、TLデータ受信バッファ13に書き込む機能を有する。
データエラー等の検出があった場合には、これらの各バッファへのデータの書き込みを行わなかったり、一旦書き込んだデータを変更したりする場合もあるが、この点については後述する。
Next, functions of the first data input / output unit 10 relating to transmission / reception of the TL frame 100 will be described.
First, when receiving the data of the TL frame 100, the TL frame receiving unit 11 writes the waveform data of the transmission channel to be read out of the data into the waveform data receiving buffer 12, and the data in the ITL frame area 107 is stored in the ITL data receiving buffer. 52 has a function of writing data and management data of the Ethernet frame area 106 to be written to and read into the TL data reception buffer 13.
When a data error or the like is detected, data may not be written to each of these buffers or the data once written may be changed. This will be described later.

また、TLフレーム受信部11は、受け取ったTLフレーム100のデータ全てをそのままディレイバッファ15にも書き込む機能を有する。
そして、波形データ受信バッファ12に書き込まれた各伝送chの波形データは、上位層I/F70のAUDIO_Outポートに対し、ワードクロックに同期して1サンプルずつ出力され、オーディオバス217を介して他のカードに伝送される。
また、ITLデータ受信バッファ52に書き込まれたデータは、ITLフレーム1つ分が揃った時点で、制御部40に出力され、制御部40はそのフレームに記載されたコマンドの内容に従った処理(自機宛でないコマンドを転送する処理も含む)を行う。
Further, the TL frame receiving unit 11 has a function of writing all the data of the received TL frame 100 to the delay buffer 15 as it is.
Then, the waveform data of each transmission channel written in the waveform data reception buffer 12 is output sample by sample to the AUDIO_Out port of the upper layer I / F 70 in synchronization with the word clock, and is transmitted to the other data via the audio bus 217. Transmitted to the card.
The data written in the ITL data reception buffer 52 is output to the control unit 40 when one ITL frame is prepared, and the control unit 40 performs processing according to the contents of the command described in the frame ( Including processing to transfer commands not addressed to the device itself).

TLデータ受信バッファ13に書き込まれたデータは、イーサネットフレームのデータについては、イーサネットフレーム1つ分が揃った時点で、MAC処理部14に出力される。そして、MAC処理部14が自機宛てであることを確認したイーサネットフレームについては、MAC処理部14がそこからIPパケットを取り出して上位層I/F70のIP_Packetポートに対して出力し、制御バス218を介して本体側のCPU201に渡される。イーサネットフレーム以外のデータ、例えばメータデータ等は、MAC処理部14を介して制御部40に渡され、制御部40が上位層I/F70のCOMポートを介して必要に応じて本体側のCPU201に渡す。   The data written to the TL data reception buffer 13 is output to the MAC processing unit 14 when one Ethernet frame is prepared for the data of the Ethernet frame. Then, for the Ethernet frame confirmed that the MAC processing unit 14 is addressed to its own device, the MAC processing unit 14 extracts the IP packet from the Ethernet frame and outputs it to the IP_Packet port of the upper layer I / F 70, and the control bus 218 To the CPU 201 on the main body side. Data other than the Ethernet frame, such as meter data, is passed to the control unit 40 via the MAC processing unit 14, and the control unit 40 passes the COM port of the upper layer I / F 70 to the CPU 201 on the main body side as necessary. hand over.

なお、波形データについては、制御部40が、少なくともどの伝送chのデータを読み取るべきか把握しており、そのデータがTLフレーム100の何バイト目に記載されているかは計算で求められるため、制御部40がその位置をTLフレーム受信部11に指示し、その位置のデータのみを波形データ受信バッファ12に書き込ませるようにすればよい。   For the waveform data, the control unit 40 knows at least which transmission channel data is to be read, and the byte in the TL frame 100 is determined by calculation. The unit 40 may instruct the position to the TL frame receiving unit 11 so that only the data at the position is written in the waveform data receiving buffer 12.

ITLフレーム領域107,イーサネットフレーム領域106,及び管理データについては、TLフレーム中の固定的な位置に記載されているから、一旦その位置からデータを読み出した上で、TLフレーム受信部11が制御部40又はMAC処理部14に出力すべきデータを適宜選別して、ITLデータ受信バッファ52やTLデータ受信バッファ13に書き込むようにすればよい。あるいは、TLフレーム受信部11は単純に該当領域のデータを全て受信バッファに書き込み、データの選別を制御部40が行うようにしてもよい。
選別の手法については後述する。
Since the ITL frame area 107, the Ethernet frame area 106, and the management data are described at fixed positions in the TL frame, the TL frame receiving unit 11 reads the data from the positions once and then the control unit 40 or data to be output to the MAC processing unit 14 may be appropriately selected and written to the ITL data reception buffer 52 or the TL data reception buffer 13. Alternatively, the TL frame reception unit 11 may simply write all the data in the corresponding area to the reception buffer, and the control unit 40 may select the data.
The selection method will be described later.

一方、波形データ送信バッファ16は、TLフレーム100に記載して出力すべき波形データを格納するバッファであり、上位層I/F70は、オーディオバス217から供給される出力すべき波形データを、サンプリング周期毎にAudio_INポートから出力して波形データ送信バッファ16に書き込む。複数の伝送ch分の波形データを書き込むことも当然可能であり、TLフレームの先頭に近いバイトに書き込むデータを先に波形データ送信バッファ16に書き込んでおけばよい。なお、第2のデータ入出力部20も波形データの読み書きに使用する場合には、上位層I/F70は波形データ送信バッファ26にも出力すべき波形データの書き込みを行うが、波形データ送信バッファ16と波形データ送信バッファ26とで別々の波形データを書き込むことはもちろん可能である。   On the other hand, the waveform data transmission buffer 16 is a buffer for storing the waveform data to be output described in the TL frame 100, and the upper layer I / F 70 samples the waveform data to be output supplied from the audio bus 217. Output from the Audio_IN port at every cycle and write to the waveform data transmission buffer 16. It is of course possible to write waveform data for a plurality of transmission channels, and data to be written in bytes close to the head of the TL frame may be written in the waveform data transmission buffer 16 first. When the second data input / output unit 20 is also used for reading and writing waveform data, the upper layer I / F 70 writes waveform data to be output to the waveform data transmission buffer 26, but the waveform data transmission buffer It is of course possible to write different waveform data in 16 and the waveform data transmission buffer 26.

また、TLデータ送信バッファ17は、TLフレームに記載して出力すべきイーサネットフレームのデータ及び管理データを格納するバッファであり、MAC処理部14が、上位層I/F70のIP_Packetポートから出力される送信すべきIPパケットに基づいて生成したイーサネットフレーム及び、制御部40から供給される出力すべき制御データをTLデータ送信バッファ17に書き込む。
また、ITLフレーム110の送受信についての説明で述べた通り、制御部40は、第2の送信I/F32に接続されているノードに送信すべきITLフレーム110のデータを、ITLデータ送信バッファに書き込む。
The TL data transmission buffer 17 is a buffer for storing Ethernet frame data and management data to be described and output in the TL frame, and the MAC processing unit 14 is output from the IP_Packet port of the upper layer I / F 70. The Ethernet frame generated based on the IP packet to be transmitted and the control data to be output supplied from the control unit 40 are written in the TL data transmission buffer 17.
Further, as described in the description of the transmission / reception of the ITL frame 110, the control unit 40 writes the data of the ITL frame 110 to be transmitted to the node connected to the second transmission I / F 32 in the ITL data transmission buffer. .

そして、自機がスレーブノードである場合、ディレイバッファ15にTLフレーム100のデータが所定量(第1の所定量)蓄積されると、蓄積の進行に合わせて、TLフレーム送信部18がその蓄積されたTLフレーム100を先頭から順に読み出して自身が有するバッファに蓄積する。そして、蓄積の進行に合わせて、波形データ送信バッファ16,TLデータ送信バッファ17及びITLデータ送信バッファ53のデータを適当なアドレスに書き込んでTLフレーム100の内容を書き換える。この書き換えは、後述する送信タイミングに間に合うよう、フレームの先頭側から順に行うとよい。   When the own device is a slave node, when a predetermined amount (first predetermined amount) of data of the TL frame 100 is accumulated in the delay buffer 15, the TL frame transmission unit 18 accumulates the data as the accumulation proceeds. The read TL frames 100 are sequentially read from the top and stored in a buffer included in the TL frame 100. Then, as the accumulation proceeds, the data in the waveform data transmission buffer 16, the TL data transmission buffer 17, and the ITL data transmission buffer 53 are written to appropriate addresses, and the contents of the TL frame 100 are rewritten. This rewriting is preferably performed in order from the beginning of the frame so as to be in time for transmission timing described later.

TLフレーム100の何バイト目にどのデータを書き込めばよいかは、波形データについては、制御回路40が書き込むべき伝送chに基づいて算出し、TLフレーム送信部18に指示する。その他、イーサネットフレームやITLフレーム等についても、図2に示した区分に従いデータの種類毎に自動的に決定される。
また、ディレイバッファ15への所定量の蓄積を検出してそれをTLフレーム送信部18による読み出し及び書き換えのトリガとする代わりに、TLフレーム100を取り込み開始してから所定時間の経過を検出して、それをトリガするようにしてもよい。
Which data should be written in which byte of the TL frame 100 is calculated based on the transmission channel to be written by the control circuit 40 for the waveform data, and is instructed to the TL frame transmission unit 18. In addition, Ethernet frames, ITL frames, and the like are automatically determined for each data type according to the classification shown in FIG.
Further, instead of detecting a predetermined amount of accumulation in the delay buffer 15 and using it as a trigger for reading and rewriting by the TL frame transmission unit 18, the elapse of a predetermined time after the start of capturing the TL frame 100 is detected. , It may be triggered.

そして、自機がスレーブノードである場合、TLフレーム送信部18のバッファにTLフレーム100のデータが第2の所定量だけ蓄積されると、TLフレーム送信部18は書き換え後のTLフレームの出力を開始し、TLフレーム送信部18による差し替え後のTLフレーム100は、セレクタ36がTLフレーム送信部18からの出力ラインを選択していれば、第2の送信I/F32から隣接ノードに対して出力される。このとき、第1のデータ入出力部10の動作クロックが、そのままネットワーククロックNC2として、第2の送信I/F32に供給され、第2の送信I/Fは、TLフレームのデータをネットワーククロックNC2をキャリアとして順次変調して通信ケーブルCBに出力する。   When the own device is a slave node, when the second predetermined amount of data of the TL frame 100 is accumulated in the buffer of the TL frame transmission unit 18, the TL frame transmission unit 18 outputs the output of the TL frame after rewriting. The TL frame 100 that is started and replaced by the TL frame transmission unit 18 is output from the second transmission I / F 32 to the adjacent node if the selector 36 selects the output line from the TL frame transmission unit 18. Is done. At this time, the operation clock of the first data input / output unit 10 is supplied as it is to the second transmission I / F 32 as the network clock NC2, and the second transmission I / F converts the data of the TL frame into the network clock NC2. Are sequentially modulated as carriers and output to the communication cable CB.

なお、第2の所定量の蓄積を検出してそれを送信のトリガとする代わりに、TLフレーム100を取り込み開始してから所定時間の経過を検出して、それをトリガとして送信を開始するようにしてもよい。
また、図2及び図3を用いて説明したように、イーサネットフレームやITLフレーム110をTLフレーム100に書き込んで送信する場合、これらのデータを複数の(1つの場合もある)ブロックに分割する。この分割と、ブロック毎のブロック番号等の生成は、TLフレーム送信部18が行い、TLフレーム100のデータ書き換えタイミングまでに、書き換えに使用するブロックのデータを用意しておく。
Instead of detecting the second predetermined amount of accumulation and using it as a trigger for transmission, detection of the elapse of a predetermined time from the start of capturing the TL frame 100 and starting transmission using that as a trigger It may be.
As described with reference to FIGS. 2 and 3, when the Ethernet frame or the ITL frame 110 is written in the TL frame 100 and transmitted, the data is divided into a plurality of (or even one) blocks. This division and generation of a block number and the like for each block is performed by the TL frame transmission unit 18, and block data to be used for rewriting is prepared before the data rewriting timing of the TL frame 100.

なお、本実施形態では、ディレイバッファ15に記憶されたTLフレーム100に対するTLフレーム送信部18による内容の書き換えと、出力とを同時に行うようになっていたが、先に書き換えを行ってから、書き換えの済んだ部分から順に出力するようにしてもよい。   In this embodiment, the TL frame transmission unit 18 rewrites the contents and outputs the TL frame 100 stored in the delay buffer 15 at the same time. However, the rewriting is performed after the rewriting is performed first. You may make it output in order from the finished part.

また、本実施形態では、TLフレーム送信部18のバッファに記憶されたTLフレーム100への内容の書き換えと、TLフレーム送信部18からのTLフレーム100の出力を独立して行うようになっていたが、その書き換えと出力を一度に行うようにしてもよい。すなわち、受信したTLフレーム100のディレイバッファ15への所定量の蓄積をトリガとしてTLフレーム送信部18によるそのTLフレーム100の読み出しを開始し、波形データ送信バッファ16,TLデータ送信バッファ17及びITLデータ送信バッファ53のデータにより内容を差し替えつつ出力するようにしてもよい。 In the present embodiment, the rewriting of the contents to the TL frame 100 stored in the buffer of the TL frame transmission unit 18 and the output of the TL frame 100 from the TL frame transmission unit 18 are performed independently. However, the rewriting and output may be performed at a time. That is, the TL frame transmission unit 18 starts reading out the TL frame 100 triggered by accumulation of a predetermined amount in the delay buffer 15 of the received TL frame 100, and the waveform data transmission buffer 16, the TL data transmission buffer 17, and the ITL data The data may be output while the content is replaced by the data in the transmission buffer 53.

また、データの差し替えは、TLフレーム100の各バイト(又はワード)のデータを出力する際に、ディレイバッファ15から読み出したデータと、波形データ送信バッファ16に格納されていたデータ、TLデータ送信バッファ17に格納されていたデータ、およびITLデータ送信バッファ53に格納されていたデータのうち適切なものを選択して送信するようにしてもよい。この場合、ディレイバッファ15から読み出したTLフレームのデータのうち、選択されなかったデータは破棄されることになる。そして、この処理によっても、TLフレーム送信部18は、実質的に、TLフレーム受信部11が受信したTLフレーム100の適当な領域に、出力すべきデータを上書きしたTLフレームを出力することができる。   The data is replaced by data read from the delay buffer 15 when outputting each byte (or word) data of the TL frame 100, data stored in the waveform data transmission buffer 16, and TL data transmission buffer. An appropriate data may be selected and transmitted from the data stored in the data 17 and the data stored in the ITL data transmission buffer 53. In this case, unselected data among the data of the TL frame read from the delay buffer 15 is discarded. Also by this processing, the TL frame transmitting unit 18 can substantially output a TL frame overwritten with data to be output in an appropriate region of the TL frame 100 received by the TL frame receiving unit 11. .

また、上述のように、シングルモードの場合、各ノードはTLフレームに伝送経路を1周させる間、ITLフレーム領域107以外のデータは、1回しか読み書きを行わない。従って、ITLフレーム領域107以外のデータは、第1,第2のデータ入出力部10,20のいずれか一方でしかデータの読み書きを行わない。そして、ITLフレーム領域107以外のデータの読み書きを行わない方のデータ入出力部では、ITLフレーム領域107以外の部分のデータは、単にスルーさせるのみとする。   Further, as described above, in the single mode, each node reads / writes data other than the ITL frame area 107 only once while the transmission path makes one round of the TL frame. Accordingly, data other than the ITL frame area 107 is read / written only by one of the first and second data input / output units 10 and 20. In the data input / output unit that does not read / write data other than the ITL frame area 107, the data other than the ITL frame area 107 is simply passed through.

また、マスタノードにおいては、後述するように、TLフレーム100全体の受信が完了してからTLフレーム100の更新を行うようになっており、TLフレーム100へのデータの書き込みのタイミングおよびTLフレーム100の送信開始のタイミングが、スレーブノードとは異なる。しかし、TLフレーム100中のデータの書き込み位置については、スレーブノードの場合と同様に定めることができる。また、TLフレーム100中の管理データ102の書き換えも行うが、この書き換えも、新たなTLフレームに記載すべきデータをTLデータ送信バッファ17に書き込んでおき、このデータをフレームバッファに蓄積されたTLフレームに上書きして行うことができる。
以上がTLフレーム100の送受信に関する第1のデータ入出力部10の機能である。
As will be described later, the master node updates the TL frame 100 after the reception of the entire TL frame 100 is completed, and the timing of writing data to the TL frame 100 and the TL frame 100 are updated. The transmission start timing is different from that of the slave node. However, the data write position in the TL frame 100 can be determined in the same manner as in the slave node. The management data 102 in the TL frame 100 is also rewritten. In this rewriting, data to be written in a new TL frame is written in the TL data transmission buffer 17, and this data is stored in the TL stored in the frame buffer. This can be done by overwriting the frame.
The above is the function of the first data input / output unit 10 related to transmission / reception of the TL frame 100.

ところで、図1(a)等からわかるように、ある装置が受信したTLフレーム100のその装置からの送信先は、そのTLフレーム100の送信元と別の装置になる場合(図1(a)のノードB)と、送信元と同じ装置になる場合(同ノードA,C)とがある。そして、前者の場合、TLフレーム100の送信は、TLフレーム100を受信した受信I/Fと別の組の送信I/Fから行い、後者の場合、同じ組の送信I/Fから行う。
セレクタ35〜38は、このような送信先の切り替えを行うために設けたものである。
このうち、セレクタ35,37はそれぞれ、TLフレーム受信部11,21に入力するデータを、受信I/F31,33で受信したデータとするか、TLフレーム送信部28,18が出力したデータとするかを選択するセレクタである。
By the way, as can be seen from FIG. 1A and the like, the transmission destination of the TL frame 100 received by a certain device is different from the transmission source of the TL frame 100 (FIG. 1A). Node B) and the same device as the transmission source (nodes A and C). In the former case, transmission of the TL frame 100 is performed from a transmission I / F of a different group from the reception I / F that has received the TL frame 100, and in the latter case, transmission is performed from the transmission I / F of the same group.
The selectors 35 to 38 are provided for performing such switching of transmission destinations.
Among these, the selectors 35 and 37 use the data input to the TL frame receiving units 11 and 21 as the data received by the receiving I / Fs 31 and 33 or the data output from the TL frame transmitting units 28 and 18, respectively. It is a selector that selects

一方、セレクタ36,38はそれぞれ、送信I/F32,34から送信するデータを、TLフレーム送信部18,28が出力するTLフレームとするか、ITLフレーム送信部54,64が出力するITLフレームとするかを選択するセレクタである。
そして、これらのうちセレクタ36とセレクタ37とは連動して動作し、セレクタ36がTLフレーム送信部18の出力を第2の送信I/F32に流す状態では、セレクタ37は第2の受信I/F33で受信したデータをTLフレーム受信部21に渡し、第2のI/F側に接続されている装置からTLフレームを受信可能な状態となる。
On the other hand, the selectors 36 and 38 respectively select the data transmitted from the transmission I / Fs 32 and 34 as the TL frame output from the TL frame transmission units 18 and 28 or the ITL frame output from the ITL frame transmission units 54 and 64. It is a selector that selects whether to do.
Of these, the selector 36 and the selector 37 operate in conjunction with each other. When the selector 36 sends the output of the TL frame transmission unit 18 to the second transmission I / F 32, the selector 37 receives the second reception I / F. The data received in F33 is transferred to the TL frame receiving unit 21, and the TL frame can be received from the device connected to the second I / F side.

一方、セレクタ37を折り返しラインLB1側に切り替え、TLフレーム送信部18の出力をTLフレーム受信部21に渡す状態とすると、第1の受信I/F31が受信したTLフレーム100は、第1のデータ入出力部10→折り返しラインLB1→第2のデータ入出力部20を通って、第1の送信I/F34から出力されることになる(セレクタ38がTLフレーム送信部28側を選択していれば)。従って、受信したTLフレーム100をその送信元に対して折り返し送信することになる。 On the other hand, when the selector 37 is switched to the return line LB1 side and the output of the TL frame transmission unit 18 is passed to the TL frame reception unit 21, the TL frame 100 received by the first reception I / F 31 is the first data. The data is output from the first transmission I / F 34 through the input / output unit 10 → the return line LB1 → the second data input / output unit 20 (if the selector 38 selects the TL frame transmission unit 28 side). If) Accordingly, the received TL frame 100 is transmitted back to the transmission source.

また、セレクタ36はセレクタ37の折り返しラインLB1側への切り替えに連動してITLフレーム送信部54側に切り替わり、第2のI/F側の装置に対しては、TLフレーム100ではなくITLフレーム110を送信する状態となる。一方、第2の受信I/F33がITLフレーム110を受信した場合には、このフレームはITLフレーム受信部61にて処理することができる。
従って、TLフレーム100を折り返す状態でも、TLフレーム100の送信を行わない側に接続されている装置との間で、ITLフレームを用いた通信を行う経路は確保される。
In addition, the selector 36 switches to the ITL frame transmission unit 54 side in conjunction with the switching of the selector 37 to the folding line LB1 side. For the second I / F side device, the ITL frame 110 instead of the TL frame 100 is switched. Will be sent. On the other hand, when the second reception I / F 33 receives the ITL frame 110, this frame can be processed by the ITL frame reception unit 61.
Therefore, even in a state in which the TL frame 100 is folded, a path for performing communication using the ITL frame is secured with a device connected to a side that does not transmit the TL frame 100.

この経路による通信は、後述する接続検出コマンドや接続要求コマンド及びそれらに対する返答の送受信等、初期処理においてオーディオネットワークシステムを組み立てたり、システムの構成変更に係る処理を行ったりする際の通知やコマンドの送受信等に用いる。
また、ここではセレクタ36,37について説明したが、セレクタ38,35も、連動して動作することにより同様な機能を有する。そして、第2の受信I/F33から受信したTLフレーム100に関し、折り返しを行うか否かを切り換えることができる。
Communication via this route is a notification or command when an audio network system is assembled in the initial process, such as a connection detection command, a connection request command, and a response to the response described later, or a process related to a system configuration change is performed. Used for transmission and reception.
Although the selectors 36 and 37 have been described here, the selectors 38 and 35 have similar functions by operating in conjunction with each other. Then, it is possible to switch whether or not the TL frame 100 received from the second reception I / F 33 is to be looped back.

以上をまとめると、音響信号処理装置2においては、所属するオーディオネットワークシステム中での各ノードの接続状態と、自機がマスタノードかスレーブノードかとに従い、図8に示したネットワークI/Fカード215のハードウェアが、上述した処理を行うことにより、図1乃至図6を用いて説明したようなTLフレーム及びデータの伝送に係る機能を実現することができる。   In summary, in the acoustic signal processing device 2, the network I / F card 215 shown in FIG. 8 depends on the connection state of each node in the audio network system to which it belongs and whether its own device is a master node or a slave node. By performing the above-described processing, the hardware can realize the function related to the transmission of the TL frame and data as described with reference to FIGS.

2.オーディオネットワークシステムの形成及びその構成変更について
2.1 各装置の通信モード
次に、図7に示した音響信号処理装置2において制御部40のCPUが実行する、オーディオネットワークシステムの構築や構成変更に関連する処理について説明する。
図7に示した音響信号処理装置2において、ネットワークI/Fカード215は、起動時には、セレクタ35,37の両方が折り返しライン側を選択した状態となっている。この状態では、ネットワークI/Fカード215はTLフレームを複数のノード間で循環させるオーディオネットワークシステムは形成しておらず、外部とはITLフレームにより通信を行う状態である(この状態を「初期通信(ITL)モード」と呼ぶ)。
2. 2.1 Formation of Audio Network System and Configuration Change 2.1 Communication Mode of Each Device Next, for construction and configuration change of the audio network system executed by the CPU of the control unit 40 in the acoustic signal processing device 2 shown in FIG. Related processing will be described.
In the acoustic signal processing device 2 shown in FIG. 7, the network I / F card 215 is in a state where both the selectors 35 and 37 have selected the return line side at the time of activation. In this state, the network I / F card 215 does not form an audio network system that circulates TL frames between a plurality of nodes, and is in a state in which communication with the outside is performed using ITL frames (this state is referred to as “initial communication”). (Referred to as (ITL) mode).

そしてその後、送受信I/Fが、同様なネットワークI/Fカード215を有し、オーディオネットワークシステム1を形成可能な他の装置と接続されたことを検出すると、その接続された側のセレクタを受信I/F側に切り替え、接続された装置との間で、TLフレーム100を循環させるリング状の伝送経路を形成する。この時点で、リング状の伝送経路を形成している各装置が、一連のシステムとして機能を始めることになる。   After that, when it is detected that the transmission / reception I / F is connected to another device having the same network I / F card 215 and capable of forming the audio network system 1, the selector on the connected side is received. Switching to the I / F side, a ring-shaped transmission path for circulating the TL frame 100 is formed with the connected apparatus. At this point, each device forming the ring-shaped transmission path starts to function as a series of systems.

ただし、この状態では、まだTLフレーム100に対して波形データの読み書きは行わないが、イーサネットフレーム、ITLフレーム、管理データ等、波形データ以外のデータは、TLフレーム100に記載して装置間で送受信できる(この状態を「臨時通信(TTL)モード」と呼ぶ)。このTTLモードでは、伝送経路の端に位置する装置のうち、フリーな送受信I/Fがある側に新たな装置が接続されると、その新たに接続された装置を伝送経路に組み込むことができる。   However, in this state, the waveform data is not yet read / written from / to the TL frame 100, but data other than the waveform data such as the Ethernet frame, the ITL frame, and the management data is described in the TL frame 100 and transmitted / received between the devices. Yes (this state is called “Temporary Communication (TTL) Mode”). In this TTL mode, when a new device is connected to a side having a free transmission / reception I / F among devices located at the end of the transmission path, the newly connected device can be incorporated into the transmission path. .

その後、いずれかの装置がマスタノードに指定されると、その時点で接続されている装置間で再度リング状の伝送経路の形成が行われ、波形データも含めた全てのデータをTLフレームに記載して各装置(ノード)間で伝送するオーディオネットワークシステム1が形成される(この状態を「音声伝送(RTL)モード」と呼ぶ)。このRTLモードでも、伝送経路の端に位置する装置のうち、フリーな送受信I/Fがある側に新たな装置が接続されると、その新たに接続された装置を伝送経路に組み込むことができる。   After that, when any device is designated as the master node, a ring-shaped transmission path is formed again between the devices connected at that time, and all data including waveform data is described in the TL frame. Thus, the audio network system 1 for transmission between the respective devices (nodes) is formed (this state is referred to as “voice transmission (RTL) mode”). Even in this RTL mode, when a new device is connected to a side having a free transmission / reception I / F among devices located at the end of the transmission path, the newly connected device can be incorporated into the transmission path. .

ネットワークI/Fカード215を備える装置は、これらのITLモード、TTLモード、RTLモードを流動的に遷移することにより、各装置の接続状態に応じてオーディオネットワークシステム1を構築したり、構成を変更したりすることができる。以下、このシステムの構成や構成変更のための処理について説明する。   A device including the network I / F card 215 constructs the audio network system 1 or changes the configuration according to the connection state of each device by fluidly transitioning between these ITL mode, TTL mode, and RTL mode. You can do it. In the following, processing for changing the system configuration and configuration will be described.

2.2 システム形成段階の動作
次に、図7に示した音響信号処理装置2において制御部40のCPUが実行する、オーディオネットワークシステムの構築や構成変更に関連する処理について説明する。
図9は、制御部40のCPUが電源ON時及びリセット時に実行する、システムの構築に関する処理のフローチャートである。なお、この処理は、送受信I/Fの組毎に、独立して行うものである。例えば、図8に示したネットワークI/Fカード215の場合、制御部40のCPUは、第1の送受信I/F31,34に対応する処理と、第2の送受信I/F32,33に対応する処理とを行う。以後の説明において、単に送信I/F,受信I/Fと言った場合には、実行中の処理と対応するI/Fを指すものとする。
また、制御部40のCPUは、電源ON時には、この処理と別に、本体側のCPU201から自機のMACアドレスや動作モードの設定に関する情報を取得する処理を行う。
2.2 Operation at the System Formation Stage Next, processing related to construction and configuration change of the audio network system executed by the CPU of the control unit 40 in the acoustic signal processing device 2 shown in FIG. 7 will be described.
FIG. 9 is a flowchart of processing related to system construction that is executed by the CPU of the control unit 40 when the power is turned on and reset. This process is performed independently for each pair of transmission / reception I / Fs. For example, in the case of the network I / F card 215 shown in FIG. Process. In the following description, when the transmission I / F and the reception I / F are simply referred to, the I / F corresponding to the process being executed is indicated.
Further, when the power is turned on, the CPU of the control unit 40 performs a process of acquiring information related to the setting of the MAC address and operation mode of the own machine from the CPU 201 on the main body side separately from this process.

制御部40のCPUは、電源ON時及びリセット時に、少なくとも自機のMACアドレスが取得できると、図9のフローチャートに示す処理を開始する。そして、まず図10に示す物理接続確認処理の要求側動作を実行し、送受信I/Fにオーディオネットワークシステム1を形成する能力を有する装置が物理的に接続されているか否かを確認する(S11)。   The CPU of the control unit 40 starts the process shown in the flowchart of FIG. 9 when at least the MAC address of its own device can be acquired at power-on and reset. First, the request side operation of the physical connection confirmation process shown in FIG. 10 is executed to confirm whether or not a device having the capability of forming the audio network system 1 is physically connected to the transmission / reception I / F (S11). ).

図10に、この物理接続確認処理のフローチャートを示す。
この図に示すように、図9のステップS11で実行する物理接続確認処理の要求側動作において、制御部40のCPUはまず、接続検出(AS)コマンドのITLフレームを、送信I/Fから出力する。このASコマンドは、送信I/Fに何らかの装置が接続されていれば、その装置が受信する。
FIG. 10 shows a flowchart of the physical connection confirmation process.
As shown in this figure, in the request side operation of the physical connection confirmation process executed in step S11 of FIG. 9, the CPU of the control unit 40 first outputs an ITL frame of a connection detection (AS) command from the transmission I / F. To do. If any device is connected to the transmission I / F, the AS command is received by the device.

そして、受信した装置もネットワークI/Fカード215を備えていれば、その制御部40のCPUは、図10の返答側動作のフローチャートに示す処理を開始する。
そして、この処理においては、返答側装置の制御部40のCPUは、受信したASコマンドに対する応答であるAS応答を生成し、応答のITLフレームとしてASコマンドの送信元装置に返す(S45)。この応答に記載する情報は、ステップS41〜S44で決定するが、自装置のMACアドレスを把握できていれば、そのMACアドレスを記載し(S41,S42)、自装置がTTLモード又はRTLモードのシステムに既に参加していれば、そのシステムのネットワークID及びシステム内での自機のノードIDも記載する(S43,S44)。
If the received device also includes the network I / F card 215, the CPU of the control unit 40 starts the processing shown in the response side operation flowchart of FIG.
In this process, the CPU of the control unit 40 of the responding apparatus generates an AS response that is a response to the received AS command, and returns it to the AS command transmission source apparatus as a response ITL frame (S45). The information described in this response is determined in steps S41 to S44. If the MAC address of the own device can be grasped, the MAC address is described (S41, S42), and the own device is in the TTL mode or the RTL mode. If it has already participated in the system, the network ID of the system and the node ID of its own device in the system are also described (S43, S44).

なお、ネットワークIDは、TTLモードの場合には「0」、RTLモードの場合にはシステムに固有な値である。また、システムに参加していない場合には、AS応答にネットワークIDとして「不定値」を示すコードを記載するとよい。また、ノードIDは、システム内で特定のノードを識別するためのIDであり、その値はシステム内でノード毎に固有な値である。   The network ID is “0” in the case of the TTL mode and a value unique to the system in the case of the RTL mode. In addition, when not participating in the system, a code indicating “undefined value” as the network ID may be described in the AS response. The node ID is an ID for identifying a specific node in the system, and the value is a value unique to each node in the system.

一方、ASコマンドの送信を行った装置は、AS応答の受信を監視しつつ待機する。そして、所定時間経過してタイムアウトする前にAS応答を受信すると(S32)、送受信I/Fにオーディオネットワークシステム1を形成する能力のある装置が接続されていることがわかる。そこで、受信したAS応答の内容に基づき、トポロジーテーブルの内容を更新する(S33)。トポロジーテーブルは、自機と直接に又は他の装置を介して間接に接続されている各装置の接続順を登録するテーブルである。   On the other hand, the apparatus that has transmitted the AS command waits while monitoring reception of the AS response. Then, when an AS response is received before a predetermined time elapses (S32), it is understood that a device capable of forming the audio network system 1 is connected to the transmission / reception I / F. Therefore, the contents of the topology table are updated based on the contents of the received AS response (S33). The topology table is a table for registering the connection order of each device connected directly to the own device or indirectly through another device.

図11に、このトポロジーテーブルの例を示す。
この図に示すように、トポロジーテーブルには、自機のバックワード側とフォワード側にそれぞれどのような装置がどのような順で接続されているかを、ネットワークID,ノードID及びMACアドレスによって登録する。これらのうち、MACアドレスは装置固有であるが、ネットワークID及びノードIDは、システムへの参加状況に応じて可変である。また、トポロジーテーブルに、装置の機種IDや、後述する装置間のフレーム伝送遅延時間(又は装置間の距離)も登録するようにしてもよい。
FIG. 11 shows an example of this topology table.
As shown in this figure, in the topology table, what devices are connected to the backward side and the forward side of the own device in what order are registered by the network ID, node ID, and MAC address. . Among these, the MAC address is unique to the device, but the network ID and node ID are variable according to the participation status in the system. Further, the model ID of the device and a frame transmission delay time between devices (or a distance between devices) described later may be registered in the topology table.

また、トポロジーテーブルはここでは、バックワード側とフォワード側についてそれぞれ、図で一番上の欄が自機に直接接続されている装置の情報を示し、その次の欄が、一番上の欄に記載されている装置の1つ先に接続されている装置の情報を示し、という具合に記載する。   In the topology table, for the backward side and the forward side, the top column in the figure shows information on devices directly connected to the own device, and the next column is the top column. It shows the information of the device connected to one device ahead of the device described in, and so on.

2組の送受信I/Fのうち、どちらに接続されている側がフォワード側であるかは、起動時には、I/FのID等により、任意に定めればよい。また、装置によって、異なる向きをフォワード側と認識していても、各装置の相対的な位置関係は把握できるので、特に問題はない。しかし、一旦TTLモード又はRTLモードに移行した場合、図4の説明で述べたように、マスタノードから見て、一巡するTLフレームを最初に送信する側をフォワード側に統一する。
あるいは、第1の送受信I/Fがバックワード側、第2の送受信I/Fがフォワード側、というように向きを固定し、装置間でフォワード側同士やバックワード側同士が接続された場合には、エラーとするようにしてもよい。このようにすると、ユーザによる接続の自由度は低下するが、システムの制御は容易である。
Which of the two sets of transmission / reception I / Fs is connected to the forward side may be arbitrarily determined based on the ID of the I / F at the time of activation. Moreover, even if the different direction is recognized as the forward side depending on the device, there is no particular problem because the relative positional relationship between the devices can be grasped. However, once the mode is shifted to the TTL mode or the RTL mode, as described in the explanation of FIG. 4, the side that first transmits a TL frame that makes a round is unified to the forward side as seen from the master node.
Or, when the direction is fixed such that the first transmission / reception I / F is the backward side and the second transmission / reception I / F is the forward side, and the forward side and the backward side are connected between the devices. May be an error. This reduces the degree of freedom of connection by the user, but the system is easy to control.

図10の説明に戻ると、制御部40のCPUは、ステップS33の後、返答側装置との間で適宜ITLフレームを送受信して、返答側装置に対しトポロジーテーブルの内容を伝達する(S34)。具体的には、返答側装置と反対側に接続されている装置のデータを、接続順の情報も含めて送信し、その情報を、返答側装置のトポロジーテーブルに登録させる。
その後、返答側装置の情報を伝えるテーブル更新通知のITLフレームを生成し、AS応答を受信した側と反対側の送信I/Fから送信して(S35)、図10の処理を終了し、図9のステップS12の処理に進む。
Returning to the description of FIG. 10, after step S33, the CPU of the control unit 40 transmits / receives an ITL frame to / from the response side apparatus as appropriate, and transmits the contents of the topology table to the response side apparatus (S34). . Specifically, the data of the device connected to the side opposite to the response side device is transmitted including the connection order information, and the information is registered in the topology table of the response side device.
Thereafter, an ITL frame for a table update notification that conveys information on the response side device is generated and transmitted from the transmission I / F on the opposite side to the AS response reception side (S35), and the processing of FIG. The process proceeds to step S12 of step 9.

なお、図示は省略したが、このテーブル更新通知を受け取った装置は、自機のノードテーブルに、通知された返答側装置のデータを登録する。また、テーブル送信通知を受信した側と反対側に装置が接続されていれば、その装置にも、返答側装置の情報を伝えるテーブル更新通知のITLフレームを送信する。このようにして、図10の処理を行った要求側装置から見て、返答側装置と反対側に接続されている装置全てにおいて、ノードテーブルに返答側装置のデータが登録される。
ただし、要求側動作自体は、ステップS35の送信が完了した時点で終了してよい。
Although not shown, the device that has received this table update notification registers the data of the notified responding device in its own node table. Also, if a device is connected to the side opposite to the side that received the table transmission notification, the table update notification ITL frame that conveys information of the response side device is also transmitted to that device. In this way, the data of the response side device is registered in the node table in all devices connected to the opposite side of the response side device as viewed from the request side device that has performed the processing of FIG.
However, the request side operation itself may be terminated when the transmission in step S35 is completed.

また、ステップS32でタイムアウトした場合には、送信I/Fには装置が接続されていないか、又は接続されていても、オーディオネットワークシステム1を形成する能力のある装置ではないとわかるため、そのまま図10の処理を終了し、図9のステップS12の処理に進む。
なお、ステップS31の時点で受信I/Fがネットワーククロックを検出できない等、送受信I/Fに装置が接続されていないことが明らかである場合には、ASコマンドの送信を行わずに、ステップS32の判断をNOとしてもよい。
Further, when a time-out occurs in step S32, it is understood that no device is connected to the transmission I / F, or even if the device is connected, the device is not capable of forming the audio network system 1. The process of FIG. 10 is terminated, and the process proceeds to the process of step S12 of FIG.
If it is clear that the device is not connected to the transmission / reception I / F, for example, the reception I / F cannot detect the network clock at the time of step S31, the AS command is not transmitted, and step S32 is not performed. This determination may be NO.

図10の処理が終了すると、制御部40のCPUは、図9のステップS12において、物理接続確認処理において送受信I/Fにオーディオネットワークシステム1を形成する能力のある装置の接続が確認されたか否か(ステップS32のY/N)を判断する。
そして、接続が確認されていなければ、ステップS11に戻って再度物理接続確認処理を行う(所定時間待機した後でもよい)が、確認されていた場合には、図12に示す論理接続準備処理に進み、接続が確認された相手装置との間で、どのような形でTTLモード又はRTLモードのシステムを形成できるかを判断する(S13)。
When the process of FIG. 10 is completed, the CPU of the control unit 40 determines whether or not the connection of a device capable of forming the audio network system 1 in the transmission / reception I / F is confirmed in the physical connection confirmation process in step S12 of FIG. (Y / N in step S32) is determined.
If the connection is not confirmed, the process returns to step S11 and the physical connection confirmation process is performed again (may be after waiting for a predetermined time). If the connection is confirmed, the logical connection preparation process shown in FIG. In step S13, it is determined how the TTL mode or RTL mode system can be formed with the partner apparatus whose connection has been confirmed.

この論理接続準備処理は、大まかに言えば、自装置と相手装置のネットワークIDを参照し、RTL>TTL>ITLの優先順位で、優先順位の低いモードの装置を、優先順位の高いモードの装置が参加しているシステムに組み込むことを決定する処理である。また、論理接続とは、装置間でTLフレームを循環させる共通の伝送経路を形成すること、又は既にある伝送経路に新たな装置を加えることを言う。   In general, the logical connection preparation process refers to the network IDs of the own device and the partner device, and assigns a low priority device to a high priority device with a priority of RTL> TTL> ITL. Is a process for determining to be incorporated into a participating system. In addition, logical connection means forming a common transmission path for circulating TL frames between apparatuses, or adding a new apparatus to an existing transmission path.

図12に、この論理接続準備処理のフローチャートを示す。
この図に示すように、論理接続準備処理においては、制御部40のCPUはまず、自装置のネットワークIDにより、自装置がRTL,TTL,ITLのうちどのモードであるかを判定する(S51)。
FIG. 12 shows a flowchart of the logical connection preparation process.
As shown in this figure, in the logical connection preparation process, the CPU of the control unit 40 first determines which mode is RTL, TTL, or ITL based on the network ID of the own device (S51). .

そして、ITLモード又はTTLモードの場合、次に、相手装置のネットワークIDを確認し、相手装置がRTL,TTL,ITLのうちどのモードであるかを判定する(S52)。ここでRTLモードの場合、自装置の方が優先順位の低いモードであることがわかるため、自装置を相手装置が参加しているRTLモードのシステムに組み込ませることを決定する。
そして、自装置がITLモードであれば、そのままシステムに組み込ませることができる状態であるので、図9のステップS19の論理接続確立処理において、RTLモード移行のため返答側動作を行うことを決定する。
In the case of the ITL mode or the TTL mode, next, the network ID of the partner device is confirmed, and it is determined which mode the partner device is in RTL, TTL, or ITL (S52). Here, in the case of the RTL mode, since it is understood that the own device is a mode having a lower priority, it is determined that the own device is incorporated into the RTL mode system in which the partner device participates.
If the own apparatus is in the ITL mode, it can be incorporated into the system as it is, and therefore, in the logical connection establishment process in step S19 in FIG. .

また、自装置がTTLモードであれば、一旦リセットを受け、TTLモードのシステムから抜けてから相手装置が参加しているシステムに組み入れてもらうため、相手装置からのリセット命令を待つ状態に移行することを決定する。ここで一旦リセットを受けることを要求するのは、リング状の伝送経路が形成されている2つのシステムの端のノード同士をそのまま接続してしまうと、2つのリングが融合した伝送経路が形成され、接続時には伝送経路上に2つのTLフレームが存在してしまうことになり、フレーム伝送が正常に行えなくなってしまうためである。
そして、以上のように自装置の行うべき動作が決定すると、図12の処理を終了し、図9のステップS14の処理に進む。
If the device itself is in the TTL mode, the device temporarily receives a reset, and after entering the TTL mode system, enters the system in which the partner device participates, and then shifts to a state of waiting for a reset command from the partner device. Decide that. The reason for requesting a reset here is that if the nodes at the ends of two systems in which a ring-shaped transmission path is formed are connected as they are, a transmission path in which the two rings are merged is formed. This is because two TL frames exist on the transmission path at the time of connection, and frame transmission cannot be normally performed.
When the operation to be performed by the device itself is determined as described above, the process in FIG. 12 is terminated and the process proceeds to step S14 in FIG.

また、ステップS52でITLモード又はTTLモードの場合、ステップS53に進む。
そして、自装置がITLモードであって(S53)、相手装置がTTLモードである場合(S54)、自装置の方が優先順位の低いモードであることがわかるため、自装置を相手装置が参加しているTTLモードのシステムに組み込ませることを決定する。そこで、図9のステップS19の論理接続確立処理において、TTLモード移行のため返答側動作を行うことを決定して、図12の処理を終了し、図9のステップS14の処理に進む。
If the ITL mode or TTL mode is selected in step S52, the process proceeds to step S53.
When the own device is in the ITL mode (S53) and the partner device is in the TTL mode (S54), it can be seen that the own device is in a lower priority mode, so the partner device joins the own device. To be incorporated into a TTL mode system. Therefore, in the logical connection establishment process in step S19 in FIG. 9, it is determined to perform a response side operation for shifting to the TTL mode, the process in FIG. 12 is terminated, and the process proceeds to step S14 in FIG.

また、自装置と相手装置が共にITLモードである場合、自装置と相手装置とでTTLモードのシステムを形成することを決定するが、この時、システム内でどちらが暫定マスタノードとなるかを決める必要がある。この決定アルゴリズムは、任意のものでよいが、ここでは、MACアドレスの大小で決定するようにしている。そこで、この場合、自装置のMACアドレスが相手装置のMACアドレスより大きいか否か判断する(S55)。そして、自装置が大きければ、自装置を暫定マスタに設定し(S56)、TTLモードへの移行を主導的に行うため、図9のステップS19の論理接続確立処理においてTTLモード移行のため要求側動作を行うことを決定して、図12の処理を終了し、図9のステップS14の処理に進む。   If both the own device and the partner device are in the ITL mode, it is determined that the own device and the partner device form a TTL mode system. At this time, it is determined which is the temporary master node in the system. There is a need. This determination algorithm may be arbitrary, but here it is determined based on the size of the MAC address. Therefore, in this case, it is determined whether or not the MAC address of the own device is larger than the MAC address of the partner device (S55). If the own device is large, the own device is set as a provisional master (S56), and the transition to the TTL mode is led, so that in the logical connection establishment process of step S19 in FIG. It is decided to perform the operation, the process of FIG. 12 is terminated, and the process proceeds to the process of step S14 of FIG.

ステップS55で自装置が小さければ、相手装置が暫定マスタとなるため、相手装置によりシステムに組み込んでもらうため、TTLモード移行のため返答側動作を行うことを決定して、図12の処理を終了し、図9のステップS14の処理に進む。
なお、暫定マスタを決定するためのアルゴリズムとしては、MACアドレス大小の他、物理接続確認処理においてASコマンドを送った方を暫定マスタとする、電源ON又はリセットからの時間が長い方を暫定マスタとする、これらの条件の組み合わせ、等も考えられる。
If the own device is small in step S55, the partner device becomes a provisional master. Therefore, in order to have the partner device incorporate it into the system, it is decided to perform a reply side operation for shifting to the TTL mode, and the processing in FIG. Then, the process proceeds to step S14 in FIG.
As an algorithm for determining the temporary master, in addition to the MAC address size, the one that has sent the AS command in the physical connection confirmation process is the temporary master, and the longer one from the power-on or reset is the temporary master. A combination of these conditions is also conceivable.

次に、ステップS53で自装置がTTLモードであった場合、相手側装置と接続すると、ツインモードの伝送経路が形成されるか否か判断する(S57)。具体的には、相手装置が、自身が参加しているシステムの反対側の端に位置するノードであるか否か判断する。この判断は、トポロジーテーブルから、反対側の端のノードのMACアドレスを取得して行えばよい。   Next, when the own device is in the TTL mode in step S53, it is determined whether or not a twin-mode transmission path is formed when the partner device is connected (S57). Specifically, it is determined whether or not the partner device is a node located at the opposite end of the system in which the partner device is participating. This determination may be made by acquiring the MAC address of the node at the opposite end from the topology table.

そして、この実施形態では、TTLモードはRTLモードに移行するまでの暫定的な通信モードであることに鑑み、TTLモードでは、ネットワークの基本構成であるシングルモードの動作しか許可しない。このため、ステップS57でYESの場合には、相手装置との間で論理接続を行わない。そこで、物理接続確認処理に戻ることを決定して、図12の処理を終了し、図9のステップS14の処理に進む。なお、この場合に相手装置と論理接続を行わないようにしたとしても、相手装置は少なくともTTLモードのシステムには参加しているため、TTLモードのシステムに参加できない装置が出る恐れはない。   In this embodiment, in view of the fact that the TTL mode is a provisional communication mode up to the transition to the RTL mode, the TTL mode permits only the single mode operation that is the basic configuration of the network. For this reason, in the case of YES in step S57, no logical connection is made with the counterpart device. Therefore, it is determined to return to the physical connection confirmation process, the process of FIG. 12 is terminated, and the process proceeds to step S14 of FIG. In this case, even if the logical connection with the counterpart device is not performed, since the counterpart device participates in at least the TTL mode system, there is no possibility that a device that cannot participate in the TTL mode system may appear.

また、この場合、装置間の接続状況が変わらなければ、再度の物理接続確認処理後の論理接続準備処理でも、ステップS57でYESとなるので、常にここまでの処理を繰り返すことになる。しかし、装置間の接続状況が変わった場合に、速やかに各装置を適当な通信モードに移行させられるよう、物理接続確認処理と論理接続準備処理とを定期的に行っておくことが好ましい。   Further, in this case, if the connection status between the devices does not change, the logical connection preparation process after the physical connection confirmation process again becomes YES in step S57, so that the process up to this point is always repeated. However, it is preferable to periodically perform physical connection confirmation processing and logical connection preparation processing so that each device can be quickly shifted to an appropriate communication mode when the connection status between the devices changes.

また、ステップS57でNOである場合、相手装置がITLモードであれば(S58)、自装置の方が優先順位の高いモードであることがわかるため、相手装置を自装置が参加しているTTLモードのシステムに組み込むことを決定する。そこで、図9のステップS19の論理接続確立処理においてTTLモード移行のため要求側動作を行うことを決定して、図12の処理を終了し、図9のステップS14の処理に進む。   If NO in step S57, if the partner apparatus is in the ITL mode (S58), it is understood that the own apparatus is in a higher priority mode, so that the partner apparatus is participating in the TTL. Decide to incorporate into the mode system. Therefore, in the logical connection establishment process of step S19 in FIG. 9, it is determined to perform the request side operation for shifting to the TTL mode, the process of FIG.

また、相手装置がTTLモードであれば(S58)、自装置と相手装置が別々のTTLモードのシステムに参加していることがわかる。この場合には、いずれか一方の装置を一旦システムから離脱させ、その装置を他方の装置が参加するシステムに組み入れる動作を行う(この場合、後述するように、装置を離脱させた側のシステムは、その後、解体されることになる)。   Further, if the partner device is in the TTL mode (S58), it is understood that the own device and the partner device are participating in different TTL mode systems. In this case, one of the devices is temporarily removed from the system, and the device is incorporated into a system in which the other device participates (in this case, the system on the side from which the device has been detached is And then it will be demolished).

この場合に、どちらの装置を離脱させてもよいのであるが、ここでは、ステップS55の場合と同様、接続された装置同士のMACアドレスの大小により決定するようにしている(S59)。そこで、自装置のMACアドレスが相手装置のMACアドレスより大きい場合には、相手装置をシステムから離脱させるべく、リセット指示コマンドのITLフレームを相手装置に送信する(S60)。また、相手装置はリセットにより後述のようにITLモードに戻るため、再度物理接続確認処理から処理をやり直すことを決定して図12の処理を終了し、図9のステップS14の処理に進む。
この場合、装置間の接続状況が変わらなければ、再度の物理接続確認処理後の論理接続準備処理の際には、ステップS58で下側に進むことになる。
In this case, either device may be detached, but here, as in the case of step S55, the determination is made based on the size of the MAC addresses of the connected devices (S59). Therefore, if the MAC address of the own device is larger than the MAC address of the partner device, an ITL frame of a reset instruction command is transmitted to the partner device to cause the partner device to leave the system (S60). Further, since the counterpart device returns to the ITL mode as described later by resetting, it is determined to restart the processing from the physical connection confirmation processing, the processing in FIG. 12 is terminated, and the processing proceeds to step S14 in FIG.
In this case, if the connection status between the devices does not change, the process proceeds to the lower side in step S58 in the logical connection preparation process after the physical connection confirmation process again.

また、ステップS60で自装置が小さければ、相手装置に自装置が参加するシステムを解体させるため、相手装置からのリセット命令を待つことを決定して図12の処理を終了し、図9のステップS14の処理に進む。
なお、ステップS60の場合には、ステップS55の説明で例示したアルゴリズムに加え、システムを構成するノードが少ない方を解体する、といったアルゴリズムも採用可能である。
Also, if the own device is small in step S60, in order to disassemble the system in which the own device participates in the counterpart device, it is decided to wait for a reset command from the counterpart device, and the processing of FIG. The process proceeds to S14.
In the case of step S60, in addition to the algorithm exemplified in the description of step S55, an algorithm of disassembling the one having fewer nodes can be employed.

また、ステップS51で自装置がRTLモードであった場合、相手装置がITLモードであれば(S61)、自装置の方が優先順位の高いモードであることがわかるため、相手装置を自装置が参加しているRTLモードのシステムに組み込むことを決定する。そこで、図9のステップS19の論理接続確立処理においてRTLモード移行のため要求側動作を行うことを決定して、図12の処理を終了し、図9のステップS14の処理に進む。   In addition, when the own device is in the RTL mode in step S51, if the partner device is in the ITL mode (S61), it can be seen that the own device is the higher priority mode, so Decide to incorporate into a participating RTL mode system. Therefore, in the logical connection establishment process of step S19 in FIG. 9, it is determined to perform the request side operation for shifting to the RTL mode, the process of FIG. 12 is terminated, and the process proceeds to the process of step S14 in FIG.

また、ステップS61で相手装置がTTLモードである場合も、自装置の方が優先順位の高いモードであることがわかるため、相手装置を自装置が参加しているRTLモードのシステムに組み込むことを決定する。しかしこの場合、相手装置を一旦参加中のシステムから離脱させた上で組み込みを行う必要があるため、リセット指示コマンドのITLフレームを相手装置に送信する(S62)。また、相手装置はリセットにより後述のようにITLモードに戻るため、再度物理接続確認処理から処理をやり直すことを決定して図12の処理を終了し、図9のステップS14の処理に進む。この場合、装置間の接続状況が変わらなければ、再度の物理接続確認処理後の論理接続準備処理の際には、ステップS61で左側に進むことになる。   Even when the partner device is in the TTL mode in step S61, it can be seen that the own device is a higher priority mode, so that the partner device is incorporated into the RTL mode system in which the own device participates. decide. However, in this case, since it is necessary to incorporate the partner apparatus after leaving the partner system once participating, an ITL frame of a reset instruction command is transmitted to the partner apparatus (S62). Further, since the counterpart device returns to the ITL mode as described later by resetting, it is determined to restart the processing from the physical connection confirmation processing, the processing in FIG. 12 is terminated, and the processing proceeds to step S14 in FIG. In this case, if the connection status between the devices does not change, the logical connection preparation process after the physical connection confirmation process again proceeds to the left side in step S61.

また、ステップS61で相手装置がRTLモードである場合には、基本的には、相手装置との間の論理接続は行わない。本実施形態においては、RTLモードは、オーディオネットワークシステム1を実際に音響信号処理に使用するモードであるとの位置づけであり、ユーザからの明示の意思なしにこのようなRTLモードのシステムを壊すことは好ましくないので、RTLモードのシステム同士を結合することは行わないようにしているためである(システムに装置を追加すること自体は差し支えない)。   If the counterpart device is in the RTL mode in step S61, basically, no logical connection is established with the counterpart device. In the present embodiment, the RTL mode is a mode in which the audio network system 1 is actually used for acoustic signal processing, and the RTL mode system is broken without an explicit intention from the user. This is because the RTL mode systems are not connected to each other (addition of a device to the system itself is allowed).

しかし、自装置が、自装置の参加するシステムの反対側の端の装置と接続された場合には、接続形態がカスケード接続からループ接続に変化することになるので、動作モードをシングルモードからツインモードに移行させることが考えられる。RTLモードの場合、この移行を許可するか否かは、図1の説明で述べた通り、マスタノードにおいてなされているモード設定によって決まる。 However, if the device is connected to the device on the opposite end of the system in which the device participates, the connection mode changes from cascade connection to loop connection, so the operation mode is changed from single mode to twin mode. It can be considered to shift to the mode. In the case of the RTL mode, whether or not to permit this transition is determined by the mode setting made in the master node as described in the explanation of FIG.

そこで、相手装置とネットワークIDが一致し、かつツインモード許可が設定されていた場合には(S63)、ツインモードへの移行を決定する。そして、この場合、自装置と相手装置のどちらが論理接続処理で主導権を持つかが問題となるが、ここでは、バックワード側に位置する装置に主導権を持たせることとしている。そこで、ステップS64での判断結果に応じて、図9のステップS19の論理接続確立処理においてツインのRTLモード移行のため要求側動作又は返答側動作を行うことを決定して、図12の処理を終了し、図9のステップS14の処理に進む。   Therefore, if the partner device and the network ID match and the twin mode permission is set (S63), the shift to the twin mode is determined. In this case, there is a problem as to which of the own device and the partner device has the initiative in the logical connection process. Here, the initiative is given to the device located on the backward side. Therefore, according to the determination result in step S64, it is determined in the logical connection establishment processing in step S19 in FIG. 9 that the request side operation or the response side operation is performed for the twin RTL mode transition, and the processing in FIG. The process ends, and the process proceeds to step S14 in FIG.

また、ステップS63でNOとなるのは、(a)相手装置とネットワークIDが異なる場合、すなわち別々のRTLモードのシステム同士が接続された場合、又は(b)ツインモードの動作が許可されていない場合である。これらのいずれの場合にも、相手装置との間で論理接続を行わないので、物理接続確認処理に戻ることを決定して、図12の処理を終了し、図9のステップS14の処理に進む。   In addition, NO is determined in step S63 because (a) when the network ID is different from the counterpart device, that is, when different RTL mode systems are connected, or (b) operation in the twin mode is not permitted. Is the case. In any of these cases, since no logical connection is made with the counterpart device, it is decided to return to the physical connection confirmation process, the process of FIG. 12 is terminated, and the process proceeds to the process of step S14 of FIG. .

また、この場合、装置間の接続状況が変わらなければ、再度の物理接続確認処理後の論理接続準備処理でも、ステップS63でNOとなるので、常にここまでの処理を繰り返すことになる。しかしここでも、ステップS57でYESの場合と同様、処理を定期的に行っておくことが好ましい。   Further, in this case, if the connection status between the devices does not change, the logical connection preparation process after the physical connection confirmation process again becomes NO in step S63, so that the processes up to this point are always repeated. However, it is preferable to perform the process periodically as in the case of YES in step S57.

再度図9の説明に戻る。
図12に示した論理接続準備処理が終了すると、次に実行すべき処理が、論理接続処理、リセット待ち、物理接続処理のいずれかに決まった状態で、図9のステップS14に進むことになる。
そして、その決まった処理が物理接続処理の場合、ステップS14及びS21でNOとなり、ステップS11に戻って処理を繰り返す。
Returning to the description of FIG. 9 again.
When the logical connection preparation process shown in FIG. 12 ends, the process to be executed next proceeds to step S14 in FIG. 9 in a state where the logical connection process, waiting for reset, or physical connection process is determined. .
If the determined process is a physical connection process, NO is returned in steps S14 and S21, and the process returns to step S11 to repeat the process.

また、リセット待ちの場合、ステップS21からS22に進み、所定時間待機して、相手装置からのリセット要求を待つ。ここで、相手装置の側でも、電源ON時又はリセット時には図9に示す処理を開始している。そして、論理接続準備処理において、自装置と相手装置との関係が「リセット待ち」となる関係であった場合、相手装置が実行する論理接続準備処理において、相手装置はステップS60又はS62でリセット指示コマンドのITLフレームを送信してくるはずである。   In the case of waiting for a reset, the process proceeds from step S21 to S22, waits for a predetermined time, and waits for a reset request from the counterpart device. Here, the process shown in FIG. 9 is started also at the partner apparatus side when the power is turned on or reset. In the logical connection preparation process, if the relationship between the own device and the partner device is “reset waiting”, the partner device performs a reset instruction in step S60 or S62 in the logical connection preparation process executed by the partner device. A command ITL frame should be sent.

ここで、図13に、このリセット指示を受信した場合に制御部40のCPUが実行する処理のフローチャートを示す。この処理は、割り込みにより、他の処理とは独立して実行するものである。
そして、制御部40のCPUは、リセット指示を受信すると、まず自装置のリセットを行う(S71)。この処理には、両側のセレクタ35〜38を折り返しライン/ITLフレーム送信部側に切り替え、自身をITLモードに戻すと共に、トポロジーテーブル及びネットワークIDを初期化する処理を含む。ただし、MACアドレスや、マスタ/スレーブ、ツイン許可/不許可、二倍化/二重化の設定を消去する必要はない。
Here, FIG. 13 shows a flowchart of processing executed by the CPU of the control unit 40 when this reset instruction is received. This process is executed independently of other processes by interruption.
Then, when receiving the reset instruction, the CPU of the control unit 40 first resets its own device (S71). This process includes a process of switching the selectors 35 to 38 on both sides to the return line / ITL frame transmitting unit side, returning itself to the ITL mode, and initializing the topology table and the network ID. However, it is not necessary to delete the MAC address, master / slave, twin permission / denial, and double / duplex settings.

以上の後、リセット指示元にリセット完了を示すリセット応答のITLフレームを送信する(S72)と共に、リセット指示を受信した側と反対側の送信I/Fから隣接ノードに対してリセット指示コマンドのITLフレームを送信し(S73)、処理を終了する。
なお、制御部40のCPUは、ステップS71でのリセット時に、それまで行っていた図9の処理は、中止する。そして、リセットに応じて改めて図9に示した処理を開始する。ただし、他装置からリセット指示があった場合、続けて接続要求コマンド等を受信することも考えられるため、図9に示した処理を開始するまでに、所定時間待機するようにしてもよい。
逆に、相手装置にリセット指示コマンドを送信した装置は、次の物理接続確認処理は、相手装置からのリセット応答の受信をトリガに開始するとよい。この時点であれば、相手装置はITLモードに戻っており、システムに組み入れることができると期待できるためである。
After the above, an ITL frame of a reset response indicating completion of reset is transmitted to the reset instruction source (S72), and an ITL of a reset instruction command is transmitted from the transmission I / F on the opposite side to the side receiving the reset instruction to the adjacent node. The frame is transmitted (S73), and the process ends.
Note that the CPU of the control unit 40 stops the processing of FIG. 9 that has been performed until the reset in step S71. Then, the process shown in FIG. 9 is started again in response to the reset. However, if there is a reset instruction from another device, it may be possible to continue to receive a connection request command or the like. Therefore, it is possible to wait for a predetermined time before starting the processing shown in FIG.
Conversely, a device that has transmitted a reset instruction command to the counterpart device may start the next physical connection confirmation process triggered by reception of a reset response from the counterpart device. This is because at this point, the counterpart device has returned to the ITL mode and can be expected to be incorporated into the system.

また、図13のステップS73から明らかなように、あるシステムの端の装置がリセットされると、システムに参加していた全ての装置が順次リセットされ、ITLモードに戻り、別のシステムに参加可能な状態となる。TTLモードで動作中のシステム同士を結合させる場合や、RTLモードで動作中のシステムにTTLモードで動作中のシステムを吸収させる場合には、このように、リセットにより吸収される側のシステムに参加している装置を全て一旦ITLモードに戻すようにしている。   Further, as is clear from step S73 of FIG. 13, when the device at the end of a certain system is reset, all devices participating in the system are sequentially reset, return to ITL mode, and can participate in another system. It becomes a state. When joining systems operating in TTL mode, or when a system operating in TTL mode is absorbed by a system operating in RTL mode, it participates in the system that is absorbed by reset in this way. All the devices that are in use are once returned to the ITL mode.

また、図示は省略したが、リセット応答を受け取った装置は、自装置のノードテーブルから、リセットを行った装置及びその先に接続されていた装置の情報を削除する。また、この削除を反対側に接続されている装置にも伝達し、リセットを行った装置及びその先に接続されていた装置の情報を順次削除させる。   Although not shown, the device that has received the reset response deletes the information of the device that performed the reset and the device connected to the device from the node table of the device itself. Further, this deletion is also transmitted to the device connected to the opposite side, and the information of the device that has been reset and the device that was connected to that device are deleted sequentially.

再度図9の説明に戻る。
ステップS13の論理接続準備処理において、論理接続確立処理を実行することを決定した場合、処理はステップS14からS15に進む。そして、要求側として論理接続確立処理を実行する場合には、相手装置を自装置が参加しているシステムに組み入れてもTLフレームの伝送に支障がないか否かを判断する(S16〜S18)。ここでは、この判断は、ノード数及びフレーム伝送経路の総距離を基準に行う。
Returning to the description of FIG. 9 again.
In the logical connection preparation process of step S13, when it is determined to execute the logical connection establishment process, the process proceeds from step S14 to S15. When the logical connection establishment process is executed as the requesting side, it is determined whether or not there is no problem in the transmission of the TL frame even if the partner apparatus is incorporated in the system in which the own apparatus participates (S16 to S18). . Here, this determination is made based on the number of nodes and the total distance of the frame transmission path.

このうちノード数は、トポロジーテーブルを参照して容易に把握することができ、相手装置を組み入れても所定数以内に収まれば、問題なしとする。ただし、ツインモードへ移行する場合、接続は、既にシステムに参加しているノードとの間で行うため、接続によってノード数は増加しないことに注意する必要がある。   Of these, the number of nodes can be easily grasped by referring to the topology table, and if the counterpart device is incorporated within the predetermined number, there is no problem. However, when shifting to the twin mode, it is necessary to note that the number of nodes does not increase due to the connection because the connection is made with a node already participating in the system.

また、フレーム伝送経路の総距離については、まず、自装置と相手装置との間の距離を計測する。この計測は、相手装置に対し、距離計測用のITLフレーム(図4(b)に示した形式のもの)を送信してから、相手装置がその受信後直ちに返してくる応答のITLフレーム(こちらも図4(b)に示した形式のもの)を受信するまでの時間を計測することにより、行うことができる。相手装置が距離計測用のITLフレームを受信してから応答のITLフレームを送信するまでに要する時間は、ネットワークI/Fカード215の種類やバージョン毎に一定であると考えられるから、計測した時間から、その一定な時間を引いた時間が、装置間の距離に比例する時間となる。計測は何度か行い、そのうち安定とみなせる値の中の最大値を採用するとよい。また、この計測を行う間は、誤差を防止するため、ASコマンド等の他のITLフレームの送受信は行わないようにするとよい。   For the total distance of the frame transmission path, first, the distance between the own device and the partner device is measured. This measurement is performed by sending an ITL frame for distance measurement (in the format shown in FIG. 4 (b)) to the counterpart device, and then returning the response ITL frame immediately after receiving it (here) Can also be performed by measuring the time taken to receive the data in the format shown in FIG. The time required for the partner device to receive the ITL frame for distance measurement and transmit the response ITL frame is considered to be constant for each type and version of the network I / F card 215. Therefore, the time obtained by subtracting the certain time is a time proportional to the distance between the devices. The measurement should be performed several times, and the maximum value among the values that can be considered stable should be adopted. Further, during this measurement, in order to prevent errors, it is preferable not to transmit / receive other ITL frames such as AS commands.

そして、各装置をシステムに参加させる際に、必ずこの距離計測を行って、隣接装置間の距離をトポロジーテーブル等に記録しておけば、それらを合計して、新たな装置を組み入れた場合のフレーム伝送経路の総距離を求めることができる。そして、この総距離が所定値以内に収まれば、問題なしとする。   And when each device participates in the system, be sure to perform this distance measurement and record the distance between adjacent devices in the topology table, etc. The total distance of the frame transmission path can be obtained. If this total distance falls within a predetermined value, there is no problem.

ただし、システムがツインモードで動作中の場合、システムのどこかで接続の切断やノードの停止が起こると、その両側で伝送経路の折り返しが設定され、2つのリングが結合した1つのリング状の伝送経路が形成されて、シングルモードの動作に戻ることになる。この場合、一般に、ツインモードの時の伝送経路よりも、シングルモードに戻った後の伝送経路の方が長くなる。   However, when the system is operating in the twin mode, if the connection is cut or the node is stopped somewhere in the system, the return path of the transmission path is set on both sides, and one ring shape is formed by combining two rings. A transmission path is formed and the operation returns to the single mode. In this case, in general, the transmission path after returning to the single mode is longer than the transmission path in the twin mode.

そこで、ツインモードで動作中の場合、現に使用している伝送経路に相手装置を組み入れた場合についてだけでなく、どの部分で接続の切断やノードの停止が起こってシングルモードの動作に戻ったとしても、その戻った後の伝送経路の総距離が所定値以内に収まる場合に、問題なしとする。
そして、ノード数と総距離のどちらも問題なしの場合、ステップS18からS19に進み、論理接続確立処理を実行する。また、問題ありの場合、相手装置をシステムに組み入れることはできないため、ステップS18からステップS11に戻り、処理を繰り返す。このとき、組み入れ不可の通知を送信するようにしてもよい。
Therefore, when operating in the twin mode, not only when the partner device is incorporated in the transmission path that is currently used, but also in which part the connection is disconnected or the node is stopped and the operation returns to the single mode. However, there is no problem when the total distance of the transmission path after returning is within a predetermined value.
If there is no problem in both the number of nodes and the total distance, the process proceeds from step S18 to S19, and logical connection establishment processing is executed. If there is a problem, the partner apparatus cannot be incorporated into the system, so the process returns from step S18 to step S11 and the process is repeated. At this time, a notification that it cannot be incorporated may be transmitted.

なお、ステップS16やS17の基準を設けた理由の1つは、ノード数が多かったり、伝送経路の総距離が長かったりすると、TLフレームに伝送経路を1周させるのに要する時間が長くなり、マスタノードから送信されたTLフレームを、後の周期のTLフレームの生成に必要なタイミングまでにマスタノードに戻せなくなってしまうためである。
従って、この点を考慮すると、
(周期更新量kに応じて決まるフレーム伝送遅延の許容時間)
−(1ノード当たりの伝送遅延時間)×(ノード数)
>(伝送経路の総距離に依存する伝送遅延時間)
であれば、ステップS18で問題ないと判断してよいとも考えられる。
また、周期更新量kに応じて決まるフレーム伝送遅延の許容時間は、kサンプリング周期より、マスタノード内での新TLフレームの準備に係る時間である所要時間αだけ短い時間である。従って、kを増加させれば、許容時間も増加させることができる。
そこで、ノード数や伝送経路の総距離が上記の条件を満たさない場合に、kを増加させることにより、条件を満足させることも考えられる。
Note that one of the reasons for setting the criteria of steps S16 and S17 is that if the number of nodes is large or the total distance of the transmission path is long, the time required to make one round of the transmission path in the TL frame increases. This is because the TL frame transmitted from the master node cannot be returned to the master node by the timing necessary for generating the TL frame in the later cycle.
Therefore, considering this point,
(Permissible time for frame transmission delay determined according to period update amount k)
-(Transmission delay time per node) x (number of nodes)
> (Transmission delay time depending on the total distance of the transmission path)
If so, it may be determined that there is no problem in step S18.
Also, the frame transmission delay allowable time determined according to the period update amount k is shorter than the k sampling period by the required time α, which is the time required for preparation of a new TL frame in the master node. Therefore, if k is increased, the allowable time can be increased.
Therefore, when the number of nodes and the total distance of the transmission path do not satisfy the above condition, it is possible to satisfy the condition by increasing k.

次に、図14に、図9のステップS19で実行する論理接続確立処理のフローチャートを示す。
この処理は、要求側動作を行う装置が、返答側動作を行う装置を、自装置が参加しているシステムに組み入れ可能であることを最終的に確認し、この組み入れを実行する処理である。また、返答側動作は、基本的に受身の処理であり、要求側動作を行う装置から受信したコマンドに応じた処理を行うものである。また、論理接続準備処理において、自装置と相手装置との関係が「返答側動作」となる関係であった場合、相手装置が実行する論理接続準備処理において、相手装置は論理接続準備処理において「要求側動作」を行う決定をするはずである。
Next, FIG. 14 shows a flowchart of the logical connection establishment process executed in step S19 of FIG.
This process is a process in which a device performing a request side operation finally confirms that a device performing a response side operation can be incorporated into a system in which the device itself participates, and executes this incorporation. The reply side operation is basically a passive process, and performs a process according to a command received from a device that performs the request side operation. Further, in the logical connection preparation process, when the relationship between the own device and the partner device is a “response side operation”, the partner device performs the logical connection preparation process in the logical connection preparation process executed by the partner device. A decision to perform "request side action" should be made.

この論理接続確立処理において、要求側装置はまず、相手装置(返答側装置)がシステムに組み入れ可能な状態であることを最終的に確認するための接続要求(CQ)コマンドのITLフレームを、送信I/Fから出力する(S81)。なお、このCQコマンドに、相手装置をどのモードのシステム(RTL/TTL及びシングル/ツイン)に組み入れるかを示す情報を記載しておき、相手装置に、そのモードでの通信の準備をさせるようにするとよい。 In this logical connection establishment process, the requesting device first transmits an ITL frame of a connection request (CQ) command for finally confirming that the partner device (response device) can be incorporated into the system. Output from the I / F (S81). In this CQ command, information indicating in which mode system (RTL / TTL and single / twin) the partner device is incorporated is described, and the partner device is prepared for communication in that mode. Good.

そしてその相手装置は、CQコマンドを受信すると、制御回路40のCPUが、自装置の状況に応じて、論理接続準備中,RTL動作中,TTL動作中,接続可のいずれかの状態を示すCQ応答のITLフレームを、CQコマンドの送信元に返してくる(S101)。
ここで、相手装置がシステムに組み入れ可能な状態であることは、論理接続準備処理において確認しているため、応答は基本的には「接続可」になるはずである。しかし、相手側装置から見て自装置と反対側にも他の装置が接続されている場合、自装置がステップS14〜S18の処理を行っている間に、反対側の装置からの要求により、そちら側のシステムに組み入れられてしまっていたり、組み入れ準備が進行してしまっていたりすることも考えられる。
Then, when the counterpart device receives the CQ command, the CPU of the control circuit 40 indicates CQ indicating any of the states of logical connection preparation, RTL operation, TTL operation, and connection possible depending on the status of the own device. The response ITL frame is returned to the source of the CQ command (S101).
Here, since it is confirmed in the logical connection preparation process that the counterpart device is ready to be incorporated into the system, the response should basically be “connectable”. However, when another device is also connected to the opposite side as seen from the counterpart device, while the subject device performs the processing of steps S14 to S18, due to a request from the opposite device, It is possible that it has been incorporated into the system on that side, or preparation for incorporation has progressed.

上記の「接続可」以外の応答は、このような場合になされるものである。そして、「論理接続準備中」は、他の装置からCQコマンドを受信し、その後通信モード切替指示(TM)コマンドの受信を待っている状態であることを示す。「RTL動作中」及び「TTL動作中」は、既にRTLモードのシステム又はTTLモードのシステムに組み入れられたことを示す。   Responses other than the above “connection possible” are made in such a case. “Preparing for logical connection” indicates a state in which a CQ command is received from another device and then a reception of a communication mode switching instruction (TM) command is awaited. “RTL in operation” and “TTL in operation” indicate that the RTL mode system or the TTL mode system has already been incorporated.

一方、CQコマンドの送信を行った装置は、CQ応答の受信を監視しつつ待機する。そしてここで、所定時間経過してタイムアウトするか、論理接続準備中を示すCQ応答を受信した場合(S82)、所定回数まではリトライする(S88,S89)。しかし、それでも内容が変わらなければ、今回はシステムへの組み入れはあきらめて物理接続確認処理に戻ることを決定し、図14の処理を終了する。なお、応答タイムアウトの場合にはステップS89で所定時間待機する必要はない。   On the other hand, the device that has transmitted the CQ command waits while monitoring the reception of the CQ response. Here, when a predetermined time elapses or a time-out occurs or a CQ response indicating that the logical connection is being prepared is received (S82), retry is performed up to a predetermined number of times (S88, S89). However, if the content still does not change, it is decided that the incorporation into the system is given up and the process returns to the physical connection confirmation process this time, and the process of FIG. 14 is terminated. In the case of a response timeout, there is no need to wait for a predetermined time in step S89.

また、RTL動作中を示すCQ応答を受信した場合(S83)、相手装置をシステムに組み入れることはできないため、やはり物理接続確認処理に戻ることを決定し、図14の処理を終了する。
また、TTL動作中を示すCQ応答を受信した場合には(S84)、自装置がRTLモードのシステムに参加しているか、又は自装置のMACアドレスが相手装置より大きい場合(TTLモードのシステム同士が接続されたとして相手装置をシステムから離脱させてよい場合)には(S90)、リセット指示コマンドのITLフレームを相手装置に送信する(S91)。そして、初めから処理をやり直して相手装置をシステムに組み入れるべく、物理接続確認処理に戻ることを決定し、図14の処理を終了する。また、ステップS90でNOの場合には、相手装置をシステムに組み入れることはできないため、単に物理接続確認処理に戻ることを決定し、図14の処理を終了する。
If a CQ response indicating that the RTL operation is in progress is received (S83), since the partner apparatus cannot be incorporated into the system, it is determined to return to the physical connection confirmation process, and the process of FIG. 14 is terminated.
If a CQ response indicating that the TTL is operating is received (S84), if the own device is participating in the RTL mode system or if the own device has a larger MAC address than the other device (the TTL mode systems ( S90 ), an ITL frame of a reset instruction command is transmitted to the partner device ( S91 ). Then, it is determined to return to the physical connection confirmation process in order to perform the process again from the beginning and incorporate the partner apparatus into the system, and the process of FIG. 14 is terminated. If NO in step S90, since the partner device cannot be incorporated into the system, it is determined to simply return to the physical connection confirmation processing, and the processing in FIG. 14 ends.

一方、接続可を示すCQ応答を受信した場合には、ステップS82〜S84の判断が全てNOとなる。そして、相手装置に対して最終的に動作モードの変更を要求する通信モード切替指示(TM)コマンドを、送信I/Fから送信する(S85)。なお、このTMコマンドには、相手装置をどのモード(RTL/TTL及びシングル/ツイン)に移行させるか、及び相手装置を組み入れるシステムのネットワークIDの情報を記載しておく。   On the other hand, when a CQ response indicating that connection is possible is received, the determinations in steps S82 to S84 are all NO. Then, a communication mode switching instruction (TM) command that finally requests the counterpart device to change the operation mode is transmitted from the transmission I / F (S85). The TM command describes in which mode (RTL / TTL and single / twin) the partner device is to be transferred, and information on the network ID of the system in which the partner device is incorporated.

そしてその相手装置は、TMコマンドを受信すると、制御回路40のCPUが、まず移行了解を示すTM応答のITLフレームを、TMコマンドの送信元に送信する(S103)。そして、その後直ちに、TMコマンドを受信した側について、TLフレームのループバックを解除する(S104)。この解除は、解除する側の2つのセレクタを、それぞれ受信I/F側及びTLフレーム送信部側に切り替えればよい。   When the counterpart device receives the TM command, the CPU of the control circuit 40 first transmits an ITL frame of a TM response indicating the completion of the transition to the source of the TM command (S103). Then, immediately after that, the loopback of the TL frame is canceled for the side receiving the TM command (S104). This release may be performed by switching the two selectors on the release side to the reception I / F side and the TL frame transmission unit side, respectively.

新たにシステムに組み入れられる装置は、まだTLフレームの送受信は行っていないため、どのタイミングでループバックの解除を行っても問題ない。また、どのモードに切り換える場合でも、ループバックの解除は同じように行う。ただし、ループバックを解除してしまうと、解除した側では、ITLフレームの直接送信ができなくなってしまう(ただし、TLフレームに書き込めば送信できる)ため、TM応答の送信は、ループバックの解除前に行っておく。   Since the device newly incorporated in the system has not yet transmitted / received the TL frame, there is no problem even if the loopback is canceled at any timing. In addition, regardless of the mode, the loopback is canceled in the same way. However, if the loopback is canceled, the ITL frame cannot be directly transmitted on the canceled side (however, it can be transmitted if it is written in the TL frame). Therefore, the TM response is transmitted before the loopback is canceled. Go to.

ステップS104の後は、CPUは、自機の動作モード及びネットワークIDを、TMコマンドの指定に従って変更する(S105)と共に、モード移行完了を上位層(本体側CPU)に通知して(S106)、処理を終了する。ステップS105の時点で、動作モード及びシステムの構成に応じて、第1,第2のデータ入出力部10,20のどちら(又は両方)を用いてTLフレームに対する波形データやイーサネットフレームの読み書きを行うかや、TLフレームに対する波形データの読み書きを行うか否か、等の設定を行う。   After step S104, the CPU changes its operation mode and network ID according to the designation of the TM command (S105), and notifies the upper layer (main body side CPU) of the completion of mode transition (S106). The process ends. At the time of step S105, depending on the operation mode and the system configuration, the waveform data and the Ethernet frame are read from and written to the TL frame using either (or both) of the first and second data input / output units 10 and 20. Whether or not to read / write the waveform data with respect to the TL frame is set.

一方、要求側装置は、TMコマンドの送信後、相手装置からタイムアウト前にTM応答を受信すると(S86)、TLフレームの送受信をしていないタイミングでセレクタを切り替え、相手装置側のループバックを解除する(S87)。既にシステムに参加している装置では、TLフレームの送受信中にループバックを解除してしまうと、TLフレームを途中から別の送信先に送信してしまい、フレームを壊してしまうことになる。そこで、図5にあるような、フレームとフレームの合い間でループバックの解除を行うことが重要である。また、要求側装置が初めて他の装置と論理接続を行う場合には、ステップS87の段階ではまだTLフレームの循環を行っていない。そこで、ステップS87の後、マスタノード(TTLモードの場合は暫定)として、TLフレームの生成と送出を開始すればよい。
そして、以上で図14の論理接続処理を終了する。
On the other hand, if the requesting device receives a TM response from the partner device before the time-out after sending the TM command (S86), the requesting device switches the selector at the timing when the TL frame is not transmitted and received, and cancels the loopback on the partner device side. (S87). In a device that has already joined the system, if the loopback is canceled during transmission / reception of the TL frame, the TL frame is transmitted to another transmission destination in the middle, and the frame is broken. Therefore, it is important to cancel the loopback between frames as shown in FIG. When the requesting device makes a logical connection with another device for the first time, the TL frame has not yet been circulated at the stage of step S87. Therefore, after step S87, generation and transmission of a TL frame may be started as a master node (provisional in the case of TTL mode).
And the logical connection process of FIG. 14 is complete | finished above.

また、ステップS86でタイムアウトした場合には、今回はシステムへの組み入れはあきらめて物理接続確認処理に戻ることを決定し、図14の処理を終了する。
また、返答側装置も、CQ応答の送信後所定時間内にTMコマンドの受信がなかった場合、タイムアウトと判断し(S102)、今回はシステムへの組み入れはあきらめて物理接続確認処理に戻ることを決定し、論理接続確立処理を終了する。返答側動作の開始後所定時間内にCQコマンドを受信しなかった場合も、同様とするとよい。
Also, if a time-out occurs in step S86, it is determined that the incorporation into the system is given up and the process returns to the physical connection confirmation process this time, and the process of FIG. 14 is terminated.
The response side device also determines that a time-out has occurred if no TM command is received within a predetermined time after the transmission of the CQ response (S102), and at this time, it quits its incorporation into the system and returns to the physical connection confirmation processing. The logical connection establishment process is terminated. The same applies when the CQ command is not received within a predetermined time after the response side operation is started.

再度図9の説明に戻るが、図14に示した論理接続確立処理の終了後は、ステップS20に進む。そして、論理接続確立処理において接続が確立した(要求側動作のステップS87または返答側動作のステップS104を実行した)場合にはそのまま処理を終了する。一方、再度物理接続を行うことを決定した場合には、ステップS11に戻って処理を繰り返す。   Returning to the description of FIG. 9 again, after the logical connection establishment process shown in FIG. 14 is completed, the process proceeds to step S20. If the connection is established in the logical connection establishment process (step S87 of the request side operation or step S104 of the response side operation is executed), the process is terminated as it is. On the other hand, if it is determined to perform physical connection again, the process returns to step S11 and the process is repeated.

そして、複数の音響信号処理装置2において、制御部40のCPUが図9乃至図14を用いて説明した処理を実行することにより、電源がONされ、ケーブルが接続された装置から順に、自動的に、TTLモードでTLフレームを循環させるネットワークシステムを形成することができる。   Then, in the plurality of acoustic signal processing devices 2, the CPU of the control unit 40 executes the processing described with reference to FIGS. 9 to 14, so that the power is turned on and the devices connected to the cables are automatically and sequentially. In addition, a network system that circulates TL frames in the TTL mode can be formed.

この状態では、まだ波形データの伝送は行われないものの、システムを構成するノードとなった各装置間では、イーサネットフレーム及びITLフレームを、TLフレームに書き込んで任意に送受信することができる。従って、ある装置のコンソールを操作し、その操作内容を他の装置に伝達してその装置におけるパラメータの値を編集するといった動作は、問題なく行うことができる。また、イーサネットフレームを用いたIPパケットの送受信により、複雑なアルゴリズムに従ったネゴシエーションも容易に行なうことができる。   In this state, waveform data is not yet transmitted, but the Ethernet frame and the ITL frame can be written in the TL frame and arbitrarily transmitted / received between the devices that have become nodes constituting the system. Therefore, an operation of operating a console of a certain device, transmitting the operation content to another device, and editing a parameter value in the device can be performed without any problem. Also, negotiation according to a complicated algorithm can be easily performed by transmitting and receiving IP packets using Ethernet frames.

なお、上述のように、図9に示した処理は、送受信I/Fの組毎に、独立して行うものである。また、複数の装置によりシステムが形成された後は、その両端の装置が、ループバックを行っている側の送受信I/Fについて、独立して行うものである。
従って、システムの両側で同時に新たな装置がシステムに組み入れられてしまい、それぞれ片方のみの組み入れではステップS16〜S18の条件を満たすのに、両側の組み入れがなされた状態ではこの条件を満たさなくなってしまうこともあり得る。
このような場合には、フォワード側でもバックワード側でも、予め定めておいた一方の側で組み入れられた装置を、マスタノードの判断により強制的にシステムから除外して、TLフレームの循環が可能な状態を保つようにするとよい。
As described above, the processing shown in FIG. 9 is performed independently for each pair of transmission / reception I / Fs. In addition, after the system is formed by a plurality of devices, the devices at both ends independently perform the transmission / reception I / F on the side performing the loopback.
Accordingly, a new device is incorporated into the system at both sides of the system at the same time, and if only one of them is incorporated, the conditions of steps S16 to S18 are satisfied. However, when both sides are incorporated, this condition is not satisfied. It can happen.
In such a case, the TL frame can be circulated by forcibly excluding the device incorporated on one side, which is determined in advance, on the forward side or the backward side from the system at the discretion of the master node. It ’s best to keep things in good condition.

ところで、ここまでに説明した処理には、RTLモードのシステムに新たな装置を組み込む処理は含まれているが、最初に装置をRTLモードに設定する処理は含まれていない。次に、この処理について説明する。
本実施形態においては、マスタノードを指定するためのコマンドとして、動作モード切替(OM)コマンドを用意しており、このコマンドを受け取った装置が、自身をマスタノードに設定して、最初にRTLモードに移行する。
By the way, the process described so far includes the process of incorporating a new device into the RTL mode system, but does not include the process of first setting the device to the RTL mode. Next, this process will be described.
In this embodiment, an operation mode switching (OM) command is prepared as a command for designating a master node, and a device that receives this command sets itself as a master node, and first sets the RTL mode. Migrate to

また、OMコマンドは、何れかの装置がマスタノードを自動的に決定して発行することも妨げられないが、ユーザの指示に応じて発行することが好ましい。この場合、オーディオネットワークシステム1を構成させようとする装置の少なくとも1つには、ユーザからマスタノードの選択を受け付ける機能を設ける。この機能としては、トポロジーテーブルを参照して、通信可能な範囲の装置のリストをユーザに提示し、その中からマスタノードを選択させるものでよい。この時、同時に動作モード(ツイン許可/不許可,ツイン時二倍化/二重化等)の設定も受け付けるとよい。   Further, although it is not impeded that any device automatically determines and issues a master node, the OM command is preferably issued according to a user instruction. In this case, at least one of the devices to configure the audio network system 1 is provided with a function of accepting a master node selection from the user. As this function, referring to the topology table, a list of devices in a communicable range may be presented to the user, and a master node may be selected from the list. At this time, it is also preferable to accept the setting of the operation mode (twin permitted / not permitted, twin double / duplex, etc.).

なお、ITLフレームを用いれば、各装置の動作モードによらず、物理接続がなされている範囲の全ての装置と通信可能である。TTLモード(RTLモードでも)で動作中の装置間では、ITLフレームをTLフレームに記載して伝送し、TLフレームの伝送経路が途切れている部分は、ITLフレームをITLフレーム送信部からそのまま送信すればよい。   If an ITL frame is used, communication is possible with all devices in a range where physical connection is made, regardless of the operation mode of each device. Between devices operating in the TTL mode (also in the RTL mode), the ITL frame is described in the TL frame and transmitted. If the transmission path of the TL frame is interrupted, the ITL frame is transmitted as it is from the ITL frame transmission unit. That's fine.

そして、ユーザによりマスタノードの選択がなされた場合、その選択を受け付けた装置は、マスタノードとして選択された装置を送信先として、パラメータとして動作モードの設定を記載した、OMコマンドのITLフレームを送信する。この送信は、トポロジーテーブルを参照し、送信先の装置が存在している側に対して行う。   When the master node is selected by the user, the device that accepts the selection transmits an ITL frame of the OM command that describes the setting of the operation mode as a parameter with the device selected as the master node as the transmission destination. To do. This transmission is performed with reference to the topology table to the side where the transmission destination apparatus exists.

図15に、このOMコマンドを受信した場合に制御部40のCPUが実行する処理のフローチャートを示す。
この図に示すように、OMコマンドを受信した装置の制御部40のCPUは、まず、受信したコマンドが自装置宛か否か判断する(S111)。そして、自装置宛でなければ、受信したOMコマンドのITLフレームを、そのまま受信した側と反対側に送信して(S117)処理を終了する。OMコマンドが宛先の装置に届くまでは、途中の各装置がこのように順次ITLフレームの伝送を仲介する。この点は、他のコマンドの場合でも同様である。
FIG. 15 shows a flowchart of processing executed by the CPU of the control unit 40 when this OM command is received.
As shown in this figure, the CPU of the control unit 40 of the device that has received the OM command first determines whether or not the received command is addressed to its own device (S111). If it is not addressed to the own apparatus, the ITL frame of the received OM command is transmitted as it is to the opposite side to the receiving side (S117), and the process is terminated. Until the OM command reaches the destination device, each device in the middle sequentially mediates transmission of the ITL frame in this way. This also applies to other commands.

一方、ステップS111で自装置宛であれば、OM応答のITLフレームを、OMコマンドの送信元装置を送信先として、その装置が存在する側に対して送信する(S112)。その後、図13のステップS71の場合と同様、自装置をリセットし、現在何らかのシステムに参加していれば、そのシステムを一旦離脱する(S113)。その後、自装置をマスタノードに設定する(S114)と共に、自装置にRTLモードの固有のネットワークIDを設定する(S115)。その後、両側にリセット指示コマンドのITLフレームを送信して(S116)、処理を終了する。   On the other hand, if it is addressed to the own device in step S111, the ITL frame of the OM response is transmitted to the side where the device exists with the transmission source device of the OM command as the transmission destination (S112). After that, as in the case of step S71 in FIG. 13, the device itself is reset, and if it is currently participating in any system, the system is temporarily removed (S113). Thereafter, the own apparatus is set as a master node (S114), and a unique network ID in the RTL mode is set in the own apparatus (S115). Thereafter, an ITL frame of a reset instruction command is transmitted to both sides (S116), and the process is terminated.

この後、両側の装置から始まって通信可能な範囲の装置が順次リセットされていく。そして、マスタノードとなった装置自体も、図9に示した処理を開始し、RTLモードのシステムに参加している装置として、両側に接続されている装置を、条件の許す限り順次システムに組み込んでいく。なお、図9に示した処理は、隣接ノードからのリセット応答の受信をトリガに開始するとよい。この時点であれば、隣接ノードはITLモードに戻っており、システムに組み入れることができると期待できるためである。
以上の処理により、音声伝送の可能なRTLモードのオーディオネットワークシステム1を、ユーザの指示に応じてマスタノードを設定して形成することができる。
Thereafter, the devices in the communicable range starting from the devices on both sides are sequentially reset. Then, the device itself that has become the master node also starts the processing shown in FIG. 9 and, as devices participating in the RTL mode system, devices connected on both sides are sequentially incorporated into the system as long as conditions permit. Go. Note that the process shown in FIG. 9 may be triggered by reception of a reset response from an adjacent node. This is because at this point, the adjacent node has returned to the ITL mode and can be expected to be incorporated into the system.
Through the above processing, the audio network system 1 in the RTL mode capable of voice transmission can be formed by setting the master node in accordance with a user instruction.

なお、一度システムが形成された後でも、両端に新たな装置が接続された場合には、随時その装置をシステムに組み入れることができる。また、ユーザは、マスタノードや動作モードを変更したい場合、随時指示を行ってOMコマンドを発行することができる。
そして、オーディオネットワークシステム1がRTLモードで動作中であっても、いずれかのノードが自分宛のOMコマンドを受け取ると、そのノードが新たなマスタノードとなり、図15に示した処理によりシステム全体をリセットして再度オーディオネットワークシステム1の形成を行う。
Even after the system is formed once, if a new device is connected to both ends, the device can be incorporated into the system at any time. In addition, when the user wants to change the master node or the operation mode, the user can issue an OM command by giving an instruction at any time.
Even if the audio network system 1 is operating in the RTL mode, when any node receives the OM command addressed to itself, that node becomes a new master node, and the entire system is processed by the processing shown in FIG. The audio network system 1 is formed again after resetting.

2.3 システム形成の具体例
次に、図16乃至図20を用いて、ここまでに説明してきた処理による、オーディオネットワークシステムの形成手順の具体例を説明する。
まず、図16及び図17には、装置A乃至装置Eの5台の装置が予め通信ケーブルで接続されており、装置Aから装置Eの電源を順次ONしていく場合の、システムの構成手順の例を示す。
2.3 Specific Example of System Formation Next, a specific example of a procedure for forming an audio network system by the processing described so far will be described with reference to FIGS. 16 to 20.
First, in FIG. 16 and FIG. 17, a system configuration procedure in the case where five devices A to E are connected in advance by a communication cable and the power of the device E is sequentially turned ON. An example of

まず、図16(a)に示すように装置A,Bの電源がONされると、これらの装置は、それぞれ図9に示した処理を開始し、図10に示した物理接続確認処理によりASコマンドとAS応答を交換することにより互いの存在を認識して情報を交換し、トポロジーテーブルに互いの情報を登録する(変更部分をハッチングで示した、以下同様)。そして、図12の論理接続準備処理において、双方がITLモードであることから、ステップS55,S56でいずれかの装置を暫定マスタノードとして、図14の論理接続確立処理により、装置Aと装置Bとで、TTLモードのシステムを構成することができる。 First, when the devices A and B are powered on as shown in FIG. 16A, these devices start the processing shown in FIG. 9, respectively, and the AS is performed by the physical connection confirmation processing shown in FIG. By exchanging commands and AS responses, the presence of each other is recognized and information is exchanged, and each other's information is registered in the topology table (the changed portion is indicated by hatching, and so on). In the logical connection preparation process of FIG. 12, since both are in the ITL mode, with either apparatus as a temporary master node in steps S55 and S56, the logical connection establishment process of FIG. Thus, a TTL mode system can be configured.

次に、(b)に示すように装置Cの電源がONされると、装置Bは物理接続確認処理により装置Cの存在を認識して装置Cと情報を交換し、トポロジーテーブルに互いの情報を登録する。
その後、(c)に示すように、装置Bは装置Cに反対側に既に接続されている装置Aの情報を通知し、装置Aには反対側に新たに接続された装置Cの情報を通知する。その結果装置A〜Cの全てに、電源ON済みの全ての装置の情報が揃うことになる。
また、装置BがTTLモードで、装置CがITLモードであるから、図14の論理接続確立処理により、装置Bが装置Cをシステムに組み入れる。
Next, when the power of the device C is turned on as shown in (b), the device B recognizes the presence of the device C through the physical connection confirmation process, exchanges information with the device C, and stores each other information in the topology table. Register.
Thereafter, as shown in (c), device B notifies device C of information of device A already connected to the opposite side, and device A notifies information of device C newly connected to the opposite side. To do. As a result, all the devices A to C have information on all the devices that have been turned on.
Further, since the device B is in the TTL mode and the device C is in the ITL mode, the device B incorporates the device C into the system by the logical connection establishment process of FIG.

次に(d)に示すように装置Dの電源がONされた場合も、(b)の場合と同様、装置Cは物理接続確認処理により装置Dの存在を認識して装置Dと情報を交換し、トポロジーテーブルに互いの情報を登録する。   Next, as shown in (d), when the power of the device D is turned on, as in the case of (b), the device C recognizes the presence of the device D through the physical connection confirmation process and exchanges information with the device D. And register each other's information in the topology table.

その後、図17(e)に示すように、装置Cは装置Dに反対側に既に接続されている装置B,Aの情報を通知し、装置Bには反対側に新たに接続された装置Dの情報を通知する。また、(f)に示すように、装置Bは装置Cから通知された装置Dの情報を、反対側に接続されている装置Aに通知する。以上の結果、装置A〜Dの全てに、電源ON済みの全ての装置の情報が揃うことになる。
また、装置CがTTLモードで、装置DがITLモードであるから、図14の論理接続処理により、装置Cが装置Dをシステムに組み入れる。
After that, as shown in FIG. 17E, the device C notifies the device D of the information of the devices B and A that are already connected to the opposite side, and the device D newly connected to the opposite side to the device B. Notify information. As shown in (f), the device B notifies the device A connected to the opposite side of the information of the device D notified from the device C. As a result of the above, all of the devices A to D have information on all the devices that have been turned on.
In addition, since the device C is in the TTL mode and the device D is in the ITL mode, the device C incorporates the device D into the system by the logical connection process of FIG.

同様にして、(g)で装置Eの電源がONされた場合も、システムの端のノードである装置Dが新たに検出された装置Eとコンタクトし、システムに組み入れる。また、ノードテーブルの情報も、(h)に示すように、各装置が把握していない情報を順次通知することにより、装置A〜Eの全てに、電源ON済みの全ての装置の情報が揃うことになる。
以上の手順により、順次電源のONされた装置A〜Eにより、TTLモードでTLフレームを循環させるネットワークシステムを自動的に形成することができる。上記の例において、電源ONをケーブル接続に置き換えても同様な動作をすることは、もちろんである。
Similarly, when the power of the device E is turned on in (g), the device D, which is the node at the end of the system, contacts the newly detected device E and is incorporated into the system. In addition, as shown in (h), the node table information is sequentially notified of information that is not grasped by each device, so that all the devices A to E have information about all the devices that have been turned on. It will be.
Through the above procedure, a network system that circulates TL frames in the TTL mode can be automatically formed by the devices A to E that are sequentially turned on. In the above example, it goes without saying that the same operation is performed even if the power supply is replaced with the cable connection.

次に、図18に、TTLモードで動作中のシステム同士が接続された場合の動作例を示す。
この図には、装置A〜装置CがTTLモードのシステムを形成しており、装置D,装置Eが、これとは別のTTLモードのシステムを形成している状態で、装置Cと装置Dとが新たに通信ケーブルにより接続された場合の例を示している。
この場合、装置Cと装置Dは、定期的に図9のステップS11で物理接続確認処理を行っている状態であるから、この物理接続確認処理により、互いの存在を確認する(a)。
Next, FIG. 18 shows an operation example when systems operating in the TTL mode are connected to each other.
In this figure, the devices A to C form a TTL mode system, and the devices D and E form a TTL mode system different from the devices C and D. And are newly connected by a communication cable.
In this case, since the devices C and D are regularly performing physical connection confirmation processing in step S11 of FIG. 9, the existence of each other is confirmed by this physical connection confirmation processing (a).

そして、ステップS13の論理接続準備処理に進むと、TTLモードの装置同士が接続されたため、MACアドレスの大きい装置Cが、図12のステップS60で、装置Dに対してリセット指示コマンドを送信する。その結果、装置Dはシステムを離脱してITLモードに戻る(b)。 Then, when proceeding to the logical connection preparation process in step S13, since the devices in the TTL mode are connected, the device C having a large MAC address transmits a reset instruction command to the device D in step S60 of FIG. As a result, the device D leaves the system and returns to the ITL mode (b).

また、装置Dは、リセット処理の一環として、装置Cの反対側の装置Eにもリセット指示コマンドを送信する。その結果、装置EもITLモードに戻る(c)。
一方、装置Cは、装置Dにリセット指示コマンドを送信した後、再度物理接続確認処理、論理接続準備処理、論理接続確立処理を順次行って、ITLモードとなった装置Dを、自身の参加しているシステムに組み入れる(d,e)。
Device D also transmits a reset instruction command to device E on the opposite side of device C as part of the reset process. As a result, the device E also returns to the ITL mode (c).
On the other hand, after transmitting the reset instruction command to the device D, the device C sequentially performs the physical connection confirmation processing, the logical connection preparation processing, and the logical connection establishment processing again, and joins the device D in the ITL mode to its own participation. (D, e).

また、装置Dは、システムに組み入れられた後、システムの端のノードとして物理接続確認処理、論理接続準備処理、論理接続確立処理を順次行って、ITLモードとなっている隣接の装置Eを、自身の参加しているシステムに組み入れる(e,f)。
TTLモードで動作中のシステム同士が接続された場合、以上の手順により、これらを結合した1つのシステムを自動的に形成することができる。
In addition, after the device D is incorporated into the system, the physical connection confirmation processing, the logical connection preparation processing, and the logical connection establishment processing are sequentially performed as a node at the end of the system, and the adjacent device E in the ITL mode is Incorporate into your participating system (e, f).
When systems operating in the TTL mode are connected to each other, one system that combines them can be automatically formed by the above procedure.

次に、図19に、TTLモードで動作中のシステムを構成する装置が動作モード切替(OM)コマンドを受信した場合の動作例を示す。
この図には、装置A〜装置EがTTLモードのシステムを形成しており、このうち装置BがOMコマンドを受信した場合の例を示している。
Next, FIG. 19 shows an operation example in the case where devices constituting the system operating in the TTL mode receive an operation mode switching (OM) command.
This figure shows an example in which the devices A to E form a TTL mode system and the device B receives an OM command.

この場合、OMコマンドを受信した装置Bは、図15に示した処理により、自身をリセットして参加中のシステムから離脱すると共に、自身をマスタに設定し、RTLモードに移行する(a,b)。そしてさらに、両側の装置にリセット指示コマンドを送信し、両側の装置も参加中のシステムから離脱させ、ITLモードに戻す(c)。
このリセット指示コマンドは、(d)では装置Cから装置Dへ、(e)では装置Dから装置Eへの、接続されている全ての装置に順次伝達され、全ての装置が一旦ITLモードに戻される。
In this case, the device B that has received the OM command resets itself and leaves the participating system by the processing shown in FIG. 15, sets itself as the master, and shifts to the RTL mode (a, b). ). Further, a reset instruction command is transmitted to the devices on both sides, the devices on both sides are also disconnected from the participating systems and returned to the ITL mode (c).
This reset instruction command is sequentially transmitted to all connected devices from device C to device D in (d) and from device D to device E in (e), and all devices are once returned to the ITL mode. It is.

一方、装置Bは、装置A及び装置Cがリセットを完了してリセット応答を送信してくると、図9に示す処理を開始する。そして、物理接続確認処理、論理接続準備処理、論理接続確立処理を順次行って、ITLモードとなっている隣接の装置A,Cを、それぞれ自身をマスタとするRTLモードのシステムに組み入れる(d,e)。   On the other hand, when the devices A and C complete the reset and transmit a reset response, the device B starts the process shown in FIG. Then, the physical connection confirmation process, the logical connection preparation process, and the logical connection establishment process are sequentially performed, and the adjacent devices A and C that are in the ITL mode are incorporated into the RTL mode system that has the master as the master (d, e).

また、その後、(e)の時点でシステムの端のノードとなっている装置Cが、物理接続確認処理、論理接続準備処理、論理接続確立処理を順次行って、ITLモードとなっている隣接の装置Dを、自身の参加しているシステムに組み入れる(f)。そして、装置Dも、同様に装置Eを自身の参加しているシステムに組み入れる(g)。   After that, the device C that is the node at the end of the system at the time of (e) sequentially performs the physical connection confirmation process, the logical connection preparation process, and the logical connection establishment process, so that the adjacent device in the ITL mode is set. Incorporate device D into its participating system (f). Then, the device D similarly incorporates the device E into its participating system (g).

TTLモードで動作中のシステムを構成する装置がOMコマンドを受信した場合、以上の手順により、TTLモードのシステムをRTLモードのシステムに組み替えることができる。なお、RTLモードで動作中のシステムを構成する装置がOMコマンドを受信した場合でも、各装置の動作は同様なものである。   When an apparatus that constitutes a system operating in the TTL mode receives an OM command, the TTL mode system can be replaced with the RTL mode system by the above procedure. Note that the operation of each device is the same even when a device constituting the system operating in the RTL mode receives an OM command.

次に、図20に、シングルモードからツインモードへの移行動作例を示す。
この図には、装置D→E→A→B→Cの順で接続され、RTLモードで動作しているシステムにおいて、両端の装置Cと装置Dとがケーブルにより接続された場合の例を示している。ただし、ツインモードへの移行は許可されているとする。
Next, FIG. 20 shows an example of the transition operation from the single mode to the twin mode.
This figure shows an example in which devices C and D at both ends are connected by a cable in a system operating in the RTL mode where devices D → E → A → B → C are connected in this order. ing. However, transition to twin mode is allowed.

この場合、装置Cと装置Dとは、定期的に図9のステップS11で物理接続確認処理を行っている状態であるから、ケーブルにより接続されると、この物理接続確認処理により、互いの存在を確認する(a,b)。また、トポロジーテーブルには、互いの情報が、反対側の端のノードの情報として登録されているが、これに加え、新たに接続された側のノードとしても登録する(b)。装置Cと装置Dは、この時点で、物理接続がループ状になされたことを把握できる。 In this case, the devices C and D are in a state in which physical connection confirmation processing is periodically performed in step S11 of FIG. (A, b). In the topology table, each other's information is registered as information on the opposite end node, but in addition to this, it is also registered as a newly connected node (b). At this time, the devices C and D can grasp that the physical connection is made in a loop .

また、装置Cと装置Dは、カスケード接続の場合には、新たに接続された装置の情報を、その装置と反対側に接続されている装置に通知する。しかし、ループ接続の場合にこれを行うと、装置Cが発した通知と、装置Dが発した通知とが重複してしまうし、接続に端がないため、どこで通知をやめればよいかもはっきりしない。 Further, in the case of cascade connection, the devices C and D notify the information of the newly connected device to the device connected to the opposite side of the device. However, if this is done in the case of a loop connection, the notification issued by the device C and the notification issued by the device D overlap, and since there is no end to the connection, it is not clear where to stop the notification. .

そこで、ループ接続の場合には、フォワード側の装置のみが、新たに接続された装置の情報を、その装置と反対側に接続されている装置に通知することとしている。また、この通知を受けた各装置は、自機が追加された旨の通知であると判断した場合には、それ以上先に通知を行わないこととしている。 Therefore, in the case of loop connection, only the forward-side device notifies the newly connected device information to the device connected to the opposite side of the device. Also, each device that has received this notification, when determining that it is a notification that its own device has been added, will not notify further.

図の例では、装置Dが、装置Cが追加された旨の通知を反対側の装置Eに対して行い、その通知が装置E→A→B→Cと順次伝わっていく。しかし、装置Cは、この通知を、自機が追加された旨の通知であると判断し、このことにより通知がシステムを1周したことがわかるため、ここで通知の伝達は終了する。
以上の処理により、各装置は、フォワード側の(形式的な)端とバックワード側の(形式的な)端が同じ装置であること、すなわち接続がリング状になったことを把握することができる(c)。
In the example of the figure, the device D notifies the device E on the opposite side that the device C has been added, and the notification is sequentially transmitted in the order of devices E → A → B → C. However, since the device C determines that this notification is a notification that the own device has been added, and this indicates that the notification has made one round of the system, the transmission of the notification ends here.
Through the above processing, each device can grasp that the forward (formal) end and the backward (formal) end are the same device, that is, that the connection is in a ring shape. (C)

また、装置Cについては、論理接続準備処理において、図12のステップS64の判断がYESとなり、その後の論理接続確立処理において、装置Cと装置Dが互いの間のループバックを解除することにより、フレーム伝送経路が、2つのリング状の経路に変化し、ツインモードの接続が確立される。
RTLモードで動作しているシステムにおいて、両端の装置がケーブルにより接続された場合、以上の処理により、ツインモードの動作に移行することができる。
For device C, in the logical connection preparation process, the determination in step S64 in FIG. The frame transmission path changes to two ring-shaped paths, and a twin mode connection is established.
In a system operating in the RTL mode, when the devices at both ends are connected by a cable, the operation can be shifted to the twin mode operation by the above processing.

2.4 伝送経路の切断時の動作
次に、RTLモード又はTTLモードで動作中のオーディオネットワークシステムにおいてノード間の接続の切断が発生した場合の動作について説明する。
RTLモード又はTTLモードで動作中のオーディオネットワークシステムにおいて、各ノードは、隣接ノードとの間の接続が切断されたことを検出した場合、切断を検出した側のセレクタを折り返しライン/ITLフレーム送信部側に切り替え、切断を検出した側にTLフレームの伝送経路のループバックを設定する。
2.4 Operation when Transmission Path is Disconnected Next, an operation when disconnection between nodes occurs in an audio network system operating in the RTL mode or the TTL mode will be described.
In the audio network system operating in the RTL mode or the TTL mode, when each node detects that the connection with the adjacent node is disconnected, the node that detects the disconnection returns the selector on the return line / ITL frame transmission unit. Switch to the side, and set the loopback of the transmission path of the TL frame to the side that detected the disconnection.

隣接ノードとの間の接続が切断された状態でその隣接ノードに対してTLフレームを送信しても、そのTLフレームは単に失われるだけであるので、切断された接続より先のノードはシステムから除外し、残りのノードだけで新たな伝送経路を形成してTLフレームの循環を継続するためである。
なお、以下の図21及び図22では、RTLモードのシステムに切断が生じた場合の例を示しているが、TTLモードの場合にも、RTLをTTLと読み替えれば同様な動作となる。
Even if a TL frame is transmitted to an adjacent node in a state in which the connection with the adjacent node is disconnected, the TL frame is simply lost, so that the node beyond the disconnected connection is removed from the system. This is because the TL frame circulation is continued by forming a new transmission path only with the remaining nodes.
21 and 22 below show an example in which a disconnection occurs in the system in the RTL mode, but in the TTL mode, the same operation is performed by replacing RTL with TTL.

図21に、接続切断時のシステム構成変更手順の例を示す。
この図は、装置A〜装置Fの6台の装置によりRTLモードのオーディオネットワークシステムが形成されている状態で、装置Dと装置Eとの間の結線が切断された場合の例を示している。なお、結線の切断には、通信ケーブル自体が物理的に切断された場合の他、通信ケーブルが装置から抜き取られた場合や何れか一方の装置において故障によりオーディオネットワークへの送信ないし受信ができなくなった場合も含む。また、図中の「M」は、マスタノード、「LB」は、ループバックが設定されている装置を示す。
FIG. 21 shows an example of a system configuration change procedure at the time of disconnection.
This figure shows an example in which the connection between the device D and the device E is cut off in a state where the RTL mode audio network system is formed by the six devices A to F. . For disconnection of the connection, in addition to the case where the communication cable itself is physically disconnected, when the communication cable is pulled out from the device, or one of the devices cannot be transmitted to or received from the audio network due to a failure. Including cases. In the figure, “M” indicates a master node, and “LB” indicates a device for which loopback is set.

そして、図21(a)に示すように結線に切断が発生すると、両方向の伝送路が切断された場合は切断箇所の両側の装置で、片方向の伝送路のみが切断された場合はその切断された伝送路の受信側の装置で、切断箇所のある側の隣接装置からのTLフレームの信号が途絶えたり、ネットワーククロックの抽出ができなくなったりする。   Then, as shown in FIG. 21 (a), when a break occurs in the connection, when the transmission path in both directions is cut, the device on both sides of the cut portion is cut. When only the transmission path in one direction is cut, the cut is made. In the device on the receiving side of the transmission path, the signal of the TL frame from the neighboring device on the side where the disconnection occurs is interrupted, or the network clock cannot be extracted.

この場合、TLフレームの途中で信号が途切れたこと、あるいは、ネットワーククロックが抽出できなくなったことを検出した装置は、その側で切断が発生したと判断し、直ちに検出した側のセレクタを折り返しライン/ITLフレーム送信部側に切り替え、切断を検出した側にTLフレームの伝送経路のループバックを設定する。   In this case, the device that detects that the signal is interrupted in the middle of the TL frame or that the network clock cannot be extracted determines that a disconnection has occurred on that side, and immediately selects the selector on the detected side as a return line. Switch to the / ITL frame transmission unit side, and set the loopback of the transmission path of the TL frame to the side that detected the disconnection.

例えば、図8に示した第2の受信I/F33が切断を検出した場合、セレクタ37を折り返しライン側に、セレクタ36をITLフレーム送信部54側に切り換える。
ただし、これだけでは、隣接装置の送信I/Fから自機の第2の受信I/F33に至る伝送経路が切断されたとわかるだけで、自機の第2の送信I/F32から隣接装置の受信I/Fに至る通信経路が切断されたか否か、さらには、隣接装置が切断を検出できているか否かは定かではない。
For example, when the second reception I / F 33 shown in FIG. 8 detects disconnection, the selector 37 is switched to the return line side and the selector 36 is switched to the ITL frame transmission unit 54 side.
However, this only indicates that the transmission path from the transmission I / F of the adjacent device to the second reception I / F 33 of the own device has been disconnected, and reception of the adjacent device from the second transmission I / F 32 of the own device. It is not certain whether or not the communication path leading to the I / F has been disconnected, and further whether or not the adjacent device has detected disconnection.

そこで、切断を検出した受信I/Fと対応する送信I/F(ここでは第2の送信I/F32)から、切断発生を通知する切断通知コマンドを隣接装置に対して送信する。このコマンドは、ITLフレーム送信部54が、ITLフレーム120の形式で生成して送信I/Fに供給する。そして、この切断通知コマンドにより、隣接装置に、切断が発生したことを確実に伝達できる。   Therefore, a disconnection notification command for notifying the occurrence of disconnection is transmitted from the transmission I / F (here, the second transmission I / F 32) corresponding to the reception I / F that has detected disconnection to the adjacent device. This command is generated by the ITL frame transmission unit 54 in the format of the ITL frame 120 and supplied to the transmission I / F. The disconnection notification command can reliably notify the adjacent device that the disconnection has occurred.

なお、両方向の伝送路が切断されている場合には、隣接装置側でも切断を検出できているはずであるから、切断通知コマンドが届かなくても問題ない。また、切断通知コマンドの送信は、切断が解消するか、新たな装置が接続されて、切断の発生した側から接続検出(AS)コマンドを受信するまで、定期的に行う。   Note that if the transmission path in both directions is disconnected, the adjacent device must have detected disconnection, so there is no problem even if the disconnect notification command does not arrive. Further, the disconnection notification command is periodically transmitted until the disconnection is resolved or a new apparatus is connected and a connection detection (AS) command is received from the disconnection side.

(b)は、切断点の両側の装置が、切断を検出した側にループバックを設定した状態を示す。図に示す例では、このことにより、装置Aから装置Dまでを循環する伝送経路と、装置Eと装置Fの間を循環する伝送経路とが形成される。   (B) shows a state in which the devices on both sides of the cutting point set a loopback on the side where the cutting is detected. In the example shown in the figure, this forms a transmission path that circulates from apparatus A to apparatus D and a transmission path that circulates between apparatus E and apparatus F.

なお、切断が発生した場合、各装置はTLフレームの通過中にループバックを設定することも考えられる。そしてこの場合、送信中のTLフレームは破損する。しかし、この場合でも、後述のように、システム内の各ノードはTLフレームの破損を検出できるし、マスタノードも破損したフレームを廃棄して新たなフレームを作成できるため、大きな問題にはならない。従って、切断によって生じた2つの装置群のうち、マスタノードが存在する側は、切断箇所やタイミングによって0〜2のTLフレームに記載されていたデータを失うものの、RTLモードの動作を継続することができる。   When a disconnection occurs, each device may set a loopback during the passage of the TL frame. In this case, the TL frame being transmitted is damaged. However, even in this case, as described later, each node in the system can detect a TL frame breakage, and the master node can also discard the broken frame and create a new frame, which is not a big problem. Therefore, of the two device groups generated by the disconnection, the side on which the master node is present loses the data described in the TL frames 0 to 2 depending on the disconnection location and timing, but continues the operation in the RTL mode. Can do.

一方、切断によりマスタノードと切り離されてしまった装置については、もはやマスタノードが送信したTLフレームが到達しないため、RTLモードでの動作はできない。各装置は、トポロジーテーブルを参照することにより、切断によりマスタノードと切り離されたか否かを判断できるので、マスタノードと切り離されたと判断した装置は、自身をリセットすると共に、切断側と反対側にも、リセット要求を送信する。
そして、図13に示した処理により、マスタノードと切り離されたノードは(c)に示すように全て一旦ITLモードに戻る。
On the other hand, an apparatus that has been disconnected from the master node due to disconnection can no longer operate in the RTL mode because the TL frame transmitted by the master node no longer arrives. Each device can determine whether or not it has been disconnected from the master node by disconnection by referring to the topology table. Therefore, a device that has been determined to be disconnected from the master node resets itself and is set to the opposite side from the disconnection side. Also sends a reset request.
Then, all the nodes separated from the master node by the process shown in FIG. 13 once return to the ITL mode as shown in (c).

ただし、その後は、適宜図9に示す処理を開始し、図16等を用いて説明したものと同様な手順で、(d)に示すように装置E及び装置FはTTLモードのシステムを自動的に形成することができる。そして、切断された結線が復旧されると、一旦切り離された装置E及び装置Fを、図18等を用いて説明したものと同様な手順で、RTLモードで動作中のシステムに組み入れることができる。   However, after that, the processing shown in FIG. 9 is started as appropriate, and devices E and F automatically set up the TTL mode system as shown in (d) in the same procedure as described with reference to FIG. Can be formed. When the disconnected connection is restored, the devices E and F that have been disconnected can be incorporated into a system operating in the RTL mode in the same procedure as described with reference to FIG. .

なお、切断を検出した装置は、ITLフレーム又はTLフレーム中の管理データにより、切断の発生を、切断箇所と反対側の装置に順次通知する。そして、切断の通知を受けた各装置は、切断箇所より先に接続されていた装置の情報を、トポロジーテーブルから削除する。   Note that the device that has detected the disconnection sequentially notifies the device on the opposite side of the disconnection location of the disconnection based on the management data in the ITL frame or TL frame. Then, each device that has received the disconnection notification deletes information about the device connected before the disconnection location from the topology table.

また、切断発生時点でTLフレームの先頭が装置E又は装置Fに位置していた場合、何も対応しないと、装置Eと装置Fの間をTLフレームが循環し続けることも考えられる。そこで、このような事態を防止するため、TLフレームの受信時にフレーム通し番号を確認し、2度同じ通し番号のTLフレームを受信した場合には、そのTLフレームを折り返さずに破棄するようにするとよい。   In addition, when the head of the TL frame is located in the device E or the device F at the time of the occurrence of the disconnection, the TL frame may continue to circulate between the devices E and F if nothing is supported. Therefore, in order to prevent such a situation, it is preferable to confirm the frame serial number when receiving the TL frame, and when the TL frame having the same serial number is received twice, the TL frame is discarded without being folded.

また、図22に、接続切断時のシステム構成変更手順の別の例を示す。
この図には、装置が停止した場合の例を示している。結線に変化がなくでも、急に電源が切断される等して装置が停止することも考えられる。そして、この場合にも、停止した装置の両側の装置は、隣接装置からのネットワーククロックが検出できなくなるため、このことをトリガに、図22(a)に示すように伝送経路の切断を検出することができる。停止した装置の隣の装置(D,F)では、装置の停止は、結線の切断と区別できないが、対処処理も同じなので特に問題はない。
FIG. 22 shows another example of the procedure for changing the system configuration at the time of disconnection.
This figure shows an example when the apparatus is stopped. Even if there is no change in the connection, it is conceivable that the apparatus is stopped due to sudden power off. Also in this case, the devices on both sides of the stopped device cannot detect the network clock from the adjacent device, and this is used as a trigger to detect the disconnection of the transmission path as shown in FIG. be able to. In the devices (D, F) next to the stopped device, the stop of the device cannot be distinguished from the disconnection of the connection, but there is no particular problem because the coping process is the same.

すなわち、図22(b),(c)に示すように、図21の場合と同様、伝送経路の切断を検出した装置が、その切断を検出した側に折り返しを設定し、マスタノードが、切断発生時に壊れたTLフレームを破棄して新たなTLフレームの生成と送信を続行する。そして、このことにより、マスタノードが存在する側の伝送経路には、切断発生後もTLフレームが伝送され、伝送経路が維持できる範囲で、波形データやイーサネットフレーム等の伝送を継続することができる。   That is, as shown in FIGS. 22B and 22C, as in the case of FIG. 21, the apparatus that detects the disconnection of the transmission path sets the return to the side that detected the disconnection, and the master node disconnects. A TL frame that is broken at the time of occurrence is discarded, and generation and transmission of a new TL frame are continued. As a result, the TL frame is transmitted to the transmission path on the side where the master node is present even after the disconnection occurs, and transmission of waveform data, Ethernet frames, etc. can be continued within a range in which the transmission path can be maintained. .

なお、各装置は、機能が全面的に停止しない場合でも、制御部40がハングアップする等して、TLフレームに対してデータの読み書きを正常に行えなくなる場合がある。そして、この状態でTLフレームの伝送を継続すると、その内容の正確さが保証できなくなるため、ある装置がこの状態に陥った場合、その装置は機能が停止したとして、図22に示したような構成変更を行うことが好ましい。 Even if the functions of the devices do not stop completely, the control unit 40 may hang up or the like, and data reading / writing with respect to the TL frame may not be normally performed. If the transmission of the TL frame is continued in this state, the accuracy of the content cannot be guaranteed. Therefore, when a certain device falls into this state, the device stops functioning as shown in FIG. It is preferable to change the configuration.

3.TLフレームに対するデータの読み書きについて
次に、TLフレームに対するデータの読み書きについて説明する。
なお、ここで説明する動作及び処理は、RTLモードに関するものである。しかし、TTLモードの場合も、TLフレームに対する波形データの読み書きを行わない点以外は、RTLモードの場合と全く同じ処理を採用可能である。
3. Next, data reading / writing with respect to the TL frame will be described.
The operations and processes described here relate to the RTL mode. However, in the TTL mode, exactly the same processing as in the RTL mode can be adopted except that waveform data is not read / written from / to the TL frame.

また、ここで説明する動作及び処理は、波形データやイーサネットフレームの読み書きを行うデータ入出力部にTLフレームのデータが入力される場合の処理である。波形データやイーサネットフレームの読み書きを行わないデータ入出力部にTLフレームのデータが入力される場合には、これらのデータの入出力に関する処理は行わない。またこの場合、マスタノードであっても、新たなTLフレームの生成は行わないため、スレーブノードの場合と同様な処理を行う。   The operations and processes described here are processes when TL frame data is input to a data input / output unit that reads and writes waveform data and Ethernet frames. When data of a TL frame is input to a data input / output unit that does not read / write waveform data or Ethernet frames, processing related to input / output of these data is not performed. In this case, since the master node does not generate a new TL frame, the same processing as that of the slave node is performed.

また、説明の都合上、ネットワークI/Fカード215のデータ入出力部が備えるバッファや送受信部の符号には、第1のデータ入出力部10における符号を用いる。しかし、第2のデータ入出力部20を用いてデータの読み書きを行う場合に、第2のデータ入出力部20が備える各部が動作することは、もちろんである。   For convenience of explanation, the code in the first data input / output unit 10 is used as the code of the buffer and the transmission / reception unit provided in the data input / output unit of the network I / F card 215. However, when data is read and written using the second data input / output unit 20, it goes without saying that each unit included in the second data input / output unit 20 operates.

3.1 TLフレームの生成
まず、マスタノードにおけるTLフレーム100の生成について説明する。
既に述べたように、この実施形態のオーディオネットワークシステムにおいて、新たな(フレームIDの異なる)TLフレームを生成するのは、マスタノードのみである。そして、マスタノードは、自身が送信し、伝送経路を1周して戻ってきたTLフレームのデータを一部加工して、新たなTLフレームの生成を行う。
この加工の内容は、ヘッダや管理データ(フレームIDを含む)を更新すると共に、マスタノードが送信する波形データや制御データ等を書き込むものであり、他のノードが書き込んだ波形データや制御データは、そのまま新たなTLフレームに残るようにする。
3.1 Generation of TL Frame First, generation of the TL frame 100 in the master node will be described.
As already described, in the audio network system of this embodiment, only the master node generates a new TL frame (different in frame ID). Then, the master node generates a new TL frame by processing a part of the data of the TL frame transmitted by itself and returning around the transmission path once.
The contents of this processing are updating the header and management data (including frame ID) and writing the waveform data and control data transmitted by the master node. The waveform data and control data written by other nodes are Then, it is left as it is in a new TL frame.

しかし、このような生成方式を採る場合、戻ってきたTLフレームのエラーを確認せずに新たなTLフレームを生成すると、伝送される波形データに大きなノイズが発生してしまうおそれがある。そこで、この実施形態のマスタノードでは、伝送経路を1周して戻ってきたTLフレーム全体を一旦バッファに保存し、TLフレームの全体を正常に受信できたことを確認してから、そのTLフレームに基づいて新たなTLフレームを生成するようにしている。   However, when such a generation method is adopted, if a new TL frame is generated without checking the error of the returned TL frame, there is a possibility that a large noise is generated in the transmitted waveform data. Therefore, in the master node of this embodiment, the entire TL frame returned around the transmission path is temporarily stored in the buffer, and after confirming that the entire TL frame has been normally received, the TL frame Based on the above, a new TL frame is generated.

また、マスタノードがTLフレームを受信できなかった場合、新たなTLフレームは、別のTLフレームに基づいて生成しなければならない。そこで、正常に受信できた、すなわちループ状の伝送経路を正常に循環したTLフレームのうち最新のものを、送受信用とは別に保存しておき、TLフレームが正常に受信できなかった場合には、そのTLフレームに基づいて生成する予定だったTLフレームを、保存しておいたTLフレームに基づいて生成するようにしている。   If the master node cannot receive the TL frame, a new TL frame must be generated based on another TL frame. Therefore, if the TL frame that has been normally received, that is, the latest TL frame that has normally circulated through the loop transmission path, is stored separately from the transmission and reception, and the TL frame cannot be received normally. The TL frame that was scheduled to be generated based on the TL frame is generated based on the stored TL frame.

またこのため、マスタノードにおいては、図23に示すように、TLフレームの生成を行うデータ入出力部においては、TLフレーム送信部18に設けるTLフレームの加工用バッファを、複数のバッファで構成し、その各バッファに対し「送信バッファ(兼保存バッファ)」又は「受信バッファ」の機能を割り当てることができるようにしている。そして、TLフレーム送信部18内には、周期更新量kより1だけ多い(k+1)個のバッファが必要である。   For this reason, in the master node, as shown in FIG. 23, in the data input / output unit that generates the TL frame, the TL frame processing buffer provided in the TL frame transmission unit 18 is composed of a plurality of buffers. The function of “transmission buffer (also serving as storage buffer)” or “reception buffer” can be assigned to each buffer. In the TL frame transmission unit 18, (k + 1) more buffers than the period update amount k are required.

ここで、図24に、マスタノードにおけるTLフレームの送受信及び生成のタイミング例を示す。この図において、Sは整数であり、ワードクロックの各周期が何番目の周期であるかを示す番号である。そして、このSは、そのS番目の周期にマスタノードが送信するTLフレームを示すフレームIDとしても使用する。 Here, FIG. 24 shows a timing example of transmission / reception and generation of a TL frame in the master node. In this figure, S is an integer and is a number indicating what number each period of the word clock is. This S is also used as a frame ID indicating a TL frame transmitted by the master node in the Sth cycle.

マスタノードは、図5及び図6を用いて説明したように、サンプリング周期毎に1つのTLフレームを送信する。また、この図に示すのは、周期更新量kが「2」の場合の例であり、この場合、送信したTLフレームの先頭は、約1サンプリング周期でシステムを循環する。そして、多くの場合、図24に示すように、S番目のTLフレームの全体の受信が完了する前に、S+1番目のTLフレームの送信を開始しなければならない。また、S+2番目のTLフレームの送信を開始するより、マスタノード内での新TLフレームの準備に係る時間である所定時間αだけ前のタイミングまでに、S番目のTLフレームの全体を受信する。図24には、この所定時間αを、符号Xで示している。   As described with reference to FIGS. 5 and 6, the master node transmits one TL frame for each sampling period. Further, this figure shows an example in which the period update amount k is “2”. In this case, the head of the transmitted TL frame circulates in the system at about one sampling period. In many cases, as shown in FIG. 24, before the entire reception of the Sth TL frame is completed, transmission of the (S + 1) th TL frame must be started. Further, the entire Sth TL frame is received by a predetermined time α before the transmission of the S + 2nd TL frame is started before the new TL frame is prepared in the master node. In FIG. 24, the predetermined time α is indicated by a symbol X.

この場合、送信バッファに格納してあるS番目のTLフレームの送信と、受信したS−1番目のTLフレームの受信バッファへの格納とを並行して行っている。TLフレーム送信部18において、受信バッファは、現在の送信バッファの次のバッファとするとよい。また、マスタノードがTLフレームから読み取るべきデータは、受信バッファへの格納の際に読み取ってもよいし、格納してから読み取ってもよい。そして、S−1番目のTLフレームの受信が完了した時点で、受信したTLフレームのエラーチェックを行い、異常がなければその受信バッファを次の送信バッファとして指定するとともに、その指定された送信バッファ(現在の受信バッファ)の次のバッファを次の受信バッファとして指定する。そして、次の送信バッファに格納されているS−1番目のTLフレームを加工してS+1番目のTLフレーム生成する。 In this case, the transmission of the Sth TL frame stored in the transmission buffer and the storage of the received S-1th TL frame in the reception buffer are performed in parallel. In the TL frame transmission unit 18, the reception buffer may be a buffer next to the current transmission buffer. The data that the master node should read from the TL frame may be read when stored in the reception buffer, or may be read after being stored. When the reception of the S-1st TL frame is completed, the received TL frame is checked for errors. If there is no abnormality, the reception buffer is designated as the next transmission buffer, and the designated transmission buffer is designated. Designates the buffer next to (current receive buffer) as the next receive buffer. Then, the S-1st TL frame stored in the next transmission buffer is processed to generate the S + 1th TL frame.

さらに、間もなくS番目のTLフレームも戻ってくるので、準備されている次のバッファを受信バッファに変更して、受信したS番目のTLフレームの格納を開始する。続いて、S番目のTLフレームの送信が完了した時点で、送信バッファを開放する。   Furthermore, since the Sth TL frame will be returned soon, the prepared next buffer is changed to a reception buffer, and storage of the received Sth TL frame is started. Subsequently, when transmission of the S-th TL frame is completed, the transmission buffer is released.

そして、次のワードクロックの開始タイミングで、準備されている次のバッファを送信バッファに変更するとともに、そこに格納されているS+1番目のTLフレームの送信を開始し、その後、S番目のTLフレームの受信が完了した時点で、受信したTLフレームのエラーチェックを行い、異常がなければそのTLフレームを格納した受信バッファを次の送信バッファとして指定するとともに、その指定された送信バッファ(現在の受信バッファ)の次のバッファを次の受信バッファとして指定する。そして、次の送信バッファに格納されているS番目のTLフレームを加工してS+2番目のTLフレームを生成する。   Then, at the start timing of the next word clock, the prepared next buffer is changed to a transmission buffer, and transmission of the (S + 1) th TL frame stored therein is started. Thereafter, the Sth TL frame is started. When reception of the TL frame is completed, an error check of the received TL frame is performed. If there is no abnormality, the reception buffer storing the TL frame is designated as the next transmission buffer, and the designated transmission buffer (current reception Buffer next) is designated as the next receive buffer. Then, the Sth TL frame stored in the next transmission buffer is processed to generate the S + 2nd TL frame.

以上の手順を繰り返すことにより、常に、全体が正常であると判断できたTLフレームに基づいて、新たなTLフレームを生成することができる。
なお、1番目と2番目のTLフレームについては、基になるTLフレームがないため、所定の雛形に基づいて生成するようにするとよい。
By repeating the above procedure, a new TL frame can always be generated based on a TL frame that can be determined to be normal as a whole.
The first and second TL frames are preferably generated based on a predetermined template because there is no TL frame as a base.

また、フレームバッファ内でTLフレームを加工する代わりに、スレーブノードの場合と同様に、出力時に、バッファからTLフレームを読み出し、その読み出されたTLフレームのヘッダ及び内容を波形データ送信バッファ16,TLデータ送信バッファ17,ITLデータ送信バッファ53からのデータにより差し替えつつ出力するようにしてもよい。この場合、送信バッファに保存されているのが受信したままのTLフレームである点が異なるが、必要とされるバッファ数は同じく(k+1)個である。   Further, instead of processing the TL frame in the frame buffer, as in the case of the slave node, at the time of output, the TL frame is read from the buffer, and the header and contents of the read TL frame are read out by the waveform data transmission buffer 16, The data may be output while being replaced by data from the TL data transmission buffer 17 and the ITL data transmission buffer 53. In this case, the difference is that the TL frame as received is stored in the transmission buffer, but the required number of buffers is also (k + 1).

また、各バッファの動作速度を倍にして、送信しながら受信できるように設計すれば、マスタノードにTLフレームが戻ってくるタイミングで、その時点の「送信バッファ」を同時に「受信バッファ」として使うことができるので、バッファの数を上述した実施例より1つ少ないk個とすることができる。   Also, if the operation speed of each buffer is doubled so that reception is possible while transmitting, the “transmission buffer” at that time is used as a “reception buffer” at the same time when the TL frame returns to the master node. Therefore, the number of buffers can be reduced to k, which is one less than the above-described embodiment.

また、図25に、S番目以降のTLフレームが、ループ状の伝送経路を正常に循環できていない場合の、マスタノードにおけるTLフレームの送受信及び生成のタイミングを示す。ここで、正常にできていない場合とは、マスタノードがTLフレームを受信した時点のフレームに異常が検出された場合の他、他のノードにおいて異常が検出され、その旨がフレームに記録されている場合も含む。   FIG. 25 shows the transmission / reception and generation timing of the TL frame in the master node when the Sth and subsequent TL frames are not normally circulated through the loop-shaped transmission path. Here, the case where it is not normal means that, when an abnormality is detected in the frame at the time when the master node receives the TL frame, an abnormality is detected in another node, and that fact is recorded in the frame. This includes cases where

この場合、マスタノードが、正常に循環しなかった(データが破壊されている恐れのある)S番目のTLフレームに基づいてS+2番目のTLフレームを生成すると、伝送される波形データが不連続となりノイズが発生するおそれがある。そこで、フレームが正常に循環しなかったことを検出したマスタノードは、受信バッファのTLフレームを破棄し、該バッファを次の受信バッファとして指定するとともに、その時点の送信バッファを次の送信バッファとして指定する。その時点で送信バッファはまだ送信中であり、新規のTLフレームの生成はその送信完了を待ってから行う。すなわち、S+1番目のTLフレームの送信完了時、マスタノードは、次の送信バッファに格納されているS+1番目のTLフレーム(伝送経路を正常に循環したことを確認済みの最新のTLフレームであるS−1番目のTLフレームのデータを含む)を加工してS+2番目のTLフレームを生成する。   In this case, when the master node generates the S + 2nd TL frame based on the Sth TL frame that is not normally circulated (data may be destroyed), the transmitted waveform data becomes discontinuous. Noise may occur. Therefore, the master node that has detected that the frame has not circulated normally discards the TL frame in the reception buffer, designates the buffer as the next reception buffer, and sets the current transmission buffer as the next transmission buffer. specify. At that time, the transmission buffer is still transmitting, and a new TL frame is generated after the transmission is completed. That is, when the transmission of the (S + 1) th TL frame is completed, the master node stores the (S + 1) th TL frame stored in the next transmission buffer (the latest TL frame that has been confirmed to have normally circulated through the transmission path). (Including data of -1st TL frame) to generate an S + 2nd TL frame.

また、S+1番目のTLフレームも正常に受信できなかった場合は、S+3番目のTLフレームを生成する際にも、送信バッファを再度次の送信バッファとして指定し、S+2番目のTLフレームの送信が完了後、格納されているS+2番目のTLフレームに基づいてS+3番目のTLフレームを生成する。以後も、TLフレームが正常に受信できるまでは、同じバッファを送信バッファとして繰り返し使用し、その送信バッファに格納されているTLフレーム(S−1番目のTLフレームのデータを含む)に基づいて新たなTLフレームの生成を行うことを続ける。   If the S + 1th TL frame cannot be received normally, the transmission buffer is designated as the next transmission buffer again when the S + 3rd TL frame is generated, and the transmission of the S + 2nd TL frame is completed. Then, the S + 3rd TL frame is generated based on the stored S + 2nd TL frame. Thereafter, until the TL frame can be normally received, the same buffer is repeatedly used as the transmission buffer, and a new one is generated based on the TL frame (including the data of the S-1st TL frame) stored in the transmission buffer. Continue generating TL frames.

このようにしても、S−1番目のTLフレームに記載されていたデータのうち、マスタノードが上書きせずにそのまま次のノードに送信するデータは、S+2番目のTLフレームにも、S+3番目のTLフレームにも、その後のTLフレームにも、変わらずに残る。従って、S−1番目のTLフレームのデータを別途保存しておき、毎回その保存しておいたTLフレームに基づいて新たなTLフレームを生成する場合と同じ結果が得られる。   Even in this way, among the data described in the S-1st TL frame, the data that the master node transmits to the next node as it is without being overwritten is also the S + 3rd TL frame. It remains unchanged in the TL frame and the subsequent TL frame. Therefore, the same result as that in the case where the data of the (S-1) -th TL frame is stored separately and a new TL frame is generated each time based on the stored TL frame can be obtained.

次に、マスタノードにおいて図24及び図25に示した動作を実現するための処理について説明する。
まず、図26に、マスタノードがS番目のTLフレームの受信開始を検出した場合に実行する処理のフローチャートを示す。
マスタノードにおける制御部40のCPUは、S番目のTLフレームの受信開始を検出した場合、図26に示す処理を開始する。そしてまず、受信したフレームに管理データとして記載されているリングID及びフレームIDを確認し(S121)、正しい値か否か判断する(S122)。フレームIDは、前のTLフレームと連続番号になっていれば正しい値である。リングIDは、フレームを受信した受信I/Fが属する伝送経路のIDであれば、正しい値である。
Next, processing for realizing the operations shown in FIGS. 24 and 25 in the master node will be described.
First, FIG. 26 shows a flowchart of processing executed when the master node detects reception start of the S-th TL frame.
When the CPU of the control unit 40 in the master node detects the start of reception of the S-th TL frame, it starts the process shown in FIG. First, the ring ID and the frame ID described as management data in the received frame are confirmed (S121), and it is determined whether or not the values are correct (S122). The frame ID is a correct value if it is a serial number with the previous TL frame. The ring ID is a correct value if it is the ID of the transmission path to which the received I / F that received the frame belongs.

そして、フレームID及びリングIDが正しい値であれば、特に問題ないので図26の処理を終了してTLフレームの受信とバッファへの蓄積を継続する。しかし、これらの値に異常がある場合、フレームが欠落していたり、伝送経路の形状が変化していたりすることが考えられる。そこで、エラー処理(S123)において、フレームにエラーがあったことを記憶しておき、次の図27のステップS132において、エラーありと判断させるようにする。   Then, if the frame ID and the ring ID are correct values, there is no particular problem, so the processing of FIG. 26 is terminated, and reception of the TL frame and accumulation in the buffer are continued. However, if these values are abnormal, it is possible that a frame is missing or the shape of the transmission path is changed. Therefore, in the error processing (S123), it is stored that there is an error in the frame, and it is determined that there is an error in the next step S132 in FIG.

次に、図27に、マスタノードがS番目のTLフレームの受信完了を検出した場合に実行する処理のフローチャートを示す。
マスタノードにおける制御部40のCPUは、S番目のTLフレームの受信完了を検出した場合、図27に示す処理を開始する。そしてまず、FCS105により、受信完了したTLフレームのエラー有無を検出する(S131)。そして、エラーがなく、かつ受信したTLフレームに記載されているエラーフラグEDFの値がエラー無しを示す「0」である場合(S132)、受信したTLフレームは伝送経路を正常に循環したと判断し、受信したS番目のTLフレームに基づいてS+2番目のTLフレームを生成することを決定する(S133)。なお、新たなTLフレーム生成のベースとするTLフレームのことを、「対象フレーム」と呼ぶことにする。
Next, FIG. 27 shows a flowchart of processing executed when the master node detects completion of reception of the S-th TL frame.
When the CPU of the control unit 40 in the master node detects completion of reception of the S-th TL frame, it starts the processing shown in FIG. First, the FCS 105 detects whether there is an error in the TL frame that has been received (S131). If there is no error and the value of the error flag EDF described in the received TL frame is “0” indicating no error (S132), it is determined that the received TL frame has normally circulated through the transmission path. Then, it determines to generate the S + 2nd TL frame based on the received Sth TL frame (S133). A TL frame that is a base for generating a new TL frame is referred to as a “target frame”.

その後、対象フレームに対し、新たなフレームIDを書き込んで新たなTLフレームとする(S134)と共に、波形データ,イーサネットフレーム,ITLフレーム,およびその他の情報の読み取り及び書き込みの処理を行い(S135〜S138)、S+2番目のTLフレームに、出力すべきデータが書き込まれた状態にする。
どのようなデータをフレームから読み出し、また書き込むかは、図8を用いて説明した通りである。また、ステップS135〜S138の処理は、順不同であり、読み取りのみ先に全て行ってから、書き込みを行うという処理順でもよい。
なお、ITLフレームについては、書き込むべきデータがない場合でも、その旨を示すデータをITLフレーム領域106に書き込む。このデータは、例えばブロック数「1」、ブロック番号「1」、データサイズ「0」のブロックのデータとして記載することができる。この点は、他のステップのITLフレーム書込処理でも同様である。
Thereafter, a new frame ID is written into the target frame to form a new TL frame (S134), and waveform data, Ethernet frame, ITL frame, and other information are read and written (S135 to S138). ), The data to be output is written in the S + 2nd TL frame.
What data is read from and written to the frame is as described with reference to FIG. Further, the processes in steps S135 to S138 are not in the order, and may be performed in a process order in which only reading is performed first and then writing is performed.
For the ITL frame, even when there is no data to be written, data indicating that is written in the ITL frame area 106. This data can be described as data of a block having the number of blocks “1”, the block number “1”, and the data size “0”, for example. This also applies to the ITL frame writing process in other steps.

そして、ステップS138の後、対象フレームにFCSを付与してTLフレームとして完成させ(S139)、S+2番目のワードクロックのタイミングまで待機して(S140)、ワードクロックのタイミングに合わせて、生成したS+2番目のTLフレームの送信を開始する(S141)。   Then, after step S138, FCS is added to the target frame to complete it as a TL frame (S139), wait until the timing of the S + 2nd word clock (S140), and the generated S + 2 in accordance with the timing of the word clock Transmission of the TL frame is started (S141).

一方、ステップS132で、エラーあり、又はエラーフラグEDFの値がエラーありを示す「1」であった場合には、受信したTLフレームは伝送経路を正常に循環していないと判断し、伝送経路を正常に循環したことを確認済みの最新のTLフレームに基づいてS+2番目のTLフレームを生成することを決定する(S142)。この場合にも、新たなTLフレーム生成のベースとするTLフレームのことを、「対象フレーム」と呼ぶことにする。   On the other hand, if there is an error or the value of the error flag EDF is “1” indicating that there is an error in step S132, it is determined that the received TL frame does not normally circulate through the transmission path, and the transmission path Is determined to generate the S + 2nd TL frame based on the latest TL frame that has been confirmed to have been normally circulated (S142). Also in this case, a TL frame that is a base for generating a new TL frame is referred to as a “target frame”.

その後、対象フレームに対し、フリートークンを書き込む(S143)。このフリートークンは、TLフレーム100のイーサネットフレーム領域106が現在使用されておらず、イーサネットフレームの送信を希望するノードがイーサネットフレーム領域106にデータを書き込んでもよいことを示すデータである。そして、このフリートークンは、本実施形態では送信元IDの値(例えば「0」)として書き込むようにしている。   Thereafter, a free token is written into the target frame (S143). This free token is data indicating that the Ethernet frame area 106 of the TL frame 100 is not currently used, and a node desiring to transmit an Ethernet frame may write data to the Ethernet frame area 106. In this embodiment, the free token is written as the value of the transmission source ID (for example, “0”).

なお、ステップS143でフリートークンの書き込みを行うのは、イーサネットフレーム領域106については、対象フレームに記載されている、既に過去に送信したデータを同じデータを再度送信しても意味がないので、領域を解放するためである。なお、その後、マスタノード自身がイーサネットフレーム領域106に送信すべきイーサネットフレームのデータを書き込む場合はある。   Note that the free token is written in step S143 for the Ethernet frame region 106 because there is no point in retransmitting the same data already transmitted in the past as described in the target frame. Is to release. After that, there are cases where the master node itself writes Ethernet frame data to be transmitted to the Ethernet frame area 106.

また、CPUはその後、ステップS132でNOとなったことに伴うエラー処理を行う(S144)。この処理は、後で図29を用いて説明するスレーブノードにおける処理と同様、受信したTLフレームに記載されているデータが信頼できないことに伴う処理である。また、上位層にエラーを通知する等の処理を行ってもよい。   Further, the CPU then performs error processing associated with NO in step S132 (S144). This process is a process associated with the fact that the data described in the received TL frame is not reliable, similarly to the process in the slave node described later with reference to FIG. In addition, processing such as notifying an error to an upper layer may be performed.

そして、ステップS144の後は、対象フレームに対し、新たなフレームIDを書き込んで新たなTLフレームとする(S145)と共に、波形データ,イーサネットフレーム,ITLフレーム,およびその他の情報の書き込みの処理を行い(S146〜S149)、S+2番目のTLフレームに、出力すべきデータが書き込まれた状態にする。ステップS146〜S149の処理が順不同であることはステップS135〜S138の場合と同様であるが、ここでは、対象フレームからデータを読み出す必要はない。
ステップS149の後は、ステップS139に進み、生成した新たなTLフレームを、エラーなしの場合と同様に送信開始して処理を終了する。
After step S144, a new frame ID is written into the target frame to form a new TL frame (S145), and waveform data, Ethernet frame, ITL frame, and other information are written. (S146 to S149), the data to be output is written in the S + 2nd TL frame. The processing in steps S146 to S149 is out of order as in the case of steps S135 to S138, but here it is not necessary to read data from the target frame.
After step S149, the process proceeds to step S139, and transmission of the generated new TL frame is started in the same manner as in the case of no error, and the process ends.

以上の処理を行うことにより、マスタノードは、伝送経路を正常に循環して戻ってきたことが確認できているTLフレームに基づいて新たなTLフレームを生成することができるため、常に正しいTLフレームを生成することができる。
なお、エラーフラグEDFの値が「1」であっても、受信したTLフレーム自体にエラーがない場合には、直前のノードが書き込んだデータは信用できるため、受信したTLフレームのデータのうち、ITLフレーム領域のデータのみは読み出して処理に利用するようにするとよい。
By performing the above processing, the master node can generate a new TL frame based on the TL frame that has been confirmed to have normally circulated back through the transmission path, so that the correct TL frame is always obtained. Can be generated.
Even if the value of the error flag EDF is “1”, if there is no error in the received TL frame itself, the data written by the immediately preceding node can be trusted, and therefore, among the data of the received TL frame, Only data in the ITL frame area may be read out and used for processing.

また、図24〜図27を用いて以上に説明した動作は、周期更新量kが「2」の場合のものであったが、周期更新量kが2より大きい値である場合には、「S番目のTLフレームを基にしてS+k番目のTLフレームを生成する」ことを正常時の基本動作として、周期更新量kが「2」の場合と同様の動作を行う。   The operation described above with reference to FIGS. 24 to 27 was performed when the periodic update amount k is “2”, but when the periodic update amount k is a value larger than 2, “ The operation similar to that in the case where the periodic update amount k is “2” is performed with “the generation of the S + k-th TL frame based on the S-th TL frame” as a basic operation at normal time.

すなわち、図24のタイミング図に相当する動作では、S番目のTLフレームを正常に受信完了すると、マスタノードは、そのTLフレームに基づいてS+k番目のTLフレームを生成し、S+k番目のワードクロックのタイミングで送信開始する。図25に相当する動作では、S番目のTLフレームが正常に受信できなかったとき、マスタノードは、S+k−1番目のTLフレームの送信完了を待って、そのTLフレームに含まれている「最後に正常受信されたTLフレームのデータ」に基づいてS+k番目のTLフレームを生成し、S+k番目のワードクロックのタイミングで送信開始する。   That is, in the operation corresponding to the timing diagram of FIG. 24, when the reception of the Sth TL frame is completed normally, the master node generates the S + kth TL frame based on the TL frame, and the S + kth word clock Start transmission at the timing. In the operation corresponding to FIG. 25, when the S-th TL frame cannot be normally received, the master node waits for the completion of transmission of the S + k−1-th TL frame, and includes the “last” included in the TL frame. The S + k-th TL frame is generated based on the “normally received TL frame data”, and transmission is started at the timing of the S + k-th word clock.

周期更新量kを大きくすることにより、オーディオネットワークシステムにおけるTLフレーム循環の上限時間を大きくすることができ、その分だけノード間の距離を長くしたり、システムに組み入れるノード数を増やしたりすることができる。しかしながら、周期更新量kを大きくした分だけ、オーディオネットワークにおける音響信号の伝達遅延が大きくなるというトレードオフがある。   By increasing the period update amount k, the upper limit time of TL frame circulation in the audio network system can be increased, and the distance between nodes can be increased by that amount, or the number of nodes incorporated in the system can be increased. it can. However, there is a trade-off that the transmission delay of the acoustic signal in the audio network increases as the period update amount k increases.

3.3 スレーブノードにおけるデータの利用
図6及び図8等を用いて説明したように、オーディオネットワークシステム中でRTLモードで動作中の各ノードにおいては、TLフレームから自機が使用するデータを読み出し、他の装置に送信すべきデータをTLフレームに書き込む。
次に、スレーブノードにおけるTLフレームの送受信に関する処理について説明する。
まず、図28に、スレーブノードがS番目のTLフレームの受信開始を検出した場合に実行する処理のフローチャートを示す。
3.3 Use of Data in Slave Node As described with reference to FIGS. 6 and 8, etc., each node operating in the RTL mode in the audio network system reads data used by the own device from the TL frame. Write data to be transmitted to other devices in the TL frame.
Next, processing related to transmission / reception of a TL frame in the slave node will be described.
First, FIG. 28 shows a flowchart of processing executed when the slave node detects reception start of the S-th TL frame.

スレーブノードにおける制御部40のCPUは、S番目のTLフレームの受信開始を検出した場合、図28に示す処理を開始する。そしてまず、受信中のTLフレームに管理データとして記載されているリングID及びフレームIDを確認し(S161)、正しい値か否か判断する(S162)。この判断は、マスタノードにおける図26のステップS121,S122と同様なものであり、正しくない場合には、エラー処理(S171)として、受信したTLフレームをそのままスルーさせる。この場合、伝送経路上の以降のノードも同様にTLフレームをスルーさせ、マスタノードまで戻すことになる。また、FCSエラーの場合と同様、エラーフラグEDFを「1」にセットするようにしてもよい。   When the CPU of the control unit 40 in the slave node detects the reception start of the S-th TL frame, it starts the process shown in FIG. First, the ring ID and the frame ID described as management data in the TL frame being received are confirmed (S161), and it is determined whether or not the values are correct (S162). This determination is the same as in steps S121 and S122 of FIG. 26 in the master node. If it is not correct, the received TL frame is directly passed through as error processing (S171). In this case, subsequent nodes on the transmission path also pass through the TL frame and return to the master node. Further, as in the case of the FCS error, the error flag EDF may be set to “1”.

一方、ステップS162で問題なければ、受信したTLフレームに対し、波形データ,イーサネットフレーム,ITLフレーム,およびその他の情報の読み取り及び書き込みの処理を行う(S163〜S166)。
なお、図8の説明で述べた通り、スレーブノードは、TLフレームの受信完了を待たずに、受信したTLフレームに対するデータの読み書きを行い、次のノードへの送信も開始する。従って、これらの処理は、フレームの受信進行に応じて適当なタイミングで順次行うものであり、必ずしもフローチャートの記載順に従うとは限らない。また、どのようなデータをフレームから読み出し、また書き込むかは、図8を用いて説明した通りである。さらに、次のノードへの送信開始も、フレームの所定量のデータが蓄積されたタイミングで、図28の処理とは独立に開始及び進行させる。
On the other hand, if there is no problem in step S162, the waveform data, Ethernet frame, ITL frame, and other information are read from and written to the received TL frame (S163 to S166).
As described in the description of FIG. 8, the slave node reads / writes data with respect to the received TL frame without waiting for the completion of reception of the TL frame, and also starts transmission to the next node. Therefore, these processes are sequentially performed at an appropriate timing according to the progress of frame reception, and do not always follow the order of description in the flowchart. Further, what data is read from and written to the frame is as described with reference to FIG. Furthermore, transmission to the next node is started and progressed independently of the processing of FIG. 28 at the timing when a predetermined amount of data of the frame is accumulated.

このため、スレーブノードにおいては、TLフレームに対してデータを読み書きする時点では、そのフレームにおけるエラー有無を把握できないが、この点については、後述の図29,図31及び図32に示す処理により対処する。
また、ステップS166の後、TLフレームのFCSを受信できると、そのFCSにより、受信中のTLフレームのエラー有無を検出する(S167)。そして、エラーがあった場合には(S168)、受信中のTLフレームのエラーフラグEDFを、エラーありを示す「1」をセットする(S169)。ここでエラーがあった場合、受信したTLフレームに記載されていたデータは正確性が保証できないことがわかる。ただし、自身がTLフレームに書き込んで出力したデータは、元のデータに上書きしているため、正確性が保証できる。
For this reason, at the time of reading / writing data from / to the TL frame, the slave node cannot grasp the presence / absence of an error in the frame, but this point can be dealt with by processing shown in FIGS. 29, 31 and 32 described later. To do.
If the FCS of the TL frame can be received after step S166, the presence or absence of an error in the TL frame being received is detected by the FCS (S167). If there is an error (S168), the error flag EDF of the TL frame being received is set to “1” indicating that there is an error (S169). If there is an error here, it can be seen that the accuracy of the data described in the received TL frame cannot be guaranteed. However, since the data written and output by itself in the TL frame overwrites the original data, accuracy can be guaranteed.

また、ステップS168でエラーなしの場合には、エラーフラグEDFの値は変更せず、「1」がセットされていてもそのままとする。エラーフラグEDFは、TLフレームの循環中に1度でもエラーが発生したか否かを示すフラグだからである。
そしていずれの場合も、最後に、受信したTLフレームに正しいFCSを付与して(S170)、処理を終了する。このFCSを付与することにより、送信先のノードでは、このノードが出力したフレームはエラーなしと認識することになる。エラーフラグEDFの値が「1」であれば、マスタノードから自ノードまでの間のどこかでエラーが生じたことは認識できる。
If there is no error in step S168 , the value of the error flag EDF is not changed and is left as it is even if “1” is set. This is because the error flag EDF is a flag indicating whether or not an error has occurred even once during the circulation of the TL frame.
In either case, finally, the correct FCS is assigned to the received TL frame (S170), and the process is terminated. By giving this FCS, the destination node recognizes that the frame output by this node has no error. If the value of the error flag EDF is “1”, it can be recognized that an error has occurred somewhere between the master node and the own node.

以上の処理を実行することにより、スレーブノードは、受信したTLフレームを次のノードに送信するまでに、そのTLフレームに対して必要なデータの読み書きを行うことができる。   By executing the above processing, the slave node can read and write necessary data for the TL frame before transmitting the received TL frame to the next node.

次に、図29に、スレーブノードがS番目のTLフレームの受信完了を検出した場合に実行する処理のフローチャートを示す。
この処理は、受信したTLフレームのエラーチェック結果に応じて、そのTLフレームから読み出したデータの採否を決定する処理である。そして、スレーブノードにおける制御部40のCPUは、S番目のTLフレームの受信開始を検出した場合、図29に示す処理を開始する。
FIG. 29 shows a flowchart of processing executed when the slave node detects completion of reception of the S-th TL frame.
This process is a process for determining whether to accept the data read from the TL frame according to the error check result of the received TL frame. Then, when the CPU of the control unit 40 in the slave node detects the start of reception of the S-th TL frame, it starts the process shown in FIG.

そしてまず、FCSエラーあり又はエラーフラグEDFの値が「1」であった場合には(S181)、S番目のTLフレームから読み出した波形データは正確性が保証できないことがわかる。このため、そのデータを破棄し、前の周期の波形データをホールドして、読み出した波形データの代わりに第S周期のデータとする(S182)。図示は省略したが、ステップS181でYESの場合、ステップS166で読み出したその他の情報についても、破棄するようにするとよい。   First, when there is an FCS error or the value of the error flag EDF is “1” (S181), it can be seen that the accuracy of the waveform data read from the S-th TL frame cannot be guaranteed. Therefore, the data is discarded, the waveform data of the previous cycle is held, and the data of the Sth cycle is used instead of the read waveform data (S182). Although illustration is omitted, if YES in step S181, the other information read in step S166 may be discarded.

また、FCSエラーありであった場合には(S183)、S番目のTLフレームのITLフレーム領域107から読み出したデータは正確性が保証できないことがわかる。このため、そのデータを含むITLフレームを廃棄する(S184)。ITLフレームを複数のブロックに分割してITLフレーム領域107に記載している場合、1つのブロックでも正確性が保証できないものがあると、ITLフレーム全体の正確性が保証できないためである。
以上で図29の処理を終了する。
If there is an FCS error (S183), it can be seen that the accuracy of the data read from the ITL frame area 107 of the Sth TL frame cannot be guaranteed. Therefore, the ITL frame including the data is discarded (S184). This is because when the ITL frame is divided into a plurality of blocks and described in the ITL frame area 107, the accuracy of the entire ITL frame cannot be guaranteed if even one block cannot guarantee the accuracy.
Thus, the process of FIG. 29 is completed.

以上の処理を実行することにより、スレーブノードは、受信したTLフレームのエラー有無を確認するまえにそのTLフレームに対してデータを読み書きしてしまっても、事後的にエラーデータを後段の処理から排除することができる。
なお、図29には、イーサネットフレーム領域のデータを排除する処理はないが、この処理については、次項で述べる。
By executing the above processing, even if the slave node reads / writes data to / from the TL frame before confirming the presence / absence of an error in the received TL frame, the error data is processed later from the subsequent processing. Can be eliminated.
In FIG. 29, there is no processing for eliminating data in the Ethernet frame area, but this processing will be described in the next section.

また、FCSエラーがなければ、エラーフラグEDFの値が「1」であっても、ITLフレーム領域107のデータは正確性が保証できる。ITLフレーム領域107に自ノードが読み取るべきデータが書かれている場合、そのデータを書き込んだのは直前のノードであり、そのノードから自ノードまでの間に伝送エラーが発生していないことは、FCSによって保証されるためである。 If there is no FCS error, even if the value of the error flag EDF is “1”, the accuracy of the data in the ITL frame area 107 can be guaranteed. When data to be read by the own node is written in the ITL frame area 107, the data is written in the immediately preceding node, and no transmission error has occurred between the node and the own node. This is because it is guaranteed by the FCS.

また、図28に示した処理の変形としてステップS170でFCSの付与をしないようにすることも考えられる。この場合、一旦エラーの生じたTLフレームは、そのエラーを有したまま伝送経路を循環してマスタノードに戻ることになる。このため、エラーフラグEDFによってエラーの発生を先のノードに伝えることは必要なくなるが、一旦エラーの生じたフレームは、ITLフレーム領域107も含めた全てのデータについて正確性が保証できなくなる。   Further, as a modification of the processing shown in FIG. 28, it is conceivable that FCS is not given in step S170. In this case, the TL frame in which an error has occurred once circulates through the transmission path with the error and returns to the master node. For this reason, it is not necessary to notify the previous node of the occurrence of the error by the error flag EDF, but the accuracy of the data once including the ITL frame area 107 cannot be guaranteed for the frame in which the error has occurred.

3.4 イーサネットフレームデータの送受信
既に述べたように、オーディオネットワークシステム1においては、イーサネットフレームを、TLフレームに記載して任意のノード間で送受信できるようにしている。しかし、イーサネットフレームは、波形データと異なり、各ノードにおいて非同期に、随時送信の要求が生じるものである。このため、イーサネットフレームについては、波形データの場合とは異なる送受信制御の機能を設けている。
3.4 Transmission / Reception of Ethernet Frame Data As described above, in the audio network system 1, an Ethernet frame is described in a TL frame so that it can be transmitted / received between arbitrary nodes. However, unlike the waveform data, an Ethernet frame is a request for transmission at any time asynchronously at each node. For this reason, the Ethernet frame has a transmission / reception control function different from that for waveform data.

次に、この点について説明する。なお、以下に説明する処理及び動作は、マスタノードとスレーブノードに共通のものである。
まず、音響信号処理装置2において、送信するイーサネットフレームを生成し、また受信したイーサネットフレームを受け取るのは、ネットワークI/Fカード215のMAC処理部14である。そして、制御部40を始めとするネットワークI/Fカード215の各部は、その送受信を仲介するという位置づけになる。
Next, this point will be described. Note that the processes and operations described below are common to the master node and the slave node.
First, in the acoustic signal processing device 2, it is the MAC processing unit 14 of the network I / F card 215 that generates an Ethernet frame to be transmitted and receives the received Ethernet frame. Each unit of the network I / F card 215 including the control unit 40 is positioned to mediate the transmission / reception.

ここで、イーサネットフレームの送受信は、送信側ではネットワーク内の全ての装置にフレームを送信し、受信側で、自装置宛でないイーサネットフレームを受信した場合には読み捨てる、という処理を行うことになるので、本実施形態の送受信制御もこれに沿ったものとしている。ただし、自装置宛でないフレームを読み捨てるのは、MAC処理部14が行う処理であり、ネットワークI/Fカード215の制御部40は、適切に送信されてきた全てのMAC処理部14に渡す。   Here, in the transmission / reception of the Ethernet frame, the transmission side transmits the frame to all devices in the network, and the reception side performs processing of discarding the Ethernet frame that is not addressed to the own device. Therefore, the transmission / reception control of the present embodiment is in line with this. However, it is the processing performed by the MAC processing unit 14 that discards a frame that is not addressed to its own device, and the control unit 40 of the network I / F card 215 passes it to all the MAC processing units 14 that have been properly transmitted.

すなわち、制御部40が行うのはイーサネットの物理層(PHY)に相当する処理であり、この項でいう「上位層」は、MAC層の処理を行うMAC処理部14を指す。本体側のCPU201は、さらに上位の層ということになる。
従って、MAC処理部14自体も、CPU201からのデータ(IPパケット等)送信要求に応じてそのデータを送信するためのイーサネットフレームを生成したり、自ノード宛のイーサネットフレームから必要なデータを取り出してCPU201に渡したりする処理を行う。
That is, the control unit 40 performs processing corresponding to the physical layer (PHY) of Ethernet, and the “upper layer” in this section refers to the MAC processing unit 14 that performs processing of the MAC layer. The CPU 201 on the main body side is a higher layer.
Accordingly, the MAC processing unit 14 itself generates an Ethernet frame for transmitting the data (IP packet or the like) transmission request from the CPU 201 or extracts necessary data from the Ethernet frame addressed to the own node. Processing that is passed to the CPU 201 is performed.

ここで、以上のようなイーサネットフレームの送受信を行うために制御部40のCPUが実行する処理について説明する。
まず、図30に、制御部40のCPUが上位層から送信すべきイーサネットフレームを受け取った場合に実行する処理のフローチャートを示す。
制御部40のCPUは、上位層である本体側のCPU201から送信すべきイーサネットフレームを受け取ると、図30に示す処理を開始する。そしてまず、受け取ったイーサネットフレームのデータをTLデータ送信バッファ17に書き込む(S191)。
Here, a process executed by the CPU of the control unit 40 in order to transmit / receive the Ethernet frame as described above will be described.
First, FIG. 30 shows a flowchart of processing executed when the CPU of the control unit 40 receives an Ethernet frame to be transmitted from an upper layer.
When the CPU of the control unit 40 receives the Ethernet frame to be transmitted from the CPU 201 on the main body side which is the upper layer, the CPU 40 starts the processing shown in FIG. First, the data of the received Ethernet frame is written in the TL data transmission buffer 17 (S191).

その後、書き込んだバッファに最大フレームサイズ分の空き領域が残っていない場合には(S192)、これ以上イーサネットフレームを受け取ってしまうと適切に処理できないため、上位層に転送中断を指示して(S193)処理を終了する。空き領域があった場合には、そのまま処理を終了する。
以上の処理により、制御部40のCPUは、上位層から受け取ったイーサネットフレームを、送信待機状態にすることができる。なお、上位層に指示した転送中断は、TLデータ送信バッファ17の容量が十分確保できた時点で、適宜解除する。
After that, if there is no free space for the maximum frame size remaining in the written buffer (S192), if an Ethernet frame is received any more, it cannot be processed properly, and the upper layer is instructed to interrupt the transfer (S193). ) End the process. If there is an empty area, the process is terminated as it is.
With the above processing, the CPU of the control unit 40 can put the Ethernet frame received from the upper layer into a transmission standby state. Note that the transfer interruption instructed to the upper layer is canceled as appropriate when the capacity of the TL data transmission buffer 17 is sufficiently secured.

次に、図31に、制御部40のCPUがTLフレームのイーサネットフレーム領域のデータを読み込んだ場合に実行する処理のフローチャートを示す。なお、ここではこの処理を制御部40のCPUが実行するとして説明するが、TLフレーム受信部11やTLフレーム送信部18のハードウェアに一部を分担させてもよい。
制御部40のCPUは、図27のステップS136又は図28のステップS164の処理においてTLフレーム100のイーサネットフレーム領域106のデータを読み出した場合、図31に示す処理を開始する。
Next, FIG. 31 shows a flowchart of processing executed when the CPU of the control unit 40 reads data in the Ethernet frame area of the TL frame. Here, although this processing is described as being executed by the CPU of the control unit 40, a part of the hardware of the TL frame reception unit 11 and the TL frame transmission unit 18 may be shared.
When the CPU of the control unit 40 reads data in the Ethernet frame area 106 of the TL frame 100 in the process of step S136 of FIG. 27 or step S164 of FIG. 28, the CPU of the control unit 40 starts the process shown in FIG.

そして、まず読み込んだデータに、送信元IDとして何が記載されているかを判別する(S201)。まずは、フリートークン,自ノードID,その他の区別ができればよい。
このうちフリートークンは、上述のように、TLフレーム100のイーサネットフレーム領域106が現在使用されておらず、イーサネットフレームの送信を希望するノードがイーサネットフレーム領域106にデータを書き込んでもよいことを示すデータである。そして、このフリートークンは、本実施形態では送信元IDの特定の値(例えば「0」)として書き込むようにしている。その他は、通常は他ノードのIDであるが、データの記載されていたTLフレームが破損していた場合には、全く意味のないデータとなっている場合もある。
First, it is determined what is described as the transmission source ID in the read data (S201). First, it is only necessary to distinguish between a free token, its own node ID, and the like.
Among these, the free token is data indicating that the Ethernet frame area 106 of the TL frame 100 is not currently used and a node desiring to transmit the Ethernet frame may write data to the Ethernet frame area 106 as described above. It is. In this embodiment, the free token is written as a specific value (eg, “0”) of the transmission source ID. Others are usually IDs of other nodes, but if the TL frame in which the data is described is damaged, the data may be meaningless at all.

そして、ステップS201でフリートークンであった場合、取り込んだデータはイーサネットフレームのデータではないため、取り込んだデータを廃棄する(S202)。また、自ノードにイーサネットフレームの送信権が渡されたことがわかるため、イーサネットフレームの送信に関するステップS203以下の処理に進む。   If the token is a free token in step S201, the captured data is not Ethernet frame data, and the captured data is discarded (S202). In addition, since it is understood that the transmission right of the Ethernet frame has been given to the own node, the process proceeds to the processing after step S203 regarding the transmission of the Ethernet frame.

この処理においては、TLデータ送信バッファ17に送信すべきデータがあれば(S203)、自ノードを通過中のTLフレーム100のイーサネットフレーム領域106に対して送信すべきデータの書き込みを行う。また、イーサネットフレームの送信は、図2,図3を用いて説明した通り、フレームをブロックに分割して行い、1つのTLフレームに対しては1ブロック分のデータを書き込む。   In this process, if there is data to be transmitted to the TL data transmission buffer 17 (S203), the data to be transmitted is written to the Ethernet frame area 106 of the TL frame 100 passing through the own node. In addition, as described with reference to FIGS. 2 and 3, the transmission of the Ethernet frame is performed by dividing the frame into blocks, and data for one block is written in one TL frame.

より具体的には、イーサネットフレームを送信中(一部のブロックのみ送信した状態)であれば(S204)、送信中のフレームの次のブロックのデータを準備して(S205)、そのブロックのデータをイーサネットフレーム領域106に書き込む(S206)。なお、ブロックの準備とは、イーサネットフレームのデータのうち1ブロック分を切り取り、図3(b)に示したようにブロック数,ブロック番号等のデータを付して、イーサネットフレーム領域106に書き込む形式のデータを作成することを指す。   More specifically, if an Ethernet frame is being transmitted (a state in which only some blocks are transmitted) (S204), data for the next block of the frame being transmitted is prepared (S205), and the data of that block is prepared. Is written in the Ethernet frame area 106 (S206). The block preparation is a format in which one block is cut out from the data of the Ethernet frame, and data such as the number of blocks and the block number is attached and written to the Ethernet frame area 106 as shown in FIG. Refers to the creation of data.

ステップS204で送信中でなければ(新しいイーサネットフレームの送信をこれから開始する状態であれば)、送信するフレームとその送信に要するブロック数を特定し(S207)、送信するフレームの第1ブロックを準備して(S208)、そのブロックのデータをイーサネットフレーム領域106に書き込む(S206)。
いずれの場合も、ステップS206の後、処理を終了する。
If transmission is not in progress at step S204 (if transmission of a new Ethernet frame is about to start), specify the frame to be transmitted and the number of blocks required for transmission (S207), and prepare the first block of the frame to be transmitted Then, the data of the block is written into the Ethernet frame area 106 (S206).
In either case, the process is terminated after step S206.

また、ステップS201で自ノードIDであった場合、取り込んだデータは、伝送経路を1周して戻ってきた、自ノードが前回書き込んで送信したデータであると考えられる。そこで、データのブロック番号や内容を参照し、このことが確認できた場合(S209)、取り込んだデータは他ノードから送信されてきたイーサネットフレームのデータではないため、取り込んだデータを廃棄する(S210)。またここでは、前回イーサネットフレーム領域106に書き込みを行ったノードは、イーサネットフレーム1つ分のデータの送信を完了するまで送信権を維持できるようにしているため、この場合も、イーサネットフレームの送信に関するステップS211以下の処理に進む。   If it is the self node ID in step S201, the captured data is considered to be the data that the self node has written and transmitted last time, which has returned around the transmission path. Therefore, referring to the block number and contents of the data and confirming this (S209), since the captured data is not the data of the Ethernet frame transmitted from another node, the captured data is discarded (S210). ). Further, here, since the node that has written to the Ethernet frame area 106 last time can maintain the transmission right until the transmission of the data for one Ethernet frame is completed, this case also relates to the transmission of the Ethernet frame. It progresses to the process after step S211.

この処理においては、送信中のイーサネットフレームにまだ送信していないブロックがあれば(S211)、送信中のフレームの次のブロックのデータを準備して(S212)、そのブロックのデータを、自ノードを通過中のTLフレーム100のイーサネットフレーム領域106に書き込み(S213)、処理を終了する。
また、全ブロックの送信が完了していれば、フリートークンをそのイーサネットフレーム領域106に書き込んで(S214)、送信権を他の装置に渡すと共に、上位層にフレームの送信完了を通知して(S215)、処理を終了する。
In this process, if there is a block that has not been transmitted yet in the Ethernet frame that is being transmitted (S211), data for the next block of the frame that is being transmitted is prepared (S212), and the data of that block is stored in its own node. Is written in the Ethernet frame area 106 of the TL frame 100 passing through (S213), and the processing is terminated.
If transmission of all blocks is completed, a free token is written in the Ethernet frame area 106 (S214), the transmission right is transferred to another device, and the transmission completion of the frame is notified to the upper layer ( S215), the process is terminated.

また、ステップS209でNOであった場合、イーサネットフレームの送信にエラーが生じたことが考えられる。そこで、エラー処理(S216)を行う。この処理としては、例えば、現在送信中のイーサネットフレームの送信を中止し、エラーの発生を上位層及びシステム内の全ノードに通知することが考えられる。この通知は、TLフレーム100のイーサネットフレーム領域106に、所定フォーマットの無効データを書き込んで送信することにより、行うことができる。
なお、エラーが発生した場合のイーサネットフレームの再送信は、ネットワークI/Fカード215の側で自動的には行わず、必要であれば上位層からネットワークI/Fカード215に要求する。
If NO in step S209, an error may have occurred in the transmission of the Ethernet frame. Therefore, error processing (S216) is performed. As this process, for example, it is conceivable to stop the transmission of the currently transmitted Ethernet frame and notify the upper layer and all nodes in the system of the occurrence of the error. This notification can be performed by writing invalid data of a predetermined format in the Ethernet frame area 106 of the TL frame 100 and transmitting it.
Note that retransmission of an Ethernet frame when an error occurs is not automatically performed on the network I / F card 215 side, and a request is made from the upper layer to the network I / F card 215 if necessary.

また、ステップS201でその他であった場合、処理は図32のステップS217に進む。この場合、取り込んだデータは、他ノードから送信されてきたイーサネットフレームのデータであると考えられるため、イーサネットフレームの受信に関する処理を行う。
そしてまず、取り込んだデータのブロック欠落有無を確認する(S217)。この処理は、送信元毎に、ブロックを番号順に受け取っていることを確認するものである。複数の送信元からのデータを交互に受け取ったとしても送信元毎に見たときに番号順になっていればよい。
If it is other in step S201, the process proceeds to step S217 in FIG. In this case, since the captured data is considered to be data of an Ethernet frame transmitted from another node, processing related to reception of the Ethernet frame is performed.
First, it is confirmed whether there is a missing block in the captured data (S217). This process confirms that the blocks are received in numerical order for each transmission source. Even if data from a plurality of transmission sources are alternately received, it is sufficient that they are in numerical order when viewed from each transmission source.

そして、ブロックの欠落がなければ(S218)、取り込んだブロックのフレームデータをTLデータ受信バッファ13に書き込む(S219)。この時に書き込むのは、読み込んだイーサネットフレーム領域106のデータのうち、連結するとイーサネットフレームになるフレームデータの部分のみでよく、ブロック数やブロック番号等のデータは、欠落確認のために記憶しておけば、TLデータ受信バッファ13に書き込む必要はない。末尾に空き領域がある場合も、その部分のデータは蓄積不要である。なお、複数の送信元からのデータが混在する場合、データは送信元毎に分けて記憶させるものとする。   If there is no missing block (S218), the frame data of the fetched block is written into the TL data reception buffer 13 (S219). At this time, it is only necessary to write only the portion of the read frame data of the Ethernet frame area 106 that becomes the Ethernet frame when concatenated. The data such as the number of blocks and the block number can be stored for confirmation of missing. For example, it is not necessary to write to the TL data reception buffer 13. Even if there is an empty area at the end, it is not necessary to store the data in that part. When data from a plurality of transmission sources coexist, the data is stored separately for each transmission source.

そして、ステップS219の書き込みにより、TLデータ受信バッファ13に1つのイーサネットフレームについて全ブロックのデータが揃った場合には(S220)、蓄積した各ブロックのデータを連結して得られるイーサネットフレームのデータを上位層に出力し(S221)、処理を終了する(図31参照)。揃っていない場合には、そのまま処理を終了する。   If the data of all the blocks for one Ethernet frame is prepared in the TL data reception buffer 13 by writing in step S219 (S220), the data of the Ethernet frame obtained by concatenating the accumulated data of each block is stored. The data is output to the upper layer (S221), and the process is terminated (see FIG. 31). If not, the process ends.

また、ステップS218で欠落があった場合には、データの送信に不具合があったとみなし、それまでにTLデータ受信バッファに蓄積したデータをクリアする(S222)。このとき、データの送信元が特定できるのであれば、その送信元からのデータのみクリアするようにしてもよい。また、取り込んだデータが、図31のステップS216で書き込まれた無効データであったり、取り込んだデータにつき、ノードIDがシステム内のノードのものでなかったり、データが全く意味不明なものであったりした場合にも、ステップS218でNOとし、そのデータをクリアする。   If there is a loss in step S218, it is considered that there is a problem in data transmission, and the data accumulated in the TL data reception buffer is cleared (S222). At this time, if the data transmission source can be specified, only the data from the transmission source may be cleared. Further, the fetched data is invalid data written in step S216 in FIG. 31, the node ID of the fetched data is not that of a node in the system, or the data is completely unknown. In this case, NO is determined in step S218, and the data is cleared.

また、ステップS222の後、スレーブノードはそのまま処理を終了するが、マスタノードにおいては、エラー処理を行い(S223)、通信の状況を確認する。この処理は、例えば、テストデータをイーサネットフレーム領域106に書き込んで送信し、これが正常に戻ってくることを確認するものである。そして、正常に戻ってきた場合には、エラーは一時的なものであったと認識し、イーサネットフレーム領域106にフリートークンを書き込んで、再度イーサネットフレーム領域106の利用が可能な状態にする。   Further, after step S222, the slave node ends the process as it is, but the master node performs error processing (S223) and confirms the communication status. In this process, for example, test data is written in the Ethernet frame area 106 and transmitted, and it is confirmed that the test data returns to normal. When it returns to normal, it is recognized that the error is temporary, a free token is written in the Ethernet frame area 106, and the Ethernet frame area 106 can be used again.

オーディオネットワークシステム1においては、各装置が以上の処理を実行することにより、イーサネットフレームの送信権を各装置間で適切に調停し、TLフレーム100のイーサネットフレーム領域106を用いたノード間のイーサネットフレーム送受信を行うことができる。   In the audio network system 1, each device executes the above processing to appropriately arbitrate the transmission right of the Ethernet frame between the devices, and the Ethernet frame between the nodes using the Ethernet frame area 106 of the TL frame 100. Can send and receive.

なお、図21,22を用いて説明した接続の切断等の理由により、イーサネットフレーム領域106にデータを書き込んだノードがシステムから除外されてしまうことも考えられる。そしてこの場合、図31のステップS201で、システム内に送信元IDが自ノードIDであると判断するノードがいないため、どのノードもイーサネットフレーム領域106の書き換えをしない状態になってしまう。   It is also conceivable that a node that has written data in the Ethernet frame area 106 is excluded from the system due to the disconnection or the like described with reference to FIGS. In this case, since there is no node in the system that determines that the transmission source ID is its own node ID in step S201 in FIG. 31, no node will rewrite the Ethernet frame area 106.

このような事態に対処するため、例えばマスタノードが、送信元IDをトポロジーテーブルの内容と照合し、送信元IDがシステム内のノードのMACアドレスでない場合、イーサネットフレーム領域106のデータを廃棄してフリートークンを書き込んでしまうようにしてもよい。このようにすれば、イーサネットフレーム領域106にデータを書き込んだノードがシステムから除外された場合に、速やかにイーサネットフレーム領域106を解放することができる。
ステップS223のエラー処理によってもイーサネットフレーム領域106の解放は可能であるが、この場合、同じデータを2度読み出したことを確認した上でテストデータの送受信確認を行うため、トポロジーテーブルを確認する場合に比べ、開放に時間がかかる。
In order to deal with such a situation, for example, the master node checks the source ID against the contents of the topology table, and discards the data in the Ethernet frame area 106 when the source ID is not the MAC address of the node in the system. A free token may be written. In this way, when the node that has written data in the Ethernet frame area 106 is excluded from the system, the Ethernet frame area 106 can be quickly released.
Although the Ethernet frame area 106 can be released also by the error processing in step S223, in this case, the confirmation of the topology table is performed in order to confirm transmission / reception of test data after confirming that the same data has been read twice. It takes time to open compared to.

また、図31の例では、各ノードは、一旦データの送信を開始すると、1フレーム分のデータの送信が完了するまで送信権を維持できるようにしていた。しかし、他の調停アルゴリズムを採用することも考えられる。例えば、1ブロック送信する毎にフリートークンを書き込んで次のノードに送信権を委譲したり、逆に、複数フレームであっても必要なデータを全て送信するまで送信権を維持できる等である。もちろん、その他にも種々のアルゴリズムが考えられる。   Further, in the example of FIG. 31, once each node starts transmitting data, it can maintain the transmission right until transmission of data for one frame is completed. However, other mediation algorithms may be employed. For example, every time one block is transmitted, a free token is written and the transmission right is transferred to the next node, or conversely, the transmission right can be maintained until all necessary data is transmitted even in a plurality of frames. Of course, various other algorithms are conceivable.

また、イーサネットフレーム領域を複数に分割し、領域毎に独立にフリートークンを用意して送信権を調停できるようにしてもよい。この場合、図31のステップS215における送信完了の通知は、全ての領域についてデータの送信完了が確認できた場合に行う。
また、受信してTLデータ受信バッファ13に書き込んだデータについて、所定時間内に全ブロックのデータが揃わなかった場合、通信エラーとみなして、それまでに受信したデータをクリアするようにしてもよい。
Further, the Ethernet frame area may be divided into a plurality, and a free token may be prepared for each area so that the transmission right can be arbitrated. In this case, the notification of the completion of transmission in step S215 in FIG. 31 is performed when data transmission completion has been confirmed for all areas.
Further, regarding the data received and written to the TL data reception buffer 13, if data of all blocks is not prepared within a predetermined time, it may be regarded as a communication error and the data received so far may be cleared. .

4.変形例
以上で実施形態の説明を終了するが、装置の構成、データの構成、具体的な処理内容等が上述の実施形態で説明したものに限られないことはもちろんである。
例えば、1サンプリング周期に1つのTLフレームを循環させることは必須ではなく、1サンプリング周期に複数のTLフレームを循環させたり、複数サンプリング周期につき1つのTLフレームを循環させ、そこに複数サンプリング周期分の波形データを記載することも考えられる。
4). Modification The description of the embodiment is finished as described above, but it goes without saying that the configuration of the apparatus, the configuration of data, the specific processing content, and the like are not limited to those described in the above embodiment.
For example, it is not essential to circulate one TL frame in one sampling period. A plurality of TL frames are circulated in one sampling period, or one TL frame is circulated in a plurality of sampling periods. It is also possible to describe the waveform data.

また、1サンプリング周期に複数のTLフレームを循環させる場合において、フリートークンを用いたイーサネットフレーム領域への書き込み/読み出し制御は、サンプリング周期内の各TLフレームについて独立に行うようにするとよい。この場合、例えば、あるサンプリング周期の1番目のTLフレームと、2番目のTLフレームには、別々のノードがイーサネットフレーム領域への書き込みを行えることになる。   In the case where a plurality of TL frames are circulated in one sampling period, the writing / reading control to the Ethernet frame area using the free token may be performed independently for each TL frame in the sampling period. In this case, for example, different nodes can write to the Ethernet frame area for the first TL frame and the second TL frame of a certain sampling period.

また、上述の実施形態では、マスタノードとスレーブノードとで機能が異なるように説明を行なったが、どの装置がマスタノードになるかは、実際にオーディオネットワークシステムを形成するまでは、装置自身には認識できない。そこで、各装置は、マスタノードとスレーブの両方として機能できるように構成しておき、TTLモード移行時に自身が臨時マスタになると決定したり、OMコマンドによりRTLモードのマスタになる指定を受けたりしたか否かに応じて適切な機能を有効にするようにするとよい。ただし、マスタノードの機能を設けない装置もシステムに組み入れ可能とし、その装置は自動的には(暫定も含めて)マスタにならず、かつマスタとして指定できないようにしてもよい。このとき、これを理由にマスタが決定できない場合には、ITLモードからTTLモードに移行できないようにすればよい。   In the above-described embodiment, the description has been made so that the functions of the master node and the slave node are different. However, which device becomes the master node depends on the device itself until the audio network system is actually formed. Is not recognized. Therefore, each device is configured so that it can function as both a master node and a slave. When the TTL mode shifts, it is determined that the device itself becomes a temporary master, or an OM command receives a designation to become an RTL mode master. It is advisable to enable an appropriate function depending on whether or not. However, a device that does not have a master node function may be incorporated into the system, and the device may not automatically become a master (including provisional) and cannot be designated as a master. At this time, if the master cannot be determined for this reason, it is only necessary to prevent the transition from the ITL mode to the TTL mode.

また、TLフレームの構成について、波形データと制御データの領域の比率を変更してもよいことは、もちろんである。いずれかの領域のサイズを0にしてもよい。
それ以外にも、上述の実施形態では、周期更新量kを可変値としていたが、固定値であってもよい。その場合、その周期更新量kに対応する上限時間も固定値となり、システムに追加できるノードの数はその上限時間により制限される。
TLフレームを含む各種フレームはIEEE802.3の形式に限らず、他の任意の形式であってよい。
Of course, the ratio of the area of the waveform data to the control data may be changed for the TL frame configuration. The size of any area may be set to zero.
In addition, in the above-described embodiment, the period update amount k is a variable value, but may be a fixed value. In this case, the upper limit time corresponding to the periodic update amount k is also a fixed value, and the number of nodes that can be added to the system is limited by the upper limit time.
The various frames including the TL frame are not limited to the IEEE 802.3 format, but may be any other format.

上述の実施形態では、サンプリング周波数は96kHzであったが、88.2kHz、192kHz等任意の周波数で設計することができる。また、サンプリング周波数を切り換えられるようにしてもよい。
また、これらの変形及び実施形態の説明において述べた変形は、矛盾しない範囲で任意に組み合わせて適用可能である。また逆に、ネットワークシステム及び音響信号処理装置が実施形態の説明において述べた特徴を全て有している必要もない。
In the above-described embodiment, the sampling frequency is 96 kHz, but it can be designed with an arbitrary frequency such as 88.2 kHz, 192 kHz. Further, the sampling frequency may be switched.
These modifications and the modifications described in the description of the embodiments can be applied in any combination within a consistent range. Conversely, the network system and the acoustic signal processing device need not have all the features described in the description of the embodiment.

以上の説明から明らかなように、この発明のネットワークシステム及び通信装置によれば、マスタノードが生成する、複数の音響信号の記憶領域を備えた音声伝送フレームを各装置間に形成されるループ状の伝送経路に沿って一定周期で循環させるネットワークシステムを構成する際に、何らかの理由でマスタノードから切り離されてしまった装置群があった場合でも、その装置群の間で、ループ状の伝送経路に沿って一定周期で循環させるフレームを用いたデータ伝送を行えるようにすることができる。
従って、この発明を適用することにより、ネットワークシステムの利便性を向上させることができる。
As is clear from the above description, according to the network system and the communication device of the present invention, a loop-like transmission frame formed between the devices, which is generated by the master node and has a plurality of acoustic signal storage areas, is formed. When configuring a network system that circulates along a certain transmission path at a fixed period, even if there is a device group that has been disconnected from the master node for some reason, a loop-shaped transmission path between the device groups Thus, it is possible to perform data transmission using a frame that circulates at a constant cycle along the line.
Therefore, the convenience of the network system can be improved by applying the present invention.

この発明のネットワークシステムの実施形態であるオーディオネットワークシステムの概略を示す図である。1 is a diagram showing an outline of an audio network system which is an embodiment of a network system of the present invention. 図1に示した伝送経路で伝送されるTLフレームの構成例を示す図である。It is a figure which shows the structural example of the TL frame transmitted with the transmission path shown in FIG. 図2に示したTLフレーム中の波形データ領域、イーサネットフレーム領域及びITLフレーム領域のより詳細な構成を示す図である。FIG. 3 is a diagram showing a more detailed configuration of a waveform data area, an Ethernet frame area, and an ITL frame area in the TL frame shown in FIG. 2. ITLフレームのデータ構成を示す図である。It is a figure which shows the data structure of an ITL frame. 図2に示したTLフレームの伝送タイミングを示す図であるIt is a figure which shows the transmission timing of TL frame shown in FIG.

オーディオネットワークシステム上でのシングルモードの音響信号の伝送時における、図2に示したTLフレームの伝送状況を示す図である。It is a figure which shows the transmission condition of the TL frame shown in FIG. 2 at the time of transmission of the acoustic signal of the single mode on an audio network system. 図1に示したオーディオネットワークシステムを構成する各ノードとなる音響信号処理装置のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the acoustic signal processing apparatus used as each node which comprises the audio network system shown in FIG. 図7に示したネットワークI/Fカードの構成をより詳細に示す図である。It is a figure which shows the structure of the network I / F card shown in FIG. 7 in detail. ネットワークI/Fカードの制御部のCPUが電源ON時及びリセット時に実行する、システムの構築に関する処理のフローチャートである。It is a flowchart of the process regarding the construction | assembly of a system which CPU of the control part of a network I / F card performs at the time of power ON and reset. 図9に示した物理接続確認処理のフローチャートである。10 is a flowchart of physical connection confirmation processing shown in FIG. 9.

トポロジーテーブルの例を示す図である。It is a figure which shows the example of a topology table. 図9に示した論理接続準備処理のフローチャートである。10 is a flowchart of logical connection preparation processing shown in FIG. 9. リセット処理を受信した場合の処理のフローチャートである。It is a flowchart of a process at the time of receiving a reset process. 図9に示した論理接続確立処理のフローチャートである。10 is a flowchart of logical connection establishment processing shown in FIG. 9. 動作モード切替(OM)コマンドを受信した場合の処理のフローチャートである。It is a flowchart of a process when an operation mode switching (OM) command is received.

オーディオネットワークシステムの形成手順の具体例を示す図である。It is a figure which shows the specific example of the formation procedure of an audio network system. 図16の続きを示す図である。It is a figure which shows the continuation of FIG. オーディオネットワークシステムの形成手順の別の例を示す図である。It is a figure which shows another example of the formation procedure of an audio network system. その更に別の例を示す図である。It is a figure which shows another example. その更に別の例を示す図である。It is a figure which shows another example.

接続切断時のシステム構成変更手順の例を示す図である。It is a figure which shows the example of the system configuration change procedure at the time of a connection disconnection. その別の例を示す図である。It is a figure which shows the other example. マスタノードにおいてTLフレームを記憶させるバッファの構成を示す図である。It is a figure which shows the structure of the buffer which memorize | stores TL frame in a master node. マスタノードにおけるTLフレームの送受信及び生成のタイミング例を示す図である。It is a figure which shows the example of transmission / reception of a TL frame in a master node, and the generation timing. その別の例を示す図である。It is a figure which shows the other example.

マスタノードがS番目のTLフレームの受信開始を検出した場合に実行する処理のフローチャートである。It is a flowchart of the process performed when a master node detects the reception start of a Sth TL frame. マスタノードがS番目のTLフレームの受信完了を検出した場合に実行する処理のフローチャートである。It is a flowchart of the process performed when a master node detects the completion of reception of the Sth TL frame. スレーブノードがS番目のTLフレームの受信開始を検出した場合に実行する処理のフローチャートである。It is a flowchart of the process performed when a slave node detects the reception start of a Sth TL frame. スレーブノードがS番目のTLフレームの受信完了を検出した場合に実行する処理のフローチャートである。It is a flowchart of the process performed when a slave node detects the completion of reception of the Sth TL frame. ネットワークI/Fカードの制御部のCPUが上位層から送信すべきイーサネットフレームを受け取った場合に実行する処理のフローチャートである。It is a flowchart of the process performed when CPU of the control part of a network I / F card receives the Ethernet frame which should be transmitted from an upper layer. 同じくTLフレームのイーサネットフレーム領域のデータを読み込んだ場合に実行する処理のフローチャートである。Similarly, it is a flowchart of processing executed when data in an Ethernet frame area of a TL frame is read. その続きのフローチャートである。It is the flowchart of the continuation.

符号の説明Explanation of symbols

1…オーディオネットワークシステム、2…音響信号処理装置、10…第1のデータ入出力部、11,21…TLフレーム受信部、14,24…MAC処理部、15,25…ディレイバッファ、18,28…TLフレーム送信部、31,33…第1,第2の受信I/F、32,34…第2,第1の送信I/F、35〜38…セレクタ、40…制御部、41…ワードクロック生成部、51,61…ITLフレーム受信部、54,64…ITLフレーム送信部、70…上位層I/F、100…TLフレーム、110、120…ITLフレーム、215…ネットワークI/Fカード、220…フレーム処理部、NC1〜NC4…ネットワーククロック、LB1,LB2…折り返しライン DESCRIPTION OF SYMBOLS 1 ... Audio network system, 2 ... Acoustic signal processing apparatus, 10 ... 1st data input / output part, 11, 21 ... TL frame receiving part, 14, 24 ... MAC processing part, 15, 25 ... Delay buffer, 18, 28 ... TL frame transmission unit, 31, 33 ... first and second reception I / F, 32, 34 ... second and first transmission I / F, 35-38 ... selector, 40 ... control unit, 41 ... word Clock generation unit, 51, 61 ... ITL frame reception unit, 54, 64 ... ITL frame transmission unit, 70 ... Upper layer I / F, 100 ... TL frame, 110, 120 ... ITL frame, 215 ... Network I / F card, 220 ... Frame processing unit, NC1 to NC4 ... Network clock, LB1, LB2 ... Return line

Claims (12)

それぞれ単方向の通信を行う受信手段及び送信手段を2組備えた複数のノードを、あるノードの1組の受信手段及び送信手段を次のノードの1組の送信手段及び受信手段とそれぞれ接続することにより順次接続して形成したネットワークシステムであって、
前記各ノードが、
前記複数のノードのうち1つ臨時のマスタノードと定められており、その臨時のマスタノードが生成する、コマンド伝送のための初期通信フレームの記憶領域を備えた伝送フレームノード間に形成されるループ状の伝送経路に沿って一定周期で循環、各ノードで該伝送フレームへ前記初期通信フレームの書き込み及び/又は読み出しを行うことにより、接続された一連のノード間で初期通信フレームの伝送を行う臨時通信モード、及び
前記複数のノードのうち1つマスタノードと定められており、そのマスタノードが生成する、複数の音響信号の記憶領域を備えた音声伝送フレームノード間に形成されるループ状の伝送経路に沿って一定周期で循環、各ノードで該音声伝送フレームへ音響信号の書き込み及び/又は読み出しを行うことにより、接続された一連のノード間で音響信号の伝送を行う音声伝送モード
による通信を選択的に実行する通信制御手段を有し、
当該ネットワークシステムにおいてマスタノードが設定された場合に、該マスタノードによる制御の下で、前記各ノード前記音声伝送モードの動作を開始
当該ネットワークシステムのいずれかの箇所においてノード間の接続の切断が生じた場合に、その切断によって生じた2つのノード群のうち、前記マスタノードが存在する側のノード群の各ノードは、前記音声伝送モードの動作を維持して該各ノードにより形成されるループ状の伝送経路にそって前記音声伝送フレームの循環を継続し、前記マスタノードが存在しない側のノード群の各ノードは、自動的に前記臨時通信モードの動作に移行することを特徴とするネットワークシステム。
A plurality of nodes each having two sets of receiving means and transmitting means for performing unidirectional communication are respectively connected to one set of receiving means and transmitting means of a certain node with one set of transmitting means and receiving means of the next node. A network system formed by sequentially connecting,
Each of the nodes
Formed between the one of the plurality of nodes but are determined in the temporary master node, the temporary master node generates, transmits frames each node having a storage area of the initial communication frame for command transmission The initial communication frame is circulated at a constant cycle along the looped transmission path, and the initial communication frame is written to and / or read from the transmission frame at each node. Temporary communication mode for transmission, and
One of said plurality of nodes but has been defined as the master node, the master node generates, looped transmission path audio transport frame having a storage area of a plurality of acoustic signals is formed between the nodes Circulates at a fixed period along the line, and by writing and / or reading out the sound signal to and from the sound transmission frame at each node, communication in the sound transmission mode for transmitting the sound signal between a series of connected nodes is performed. Having communication control means for selectively executing;
If the master node is set in the network system, under the control of the master node, wherein each node starts the operation of the audio transmission mode,
When the connection between the nodes is cut off at any part of the network system, each of the nodes in the node group on the side where the master node is present is selected from the two node groups generated by the disconnection. The operation of the transmission mode is maintained and the voice transmission frame is continuously circulated along a loop-shaped transmission path formed by the nodes, and each node of the node group on the side where the master node does not exist is automatically The network system is characterized in that the operation is shifted to the temporary communication mode.
請求項1記載のネットワークシステムであって、
前記各ノードの通信制御手段が、前記送信手段から該送信手段と接続されている隣接ノードに対して前記初期通信フレームを送信する初期通信モードの動作も可能な手段であり、かつ、ノードの起動時又はリセット時には該初期通信モードで動作する手段であり、
当該ネットワークシステムにおいて、
前記音声伝送モード又は前記臨時通信モードにおいて形成されるループ状の伝送経路の端部に位置するノードは、前記初期通信モードで動作中のノードが自ノードに直接接続されていることを検出した場合にその初期通信モードで動作中のノードにアクセスしてそのノードを自ノードが属するループ状の伝送経路に組み入れ、前記臨時通信モードで動作中のノードが自ノードに直接接続されていることを検出した場合にその臨時通信モードで動作中のノードにリセット命令を送信してリセットを行わせ、そのノードの動作を前記初期通信モードに戻した上でそのノードにアクセスしてそのノードを自ノードが属するループ状の伝送経路に組み入れる動作を行うことを特徴とするネットワークシステム。
The network system according to claim 1, wherein
The communication control unit of each node is a unit capable of operating in an initial communication mode in which the initial communication frame is transmitted from the transmission unit to an adjacent node connected to the transmission unit, and the activation of the node Means for operating in the initial communication mode at the time of resetting or resetting,
In the network system,
When a node located at an end of a loop transmission path formed in the voice transmission mode or the temporary communication mode detects that a node operating in the initial communication mode is directly connected to its own node The node operating in the initial communication mode is accessed, and the node is incorporated into the loop transmission path to which the own node belongs, and it is detected that the node operating in the temporary communication mode is directly connected to the own node. In this case, a reset command is sent to the node operating in the temporary communication mode to reset it, the node operation is returned to the initial communication mode, the node is accessed, and the node A network system characterized by performing an operation of being incorporated into a loop-shaped transmission path to which the device belongs.
請求項2に記載のネットワークシステムであって、
前記各ノード、前記リセット命令を受信した場合に、前記ループ状の伝送経路の形成に関する自機の機能をリセットして前記ループ状の伝送経路から離脱すると共に、該リセット命令を受信した側と反対側の隣接ノードに対してリセット命令を送信するリセット伝達手段を備えることを特徴とするネットワークシステム。
The network system according to claim 2,
When each of the nodes receives the reset command, the node resets the function of the own device relating to the formation of the loop-shaped transmission path, leaves the loop-shaped transmission path, and receives the reset command. A network system comprising a reset transmission means for transmitting a reset command to an adjacent node on the opposite side.
請求項2又は3に記載のネットワークシステムであって、
当該ネットワークシステムにおいて、
前記初期通信モードで動作中のノードが、同じく初期通信モードで動作中のノードが自ノードに直接接続されていることを検出した場合に、その検出したノードとネゴシエーションして、自ノードとその検出したノードのいずれかを前記臨時のマスタノードに設定し、自ノードとその検出したノードとを前記臨時通信モードに移行させて、自ノードとその検出したノードとで前記ループ状の伝送経路を形成することを特徴とするネットワークシステム。
The network system according to claim 2 or 3,
In the network system,
When a node operating in the initial communication mode detects that a node operating in the initial communication mode is directly connected to the own node, the node is negotiated with the detected node and detected. One of the registered nodes is set as the temporary master node, the local node and the detected node are shifted to the temporary communication mode, and the loop-shaped transmission path is formed between the local node and the detected node. A network system characterized by
請求項2乃至4のいずれか一項に記載のネットワークシステムであって、
前記音声伝送モード又は前記臨時通信モードにおいて形成されるループ状の伝送経路の端部に位置するノードは、自ノードと異なるループ状の伝送経路を形成し、かつ前記音声伝送モードで動作中のノードが自ノードに直接接続されていることを検出した場合、該検出したノードを自ノードが属するループ状の伝送経路に組み入れる動作を行わないことを特徴とするネットワークシステム。
The network system according to any one of claims 2 to 4, wherein
A node located at an end of a loop-shaped transmission path formed in the voice transmission mode or the temporary communication mode forms a loop-shaped transmission path different from its own node and is operating in the voice transmission mode A network system characterized in that when it is detected that the node is directly connected to the own node, the operation of incorporating the detected node into the loop transmission path to which the own node belongs is not performed.
それぞれ単方向の通信を行う受信手段及び送信手段を2組備えた複数のノードを、あるノードの1組の受信手段及び送信手段を次のノードの1組の送信手段及び受信手段とそれぞれ接続することにより順次接続して形成したネットワークシステムであって、A plurality of nodes each having two sets of receiving means and transmitting means for performing unidirectional communication are respectively connected to one set of receiving means and transmitting means of a certain node with one set of transmitting means and receiving means of the next node. A network system formed by sequentially connecting,
当該ネットワークシステムは、The network system
前記複数のノードがそれぞれ、自身の前記受信手段及び前記送信手段と接続されている隣接するノードとの間で双方向に通信する初期通信モードと、An initial communication mode in which each of the plurality of nodes communicates bidirectionally with an adjacent node connected to the receiving unit and the transmitting unit;
前記複数のノードのうち1つが臨時のマスタノードと定められており、その臨時のマスタノードが生成する、コマンド伝送のための初期通信フレームの記憶領域を備えた伝送フレームが各ノード間に形成されるループ状の伝送経路に沿って一定周期で循環し、各ノードで該伝送フレームへ前記初期通信フレームの書き込み及び/又は読み出しを行うことにより、接続された一連のノード間で初期通信フレームの伝送を行う臨時通信モードと、One of the plurality of nodes is defined as a temporary master node, and a transmission frame having an initial communication frame storage area for command transmission generated by the temporary master node is formed between the nodes. The initial communication frame is transmitted between a series of connected nodes by circulating at regular intervals along the looped transmission path and writing and / or reading the initial communication frame to and from the transmission frame at each node. A temporary communication mode, and
前記複数のノードのうち1つがマスタノードと定められており、そのマスタノードが生成する、複数の音響信号の記憶領域を備えた音声伝送フレームが各ノード間に形成されるループ状の伝送経路に沿って一定周期で循環し、各ノードで該音声伝送フレームへ音響信号の書き込み及び/又は読み出しを行うことにより、接続された一連のノード間で音響信号の伝送を行う音声伝送モードとOne of the plurality of nodes is defined as a master node, and an audio transmission frame having a plurality of acoustic signal storage areas generated by the master node is formed in a loop-shaped transmission path between the nodes. A sound transmission mode in which sound signals are transmitted between a series of connected nodes by performing sound signal writing and / or reading to / from the sound transmission frame at each node.
のうち何れか1のモードによる通信を選択的に実行し、Selectively execute communication in any one of the modes,
当該ネットワークシステムの端部に位置するノードに新たなノードが接続されたことを検出し、Detect that a new node is connected to a node located at the end of the network system,
該検出に応じて前記新たなノードを含む1乃至複数のノードで形成された他のネットワークシステムが前記初期通信モード、前記臨時通信モード及び前記音声伝送モードのいずれのモードで動作しているかを識別し、In response to the detection, it is identified whether another network system formed of one or more nodes including the new node is operating in the initial communication mode, the temporary communication mode, or the voice transmission mode. And
前記他のネットワークシステムのモードが当該ネットワークシステムのモードより優先順位の低いモードである場合は、前記他のネットワークシステムを当該ネットワークシステムに組み込み、前記他のネットワークシステムのモードが当該ネットワークシステムのモードより優先順位の高いモードである場合は、当該ネットワークシステムが前記他のネットワークシステムに組み込まれるよう制御するWhen the mode of the other network system is a mode having a lower priority than the mode of the network system, the other network system is incorporated in the network system, and the mode of the other network system is higher than the mode of the network system. If the mode is a high priority mode, control is performed so that the network system is incorporated into the other network system.
ことを特徴とするネットワークシステム。A network system characterized by this.
請求項6に記載のネットワークシステムであって、The network system according to claim 6, wherein
前記初期通信モード、前記臨時通信モード、および前記音声モードのうち、前記初期通信モードが優先順位の最も低いモードであるとともに前記音声伝送モードが優先順位の最も高いモードであり、Among the initial communication mode, the extraordinary communication mode, and the voice mode, the initial communication mode is the mode with the lowest priority and the voice transmission mode is the mode with the highest priority,
前記組み込まれたネットワークシステムは、組み込まれた先のネットワークシステムが実行するモードにて通信を実行することを特徴とするネットワークシステム。The built-in network system performs communication in a mode executed by a built-in network system.
請求項7に記載のネットワークシステムであって、The network system according to claim 7,
前記初期通信モードは当該ネットワークシステムを構成するノードの数が1の場合に実行されるモードであり、The initial communication mode is a mode executed when the number of nodes constituting the network system is 1.
当該ネットワークシステムと前記他のネットワークシステムとが共に初期通信モードで動作している場合は、両ネットワークシステムを形成するノードのうち1つを臨時のマスタノードとして決定し、前記臨時通信モードによる通信を開始することを特徴とするネットワークシステム。When both the network system and the other network system are operating in the initial communication mode, one of the nodes forming both network systems is determined as a temporary master node, and communication in the temporary communication mode is performed. A network system characterized by starting.
請求項6乃至8のいずれか一項に記載のネットワークシステムであって、A network system according to any one of claims 6 to 8,
前記ノードの少なくとも1つが、At least one of said nodes is
ユーザの操作に応じて、当該ネットワークを構成するノードから、前記音声伝送モードにおいて前記マスタノードとして機能する1のノードを決定するマスタノード決定手段を備えることを特徴とするネットワークシステム。A network system comprising master node determination means for determining one node functioning as the master node in the voice transmission mode from a node constituting the network in accordance with a user operation.
複数のノードを接続して形成したネットワークシステムにおける前記ノードとして機能する通信装置であって、A communication device functioning as the node in a network system formed by connecting a plurality of nodes,
前記ネットワークシステムの伝送経路に沿って隣接する一のノードから受信する、複数の音響信号の記憶領域を備えた音声伝送フレームへ音響信号の書き込み及び/又は読み出しを行い、該音声伝送フレームを前記ネットワークシステムの伝送経路に沿って隣接する他のノードへ送出する音声伝送モードにて、前記隣接するノード間での通信を行う通信手段と、The audio signal is written to and / or read from an audio transmission frame having a plurality of acoustic signal storage areas, which is received from one adjacent node along the transmission path of the network system, and the audio transmission frame is read from the network. A communication means for performing communication between the adjacent nodes in a voice transmission mode for sending to other nodes adjacent along the transmission path of the system;
前記ネットワークシステム上において、前記音声伝送フレームの制御を行うマスタノードが不在であることを検出し、該検出に応じて、前記音声伝送フレームに代えて、コマンド伝送のための記憶領域を備えた伝送フレームの送受信及び該伝送フレームに対するコマンド又はレスポンスを示すデータの書き込み及び/又は読み出しを行う臨時通信モードへ、前記通信手段の動作を自動的に移行させる通信制御手段とを備えたことを特徴とする通信装置。On the network system, it is detected that there is no master node for controlling the voice transmission frame, and in response to the detection, transmission having a storage area for command transmission instead of the voice transmission frame. Communication control means for automatically shifting the operation of the communication means to a temporary communication mode in which data is transmitted / received and data indicating a command or response to the transmission frame is written and / or read. Communication device.
請求項10に記載の通信装置であって、The communication device according to claim 10,
前記通信制御手段は、The communication control means includes
当該通信装置が前記臨時通信モードにおける臨時のマスタノードとして動作すべきか否かを判定し、臨時のマスタノードとして動作すべきであると判定した場合に、周期的に前記伝送フレームを生成し、該生成した伝送フレームを前記隣接する他のノードへ送出することを特徴とする通信装置。When the communication device determines whether or not to operate as a temporary master node in the temporary communication mode, and determines that the communication device should operate as a temporary master node, periodically generate the transmission frame, A communication apparatus, wherein the generated transmission frame is sent to the other adjacent node.
請求項10又は11に記載の通信装置であって、The communication device according to claim 10 or 11,
前記通信制御手段は、The communication control means includes
前記音声伝送フレームの制御を行うマスタノードが前記ネットワークシステムに設定されたことに応じて、前記臨時通信モードから前記音声伝送モードに前記通信手段の動作を移行させることを特徴とする通信装置。A communication apparatus that shifts the operation of the communication means from the temporary communication mode to the voice transmission mode in response to a master node that controls the voice transmission frame being set in the network system.
JP2007260430A 2000-10-03 2007-10-03 Network system and communication device Expired - Fee Related JP5088078B2 (en)

Priority Applications (13)

Application Number Priority Date Filing Date Title
JP2007260430A JP5088078B2 (en) 2007-10-03 2007-10-03 Network system and communication device
AT09170804T ATE504134T1 (en) 2007-10-03 2008-10-02 AUDIO SIGNAL PROCESSOR AND NETWORK SYSTEM
DE602008002193T DE602008002193D1 (en) 2007-10-03 2008-10-02 Audio signal processor and network system
EP09170804A EP2129039B1 (en) 2007-10-03 2008-10-02 Audio signal processor and network system
AT09170809T ATE503316T1 (en) 2007-10-03 2008-10-02 AUDIO SIGNAL PROCESSOR AND NETWORK SYSTEM
DE602008005864T DE602008005864D1 (en) 2007-10-03 2008-10-02 Audio signal processor and network system
EP08165731A EP2045962B1 (en) 2007-10-03 2008-10-02 Audio signal processor and network system
DE602008005722T DE602008005722D1 (en) 2007-10-03 2008-10-02 Audio signal processor and network system
EP09170809A EP2129040B1 (en) 2007-10-03 2008-10-02 Audio signal processor and network system
US12/244,765 US7987224B2 (en) 2007-10-03 2008-10-02 Audio signal processor and network system
AT08165731T ATE478494T1 (en) 2007-10-03 2008-10-02 AUDIO SIGNAL PROCESSOR AND NETWORK SYSTEM
US12/855,277 US8560725B2 (en) 2000-10-03 2010-08-12 Audio signal processor and network system
US12/855,215 US8401684B2 (en) 2007-10-03 2010-08-12 Audio signal processor and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007260430A JP5088078B2 (en) 2007-10-03 2007-10-03 Network system and communication device

Publications (2)

Publication Number Publication Date
JP2009094588A JP2009094588A (en) 2009-04-30
JP5088078B2 true JP5088078B2 (en) 2012-12-05

Family

ID=40666153

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007260430A Expired - Fee Related JP5088078B2 (en) 2000-10-03 2007-10-03 Network system and communication device

Country Status (1)

Country Link
JP (1) JP5088078B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5077153B2 (en) * 2008-09-03 2012-11-21 富士電機株式会社 Ring network system and ring network system recovery method
KR20110017518A (en) * 2009-08-14 2011-02-22 한국전자통신연구원 Message system for reliable bulk data transfer based on user datagram protocol
JP2011044896A (en) * 2009-08-21 2011-03-03 Fuji Electric Systems Co Ltd Network system
JP5458961B2 (en) * 2010-03-03 2014-04-02 ヤマハ株式会社 Network system management method
JP5966243B2 (en) * 2010-12-20 2016-08-10 富士通株式会社 Storage device and storage device control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3445668B2 (en) * 1994-09-20 2003-09-08 ホロン株式会社 Communications system
JP4899568B2 (en) * 2006-03-24 2012-03-21 ヤマハ株式会社 Network system and acoustic signal processing apparatus
JP4297184B2 (en) * 2006-09-13 2009-07-15 ヤマハ株式会社 Network system

Also Published As

Publication number Publication date
JP2009094588A (en) 2009-04-30

Similar Documents

Publication Publication Date Title
EP2129039B1 (en) Audio signal processor and network system
EP2178250B1 (en) Audio Network System
JP4187028B2 (en) Network system and acoustic signal processing apparatus
JP4899568B2 (en) Network system and acoustic signal processing apparatus
JP5076413B2 (en) Network system and acoustic signal processing apparatus
EP1901483B1 (en) Network system and audio signal processor
JP5088078B2 (en) Network system and communication device
JP4297184B2 (en) Network system
JP5141169B2 (en) Acoustic signal processing apparatus and network system
EP1901489B1 (en) Network system and audio signal processor
JP5267060B2 (en) Acoustic signal processing system
JP4341714B2 (en) Network system and acoustic signal processing apparatus
JP5012382B2 (en) Acoustic signal processing apparatus and network system
JP5304165B2 (en) Network system and acoustic signal processing apparatus
JP2010098475A (en) Network system and audio signal processor
JP5239726B2 (en) Network system and acoustic signal processing apparatus
JP5045728B2 (en) Communication node
JP4900448B2 (en) Network system and acoustic signal processing apparatus
JP5458961B2 (en) Network system management method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100820

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120529

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120730

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: 20120814

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120827

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

Free format text: PAYMENT UNTIL: 20150921

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees