JP2011238982A - Communication device, ring-shaped transmission path system, and transmission direction switching method - Google Patents
Communication device, ring-shaped transmission path system, and transmission direction switching method Download PDFInfo
- Publication number
- JP2011238982A JP2011238982A JP2010105943A JP2010105943A JP2011238982A JP 2011238982 A JP2011238982 A JP 2011238982A JP 2010105943 A JP2010105943 A JP 2010105943A JP 2010105943 A JP2010105943 A JP 2010105943A JP 2011238982 A JP2011238982 A JP 2011238982A
- Authority
- JP
- Japan
- Prior art keywords
- input
- switching
- output
- slave
- ring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
- H04L12/437—Ring fault isolation or reconfiguration
Abstract
Description
本発明は、複数の装置をリング状に接続するネットワークシステムにおける通信装置、リング状伝送路システムおよび伝送方向切替方法に関するものである。 The present invention relates to a communication device, a ring-shaped transmission line system, and a transmission direction switching method in a network system in which a plurality of devices are connected in a ring shape.
複数の装置をリング状に接続するネットワークシステムにおいては、送信元の装置(ホスト装置と呼ぶ)から送信先の装置(スレーブ装置)へデータ伝送を行う際に、経路上にある他の装置を通過させる必要がある。他の装置をデータが通過する際、伝送プロトコルに応じた電力が消費されるため、リング状伝送路システムでは伝送にかかる消費電力が大きくなりやすい課題があった。 In a network system in which multiple devices are connected in a ring shape, when data is transmitted from a source device (called a host device) to a destination device (slave device), it passes through other devices on the path. It is necessary to let When data passes through another device, power corresponding to the transmission protocol is consumed, so that the ring-shaped transmission path system has a problem that power consumption for transmission tends to increase.
これを実現するためにはリング状伝送路の伝送方向を切り替える技術が必要である。
リング状伝送路の伝送方向を切り替える従来技術には特許文献1がある。
In order to realize this, a technique for switching the transmission direction of the ring-shaped transmission path is necessary.
There is
特許文献1では、伝送に関わる制御線を追加し、ホスト装置とスレーブ装置の伝送方向を切り替える方法が述べられている。伝送経路が短くなるよう、伝送方向を切り替えることで消費電力の削減を実現している。
しかしながら、従来技術では、伝送方向の制御に新たな制御線を追加するため、システムとしての実装コストが大きくなる課題があった。また、既存プロトコルの伝送経路を活用してリング状のネットワークシステムを構築する場合には、制御線の追加が許容されないため、従来技術では対応が不可能となる課題もあった。 However, in the prior art, since a new control line is added to control the transmission direction, there is a problem that the mounting cost as a system increases. Further, when a ring-shaped network system is constructed by utilizing a transmission path of an existing protocol, there is a problem that it is impossible to cope with the conventional technology because addition of a control line is not allowed.
本発明は、上記問題点に鑑みてなされたもので、新たな制御線を追加せずに伝送方向の切替を実現し、既存プロトコルの伝送経路を活用する通信装置、リング状伝送路システムおよび伝送方向切替方法を提供することを目的とする。 The present invention has been made in view of the above problems, and realizes switching of a transmission direction without adding a new control line, and a communication device, a ring-shaped transmission line system, and a transmission that utilize a transmission path of an existing protocol. An object is to provide a direction switching method.
本発明の一形態における通信装置は、リング状伝送路に接続される通信装置であって、前記リング状伝送路に接続され入力と出力とを切り替え可能な2つの入出力端子と、前記リング状伝送路の伝送方向の切り替えを他の全ての通信装置に指示する方向切替コマンドを生成するコマンド生成部と、前記2つの入出力端子およびコマンド生成部を制御する制御部とを備える。前記制御部は、前記方向切替コマンドを前記2つの入出力端子のうちの一方である第1の入出力端子から前記リング状伝送路に送信させ、前記リング状伝送路を1周した前記方向切替コマンドが前記2つの入出力端子のうちの他方である第2の入出力端子から受信されたとき、前記2つの入出力端子と前記リング状伝送路との間の伝送方向を前記方向切替コマンドの送信前と比べて反転させるように前記2つの入出力端子の切替を制御する。 A communication device according to an aspect of the present invention is a communication device connected to a ring-shaped transmission path, and is connected to the ring-shaped transmission path and is capable of switching between input and output, and the ring-shaped transmission path. A command generation unit that generates a direction switching command that instructs all other communication devices to switch the transmission direction of the transmission path; and a control unit that controls the two input / output terminals and the command generation unit. The control unit causes the direction switching command to be transmitted from the first input / output terminal, which is one of the two input / output terminals, to the ring-shaped transmission path, and the direction switching is performed once around the ring-shaped transmission path. When a command is received from a second input / output terminal that is the other of the two input / output terminals, the transmission direction between the two input / output terminals and the ring-shaped transmission line is set to the direction switching command. The switching of the two input / output terminals is controlled so as to be inverted compared with that before transmission.
この構成によれば、リング状伝送路の伝送方向の切り替えは方向切替コマンドをリング状伝送路を1周させることによって実現することができる。すなわち、新たな制御線を追加することなしに既存のリング状伝送経路を活用して、伝送方向の切替を容易に実現することができる。 According to this configuration, the switching of the transmission direction of the ring-shaped transmission path can be realized by causing the direction switching command to make one round of the ring-shaped transmission path. That is, it is possible to easily switch the transmission direction by utilizing an existing ring-shaped transmission path without adding a new control line.
ここで、前記通信装置は、さらに、前記通信装置の動作状況に基づいて前記2つの入出力端子の切替が可能か否かを判定する状態判定部を備え、前記制御部は、前記状態判定部が切替可能であると判定したとき前記第1の入出力端子から前記方向切替コマンドを送信させるようにしてもよい。 Here, the communication device further includes a state determination unit that determines whether the two input / output terminals can be switched based on an operation state of the communication device, and the control unit includes the state determination unit. The direction switching command may be transmitted from the first input / output terminal when it is determined that can be switched.
この構成によれば、前記通信装置の動作状況(例えば、処理負荷が軽い状態または待機状態)を判定することにより、伝送方向の切替による通信装置の性能劣化を低減し、ひいては伝送方向の切替によるリング状伝送路の伝送性能の劣化を低減することができる。 According to this configuration, it is possible to reduce the performance degradation of the communication device due to the switching of the transmission direction by determining the operation state of the communication device (for example, the state where the processing load is light or the standby state), and consequently the switching of the transmission direction. Degradation of the transmission performance of the ring-shaped transmission line can be reduced.
ここで、前記通信装置は、さらに、前記通信装置の動作状況に基づいて前記2つの入出力端子の切替が可能か否かを判定する状態判定部を備え、前記制御部は、前記リング状伝送路を1周した前記方向切替コマンドが前記第2の入出力端子から受信され、かつ、前記状態判定部が切替可能であると判定した場合に、前記2つの入出力端子と前記リング状伝送路との間で伝送方向を反転させるように前記2つの入出力端子を制御するようにしてもよい。 Here, the communication device further includes a state determination unit that determines whether the two input / output terminals can be switched based on an operation state of the communication device, and the control unit includes the ring-shaped transmission. The two input / output terminals and the ring-shaped transmission path when the direction switching command that has made a round of the path is received from the second input / output terminal and the state determination unit determines that the switching is possible. The two input / output terminals may be controlled so as to reverse the transmission direction between the two.
この構成によれば、前記通信装置の動作状況(例えば、処理負荷が軽い状態または待機状態)を判定することにより、伝送方向の切替による通信装置の性能劣化を低減し、ひいては伝送方向の切替によるリング状伝送路の伝送性能の劣化を低減することができる。 According to this configuration, it is possible to reduce the performance degradation of the communication device due to the switching of the transmission direction by determining the operation state of the communication device (for example, the state where the processing load is light or the standby state), and consequently the switching of the transmission direction. Degradation of the transmission performance of the ring-shaped transmission line can be reduced.
ここで、前記制御部は、さらに、前記第1の入出力端子から前記リング状伝送路に前記方向切替コマンドを送信させた後、前記第1の入出力端子を出力から入力に切り替え、リング状伝送路上の隣の通信装置から伝送方向の切替を完了したことを示す切替完了通知が、前記方向切替コマンドの送信から第1の所定時間内に前記第1の入出力端子から受信されたか否かを判定し、前記第1の所定時間内に前記切替完了通知が受信されていないと判定された場合は、伝送方向の切替に失敗したと判断して前記第1の入出力端子を入力から出力に戻し、前記第1の所定時間内に前記完了通知が受信されたと判定された場合は、前記第2の入出力端子から前記方向切替コマンドが受信されるのを待つようにしてもよい。 Here, the control unit further transmits the direction switching command from the first input / output terminal to the ring-shaped transmission line, and then switches the first input / output terminal from an output to an input. Whether or not a switching completion notification indicating that transmission direction switching has been completed is received from the first input / output terminal within a first predetermined time from transmission of the direction switching command from the adjacent communication device on the transmission path If it is determined that the switch completion notification has not been received within the first predetermined time, it is determined that the transmission direction has failed and the first input / output terminal is output from the input. In the case where it is determined that the completion notification is received within the first predetermined time, it may wait for the direction switching command to be received from the second input / output terminal.
この構成によれば、隣の通信装置から切替完了通知を受信するので、伝送方向切替の成否判定を容易にすることができる。 According to this configuration, since the notification of switching completion is received from the adjacent communication device, it is possible to easily determine whether transmission direction switching is successful.
ここで、前記制御部は、さらに、前記第1の入出力端子から前記リング状伝送路に前記方向切替コマンドを送信させた後、リング状伝送路上の何れかの通信装置において伝送方向の切替を失敗したことを示す切替失敗通知が、前記第1の入出力端子から受信されたか否かを判定し、前記切替失敗通知が受信された場合、伝送方向の切替に失敗したと判断し、前記2つの入出力端子の前記一方を入力から出力に戻すようにしてもよい。 Here, the control unit further transmits the direction switching command from the first input / output terminal to the ring-shaped transmission path, and then switches the transmission direction in any communication device on the ring-shaped transmission path. It is determined whether or not a switching failure notification indicating failure has been received from the first input / output terminal. When the switching failure notification is received, it is determined that transmission direction switching has failed, and the 2 One of the two input / output terminals may be returned from the input to the output.
この構成によれば、隣の通信装置から切替失敗通知を受信するので、伝送方向の切替の成否を検出にすることができる。 According to this configuration, since the switching failure notification is received from the adjacent communication device, it is possible to detect the success or failure of switching of the transmission direction.
ここで、前記制御部は、さらに、前記切替失敗通知が受信された場合、当該切替失敗通知の送信元アドレスに基づいて伝送方向の切替を失敗した通信装置を特定するようにしてもよい。 Here, when the switching failure notification is received, the control unit may further identify a communication device that has failed to switch the transmission direction based on a transmission source address of the switching failure notification.
この構成によれば、伝送方向の切替を失敗した通信装置を特定するので、例えば、故障した通信装置を特定することができる。 According to this configuration, since the communication device that has failed to switch the transmission direction is identified, for example, the failed communication device can be identified.
ここで、前記制御部は、前記リング状伝送路を1周した前記方向切替コマンドが前記第2の入出力端子から受信された場合、前記第2の入出力端子を入力から出力に切り替えるようにしてもよい。 Here, the control unit switches the second input / output terminal from the input to the output when the direction switching command that makes one round of the ring-shaped transmission line is received from the second input / output terminal. May be.
この構成によれば、新たな制御線を追加することなしに既存のリング状伝送経路を活用して、伝送方向の切替を容易に実現し、かつ、故障した通信装置を検出することができる。 According to this configuration, it is possible to easily switch the transmission direction and detect a failed communication device by using an existing ring transmission path without adding a new control line.
また、本発明の一形態における通信装置は、リング状伝送路に接続される通信装置であって、前記リング状伝送路に接続され入力と出力とを切り替え可能な2つの入出力端子と、前記2つの入出力端子のうちの一方である第1の入出力端子から受信されたコマンドを解析することにより、当該コマンドが前記リング状伝送路の伝送方向の切り替えを指示する方向切替コマンドであるか否かを判定するコマンド解析部と、前記第1の入出力端子から受信されたコマンドが前記方向切替コマンドであると判定された場合、前記方向切替コマンドを前記2つの入出力端子の他方である第2の入出力端子から送信し、前記2つの入出力端子それぞれの入力と出力と切り替える制御部とを備える。 The communication device according to an aspect of the present invention is a communication device connected to a ring-shaped transmission path, and is connected to the ring-shaped transmission path and can be switched between input and output, Whether the command is a direction switching command for instructing switching of the transmission direction of the ring-shaped transmission line by analyzing a command received from the first input / output terminal which is one of the two input / output terminals. A command analysis unit for determining whether or not the command received from the first input / output terminal is the direction switching command, the direction switching command is the other of the two input / output terminals. A control unit that transmits from the second input / output terminal and switches between the input and output of each of the two input / output terminals is provided.
この構成によれば、方向切替コマンドを受信したとき、さらに下流の通信機器に転送するとともに、前記2つの入出力端子それぞれの入力と出力と切り替えるので、方向切替コマンドをリング状伝送路に沿って1周させることを容易に実現し、新たな制御線を追加することなしに既存のリング状伝送経路を活用して、伝送方向の切替を容易に実現することができる。 According to this configuration, when the direction switching command is received, it is further transferred to the downstream communication device, and the input and output of each of the two input / output terminals are switched. Therefore, the direction switching command is transmitted along the ring-shaped transmission line. It is possible to easily realize one round and easily switch the transmission direction by utilizing an existing ring-shaped transmission path without adding a new control line.
ここで、前記通信装置は、さらに、前記通信装置の動作状況に基づいて前記2つの入出力端子の切替が可能か否かを判定する状態判定部を備え、前記制御部は、前記第1の入出力端子から受信されたコマンドが前記方向切替コマンドであると判定され、かつ、前記状態判定部が切替が可能でないと判定した場合、前記状態判定部の判定が変化するのを待ち、一定時間内に判定が切替可能に変化した後、当該方向切替コマンドを前記第2の入出力端子から送信し、前記2つの入出力端子それぞれの入力と出力と切り替えるようにしてもよい。 Here, the communication device further includes a state determination unit that determines whether or not the two input / output terminals can be switched based on an operation state of the communication device, and the control unit includes the first determination unit. When it is determined that the command received from the input / output terminal is the direction switching command and the state determination unit determines that switching is not possible, the state determination unit waits for the determination to change and waits for a certain period of time. Then, after the determination is changed to be switchable, the direction switching command may be transmitted from the second input / output terminal to switch between the input and output of each of the two input / output terminals.
この構成によれば、前記通信装置の動作状況(例えば、処理負荷が軽い状態または待機状態)を判定することにより、伝送方向の切替による通信装置の性能劣化を低減し、ひいては伝送方向の切替によるリング状伝送路の伝送性能の劣化を低減することができる。 According to this configuration, it is possible to reduce the performance degradation of the communication device due to the switching of the transmission direction by determining the operation state of the communication device (for example, the state where the processing load is light or the standby state), and consequently the switching of the transmission direction. Degradation of the transmission performance of the ring-shaped transmission line can be reduced.
ここで、前記通信装置は、さらに、前記方向切替コマンドに従って前記2つの入出力端子の出力と入力の切り替えを完了したことを示す切替完了通知を生成する通知生成部を備え、前記制御部は、前記2つの入出力端子それぞれの入力と出力の切り替え完了後、さらに、前記通知生成部によって生成された切替完了通知を前記第1の入出力端子から送信させるようにしてもよい。 Here, the communication device further includes a notification generation unit that generates a switching completion notification indicating that the switching of the output and input of the two input / output terminals is completed according to the direction switching command, and the control unit includes: After completion of switching between the input and output of each of the two input / output terminals, a switching completion notification generated by the notification generation unit may be transmitted from the first input / output terminal.
この構成によれば、方向切替コマンドの送信元の通信装置に対して切替完了通知を送信するので、伝送方向切替の成否判定を容易にすることができる。 According to this configuration, since the switching completion notification is transmitted to the communication device that is the transmission source of the direction switching command, it is possible to easily determine whether the transmission direction switching is successful.
ここで、前記制御部は、前記第2の入出力端子からの前記方向切替コマンドの送信から第2の所定時間内に、隣の通信装置において伝送方向の切替を完了したことを示す切替完了通知が前記第2の入出力端子から受信されたか否かを判定し、前記通知生成部は、さらに、前記第2の所定時間内に切替完了通知が受信されないと判定された場合、隣の通信装置が伝送方向の切替に失敗したことを示す切替失敗通知を生成し、前記制御部は、さらに、前記通知生成部によって生成された切替失敗通知を前記第1の入出力端子から送信させ、前記2つの入出力端子それぞれの入力と出力とを前記方向切替コマンド受信前と同じ状態に戻すようにしてもよい。 Here, the control unit indicates a switch completion notification indicating that the transmission direction switching has been completed in the adjacent communication device within a second predetermined time from the transmission of the direction switch command from the second input / output terminal. Is received from the second input / output terminal, and the notification generation unit further determines that the switch completion notification is not received within the second predetermined time, the adjacent communication device Generates a switching failure notification indicating that the switching of the transmission direction has failed, and the control unit further causes the switching failure notification generated by the notification generation unit to be transmitted from the first input / output terminal. The input and output of each of the two input / output terminals may be returned to the same state as before receiving the direction switching command.
この構成によれば、隣の通信装置から切替失敗通知を受信するので、伝送方向の切替の成否を検出にすることができる。 According to this configuration, since the switching failure notification is received from the adjacent communication device, it is possible to detect the success or failure of switching of the transmission direction.
ここで、前記通知生成部は、通信装置のアドレスを含む前記切替失敗通知を生成するようにしてもよい。 Here, the notification generation unit may generate the switching failure notification including the address of the communication device.
この構成によれば、伝送方向の切替を失敗した通信装置を容易に特定可能にし、例えば、故障した通信装置を特定することができる。 According to this configuration, it is possible to easily identify the communication device that has failed to switch the transmission direction, for example, it is possible to identify the failed communication device.
ここで、前記制御部は、リング状伝送路上の何れかの通信装置において伝送方向の切替を失敗したことを示す切替失敗通知が、前記第2の入出力端子から受信されたか否かを判定し、前記第2の入出力端子から前記切替失敗通知が受信されたと判定された場合、前記第1の入出力端子から当該切替失敗通知を送信し、前記2つの入出力端子を前記方向切替コマンド受信前と同じ状態に戻すようにしてもよい。 Here, the control unit determines whether or not a switching failure notification indicating that the switching of the transmission direction has failed in any communication device on the ring-shaped transmission path is received from the second input / output terminal. When it is determined that the switching failure notification is received from the second input / output terminal, the switching failure notification is transmitted from the first input / output terminal, and the two input / output terminals receive the direction switching command. You may make it return to the same state as before.
この構成によれば、リング状伝送路上の複数の通信装置によって前記切替失敗通知を順次転送するので、例えば、故障した通信装置を容易に特定することができる。 According to this configuration, since the switching failure notification is sequentially transferred by a plurality of communication devices on the ring-shaped transmission path, for example, a failed communication device can be easily identified.
また、本発明の一形態におけるリング状伝送路システムは、リング状伝送路に接続されるホスト装置および複数のスレーブ装置を備えるリング状伝送路システムである。前記ホスト装置は、前記リング状伝送路に接続され入力と出力とを切り替え可能な2つのホストI/O端子と、前記リング状伝送路の伝送方向の切り替えを他の全てのスレーブ装置に指示する方向切替コマンドを生成するコマンド生成部と、前記2つのホストI/O端子およびコマンド生成部を制御するホスト制御部とを備える。前記ホスト制御部は、前記方向切替コマンドを前記2つのホストI/O端子のうちの一方である第1のホストI/O端子から前記リング状伝送路に送信させ、前記リング状伝送路を1周した前記方向切替コマンドが前記2つのホストI/O端子のうちの他方である第2のホストI/O端子から受信されたとき、前記2つのホストI/O端子と前記リング状伝送路との間の伝送方向を前記方向切替コマンドの送信前と比べて反転させるように前記2つのホストI/O端子の切替を制御する。各スレーブ装置は、前記リング状伝送路に接続され入力と出力とを切り替え可能な2つのスレーブI/O端子と、前記2つのスレーブI/O端子のうちの一方である第1のスレーブI/O端子から受信されたコマンドを解析することにより、当該コマンドが前記リング状伝送路の伝送方向の切り替えを指示する方向切替コマンドであるか否かを判定するコマンド解析部と、前記第1のスレーブI/O端子から受信されたコマンドが前記方向切替コマンドであると判定された場合、前記方向切替コマンドを前記2つのスレーブI/O端子の他方である第2のスレーブI/O端子から送信し、前記2つのスレーブI/O端子それぞれの入力と出力と切り替えるスレーブ制御部とを備える。 A ring-shaped transmission line system according to one embodiment of the present invention is a ring-shaped transmission line system including a host device connected to the ring-shaped transmission line and a plurality of slave devices. The host device instructs two other host I / O terminals connected to the ring-shaped transmission line and capable of switching between input and output, and all other slave devices to switch the transmission direction of the ring-shaped transmission line. A command generation unit that generates a direction switching command; and a host control unit that controls the two host I / O terminals and the command generation unit. The host control unit causes the direction switching command to be transmitted from the first host I / O terminal, which is one of the two host I / O terminals, to the ring-shaped transmission path, and the ring-shaped transmission path is set to 1 When the rotated direction switching command is received from a second host I / O terminal which is the other of the two host I / O terminals, the two host I / O terminals, the ring transmission line, The switching of the two host I / O terminals is controlled so that the transmission direction between the two is reversed compared to before the transmission of the direction switching command. Each slave device has two slave I / O terminals connected to the ring-shaped transmission line and capable of switching between input and output, and a first slave I / O which is one of the two slave I / O terminals. Analyzing the command received from the O terminal to determine whether the command is a direction switching command for instructing switching of the transmission direction of the ring-shaped transmission path; and the first slave. When it is determined that the command received from the I / O terminal is the direction switching command, the direction switching command is transmitted from the second slave I / O terminal which is the other of the two slave I / O terminals. And a slave control unit for switching between input and output of each of the two slave I / O terminals.
この構成によれば、各スレーブ装置は、方向切替コマンドを受信したとき、さらに下流の通信機器に転送するとともに、前記2つのスレーブI/O端子それぞれの入力と出力と切り替えるので、方向切替コマンドをリング状伝送路に沿って1周させることを容易に実現し、新たな制御線を追加することなしに既存のリング状伝送経路を活用して、伝送方向の切替を容易に実現することができる。ホスト装置は、リング状伝送路の伝送方向の切り替えは方向切替コマンドをリング状伝送路を1周させることによって実現することができる。すなわち、新たな制御線を追加することなしに既存のリング状伝送経路を活用して、伝送方向の切替を容易に実現することができる。 According to this configuration, when each slave device receives the direction switching command, it forwards it to a further downstream communication device and switches between the input and output of each of the two slave I / O terminals. It is possible to easily realize one round along the ring-shaped transmission path, and to easily switch the transmission direction by utilizing the existing ring-shaped transmission path without adding a new control line. . The host device can switch the transmission direction of the ring-shaped transmission line by rotating the direction switching command once around the ring-shaped transmission line. That is, it is possible to easily switch the transmission direction by utilizing an existing ring-shaped transmission path without adding a new control line.
ここで、前記ホスト装置は、さらに、前記ホスト装置の動作状況に基づいて前記2つのホストI/O端子の切替が可能か否かを判定するホスト状態判定部を備え、前記ホスト制御部は、前記ホスト状態判定部が切替可能であると判定したとき前記第1のホストI/O端子から前記方向切替コマンドを送信させ、前記各スレーブ装置は、さらに、前記スレーブ装置の動作状況に基づいて前記2つのスレーブI/O端子の切替が可能か否かを判定するスレーブ状態判定部を備え、前記スレーブ制御部は、前記第1のスレーブI/O端子から受信されたコマンドが前記方向切替コマンドであると判定され、かつ、前記スレーブ状態判定部が切替が可能でないと判定した場合、前記スレーブ状態判定部の判定が変化するのを待ち、一定時間内に判定が切替可能に変化した後、当該方向切替コマンドを前記第2のスレーブI/O端子から送信し、前記2つのスレーブI/O端子それぞれの入力と出力と切り替えるようにしてもよい。 Here, the host device further includes a host state determination unit that determines whether the two host I / O terminals can be switched based on an operation state of the host device, and the host control unit includes: When the host state determination unit determines that the switching is possible, the direction switching command is transmitted from the first host I / O terminal, and each slave device is further configured based on the operation status of the slave device. A slave state determination unit that determines whether or not two slave I / O terminals can be switched; and the slave control unit is configured such that a command received from the first slave I / O terminal is the direction switching command. When it is determined that the slave state determination unit determines that switching is not possible, the slave state determination unit waits for the determination to change, and the determination is made within a certain time. After changes possible exchange, and it sends the direction switching command from said second slave I / O terminals, may be switched between the output and the two slave I / O pins each input.
この構成によれば、前記ホスト装置および前記各スレーブ装置の動作状況(例えば、処理負荷が軽い状態または待機状態)を判定することにより、伝送方向の切替によるホスト装置の性能劣化を低減し、ひいては伝送方向の切替によるリング状伝送路の伝送性能の劣化を低減することができる。 According to this configuration, it is possible to reduce the performance degradation of the host device due to the switching of the transmission direction by determining the operation status of the host device and each of the slave devices (for example, a light processing load state or a standby state). It is possible to reduce deterioration in transmission performance of the ring-shaped transmission line due to switching of the transmission direction.
ここで、前記ホスト制御部は、さらに、前記第1のホストI/O端子から前記リング状伝送路に前記方向切替コマンドを送信させた後、前記第1のホストI/O端子を出力から入力に切り替え、前記リング状伝送路上の隣のスレーブ装置から伝送方向の切替を完了したことを示す切替完了通知が、前記方向切替コマンドの送信から第1の所定時間内に前記第1のホストI/O端子から受信されたか否かを判定し、前記第1の所定時間内に前記切替完了通知が受信されていないと判定された場合は、伝送方向の切替に失敗したと判断して前記第1のホストI/O端子を入力から出力に戻し、前記第1の所定時間内に前記完了通知が受信されたと判定された場合は、前記第2のホストI/O端子から前記方向切替コマンドが受信されるのを待ち、前記スレーブ装置は、さらに、前記方向切替コマンドに従って前記2つのスレーブI/O端子の出力と入力の切り替えを完了したことを示す切替完了通知を生成する通知生成部を備え、前記スレーブ制御部は、前記2つのスレーブI/O端子それぞれの入力と出力の切り替え完了後、さらに、前記通知生成部によって生成された切替完了通知を前記第1のスレーブI/O端子から送信させるようにしてもよい。 Here, the host control unit further transmits the direction switching command from the first host I / O terminal to the ring-shaped transmission line, and then inputs the first host I / O terminal from an output. And a switching completion notification indicating that transmission direction switching has been completed from an adjacent slave device on the ring-shaped transmission path is transmitted within a first predetermined time from the transmission of the direction switching command. It is determined whether or not it has been received from the O terminal, and if it is determined that the switch completion notification has not been received within the first predetermined time, it is determined that transmission direction switching has failed and the first When the host I / O terminal is returned from the input to the output and it is determined that the completion notification is received within the first predetermined time, the direction switching command is received from the second host I / O terminal. Wait for The slave device further includes a notification generation unit that generates a switching completion notification indicating that switching between output and input of the two slave I / O terminals is completed according to the direction switching command, and the slave control unit includes: After completion of switching between the input and output of each of the two slave I / O terminals, a switching completion notification generated by the notification generation unit may be transmitted from the first slave I / O terminal.
この構成によれば、スレーブ装置が方向切替コマンドの送信元のホスト装置に対して切替完了通知を送信するので、ホスト装置は伝送方向切替の成否判定を容易にすることができる。 According to this configuration, since the slave device transmits a switch completion notification to the host device that is the transmission source of the direction switching command, the host device can easily determine the success or failure of the transmission direction switching.
ここで、前記ホスト制御部は、さらに、前記第1のホストI/O端子から前記リング状伝送路に前記方向切替コマンドを送信させた後、リング状伝送路上のスレーブ装置において伝送方向の切替を失敗したことを示す切替失敗通知が、前記第1のホストI/O端子から受信されたか否かを判定し、前記切替失敗通知が受信された場合、伝送方向の切替に失敗したと判断し、前記2つのホストI/O端子の前記一方を入力から出力に戻し、前記スレーブ制御部は、前記第2のスレーブI/O端子からの前記方向切替コマンドの送信から第2の所定時間内に、隣のホスト装置において伝送方向の切替を完了したことを示す切替完了通知が前記第2のスレーブI/O端子から受信されたか否かを判定し、前記通知生成部は、さらに、前記第2の所定時間内に切替完了通知が受信されていないと判定された場合、隣のスレーブ装置が伝送方向の切替に失敗したことを示す切替失敗通知を生成し、前記スレーブ制御部は、さらに、前記通知生成部によって生成された切替失敗通知を前記第1のスレーブI/O端子から送信させ、前記2つのスレーブI/O端子それぞれの入力と出力とを前記方向切替コマンド受信前と同じ状態に戻すようにしてもよい。 Here, the host control unit further transmits the direction switching command from the first host I / O terminal to the ring-shaped transmission path, and then switches the transmission direction in the slave device on the ring-shaped transmission path. It is determined whether a switching failure notification indicating failure has been received from the first host I / O terminal. If the switching failure notification is received, it is determined that switching of the transmission direction has failed, The one of the two host I / O terminals is returned from the input to the output, and the slave control unit, within a second predetermined time from the transmission of the direction switching command from the second slave I / O terminal, It is determined whether or not a switch completion notification indicating that transmission direction switching has been completed in the adjacent host device is received from the second slave I / O terminal, and the notification generator further includes the second Predetermined If it is determined that the switching completion notification has not been received within a short time, a switching failure notification indicating that the adjacent slave device has failed to switch the transmission direction is generated, and the slave control unit further generates the notification The switching failure notification generated by the unit is transmitted from the first slave I / O terminal, and the input and output of each of the two slave I / O terminals are returned to the same state as before receiving the direction switching command. May be.
この構成によれば、切替を失敗したスレーブ装置の隣のスレーブ装置から切替失敗通知が送信されるので、ホスト装置は伝送方向の切替の成否を容易に検出にすることができる。 According to this configuration, since the switching failure notification is transmitted from the slave device adjacent to the slave device that has failed to be switched, the host device can easily detect the success or failure of switching of the transmission direction.
ここで、前記通知生成部は、自身のスレーブ装置のアドレスを含む前記切替失敗通知を生成し、前記ホスト制御部は、さらに、前記切替失敗通知が受信された場合、当該切替失敗通知の送信元アドレスに基づいて伝送方向の切替を失敗したスレーブ装置を特定するようにしてもよい。 Here, the notification generation unit generates the switching failure notification including an address of its own slave device, and the host control unit further transmits a source of the switching failure notification when the switching failure notification is received. You may make it identify the slave apparatus which failed to switch the transmission direction based on the address.
この構成によれば、伝送方向の切替を失敗したスレーブ装置を容易に特定でき、例えば、故障したホスト装置を特定することができる。 According to this configuration, it is possible to easily identify the slave device that failed to switch the transmission direction, for example, to identify the failed host device.
ここで、前記スレーブ制御部は、リング状伝送路上の何れかのスレーブ装置において伝送方向の切替を失敗したことを示す切替失敗通知が、前記第2のスレーブI/O端子から受信されたか否かを判定し、前記第2のスレーブI/O端子から前記切替失敗通知が受信されたと判定された場合、前記第1のスレーブI/O端子から当該切替失敗通知を送信し、前記2つのスレーブI/O端子を前記方向切替コマンド受信前と同じ状態に戻すようにしてもよい。 Here, the slave control unit determines whether or not a switching failure notification indicating that the switching of the transmission direction has failed in any slave device on the ring-shaped transmission path is received from the second slave I / O terminal. If the switch failure notification is received from the second slave I / O terminal, the switch failure notification is transmitted from the first slave I / O terminal, and the two slave I / O terminals are transmitted. The / O terminal may be returned to the same state as before receiving the direction switching command.
この構成によれば、リング状伝送路上の複数のホスト装置によって前記切替失敗通知を順次転送するので、例えば、故障したホスト装置を容易に特定することができる。 According to this configuration, since the switching failure notification is sequentially transferred by a plurality of host devices on the ring-shaped transmission path, for example, a failed host device can be easily identified.
また、本発明の一形態におけるリング状伝送路の伝送方向切替方法は、リング状伝送路に接続されるホスト装置および複数のスレーブ装置を備えるリング状伝送路の伝送方向切替方法であって、前記ホスト装置は、前記リング状伝送路に接続され入力と出力とを切り替え可能な2つのホストI/O端子を備え、各スレーブ装置は、前記リング状伝送路に接続され入力と出力とを切り替え可能な2つのスレーブI/O端子を備え、前記伝送方向切替方法は、前記ホスト装置において、前記リング状伝送路の伝送方向の切り替えを他の全てのスレーブ装置に指示する方向切替コマンドを生成し、前記ホスト装置において、前記方向切替コマンドを前記2つのホストI/O端子のうちの一方である第1のホストI/O端子から前記リング状伝送路に送信し、前記ホスト装置において、前記2つのホストI/O端子のうちの他方である第2のホストI/O端子から前記リング状伝送路を1周した前記方向切替コマンドを受信し、前記ホスト装置において、前記方向切替コマンドが受信されたとき、前記2つのホストI/O端子と前記リング状伝送路との間の伝送方向を前記方向切替コマンドの送信前と比べて反転させるように前記2つのホストI/O端子の切替を制御する。 Further, a transmission direction switching method for a ring-shaped transmission line according to one aspect of the present invention is a transmission direction switching method for a ring-shaped transmission line including a host device and a plurality of slave devices connected to the ring-shaped transmission line, The host device has two host I / O terminals that are connected to the ring-shaped transmission line and can be switched between input and output, and each slave device is connected to the ring-shaped transmission line and can be switched between input and output. The transmission direction switching method generates a direction switching command for instructing all other slave devices to switch the transmission direction of the ring-shaped transmission path in the host device, In the host device, the direction switching command is sent from the first host I / O terminal which is one of the two host I / O terminals to the ring-shaped transmission line. And the host device receives the direction switching command that makes one round of the ring-shaped transmission line from a second host I / O terminal that is the other of the two host I / O terminals, and In the apparatus, when the direction switching command is received, the transmission direction between the two host I / O terminals and the ring-shaped transmission path is reversed as compared with before transmission of the direction switching command. Controls switching of two host I / O terminals.
この構成によれば、リング状伝送路の伝送方向の切り替えは方向切替コマンドをリング状伝送路を1周させることによって実現することができる。すなわち、新たな制御線を追加することなしに既存のリング状伝送経路を活用して、伝送方向の切替を容易に実現することができる。 According to this configuration, the switching of the transmission direction of the ring-shaped transmission path can be realized by causing the direction switching command to make one round of the ring-shaped transmission path. That is, it is possible to easily switch the transmission direction by utilizing an existing ring-shaped transmission path without adding a new control line.
以上のように、本発明の一形態では、伝送方向を切り替える方向切替コマンドを用いて転送方向の切替を行うことにより、伝送用の制御線を追加することなく、伝送方向の切替を実現する。この方向切替コマンドは、伝送経路の切替を要求する通信装置(例えばホスト装置)が発行する。この方向切替コマンドは、他の全ての通信装置(例えばスレーブ装置)に対して一括して方向切替の指示が出来る簡便なコマンドであり、伝送方向の切り替えに要する電力消費を低く抑えることも出来る。 As described above, in one embodiment of the present invention, the transmission direction is switched without adding a transmission control line by switching the transfer direction using the direction switching command for switching the transmission direction. This direction switching command is issued by a communication device (for example, a host device) that requests switching of a transmission path. This direction switching command is a simple command that can instruct direction switching to all other communication devices (for example, slave devices) at once, and can also reduce power consumption required for switching the transmission direction.
以上のように、本発明によると、新たな制御線を追加することなしに既存のリング状伝送経路を活用して、伝送方向の切替を容易に実現することができる。 As described above, according to the present invention, it is possible to easily switch the transmission direction by utilizing an existing ring-shaped transmission path without adding a new control line.
以下、本発明の実施の形態について、図面を参照しながら説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(第1の実施の形態)
本実施の形態における通信装置は、ホスト装置としての通信装置とスレーブ装置としての通信装置の2種類がある。
(First embodiment)
There are two types of communication devices in the present embodiment: a communication device as a host device and a communication device as a slave device.
前記ホスト装置としての通信装置は、前記リング状伝送路に接続され入力と出力とを切り替え可能な2つのホストI/O端子(I/Oは入出力の略)と、前記リング状伝送路の伝送方向の切り替えを他の全てのスレーブ装置に指示する方向切替コマンドを生成するコマンド生成部と、前記2つのホストI/O端子およびコマンド生成部を制御するホスト制御部(200)とを備える。前記ホスト制御部は、前記方向切替コマンドを前記2つのホストI/O端子のうちの一方である第1のホストI/O端子から前記リング状伝送路に送信させ(S12)、前記リング状伝送路を1周した前記方向切替コマンドが前記2つのホストI/O端子のうちの他方である第2のホストI/O端子から受信されたとき、前記2つのホストI/O端子と前記リング状伝送路との間の伝送方向を前記方向切替コマンドの送信前と比べて反転させるように前記2つのホストI/O端子の切替を制御する。 The communication device as the host device includes two host I / O terminals (I / O is an abbreviation of input / output) that are connected to the ring-shaped transmission line and can be switched between input and output, and the ring-shaped transmission line A command generation unit that generates a direction switching command that instructs all other slave devices to switch the transmission direction, and a host control unit (200) that controls the two host I / O terminals and the command generation unit. The host control unit causes the direction switching command to be transmitted from the first host I / O terminal, which is one of the two host I / O terminals, to the ring-shaped transmission line (S12), and the ring-shaped transmission is performed. When the direction switching command that makes a round of a path is received from a second host I / O terminal that is the other of the two host I / O terminals, the two host I / O terminals and the ring shape The switching of the two host I / O terminals is controlled so as to reverse the transmission direction to and from the transmission path as compared to before the transmission of the direction switching command.
スレーブ装置としての通信装置は、前記リング状伝送路に接続され入力と出力とを切り替え可能な2つのスレーブI/O端子と、前記2つのスレーブI/O端子のうちの一方である第1のスレーブI/O端子から受信されたコマンドを解析することにより、当該コマンドが前記リング状伝送路の伝送方向の切り替えを指示する方向切替コマンドであるか否かを判定するコマンド解析部と、前記第1のスレーブI/O端子から受信されたコマンドが前記方向切替コマンドであると判定された場合、前記方向切替コマンドを前記2つのスレーブI/O端子の他方である第2のスレーブI/O端子から送信し、前記2つのスレーブI/O端子それぞれの入力と出力と切り替えるスレーブ制御部(制御部301)とを備える。 The communication device as a slave device is a first slave which is one of the two slave I / O terminals connected to the ring-shaped transmission line and capable of switching between input and output, and the two slave I / O terminals. Analyzing the command received from the slave I / O terminal to determine whether or not the command is a direction switching command instructing switching of the transmission direction of the ring-shaped transmission path; When it is determined that the command received from one slave I / O terminal is the direction switching command, the direction switching command is sent to the second slave I / O terminal which is the other of the two slave I / O terminals. And a slave control unit (control unit 301) that switches between input and output of each of the two slave I / O terminals.
これにより、方向切替コマンドをリング状伝送路に沿って1周させることを容易に実現し、新たな制御線を追加することなしに既存のリング状伝送経路を活用して、伝送方向の切替を容易に実現することができる。 This makes it easy to make a direction switch command once along the ring-shaped transmission path, and switch the transmission direction by using an existing ring-shaped transmission path without adding a new control line. It can be easily realized.
図1は、本発明に係るシステムの1実施形態の構成を示す。
図1に示すLSI11にはCPU12とホスト装置1とバス13がLSI11の一部として含まれおり、ホスト装置1はバス13を介してCPU12からの命令を受け複数のスレーブ装置2〜N(Nは整数)を制御するコントローラとしての機能を提供する。なお、ホスト装置は特定のLSIとして提供されていてもよく、あるいはCPUやバスを含むLSIとして提供されていてもよい。スレーブ装置2〜Nはコントローラ機能と記憶領域を含んでいる。なお、スレーブ装置2〜Nに含まれた記憶領域は外部装置14との入出力インターフェイス回路であってもよい。
FIG. 1 shows the configuration of one embodiment of a system according to the present invention.
The
図2は、図1に示したホスト装置1、及び、スレーブ装置2〜Nがリング状に接続されたリング状伝送路システム10の構成を示す。図2では1つのホスト装置1、及び、ホスト装置1の制御下で動作する複数のスレーブ装置2〜Nがリング状伝送路によって順次接続され、パケットが一方向に伝送される。ホスト装置1及びスレーブ装置2〜Nは、リング状伝送路システム10上で一意に識別可能なアドレスを持つ。図2に示す矢印の向きは、リング状伝送路システム10のデータの転送方向を示す。実線の矢印は、データが反時計回りの方向に転送されることを示し、破線の矢印は、データが時計回りの方向に転送されることを示す。
FIG. 2 shows a configuration of a ring-shaped
図3は、ホスト装置1、及び、スレーブ装置2〜Nが、リング状伝送路システム10上で通信するパケットのフォーマットの1構成例を示す。
FIG. 3 shows one configuration example of a format of a packet in which the
パケットフォーマット40は、データタイプ部41と、送信元アドレス部42と、送信先アドレス部43と、データ部44から構成される。
The packet format 40 includes a
データタイプ部41は、パケットがコマンドであるか、データであるかを示す。送信元アドレス部42は、パケットを送信する装置のアドレスを示す。送信先アドレス部43は、パケットの宛先となる装置のアドレスを示す。データ部44には、データタイプ部41がコマンドを示す場合は、書き込みコマンドや読み出しコマンドが設定され、データタイプ部41がデータを示す場合は、静止画や動画などのデータが設定される。
The
ホスト装置1は、スレーブ装置2〜Nのいずれかの装置と1対1で通信を行う場合、送信元アドレスにホスト装置1のアドレスを、送信先アドレスに通信対象となるスレーブ装置のアドレスを設定する。
When the
図4は、ホスト装置1の構成を示す。
ホスト装置1は、ホスト装置1の動作を制御する制御部200(上記のホスト制御部)と、コマンドを生成するコマンド生成部201と、コマンドを解析するコマンド解析部202と、リング状伝送路に接続されるI/O端子205、206と、I/O端子205、206の入出力の切り替えを制御する入出力切替制御部204と、方向切替バッファ207〜210と、入力バッファ211と、出力バッファ212から構成される。制御部200は、ホスト装置1の動作状態を判定する状態判定部203を含む。なお、第1のホストI/O端子は、I/O端子205、206の一方(例えば「出力」に設定されている端子)、第2のホストI/O端子は、I/O端子205、206の他方(例えば「入力」に設定されている端子)である。
FIG. 4 shows the configuration of the
The
制御部200はホスト装置1の全体の動作を制御する。制御部200は状態判定部203の情報をもとに、後述するコマンド生成部201、及び、入出力切替制御部204に制御情報を通知する。
The
コマンド生成部201は制御部200からの制御情報を受けると、その制御情報に基づき、パケットフォーマット40に準じたコマンドを生成する。
Upon receiving control information from the
コマンド解析部202は、ホスト装置1がリング状伝送路から入力バッファに受信したコマンドを解析し、その解析結果を制御部200に通知する。
The
状態判定部203は、ホスト装置1の動作状況に基づき、I/O端子205、206の入出力が切り替え可能かを判定する。
The
入出力切替制御部204は、コマンド生成部201からの制御情報、あるいは、制御部200からの制御情報に応じて、入出力切替制御線213、214の電圧を高レベル(H)、あるいは低レベル(L)に制御する。
The input / output
I/O端子205には、方向切替バッファ207、208が接続されている。
方向切替バッファ207、208は、入出力切替制御線213の電圧の高低により、導通状態、あるいは遮断状態のいずれか一方の状態をとる。入出力切替制御線213の電圧が高レベル(H)の場合、方向切替バッファ207は導通状態となり、方向切替バッファ208は遮断状態となる。この結果、I/O端子205は、入力バッファ211に接続され、入力端子となる。入出力切替制御線213の電圧が低レベル(L)の場合、方向切替バッファ207は遮断状態となり、方向切替バッファ208は導通状態となる。この結果、I/O端子205は出力バッファ212と接続され、出力端子となる。
Direction switching buffers 207 and 208 are connected to the I /
The
I/O端子206には、方向切替バッファ209、210が接続されている。
方向切替バッファ209、210は、前述した方向切替バッファ207、208と同様の機能である。入出力切替制御線214の電圧が高レベル(H)の場合、方向切替バッファ209は導通状態となり、方向切替バッファ210は遮断状態となる。この結果、I/O端子206は出力バッファ212に接続され、出力端子となる。入出力切替制御線214の電圧が低レベル(L)の場合、方向切替バッファ209は遮断状態となり、方向切替バッファ210は導通状態となる。この結果、I/O端子206は入力バッファ211と接続され、入力端子となる。
Direction switching buffers 209 and 210 are connected to the I /
The
このように、ホスト装置1は入出力切替制御部204から入出力切替制御線213、214の電圧を制御することで、I/O端子205、206のそれぞれの入力と出力を切り替えることができる。
As described above, the
図5は、スレーブ装置m(mは2≦m≦nの任意の自然数)の構成を示す。
スレーブ装置mは、機能部300と、スレーブ装置mの動作を制御する制御部301(上記のスレーブ制御部)と、コマンドを解析するコマンド解析部302と、リング状伝送路に接続されるI/O端子305、306と、I/O端子305、306の入出力の切り替えを制御する入出力切替制御部304と、方向切替バッファ307〜310と、入力バッファ311と、出力バッファ312から構成される。制御部301は、スレーブ装置mの動作状態を判定する状態判定部303を含む。なお、第1のスレーブI/O端子は、I/O端子305、306の一方(例えば「出力」に設定されている端子)、第2のスレーブI/O端子は、I/O端子305、306の他方(例えば「入力」に設定されている端子)である。
FIG. 5 shows a configuration of the slave device m (m is an arbitrary natural number of 2 ≦ m ≦ n).
The slave device m includes a
機能部300は記憶領域を含むメモリまたはI/Oデバイスである。あるいは機能部300は外部装置との入出力制御を行うI/Fを含む。
The
制御部301は、スレーブ装置mの全体の動作を制御する。制御部301は、状態判定部303の情報をもとに、後述する入出力切替制御部304に制御情報を通知する。また、制御部301は、後述するコマンド解析部に、受信したコマンドを転送するための制御情報を通知する。
The
コマンド解析部302は、スレーブ装置mが受信したコマンドを解析し、その解析結果を制御部301に通知する。
The
状態判定部303は、スレーブ装置mの動作状況に基づき、I/O端子305、306の入出力の切り替えが可能かを判定する。
The
入出力切替制御部304は、制御部301からの制御情報に応じて、入出力切替制御線313、314の電圧を高レベル(H)、あるいは低レベル(L)に制御する。
The input / output
I/O端子305には、方向切替バッファ307、308が接続されている。
方向切替バッファ307、308は、入出力切替制御線313の電圧の高低により、導通状態、あるいは遮断状態のいずれか一方の状態をとる。入出力切替制御線213の電圧が高レベル(H)の場合、方向切替バッファ307は導通状態となり、方向切替バッファ308は遮断状態となる。この結果、I/O端子305は入力バッファ311と接続され、入力端子となる。入出力切替制御線313の電圧が低レベル(L)の場合、方向切替バッファ307は遮断状態となり、方向切替バッファ308は導通状態となる。この結果、I/O端子305は出力バッファ312と接続され、出力端子となる。
Direction switching buffers 307 and 308 are connected to the I /
The
I/O端子306には、方向切替バッファ309、310が接続されている。
方向切替バッファ309、310は、前述した方向切替バッファ307、308と同様の機能である。入出力切替制御線314の電圧が高レベル(H)の場合、方向切替バッファ309は導通状態となり、方向切替バッファ310は遮断状態となる。この結果、I/O端子306は出力バッファ312に接続され、出力端子となる。入出力切替制御線314の電圧が低レベル(L)の場合、方向切替バッファ309は遮断状態となり、方向切替バッファ310は導通状態となる。この結果、I/O端子306は入力バッファ311に接続され、入力端子となる。
Direction switching buffers 309 and 310 are connected to the I /
The
このように、スレーブ装置mは、入出力切替制御部304から入出力切替制御線313、314の電圧を制御することで、I/O端子305、306それぞれの入力と出力を切り替えることができる。
As described above, the slave device m can switch the input and output of each of the I /
次に、本リング状伝送路システム10の伝送方向の切り替え動作を説明する。
本リング状伝送路の伝送方向切り替えは、ホスト装置、及び、スレーブ装置がI/O端子の入出力を切り替える指示である方向切替コマンドを用いて各装置が自身のI/O端子の入出力方向を順次切り替えていくことで実現している。本リング状伝送路は次のような特徴をもつ。
Next, the operation of switching the transmission direction of the ring
The transmission direction of this ring-shaped transmission line is switched by the host device and the slave device using the direction switching command which is an instruction to switch the input / output of the I / O terminal. This is realized by sequentially switching the. This ring-shaped transmission line has the following characteristics.
(A)ホスト装置は、伝送方向に接続されている次のスレーブ装置に方向切替コマンドを送信する。スレーブ装置は方向切替コマンドを受信すると次のスレーブ装置へ方向切替コマンドを転送し、当該スレーブ装置のI/O端子の入出力方向を切り替える。この動作が伝送路上の全てのスレーブ装置に対して順次行われていく。この結果、ホストが送信した方向切替コマンドは、リング状の各スレーブ装置によって転送され伝送路を一周して再びホスト装置に戻ってくる。 (A) The host device transmits a direction switching command to the next slave device connected in the transmission direction. When the slave device receives the direction switching command, the slave device transfers the direction switching command to the next slave device, and switches the input / output direction of the I / O terminal of the slave device. This operation is sequentially performed on all slave devices on the transmission path. As a result, the direction switching command transmitted by the host is transferred by each ring-shaped slave device, goes around the transmission path, and returns to the host device again.
(B)ホスト装置は自身が送信した方向切替コマンドが伝送路上を一周して戻ってきたことにより、リング状伝送路の伝送方向が切り替わったことを認識する。 (B) The host device recognizes that the transmission direction of the ring-shaped transmission line has been switched because the direction switching command transmitted by itself has returned around the transmission line.
<リング状伝送路の伝送方向切り替え動作>
図6は、ホスト装置、及び、各スレーブ装置の方向切替コマンドの送受信と、各装置の2つのI/O端子の入力(R)と出力(T)の切り替わりを時系列で示している。図6では、ホスト装置1、スレーブ装置2、スレーブ装置3、…、スレーブ装置Nの順に接続されている場合の例を示している。図6で、I/O端子にそれぞれR、Tとあるのは、それぞれのI/O端子がR(入力)、T(出力)状態であることを示す。以降、各図におけるI/O端子へのR、Tの記載も同様である。
<Transmission direction switching operation of ring transmission path>
FIG. 6 shows, in time series, transmission / reception of a direction switching command of the host device and each slave device, and switching between input (R) and output (T) of two I / O terminals of each device. 6 shows an example in which the
(1)ホスト装置1は、I/O端子P12から方向切替コマンド70をスレーブ装置2へ送信する。スレーブ装置2は、送信されてきた方向切替コマンドをI/O端子P21で受信する。
(1) The
(2)ホスト装置1はI/O端子P12を出力(T)から入力(R)に切り替える。
(2) The
(3)スレーブ装置2はI/O端子P21を入力(R)から出力(T)に切り替えて、I/O端子P22から方向切替コマンドをスレーブ装置3のI/O端子P31に転送する。
(3) The
(4)スレーブ装置2は、I/O端子P22を出力(T)から入力(R)に切り替える。
(4) The
(5)各スレーブ装置3〜Nはスレーブ装置2と同様の動作を行い方向切替コマンドを転送していく。
(5) Each of the
(6)スレーブ装置Nは、ホスト装置1へ方向切替コマンド転送する。
(6) The slave device N transfers a direction switching command to the
(7)ホスト装置は、I/O端子P11から方向切替コマンドを受信して、I/O端子P11を入力(R)から出力(T)へ切り替える。ホスト装置は、自身がI/O端子P12から送信した方向切替コマンドが伝送路上を一周してI/O端子P11に戻ってきたことにより、リング状伝送路の伝送方向が切り替わったと認識する。 (7) The host device receives the direction switching command from the I / O terminal P11 and switches the I / O terminal P11 from input (R) to output (T). The host device recognizes that the transmission direction of the ring-shaped transmission line has been switched because the direction switching command transmitted from the I / O terminal P12 has made a round on the transmission line and returns to the I / O terminal P11.
なお、上記において、各スレーブ装置は自身が受信したパケットが方向切替コマンドであれば隣接する次の装置に方向切替コマンドを転送しているが、ホスト装置が前述したパケットの送信先アドレスとして特殊なアドレスを設定することで、各スレーブ装置は自身が受信したパケットの送信先アドレスに特殊なアドレスが設定されていた場合に隣接する次の装置に方向切替コマンドを転送するようにしてもよい。例えば、ホスト装置1のアドレスを1、スレーブ装置2のアドレスを2、…、スレーブ装置NのアドレスをNのように装置番号をアドレスに割り当てたとする。このときホスト装置1は各装置に割り当てられた以外のアドレス、例えば0を特殊アドレスとしてパケットの送信先に0を設定してスレーブ装置2へ方向切替コマンドを送信する。方向切替コマンドを受信したスレーブ装置2はパケットの解析結果から送信先アドレスに0が設定されていることを確認すると、スレーブ装置3に方向切替コマンドを転送する。以降、各スレーブ装置はスレーブ装置3→スレーブ装置4→・・・→スレーブ装置N→ホスト装置1の順に方向切替コマンドを転送するようにしてもよい。
In the above, each slave device transfers the direction switching command to the next adjacent device if the packet received by itself is a direction switching command, but the host device has a special destination address for the packet described above. By setting the address, each slave device may transfer the direction switching command to the next adjacent device when a special address is set as the destination address of the packet received by itself. For example, it is assumed that the device number is assigned to the address such that the address of the
以下、ホスト装置1及びスレーブ装置mにおける、I/O端子の入出力切り替え動作を詳述する。
Hereinafter, the input / output switching operation of the I / O terminal in the
<ホスト装置1のI/O端子の入出力切り替え動作1>
図7Aは、方向切替コマンド発行前のホスト装置1の状態を示す。入出力切替制御部204により入出力切替制御線213,214の電圧が高レベルに保たれ、I/O端子205は入力バッファ211に、I/O端子206は出力バッファ212に接続されている。
<Input /
FIG. 7A shows the state of the
図7Aを初期状態として、I/O端子205、206の入力と出力が切り替わる動作を説明する。図9Aはホスト装置1のI/O端子の入出力切り替え動作のフローチャートを示す。以下、括弧内の数字は図9A中のステップ識別番号を示す。
With reference to FIG. 7A as an initial state, an operation of switching between input and output of the I /
ホスト装置1がI/O端子205、206の入出力を切り替える場合(S10)、はじめに、ホスト装置1内の制御部200は状態判定部203を確認する。状態判定部203が入出力切り替え可能な状態を示している場合(S11)、制御部200はコマンド生成部201に方向切替制御情報を通知する。状態判定部203が入出力切り替え可能な状態を示していない場合、制御部200は状態判定部203が入出力切り替え可能な状態を示すまで待つ(S11)。そして、制御部はコマンド生成部201に方向切替制御情報を通知する。ここで、入出力切り替え可能な状態とは例えばホスト装置内の制御部が待機状態であることをいう。
When the
コマンド生成部201は、制御部200からのI/O端子の方向切替制御情報を受けて、方向切替コマンドを生成し、出力バッファ212を経てI/O端子206から送信する(S12)。そして、コマンド生成部201は、方向切替コマンドの送信完了を入出力切替制御部204に通知する。入出力切替制御部204はこの送信完了通知を受けて、現在低レベル状態にある入出力切替制御線214を低レベル(L)から高レベル(H)にする。この結果、図9Bに示すようにI/O端子206は出力から入力に切り替わる(S13)。
The
このとき入出力切替制御部204はI/O端子206の入出力の切り替えを完了したことを記憶している。
At this time, the input / output
ホスト装置1が送信した方向切替コマンドは、リング状伝送路システム10のスレーブ装置2〜Nによって順次転送される。ホスト装置1は、リング状伝送路を一周してきた方向切替コマンドをI/O端子205で受信する(S14)。そして、コマンド解析部202によって方向切替コマンドと解析され、その結果が制御部に通知される。制御部200は、この通知を受けて状態判定部203を確認する。制御部200は状態判定部203が入出力切り替え可能な状態を示すまで待つ(S15)。状態判定部203が入出力切り替え可能な状態になると制御部は入出力切替制御部204へI/O端子の入出力切替制御情報を通知する。入出力切替制御部204は、制御部200からのI/O端子の入出力切替通知を受けて、もう一方の切替を行っていないI/O端子205の入出力切替制御線213を高レベル(H)から低レベル(L)にする。この結果、図9Cに示すようにI/O端子205は入力から出力に切り替わる(S16)。入出力切替制御部204は、2つのI/O端子205、206の入出力切り替えが完了したことを、制御部200へ通知する(S17)。
The direction switching command transmitted from the
<ホスト装置1のI/O端子の入出力切り替え動作2>
ホスト装置1がI/O端子205、206の入出力を切り替える場合、はじめに、ホスト装置1内の制御部200は状態判定部203を確認する。状態判定部203が入出力切り替え可能な状態を示している場合、制御部200はコマンド生成部201に方向切替制御情報を通知する。状態判定部203が入出力切り替え可能な状態を示していない場合、制御部200は、状態判定部203が入出力切り替え可能な状態を示すまで待つ。そして、制御部はコマンド生成部201に方向切替制御情報を通知する。コマンド生成部201は、制御部200からのI/O端子の方向切替制御情報を受けて、方向切替コマンドを生成し、出力バッファ212を経てI/O端子206から送信する。ホスト装置1が送信した方向切替コマンドは、リング状伝送路システム10のスレーブ装置2〜Nによって順次転送される。ホスト装置1は、リング状伝送路を一周してきた方向切替コマンドを、I/O端子205で受信する。そして、コマンド解析部202によって方向切替コマンドと解析され、その結果が制御部200に通知される。制御部200は、この通知を受けて状態判定部203を確認する。制御部200は状態判定部203が入出力切り替え可能な状態を示すまで待つ。状態判定部203が入出力切り替え可能な状態になると制御部は入出力切替制御部204へI/O端子205、206の入出力切替制御情報を通知する。入出力切替制御部204は、制御部200からのI/O端子205、206の入出力切替通知を受けて、入出力切替制御線213を高レベル(H)から低レベル(L)に、入出力切替制御線214を低レベル(L)から高レベル(H)にする。この結果、I/O端子205は入力から出力に、I/O端子205は出力から入力に切り替わる。入出力切替制御部204は、2つのI/O端子205、206の入出力切り替えが完了したことを制御部200へ通知する。
<Input /
When the
<スレーブ装置mのI/O端子の入出力切り替え動作1>
図8Aは、方向切替コマンド受信前のスレーブ装置mの状態を示す。入出力切替制御部304により入出力切替制御線313、314の電圧が高レベルに保たれ、I/O端子305は入力バッファ211に、I/O端子306は出力バッファ212に接続されている。図8Aを初期状態として、I/O端子305、306の入力と出力が切り替わる動作を説明する。図9Bはスレーブ装置mのI/O端子の入出力切り替え動作のフローチャートである。以下、括弧内の数字は図9B中のステップ識別番号を示す。
<Input /
FIG. 8A shows the state of the slave device m before receiving the direction switching command. The input / output
スレーブ装置mは、ホスト装置1が送信した、あるいは隣接した他のスレーブ装置から転送された方向切替コマンドをI/O端子305で受信する(S20, S21)。受信したコマンドは入力バッファ311を経てコマンド解析部302で方向切替コマンドと解析され、その結果が制御部301に通知される。制御部301は方向切替コマンドの通知を受けて、状態判定部303を確認する。状態判定部303が入出力切り替え可能な状態を示している場合(S22)、制御部301は入出力切替制御部304へI/O端子の入出力切替制御情報を通知する。状態判定部303が入出力切り替え可能な状態を示していない場合、制御部301は、状態判定部303が入出力切り替え可能な状態を示すまで待つ(S22)。状態判定部303が入出力切り替え可能な状態を示すと、制御部301は入出力切替制御部304へI/O端子の入出力切替制御情報を通知する。入出力切替制御部304は制御部301からのI/O端子の入出力切替通知を受けて、現在高レベル状態にある入出力切替制御線313を高レベル(H)から低レベル(L)にする。この結果、図8Bに示すようにI/O端子305は入力から出力に切り替わる(S23)。このとき入出力切替制御部304はI/O端子305の入出力の切り替えを完了したことを記憶している。
The slave device m receives the direction switching command transmitted from the
入出力切替制御部304は、I/O端子305の入出力の切り替えが完了したことを制御部301に通知する。制御部301はこの通知を受けコマンド解析部302に方向切替コマンドを転送するように制御情報を通知する。コマンド解析部302は、出力バッファ312を経て、I/O端子306から方向切替コマンドを転送する(S24)。コマンド解析部302は、制御部301へコマンド転送が完了したことを通知する。そして、制御部301は入出力切替制御部304へI/O端子の入出力切替制御情報を通知する。入出力切替制御部304は制御部301からのI/O端子の入出力切替通知を受けて、もう一方の切替を行っていないI/O端子306の入出力切替制御線314を低レベル(L)から高レベル(H)にする。この結果、図8Cに示すようにI/O端子306は出力から入力に切り替わる(S25)。入出力切替制御部304は、I/O端子305、306の入出力切替が完了したことを、制御部301へ通知する(S26)。
The input / output
<スレーブ装置mのI/O端子の入出力切り替え動作2>
スレーブ装置mは、ホスト装置1が送信した、あるいは隣接した他のスレーブ装置から転送された方向切替コマンドをI/O端子305で受信する。受信したコマンドは、入力バッファ311を経てコマンド解析部302で方向切替コマンドと解析され、その結果が制御部301に通知される。制御部301は、方向切替コマンドの通知を受けて、状態判定部303を確認する。状態判定部303が入出力切り替え可能な状態を示している場合、制御部301はコマンド解析部302に方向切替コマンドを転送するように制御情報を通知する。状態判定部303が入出力切り替え可能な状態を示していない場合、制御部301は、状態判定部303が入出力切り替え可能な状態を示すまで待つ。状態判定部303が入出力切り替え可能な状態を示すと、制御部301はコマンド解析部302に方向切替コマンドを転送するように制御情報を通知する。コマンド解析部302は、出力バッファ312を経て、I/O端子306から方向切替コマンドを転送する。コマンド解析部302は、制御部301へコマンド転送が完了したことを通知する。そして、制御部301は入出力切替制御部304へI/O端子305、306の入出力切り替えを通知する。入出力切替制御部304は制御部301からのI/O端子305、306の入出力切替要求を受けて、入出力切替制御線314を低レベル(L)から高レベル(H)に、入出力切替制御線313を高レベル(H)から低レベル(L)にする。この結果、I/O端子306は出力から入力に、I/O端子305は入力から出力に切り替わる。入出力切替制御部304は、I/O端子305、306の入出力切替が完了したことを、制御部301へ通知する。
<Input /
The slave device m receives a direction switching command transmitted from the
このように、リング状伝送路において、コマンドを用いた転送方向の切り替えを行うことにより、各装置間の特別な配線を用いることなく、転送方向の切り替えを実現している。また、ホストは自身の発行したコマンドが自身に戻ってくることにより、全端末の切り替え完了を判断しており、各端末間と個別に切替コマンドあるいは切替完了コマンドを送受信することなく、転送方向の切り替えを実現している。このため、転送方向の切り替えに要するコマンドの送受信を最小限に抑えることができ、転送方向切り替えのための電力消費を抑えることが出来る。 As described above, by switching the transfer direction using a command in the ring-shaped transmission line, the transfer direction can be switched without using any special wiring between the devices. In addition, the host determines that the switching of all terminals has been completed when the command issued by itself returns to itself, and it does not send or receive switching commands or switching completion commands individually between the terminals. Switching is realized. For this reason, transmission / reception of commands required for switching the transfer direction can be minimized, and power consumption for switching the transfer direction can be suppressed.
このような前記リング状伝送路システム10を用いることにより、データ転送に伴う電力消費を抑えることが出来る。例えば隣接するスレーブ装置2・3において、ある時点でのデータ転送方向がスレーブ装置2からスレーブ装置3の方向であったとする。このとき、スレーブ装置3からスレーブ装置2に十分大きなデータを転送する場合、ホスト装置1によりデータ転送方向が切り替える。これにより、データ転送の際に経由する装置数が最小限に抑えられ、データ転送に伴う電力消費を抑えることが出来る。
By using such a ring-shaped
以上のように、本実施の形態におけるリング状伝送路システムでは、リング状伝送路の伝送方向の切り替えは方向切替コマンドをリング状伝送路を1周させることによって実現することができる。すなわち、新たな制御線を追加することなしに既存のリング状伝送経路を活用して、伝送方向の切替を容易に実現することができる。 As described above, in the ring-shaped transmission line system according to the present embodiment, switching of the transmission direction of the ring-shaped transmission line can be realized by rotating the direction switching command once in the ring-shaped transmission line. That is, it is possible to easily switch the transmission direction by utilizing an existing ring-shaped transmission path without adding a new control line.
また、ホスト装置1は、その動作状況に基づいて前記2つの入出力端子の切替が可能か否かを判定する状態判定部203を備え、前記ホスト制御部(制御部200)は、前記状態判定部203が切替可能であると判定したとき(図9AのS11)前記第1の入出力端子から前記方向切替コマンドを送信させるようにしている。この構成によれば、前記通信装置の動作状況(例えば、処理負荷が軽い状態または待機状態)を判定することにより、伝送方向の切替による通信装置の性能劣化を低減し、ひいては伝送方向の切替によるリング状伝送路の伝送性能の劣化を低減することができる。
In addition, the
また、ホスト装置1の前記ホスト制御部は、前記リング状伝送路を1周した前記方向切替コマンドが前記第2の入出力端子から受信され、かつ、前記状態判定部203が切替可能であると判定した場合に(S15)、前記2つの入出力端子と前記リング状伝送路との間で伝送方向を反転させるように前記2つの入出力端子を制御するようにしている。この構成によれば、前記通信装置の動作状況(例えば、処理負荷が軽い状態または待機状態)を判定することにより、伝送方向の切替による通信装置の性能劣化を低減し、ひいては伝送方向の切替によるリング状伝送路の伝送性能の劣化を低減することができる。
In addition, the host control unit of the
なお、ここで隣接するスレーブ装置2・3の間のデータ転送としたが、隣接しているスレーブ間の転送に限らず、任意のスレーブ装置及びホスト装置の間で、中継装置数が最小になるように転送方向を制御することにより、電力消費を抑えることが可能となる。
Although the data transfer between the
なお、ホスト装置は、リング状伝送路に接続された何れの通信装置であってもよい。また、動的にホスト装置を選択するようにしてもよい。 Note that the host device may be any communication device connected to the ring-shaped transmission path. Alternatively, the host device may be selected dynamically.
なお、図9AのステップS13は、ステップS12の後であればどのタイミングでもよく、ステップS16と同時でもよい。 In addition, step S13 of FIG. 9A may be any timing as long as it is after step S12, and may be simultaneous with step S16.
なお、図9BのステップS23は、ステップS21またはS22の後であればどのタイミングでもよく、ステップS25と同時でもよい。 In addition, step S23 of FIG. 9B may be any timing as long as it is after step S21 or S22, and may be simultaneous with step S25.
(第2の実施の形態)
本実施の形態では、実施の形態1の機能に加えて、ホスト装置が伝送方向切替の成否判定をすることを可能にし、さらに、転送方向の切替に失敗した場合に、どのスレーブ装置で失敗したのかを特定可能にしたリング状伝送路システムについて説明する。
(Second Embodiment)
In the present embodiment, in addition to the function of the first embodiment, the host device can determine whether transfer direction switching has succeeded or not, and when the transfer direction switching has failed, which slave device has failed. A ring-shaped transmission line system that makes it possible to specify whether or not will be described.
図10に、本発明の第2の実施の形態を示す。第2の実施の形態における本発明に係るリング状伝送路システムは、第1の実施の形態で示されたリング状伝送路システムに加え、ホスト装置1にタイマー部β11、スレーブ装置2〜Nに切替完了/失敗通知生成部β13、タイマー部β14を備えた構成をとる。
FIG. 10 shows a second embodiment of the present invention. In the ring transmission line system according to the present invention in the second embodiment, in addition to the ring transmission line system shown in the first embodiment, the
第2の実施の形態におけるホスト装置1及びスレーブ装置2〜Nの構成を図13、図14に示す。各装置の詳細は後述する。
The configurations of the
各装置のタイマー部(β11、β14)は、それぞれの制御部(301、302)によりそれぞれ各装置・動作状況に応じて第一の初期値T11〜T1nあるいは第二の初期値に設定され、一定の期間ごとにカウントダウンを行うカウントダウンタイマ機能を持ち、タイマー値が0を示した場合、タイマー部より制御部にタイムアウトの発生が通知される。 The timer units (β11, β14) of the respective devices are set to the first initial values T11 to T1n or the second initial values according to the respective devices and operation states by the respective control units (301, 302), and are constant. If the timer has a countdown timer function that counts down every period and the timer value indicates 0, the timer unit notifies the control unit of the occurrence of a timeout.
次に、第2の実施の形態における、前記リング状伝送路システム10の転送方向切り替え動作を説明する。
Next, the transfer direction switching operation of the ring
図11は、ホスト装置、及び、スレーブ装置の方向切替コマンドの送受信と、I/O端子の入力(R)と出力(T)の切り替わりが正常に行われる場合の動作を時系列で示している。なお、各装置個別の動作の詳細は後に示す。 FIG. 11 shows, in chronological order, operations when transmission / reception of the direction switching command of the host device and the slave device and switching between input (R) and output (T) of the I / O terminal are normally performed. . Details of the operation of each device will be described later.
時刻(10):ホスト装置1は、I/O端子P12から方向切替コマンド70を送信する。
Time (10): The
この際、ホスト装置1は、タイマー部β11に初期値T12を設定しカウントダウンを開始する。
At this time, the
スレーブ装置2は、送信されてきた方向切替コマンドをI/O端子で受信する。
The
時刻(11):ホスト装置1はI/O端子P12を出力(T)から入力(R)に切り替える。
Time (11): The
時刻(12):スレーブ装置L-1(Lは3≦L≦Nの自然数)はI/O端子PL01から、方向切替コマンド70を受信する。
Time (12): Slave device L-1 (L is a natural number of 3 ≦ L ≦ N) receives the
時刻(13):スレーブ装置L-1はI/O端子PL01を入力(R)から出力(T)に切り替えて、I/O端子PL02から方向切替コマンド70を転送する。
Time (13): Slave device L-1 switches I / O terminal PL01 from input (R) to output (T), and transfers
この際、スレーブ装置L-1はタイマー部β14に初期値T(L-1)lを設定しカウントダウンを開始する。 At this time, the slave device L-1 sets an initial value T (L-1) 1 in the timer unit β14 and starts counting down.
時刻(14):スレーブ装置L-1は、I/O端子PL02を出力(T)から入力(R)に切り替えると共に、I/O端子PL01からスレーブ装置L-2(L>3の場合)もしくはホスト装置1(L=3の場合)を宛先として、切替完了通知β12を送信する。 Time (14): Slave device L-1 switches I / O terminal PL02 from output (T) to input (R), and from I / O terminal PL01 to slave device L-2 (when L> 3) or A switching completion notification β12 is transmitted with the host device 1 (in the case of L = 3) as the destination.
スレーブ装置L-2(L>3の場合)もしくはホスト装置1(L=3の場合)は、送信されてきた切替完了通知β12を受信すると、自身のタイマー部β11・β14のカウントダウンを停止する。 When the slave device L-2 (in the case of L> 3) or the host device 1 (in the case of L = 3) receives the transmitted switching completion notification β12, the slave device L-2 stops the countdown of its own timer units β11 and β14.
以降、各スレーブ装置L〜Nは、スレーブ装置L-1と同様の動作を行い、I/O端子の入力と出力とを切り替えながら、方向切替前のデータ転送方向に接続されたスレーブ装置へ方向切替コマンドを転送していくと共に、方向切替後のデータ転送方向に接続されたスレーブ装置を宛先として切替完了通知を送信する。 Thereafter, each of the slave devices L to N performs the same operation as that of the slave device L-1, and switches the input / output of the I / O terminal to the slave device connected in the data transfer direction before the direction change. The switching command is transferred, and a switching completion notification is transmitted to the slave device connected in the data transfer direction after the direction switching.
時刻(15):スレーブ装置Nは、スレーブ装置L-1と同様の動作を行い、ホスト装置1へ方向切替コマンド70を転送する。
Time (15): The slave device N performs the same operation as that of the slave device L-1, and transfers the
時刻(16):スレーブ装置Nは、スレーブ装置N-1に切替完了通知β12を送信する。 Time (16): The slave device N transmits a switch completion notification β12 to the slave device N-1.
切替完了通知β12を受信したスレーブ装置N-1は、自身のタイマー部β14のカウントダウンを停止する。 The slave device N-1 that has received the switching completion notification β12 stops the countdown of its own timer unit β14.
時刻(17):時刻15で方向切替コマンド70を受信したホスト装置1は、I/O端子P11を入力(R)から出力(T)へ切り替える。
Time (17): The
以上のように動作することにより、ホスト装置1は、自身が送信した方向切替コマンド70が伝送路上を一周して戻ってきたことにより、前記リング状伝送路システム10の伝送方向が切り替わったと認識する。
By operating as described above, the
なお、図11で、既に時刻13で方向切替コマンドを受信したスレーブ装置LのI/O端子PL11の方向切替は、スレーブ装置L-1からの切替完了通知β12の送信時点(時刻14)において行われていないが、I/O端子PL11の方向切替は、切替完了通知の送信と同時であっても構わないし、スレーブ装置L-1からの切替完了通知β12の送信よりも先に行われていても構わない。
In FIG. 11, the direction switching of the I / O terminal PL11 of the slave device L that has already received the direction switching command at
一方、図12は、スレーブ装置L+1が方向切替を行えなかった場合の動作を時系列で示す。 On the other hand, FIG. 12 shows the operation when the slave device L + 1 cannot switch the direction in time series.
時刻(20)から時刻(23)においては、各装置は前記正常に切替が行われた場合と同様の動作を行い、ホスト装置1から送信された方向切替コマンド70は、各スレーブ装置2〜L-1の方向切替を伴いながら順次転送される。
From time (20) to time (23), each device performs the same operation as when the switching is normally performed, and the
時刻(22):スレーブ装置Lからスレーブ装置L+1に方向切替コマンド70が転送される。
Time (22): The
時刻(23):スレーブ装置Lからスレーブ装置L-1に切替完了通知β12が送信される。 Time (23): The switch completion notification β12 is transmitted from the slave device L to the slave device L-1.
時刻(24):スレーブ装置L+1で方向切替が行われない場合、スレーブ装置Lはスレーブ装置L+1からの方向切替完了通知を受信しない。 Time (24): When the direction switching is not performed in the slave device L + 1, the slave device L does not receive the direction switching completion notification from the slave device L + 1.
時刻(25):スレーブ装置Lのタイマー部がカウントダウンの結果0を示した場合、スレーブ装置Lは、I/O端子PL12を入力(R)から出力(T)に切り替える。 Time (25): When the timer unit of the slave device L indicates 0 as a result of the countdown, the slave device L switches the I / O terminal PL12 from input (R) to output (T).
時刻(26):スレーブ装置Lは、自身を送信元、ホスト装置1を送信先とする、方向切替失敗通知β15をI/O端子PL11から送信する。
Time (26): The slave device L transmits the direction switching failure notification β15 from the I / O terminal PL11, with itself as the transmission source and the
スレーブ装置L-1は、I/O端子PL02においてスレーブ装置Lから方向切替失敗通知β15を受信する。 Slave device L-1 receives direction switching failure notification β15 from slave device L at I / O terminal PL02.
時刻(27):スレーブ装置Lは、I/O端子PL11を出力(T)から入力(R)に切り替える。 Time (27): Slave device L switches I / O terminal PL11 from output (T) to input (R).
時刻(28):スレーブ装置L-1は、I/O端子PL02を入力(R)から出力(T)に切り替える。 Time (28): Slave device L-1 switches I / O terminal PL02 from input (R) to output (T).
時刻(29):スレーブ装置L-1は、I/O端子PL01から前記方向切替失敗通知β15を転送する。 Time (29): The slave device L-1 transfers the direction switching failure notification β15 from the I / O terminal PL01.
時刻(2A):スレーブ装置L-1は、I/O端子PL01を出力(T)から入力(R)に切り替える。 Time (2A): Slave device L-1 switches I / O terminal PL01 from output (T) to input (R).
この後、各スレーブ装置2〜L-2においてスレーブ装置L-1と同様の動作が繰り返される。
Thereafter, the same operation as that of the slave device L-1 is repeated in each of the
時刻(2B):ホスト装置1は、I/O端子P12から前記方向切替失敗通知β15を受信する。
Time (2B): The
時刻(2C):ホスト装置1は、I/O端子P12を入力(R)から出力(T)に切り替えると共に、方向切替失敗通知β15の送信元がスレーブ装置Lであることから、スレーブ装置L+1での方向切替に失敗したことを認識する。
Time (2C): Since the
次に、図13に本第2の実施の形態におけるホスト装置1の構成を示す。
第2の実施の形態におけるホスト装置1は、第一の実施の形態で図4で示されたホスト装置に、タイマー部β11を備えたものとする。
Next, FIG. 13 shows a configuration of the
The
図15に方向切替に関するホスト装置1の動作フローチャートを示す。
なお、ここでは方向切替前は、図12時刻10・図13の時刻20と同様に、ホスト装置1のI/O端子P11が入力(R)、I/O端子P12が出力(T)であり、前記時刻におけるホスト装置からのデータ伝送方向の順に、スレーブ装置2,3、・・・Nと接続された後に、出力(T)になっているスレーブ装置NのI/O端子PN2がホスト装置1のI/O端子P11に接続されているものとする。
FIG. 15 shows an operation flowchart of the
Here, before the direction change, the I / O terminal P11 of the
方向切替を行うにあたり、ホスト装置1は、状態判定部203に、自身が方向切替可能であるかどうかを問い合わせる(Sβ501)。
In performing the direction switching, the
切替可能と判断された場合、ホスト装置1の制御部200は、コマンド生成部201に指示することにより、出力バッファ212からI/O端子P12を経て方向切替コマンド70を送信する(Sβ502)。
If it is determined that switching is possible, the
次に、制御部200は、タイマー部β11に初期値T12を設定し(Sβ503)、カウントダウンタイマを起動する(Sβ504)。
Next, the
制御部200は、入出力切替制御部204にI/O端子P12(206)の入出力切替を指示することにより、I/O端子P12(206)を出力(T)から入力(R)へ切り替える(Sβ505)。
The
ホスト装置1は、タイマー部β11のタイマー値Tが0になりタイムアウトが発生するまで、スレーブ装置からの通知を待つ(Sβ506)。このとき、タイムアウトが発生するまでに通知が無かった場合、ホスト装置1は、スレーブ装置2が方向切替に失敗したものとして、タイマーを停める(Sβ508)と共に、I/O端子P12を入力(R)から出力(T)へ切り替え(Sβ509)、方向切替処理を終了する(Sβ510)。
The
一方、タイムアウトが発生するまでに通知を受信した場合、ホスト装置1はタイマーを停め(Sβ511)、コマンドあるいは通知の受信を待つ(Sβ513)。
On the other hand, if the notification is received before the timeout occurs, the
そして、ホスト装置1が、I/O端子P11あるいはP12からコマンドあるいは通知を受信した場合、コマンド解析部202においてコマンド・通知の解析を行う(Sβ514)。受信したデータが、方向切替失敗通知であった場合は、通知の送信元を特定することにより切替発生箇所を特定すると共に、方向切替に失敗したものとして、制御部200、入出力切替制御部204の働きによりI/O端子P12を入力(R)から出力(T)へ切り替え、方向切替処理を終了する。
When the
また、受信したデータが、方向切替コマンドであった場合は、タイマー部β11のタイマーを初期値T11に設定し、カウントダウンタイマーを起動する。 If the received data is a direction switching command, the timer of the timer unit β11 is set to the initial value T11 and the countdown timer is started.
カウントダウンタイマーのタイマー値Tが0になりタイムアウトを起こすまでに、状態判定部203により方向切替が可能と判定されなければ、ホスト装置1はタイマーを停止し(Sβ519)、コマンド・通知受信待ち状態になる。この場合は、スレーブ装置Nにおいて、方向切替失敗通知が送信され、スレーブ装置N-1・・・2を経てホスト装置1で受信され、方向切替に失敗したものとして、I/O端子P12を入力(R)から出力(T)に切り替え(Sβ509)、方向切替処理を終了する(Sβ510)。
If the
一方、タイムアウトが発生する前に方向切替が可能と判定されれば、タイマー部β11のタイマーを停止させ、入出力切替制御部204により、I/O端子P11を入力(R)から出力(T)に切り替える(Sβ521)。この後、I/O端子P11からスレーブ装置Nに切り替え完了通知を送信する(Sβ522)。前記切り替え完了通知をスレーブ装置Nが受信することにより、前記リング状伝送路システム10の方向切替処理が完了する。
On the other hand, if it is determined that the direction can be switched before the timeout occurs, the timer of the timer unit β11 is stopped, and the input / output
以上が、伝送方向切替処理におけるホスト装置1の動作となる。
次に図14に本第2の実施の形態におけるスレーブ装置2の構成を示す。
The above is the operation of the
Next, FIG. 14 shows the configuration of the
第2の実施の形態におけるスレーブ装置2は、第1の実施の形態で図5に示されたスレーブ装置に、タイマー部β14及び切替完了/失敗通知生成部β13を備えたものとする。
The
図16に方向切替に関するスレーブ装置M(Mは1≦M≦Nの自然数)の動作フローを示す。動作の開始時点において、I/O端子PM1が入力(R)、PM2が出力(T)であったとする。 FIG. 16 shows an operation flow of the slave device M (M is a natural number of 1 ≦ M ≦ N) related to the direction switching. Assume that the I / O terminal PM1 is input (R) and PM2 is output (T) at the start of operation.
スレーブ装置Mはコマンドあるいは通知を受信すると、コマンド解析部302において内容を解析する(Sβ602)。受信したのが方向切替コマンドであれば、タイマー部β14のタイマーにタイマー初期値Tm1を設定し、カウントダウンタイマを起動する(Sβ603、Sβ604)。
When the slave device M receives the command or notification, the
タイムアウトが発生するまでに状態判定部303により方向切替が可能と判定されなかった場合、スレーブ装置Mは方向切替処理を終了する(Sβ607)。
If the
タイムアウトが発生するまでに方向切替が可能と判定された場合、タイマー部β143のタイマーを停止し、I/O端子PM1を入力(R)から出力(T)に切り替える(Sβ610)。続いて、制御部301・コマンド解析部302・出力バッファ312によりI/O端子PM2からスレーブ装置M+1(M=Nの時はホスト装置1)に方向切替コマンド70を転送する。
When it is determined that the direction can be switched before the timeout occurs, the timer of the timer unit β143 is stopped and the I / O terminal PM1 is switched from the input (R) to the output (T) (Sβ610). Subsequently, the
さらに、制御部301のタイマー部β14のタイマーにタイマー初期値Tm2を設定し、カウントダウンタイマを起動する(Sβ612、Sβ613)。
Further, the timer initial value Tm2 is set in the timer of the timer unit β14 of the
その後、制御部301、入出力切替制御部304によりI/O端子PM2を出力(T)から入力(R)へ切り替え(Sβ614)、切替完了・失敗通知生成部β13により切替完了通知を発行し、出力バッファを通じてI/O端子PM1からスレーブ装置M-1(M=1の時はホスト装置1)に送信する。
Thereafter, the
その後、スレーブ装置Mは、スレーブ装置M+1からの通知を待つ。
タイマー部β14のカウントダウンタイマが0になりタイムアウトが発生するまでにスレーブ装置M+1からの通知が無かった場合、スレーブ装置Mはタイマーを止め(Sβ618)、スレーブ装置M+1で方向切替に失敗したものとして、I/O端子PM2を入力(R)から出力(T)に切替え、切替完了・失敗通知生成部β13で自身を送信元、ホストを送信先とする切替失敗通知を発行し、I/O端子PM1から送信する。送信後、I/O端子PM1を出力(T)から入力(R)に切り替え(Sβ621)、方向切替処理を終了する(Sβ622)。
Thereafter, the slave device M waits for a notification from the slave device M + 1.
If there is no notification from the slave device M + 1 before the countdown timer of the timer unit β14 becomes 0 and a timeout occurs, the slave device M stops the timer (Sβ618), and the slave device M + 1 fails to switch the direction. As a result, the I / O terminal PM2 is switched from the input (R) to the output (T), and the switching completion / failure notification generating unit β13 issues a switching failure notification with the transmission source and the host as the transmission destination. / O terminal Transmits from PM1. After transmission, the I / O terminal PM1 is switched from output (T) to input (R) (Sβ621), and the direction switching process is terminated (Sβ622).
タイムアウトが発生するまでにスレーブ装置M+1からの通知を受信した場合、タイマーを停め(Sβ624)、コマンド解析部302で受信した通知を解析する。受信した通知が方向切替完了通知であった場合、方向切替処理を終了する(Sβ622)。
When the notification from the slave device M + 1 is received before the timeout occurs, the timer is stopped (Sβ624), and the notification received by the
方向切替後に、スレーブ装置Mにおいて受信した通知をコマンド解析部302で解析した結果(Sβ602)、方向切替失敗通知であった場合、スレーブ装置Mは入出力切替制御部により、方向切替失敗通知を受信したI/O端子PM2を入力(R)から出力(T)へ切り替える(Sβ626)。その後、I/O端子PM1から前記受信した切替失敗通知を転送し(Sβ627)、I/O端子PM1を出力(T)から入力(R)に切り替え、転送方向切替処理を終了する。 After the direction switching, when the notification received by the slave device M is analyzed by the command analysis unit 302 (Sβ602), if the direction switching failure notification is received, the slave device M receives the direction switching failure notification by the input / output switching control unit. The switched I / O terminal PM2 is switched from input (R) to output (T) (Sβ626). Thereafter, the received switching failure notification is transferred from the I / O terminal PM1 (Sβ627), the I / O terminal PM1 is switched from output (T) to input (R), and the transfer direction switching process is terminated.
以上が、伝送方向切替処理におけるスレーブ装置Mの動作となる。
なお、スレーブ装置3〜Nもスレーブ装置2と同様の構成をとるものとする。
The above is the operation of the slave device M in the transmission direction switching process.
The
ただし、各スレーブ装置の備えるIOデバイスもしくはメモリは異なるものであっても構わない。 However, the IO device or memory provided in each slave device may be different.
前記リング状伝送路システム10において、あるスレーブ装置θから別のスレーブ装置πにデータを転送する際、データが十分に大きく、また、現在のリング状伝送路のデータ転送方向よりも逆方向でデータを送信した方が、両スレーブ間での通信で経由されるスレーブ装置・ホスト装置の数が少ないと判断された場合、前述の方向切替コマンドを用いてデータ転送方向を切り替える。方向を切り替えることにより、両スレーブ間において直接データを転送する際に経由する装置の数を減らすことができ、それにより、転送方向を切り替えなかった場合と比べて消費電力を抑えることが出来る。
In the ring
以上のように、本実施の形態におけるホスト装置では、前記制御部200(ホスト制御部)は、前記第1のホストI/O端子から前記リング状伝送路に前記方向切替コマンドを送信させた後、前記第1のホストI/O端子を出力から入力に切り替え(Sβ505)、前記リング状伝送路上の隣のスレーブ装置から伝送方向の切替を完了したことを示す切替完了通知が、前記方向切替コマンドの送信から第1の所定時間(T12)内に前記第1のホストI/O端子から受信されたか否かを判定し(Sβ506、Sβ507)、前記第1の所定時間内に前記切替完了通知が受信されていないと判定された場合は、伝送方向の切替に失敗したと判断して前記第1のホストI/O端子を入力から出力に戻し(Sβ509)、前記第1の所定時間内に前記完了通知が受信されたと判定された場合は、前記第2のホストI/O端子から前記方向切替コマンドが受信されるのを待つ(Sβ513)ように構成されている。 As described above, in the host device according to the present embodiment, after the control unit 200 (host control unit) transmits the direction switching command from the first host I / O terminal to the ring transmission line. The first host I / O terminal is switched from output to input (Sβ505), and a switching completion notification indicating that the switching of the transmission direction has been completed from the adjacent slave device on the ring-shaped transmission path is the direction switching command. (Sβ 506, Sβ 507) and whether the switch completion notification is received within the first predetermined time is determined whether it is received from the first host I / O terminal within the first predetermined time (T12) from the transmission of If it is determined that it has not been received, it is determined that switching of the transmission direction has failed, the first host I / O terminal is returned from input to output (Sβ509), and the first host I / O terminal is returned within the first predetermined time. If the completion notification is determined to have been received, wherein the direction switching command from the second host I / O pin is configured to waiting to be received (Sβ513).
前記スレーブ装置2は、前記方向切替コマンドに従って前記2つのスレーブI/O端子の出力と入力の切り替えを完了したことを示す切替完了通知を生成する通知生成部(β13)を備え、前記スレーブ制御部(制御部301)は、前記2つのスレーブI/O端子それぞれの入力と出力の切り替え完了後、さらに、前記通知生成部によって生成された切替完了通知を前記第1のスレーブI/O端子から送信させる(Sβ615)ように構成されている。
The
これによれば、スレーブ装置が方向切替コマンドの送信元のホスト装置に対して切替完了通知を送信するので、ホスト装置は伝送方向切替の成否判定を容易にすることができる。 According to this, since the slave device transmits a switching completion notification to the host device that is the source of the direction switching command, the host device can easily determine whether or not the transmission direction switching is successful.
また前記ホスト制御部は、さらに、前記第1のホストI/O端子から前記リング状伝送路に前記方向切替コマンドを送信させた後、リング状伝送路上のスレーブ装置において伝送方向の切替を失敗したことを示す切替失敗通知が、前記第1のホストI/O端子から受信されたか否かを判定し(Sβ514)、前記切替失敗通知が受信された場合、伝送方向の切替に失敗したと判断し、前記2つのホストI/O端子の前記一方を入力から出力に戻す(Sβ509)ように構成されている。 In addition, the host control unit further causes the slave device on the ring-shaped transmission path to fail to switch the transmission direction after transmitting the direction switching command from the first host I / O terminal to the ring-shaped transmission path. It is determined whether or not a switching failure notification indicating that the transmission direction has been received from the first host I / O terminal (Sβ514). If the switching failure notification is received, it is determined that switching of the transmission direction has failed. The one of the two host I / O terminals is returned from the input to the output (Sβ509).
前記スレーブ制御部は、前記第2のスレーブI/O端子からの前記方向切替コマンドの送信から第2の所定時間(Tm2)内に、隣のホスト装置において伝送方向の切替を完了したことを示す切替完了通知が前記第2のスレーブI/O端子から受信されたか否かを判定し(Sβ616+Sβ617)、前記通知生成部は、さらに、前記第2の所定時間内に切替完了通知が受信されていないと判定された場合、隣のスレーブ装置が伝送方向の切替に失敗したことを示す切替失敗通知を生成し、前記スレーブ制御部は、さらに、前記通知生成部によって生成された切替失敗通知を前記第1のスレーブI/O端子から送信させ(Sβ620)、前記2つのスレーブI/O端子それぞれの入力と出力とを前記方向切替コマンド受信前と同じ状態に戻す(Sβ619+Sβ621)ように構成されている。 The slave control unit indicates that the switching of the transmission direction has been completed in the adjacent host device within the second predetermined time (Tm2) from the transmission of the direction switching command from the second slave I / O terminal. It is determined whether or not a switching completion notification has been received from the second slave I / O terminal (Sβ616 + Sβ617), and the notification generation unit has not received a switching completion notification within the second predetermined time. The slave control unit generates a switching failure notification indicating that the adjacent slave device has failed to switch the transmission direction, and the slave control unit further displays the switching failure notification generated by the notification generating unit. 1 from the slave I / O terminal (Sβ620), and the input and output of each of the two slave I / O terminals are returned to the same state as before receiving the direction switching command (S β619 + Sβ621).
これによれば、切替を失敗したスレーブ装置の隣のスレーブ装置から切替失敗通知が送信されるので、ホスト装置は伝送方向の切替の成否を容易に検出にすることができる。 According to this, since the switching failure notification is transmitted from the slave device adjacent to the slave device that has failed to be switched, the host device can easily detect the success or failure of switching of the transmission direction.
また、スレーブ装置2内の前記通知生成部は、自身のスレーブ装置のアドレスを含む前記切替失敗通知を生成し、前記ホスト制御部は、さらに、前記切替失敗通知が受信された場合、当該切替失敗通知の送信元アドレスに基づいて伝送方向の切替を失敗したスレーブ装置を特定する(Sβ523)ように構成されている。
Further, the notification generation unit in the
これによれば、伝送方向の切替を失敗したスレーブ装置を容易に特定でき、例えば、故障したホスト装置を特定することができる。 According to this, it is possible to easily identify the slave device that has failed to switch the transmission direction, for example, it is possible to identify the failed host device.
さらに、前記スレーブ制御部は、リング状伝送路上の何れかのスレーブ装置において伝送方向の切替を失敗したことを示す切替失敗通知が、前記第2のスレーブI/O端子から受信されたか否かを判定し(Sβ602)、前記第2のスレーブI/O端子から前記切替失敗通知が受信されたと判定された場合、前記第1のスレーブI/O端子から当該切替失敗通知を送信し(Sβ620)、前記2つのスレーブI/O端子を前記方向切替コマンド受信前と同じ状態に戻す(Sβ619+Sβ621)ように構成されている。 Further, the slave control unit determines whether or not a switching failure notification indicating that the switching of the transmission direction has failed in any slave device on the ring-shaped transmission path is received from the second slave I / O terminal. If it is determined (Sβ602) and it is determined that the switching failure notification is received from the second slave I / O terminal, the switching failure notification is transmitted from the first slave I / O terminal (Sβ620), The two slave I / O terminals are configured to return to the same state as before receiving the direction switching command (Sβ619 + Sβ621).
これによれば、リング状伝送路上の複数のスレーブ装置によって前記切替失敗通知を順次転送するので、例えば、故障したスレーブ装置を容易に特定することができる。 According to this, since the switching failure notification is sequentially transferred by a plurality of slave devices on the ring-shaped transmission path, for example, a failed slave device can be easily identified.
なお、上記において、スレーブ装置からの切替完了通知β12の送信タイミングを、方向切替コマンド70の次スレーブへの送信後としているが、切替完了通知β12と方向切替コマンド70の送信は同時であっても構わない。
In the above, the transmission timing of the switching completion notification β12 from the slave device is after the transmission of the
なお、上記において、各装置が方向切替失敗通知β15を転送するときの送信タイミングを方向切替失敗通知β15を受信したI/O端子の方向切替後としているが、方向切替と同時もしくは方向切替前であっても構わない。 In the above, the transmission timing when each device transfers the direction switching failure notification β15 is after the direction switching of the I / O terminal that received the direction switching failure notification β15, but at the same time as the direction switching or before the direction switching. It does not matter.
なお、上記において、各タイマー部の動作をカウントダウンタイマーとしたが、カウントアップタイマーとし、タイマ値と所定の値T11〜TN1,T21〜T2Nとを比較することにより時間の経過を計り、所定の時間が経過した場合にタイマー部β11・β14から制御部200・301に通知されるものとしても構わない。
In the above description, the operation of each timer unit is a countdown timer. However, the timer is a countup timer, and the elapsed time is measured by comparing the timer values with predetermined values T11 to TN1, T21 to T2N. May be notified from the timer units β11 and β14 to the
なお、本実施例においては、方向切替失敗通知β15を、スレーブ装置Lからホスト装置1に送るものとしているが、スレーブ装置Lが送信する方向切替失敗通知の宛先をスレーブ装置L-1としても構わない。この際は、継いでスレーブ装置L-1がスレーブ装置L-2を宛先とした方向切替失敗通知を送信するなど、各スレーブ装置が隣接するスレーブ装置もしくはホスト装置への方向切替失敗通知β15を繰り返すことにより、ホスト装置1に方向切替失敗通知β15を伝える。また、この際、前記方向切替通知β15内に、失敗発生装置のアドレスを入れておくことにより、ホスト装置1が切替失敗発生箇所を特定できるようにしても構わない。
In this embodiment, the direction switching failure notification β15 is sent from the slave device L to the
なお、本実施例においては、スレーブ装置が送信する方向切替失敗通知・方向切替完了通知としているが、これら通知はコマンドであっても構わない。 In the present embodiment, the direction switching failure notification and the direction switching completion notification transmitted by the slave device are used, but these notifications may be commands.
なお、本実施例においてはスレーブ間で直接データの転送ができるものとしたが、ホスト・スレーブ間でのみ転送が行えるものとしても構わない。この場合、ホスト・スレーブが入れ替わることにより、所望の装置間の転送が実現できる。 In this embodiment, the data can be directly transferred between the slaves, but the data can be transferred only between the host and the slave. In this case, transfer between desired devices can be realized by switching the host and slave.
なお、本実施例においては一つのリング状伝送路に存在するホスト装置は一つとしているが、別に複数あっても構わない。 In the present embodiment, one host device exists in one ring-shaped transmission line, but there may be a plurality of other host devices.
以上のように、本発明に係る第2の実施の形態によると、ホスト装置及び各スレーブ装置が動作することにより、コマンド送信量を抑えた方向切替を実現すると共に、方向切替に失敗した場合に、切替に失敗した装置をホスト装置が特定できるようにしている。さらにこの際、各装置のI/O端子の入出力の向きを転送方向切替前の状態に戻し、原状を回復することが可能となる。 As described above, according to the second embodiment of the present invention, when the host device and each slave device operate, the direction switching with the reduced command transmission amount is realized and the direction switching fails. The host device can identify the device that failed to be switched. Further, at this time, the input / output direction of the I / O terminal of each device can be returned to the state before switching the transfer direction, and the original state can be recovered.
また、第2の実施の形態によると、あるスレーブ装置が故障してデータの送信や受信、あるいは方向切替が出来なくなった場合、方向切替コマンドを用いることにより、故障したスレーブ装置を特定することが出来る。 Also, according to the second embodiment, when a slave device fails and data transmission / reception or direction switching cannot be performed, the failure slave device can be identified by using a direction switching command. I can do it.
なお、図16のステップSβ619は、ステップSβ610の後でもよく、ステップSβ621と同時でもよい。 Note that step Sβ619 in FIG. 16 may be after step Sβ610 or at the same time as step Sβ621.
また、図16のステップSβ626は、ステップSβ627の後でもよく、ステップSβ628と同時でもよい。 Further, step Sβ626 in FIG. 16 may be after step Sβ627 or may be performed simultaneously with step Sβ628.
(第3の実施の形態)
以下、本発明の第3の実施形態について図面を参照しながら説明する。
(Third embodiment)
Hereinafter, a third embodiment of the present invention will be described with reference to the drawings.
図17は本発明の第3の実施形態を示すリング状伝送路システムの構成図である。図17において、α1は1つのホスト装置、α2〜αNはホスト装置α1の制御下で動作する複数のスレーブ装置、α10は伝送路で、以上は図2の構成と同様なものである。図2の構成と異なるのはホスト装置α1にタイマー部α11を隣接するスレーブ装置α2(時計回りの方向に動作する場合はαN)に向けて方向切替コマンドα70を送信した時点からカウント起動するように設け、且つ、ホスト装置α1の制御下で動作する複数のスレーブ装置α2〜αNにホスト装置α1へ切り替え完了通知α12を返送する切替完了通知生成部α13をホスト装置α1が送信した、あるいは隣接した他のスレーブ装置α3〜Nから転送された方向切替コマンドを受けてI/O端子の入出力切り替え動作が完了したら返送するように設けた点である。 FIG. 17 is a block diagram of a ring-shaped transmission line system showing a third embodiment of the present invention. In FIG. 17, α1 is one host device, α2 to αN are a plurality of slave devices operating under the control of the host device α1, α10 is a transmission path, and the above is the same as the configuration of FIG. 2 is different from the configuration of FIG. 2 in that the timer unit α11 is set to the host device α1 to start counting from the time when the direction switching command α70 is transmitted to the adjacent slave device α2 (αN when operating in the clockwise direction). Provided, and the host device α1 transmits a switching completion notification generation unit α13 that returns a switching completion notification α12 to the host device α1 to a plurality of slave devices α2 to αN that operate under the control of the host device α1, or other adjacent devices In response to the direction switching command transferred from the slave devices α3 to N, the I / O terminal input / output switching operation is completed and returned.
第3の実施形態におけるホスト装置α1及びスレーブ装置α2〜αNの構成を図18、図19に示す。各装置の詳細は後述する。 Configurations of the host device α1 and the slave devices α2 to αN in the third embodiment are shown in FIGS. Details of each device will be described later.
図18は第3の実施形態におけるホスト装置α1の構成図で、図4の構成と異なるのは制御部200内に方向切替コマンドα70を送信した時点からカウント起動するようにタイマー部α215を設けた点である。
FIG. 18 is a configuration diagram of the host device α1 in the third embodiment, which is different from the configuration in FIG. 4 in that a timer unit α215 is provided to start counting from the time point when the direction switching command α70 is transmitted in the
ホスト装置α1のタイマー部α215は制御部200により初期値T0に設定され、一定の期間ごとにカウントダウンを行うカウントダウンタイマー機能を持ち、タイマー値が0を示した場合、タイマー部より制御部にタイムアウト発生が通知される。制御部はタイムアウトの通知により状態判定部203を入出力切り替え不可能な状態に移行し、システムを停止させるとともに、コマンド解析部202から受信したタイムアウト直前の切り替え完了通知に在る送信元アドレスを解析して故障箇所を特定する。
The timer unit α215 of the host device α1 is set to an initial value T0 by the
図19は第3の実施形態におけるスレーブ装置α2〜αNの構成図で、図5の構成と異なるのは方向切替コマンドを受けてI/O端子の入出力切り替え動作が完了した信号を制御部301より受けて切り替え完了通知を発行する切り替え完了通知生成部α315を設けた点である。 FIG. 19 is a configuration diagram of the slave devices α2 to αN in the third embodiment, which is different from the configuration in FIG. 5 in that a signal indicating that the input / output switching operation of the I / O terminal has been completed in response to the direction switching command In other words, a switching completion notification generation unit α315 that issues a switching completion notification is provided.
次に、第3の実施形態におけるリング状伝送路システム10の転送方向切り替え動作を説明する。
Next, the transfer direction switching operation of the ring
図20は、ホスト装置及びスレーブ装置の方向切替コマンドの送受信と、I/O端子の入力(R)と出力(T)の切り替わりが正常に行われる場合の動作を時系列で示している。各装置個別の動作の詳細は後に示す。 FIG. 20 shows, in time series, operations when transmission / reception of the direction switching command between the host device and the slave device and switching between input (R) and output (T) of the I / O terminal are normally performed. Details of the operation of each device will be described later.
時刻(50):ホスト装置1は、I/O端子P12から方向切替コマンド70を送信する。
Time (50): The
この際、ホスト装置1はタイマー部α11に初期値T0を設定しカウントダウンを開始する。
At this time, the
スレーブ装置2は、送信されてきた方向切替コマンド70をI/O端子で受信する。
The
時刻(51):ホスト装置1はI/O端子P12を出力(T)から入力(R)に切り替える。
Time (51): The
時刻(52):スレーブ装置L-1(Lは3≦L≦N の自然数)はI/O端子PL01から、方向切替コマンド70を受信する。
Time (52): Slave device L-1 (L is a natural number of 3 ≦ L ≦ N) receives the
時刻(53):スレーブ装置L-1はI/O端子PL01を入力(R)から出力(T)に切り替えて、I/O端子PL02から方向切替コマンド70を転送する。
Time (53): Slave device L-1 switches I / O terminal PL01 from input (R) to output (T), and transfers
時刻(54):スレーブ装置L-1は、I/O端子PL02を出力(T)から入力(R)に切り替えると共に、I/O端子PL01からホスト装置1を宛先として、切替完了通知β12を送信する。
Time (54): The slave device L-1 switches the I / O terminal PL02 from output (T) to input (R), and transmits a switch completion notification β12 from the I / O terminal PL01 to the
以降、各スレーブ装置L〜Nは、スレーブ装置L-1と同様の動作を行い、I/O端子の入力と出力とを切り替えながら、方向切り替え前のデータ転送方向に接続されたスレーブ装置へ方向切替コマンドを転送していくと共に、方向切り替え後のデータ転送方向にホスト装置1を宛先として切り替え完了通知を送信する。
Thereafter, each of the slave devices L to N performs the same operation as that of the slave device L-1, and switches the input / output of the I / O terminal to the slave device connected in the data transfer direction before the direction change. The switching command is transferred, and a switching completion notification is transmitted with the
時刻(55):スレーブ装置Nは、スレーブ装置L-1と同様の動作を行い、ホスト装置1へ方向切替コマンド70を転送する。
Time (55): The slave device N performs the same operation as that of the slave device L-1, and transfers the
時刻(56):スレーブ装置Nは、ホスト装置1を宛先として切替完了通知β12を送信する。
Time (56): The slave device N transmits the switching completion notification β12 with the
時刻(57):時刻(55)で方向切替コマンド70を受信したホスト装置1は、I/O端子P11を入力(R)から出力(T)へ切り替える。
Time (57): The
ホスト装置1は、自身の発行した方向切替コマンド70が、伝送路上を一周して戻ってきたこととスレーブ装置Nから送信されてきた切替完了通知β12を受信すると、タイマー部α215のカウントダウンを停止する。
The
なお、図20で、既に時刻53で方向切替コマンドを受信したスレーブ装置LのI/O端子PL11の方向切り替えはスレーブ装置L-1からの切替完了通知β12の送信時点(時刻(54))において行われていないが、切替完了通知の送信と同時であっても構わないし、スレーブ装置L-1からの切替完了通知β12の送信よりも先にI/O端子PL12の方向切り替えが行われていても構わない。
In FIG. 20, the direction switching of the I / O terminal PL11 of the slave device L that has already received the direction switching command at
一方、図21は、スレーブ装置L+1が方向切り替えを行えなかった場合の動作を時系列で示す。 On the other hand, FIG. 21 shows an operation in a time series when the slave device L + 1 cannot change the direction.
時刻(60)から時刻(63)においては、各装置は正常に切り替えが行われた場合と同様の動作を行い、ホスト装置1から送信された方向切替コマンド70は、各スレーブ装置2〜L-1の方向切り替えを伴いながら転送されている。
From time (60) to time (63), each device performs the same operation as when switching is performed normally, and the
時刻(62):スレーブ装置Lからスレーブ装置L+1に方向切替コマンド70が転送される。
Time (62): The
時刻(63):スレーブ装置Lからホスト装置1に切替完了通知β12が送信される。
Time (63): The switching completion notification β12 is transmitted from the slave device L to the
時刻(64):スレーブ装置L+1で方向切り替えが行われない場合、ホスト装置1はスレーブ装置L+1からの方向切替完了通知を受信しない。
Time (64): When the direction switching is not performed in the slave device L + 1, the
時刻(65)〜時刻(67):この後、ホスト装置1はスレーブ装置L+1からの切替完了通知β12を受信できず、且つ、タイマー値がカウントダウンの結果0を示した場合、タイマー部より制御部にタイムアウト発生が通知される。制御部はタイムアウトの通知により状態判定部203を入出力切り替え不可能な状態に移行し、システムを停止させる。
Time (65) to Time (67): Thereafter, when the
ホスト装置1は、タイムアウトの時点でスレーブ装置2からスレーブ装置Lまでの切り替え完了通知を受け取り、スレーブ装置L+1の切り替え完了通知を受け取っていないことからスレーブ装置L+1が方向切り替えに失敗したと判断する。
The
なお、スレーブ装置3〜Nもスレーブ装置2と同様の構成をとるものとする。
ただし、各スレーブ装置の備えるIOデバイスもしくはメモリは異なるものであっても構わない。
The
However, the IO device or memory provided in each slave device may be different.
なお、上記において、スレーブ装置からの切り替え完了通知の送信タイミングを、方向切替コマンドの送信後としているが、方向切り替え完了通知と方向切替コマンドの送信は同時であっても構わない。 In the above, the transmission timing of the switching completion notification from the slave device is after the transmission of the direction switching command, but the direction switching completion notification and the transmission of the direction switching command may be simultaneous.
なお、上記において、各タイマー部の動作をカウントダウンタイマーとしたが、カウントアップタイマーとし、タイマー値と所定の値(例えば自身の方向切替コマンドが一周した到着時間)とを比較することにより時間の経過を計り、所定の時間が経過した場合にタイマー部から制御部に通知されるものとしても構わない。 In the above description, the operation of each timer unit is a countdown timer. However, the countdown timer is used, and the time elapses by comparing the timer value with a predetermined value (for example, the arrival time in which the direction switching command is made once). The timer unit may notify the control unit when a predetermined time has elapsed.
以上のように、第3の実施の形態によると、特定のスレーブ装置が故障してデータの送信や受信、あるいは方向切り替えが出来なくなった場合、方向切り替え完了通知を用いることにより、故障したスレーブ装置を検知することが出来る。 As described above, according to the third embodiment, when a specific slave device fails and data transmission / reception or direction switching cannot be performed, a failed slave device is used by using a direction switching completion notification. Can be detected.
本発明に係るリング状伝送路システムは各装置間の特別な配線を用いることなく転送方向の切り替えを実現し、更に、コマンドの送受信を最小限に抑えた伝送方向切り替えが可能であり電力消費を抑えることが出来る、という特徴を有するので、Audio Visual機器あるいはモバイル機器などの低消費電力技術が必要とされる機器の実現に有用である。 The ring-shaped transmission line system according to the present invention realizes switching of the transfer direction without using a special wiring between devices, and further enables switching of the transmission direction while minimizing the transmission / reception of commands, thereby reducing power consumption. Since it has a feature that it can be suppressed, it is useful for realizing a device requiring low power consumption technology such as an audio visual device or a mobile device.
1 ホスト装置
2〜N スレーブ装置
10 リング状伝送路システム
11 LSI
12 CPU
13 バス
14 I/O端子
41 データタイプ
42 送信元アドレス
43 送信先アドレス
44 データ
200 制御部
201 コマンド生成部
202 コマンド解析部
203 状態判定部
204 入出力切替制御部
205、206 I/O端子
207〜210 方向切替バッファ
211 入力バッファ
212 出力バッファ
213、214 入出力切替制御線
300 メモリ、またはIOデバイス
301 制御部
302 コマンド解析部
303 状態判定部
304 入出力切替制御部
305、306 I/O端子
307〜310 方向切替バッファ
311 入力バッファ
312 出力バッファ
313、314 入出力切替制御線
70 方向切替コマンド
P11、P12、P21、P22、・・・、PN1、PN2 I/O端子
β11、β14 タイマー部
β12 切替完了通知
β13 切替完了/失敗通知生成部
α11、α215 タイマー部
α12 切替完了通知
α13、α315 切替完了通知生成部
α70 方向切替コマンド
1
12 CPU
13 bus 14 I /
P11, P12, P21, P22,..., PN1, PN2 I / O terminals β11, β14 Timer unit β12 Switching completion notification β13 Switching completion / failure notification generating unit α11, α215 Timer unit α12 Switching completion notification α13, α315 Switching completion Notification generator α70 Direction switch command
Claims (20)
前記リング状伝送路に接続され入力と出力とを切り替え可能な2つの入出力端子と、
前記リング状伝送路の伝送方向の切り替えを他の全ての通信装置に指示する方向切替コマンドを生成するコマンド生成部と、
前記2つの入出力端子およびコマンド生成部を制御する制御部と
を備え、
前記制御部は、
前記方向切替コマンドを前記2つの入出力端子のうちの一方である第1の入出力端子から前記リング状伝送路に送信させ、
前記リング状伝送路を1周した前記方向切替コマンドが前記2つの入出力端子のうちの他方である第2の入出力端子から受信されたとき、前記2つの入出力端子と前記リング状伝送路との間の伝送方向を前記方向切替コマンドの送信前と比べて反転させるように前記2つの入出力端子の切替を制御する
通信装置。 A communication device connected to a ring-shaped transmission line,
Two input / output terminals connected to the ring-shaped transmission line and capable of switching between input and output;
A command generation unit that generates a direction switching command that instructs all other communication devices to switch the transmission direction of the ring-shaped transmission path;
A control unit for controlling the two input / output terminals and the command generation unit,
The controller is
The direction switching command is transmitted from the first input / output terminal which is one of the two input / output terminals to the ring-shaped transmission line,
The two input / output terminals and the ring-shaped transmission path when the direction switching command that makes one round of the ring-shaped transmission path is received from a second input / output terminal that is the other of the two input / output terminals. A communication device that controls switching of the two input / output terminals so as to invert the transmission direction between the two and the direction before the transmission of the direction switching command.
前記制御部は、前記状態判定部が切替可能であると判定したとき前記第1の入出力端子から前記方向切替コマンドを送信させる
請求項1記載の通信装置。 The communication device further includes a state determination unit that determines whether the two input / output terminals can be switched based on an operation state of the communication device,
The communication device according to claim 1, wherein the control unit transmits the direction switching command from the first input / output terminal when the state determination unit determines that the switching is possible.
前記制御部は、前記リング状伝送路を1周した前記方向切替コマンドが前記第2の入出力端子から受信され、かつ、前記状態判定部が切替可能であると判定した場合に、前記2つの入出力端子と前記リング状伝送路との間で伝送方向を反転させるように前記2つの入出力端子を制御する
請求項1記載の通信装置。 The communication device further includes a state determination unit that determines whether the two input / output terminals can be switched based on an operation state of the communication device,
The control unit, when the direction switching command that makes one round of the ring-shaped transmission path is received from the second input / output terminal, and the state determination unit determines that the two can be switched, The communication apparatus according to claim 1, wherein the two input / output terminals are controlled so as to reverse a transmission direction between the input / output terminals and the ring-shaped transmission line.
前記第1の入出力端子から前記リング状伝送路に前記方向切替コマンドを送信させた後、前記第1の入出力端子を出力から入力に切り替え、
リング状伝送路上の隣の通信装置から伝送方向の切替を完了したことを示す切替完了通知が、前記方向切替コマンドの送信から第1の所定時間内に前記第1の入出力端子から受信されたか否かを判定し、
前記第1の所定時間内に前記切替完了通知が受信されていないと判定された場合は、伝送方向の切替に失敗したと判断して前記第1の入出力端子を入力から出力に戻し、
前記第1の所定時間内に前記完了通知が受信されたと判定された場合は、前記第2の入出力端子から前記方向切替コマンドが受信されるのを待つ
請求項1記載の通信装置。 The control unit further includes:
After the direction switching command is transmitted from the first input / output terminal to the ring-shaped transmission line, the first input / output terminal is switched from output to input,
Whether a switching completion notification indicating that the switching of the transmission direction has been completed is received from the first input / output terminal within a first predetermined time from the transmission of the direction switching command from the adjacent communication device on the ring-shaped transmission path. Determine whether or not
If it is determined that the switch completion notification has not been received within the first predetermined time, it is determined that transmission direction switching has failed, and the first input / output terminal is returned from input to output,
2. The communication device according to claim 1, wherein when it is determined that the completion notification is received within the first predetermined time, the communication apparatus waits for the direction switching command to be received from the second input / output terminal.
前記第1の入出力端子から前記リング状伝送路に前記方向切替コマンドを送信させた後、リング状伝送路上の何れかの通信装置において伝送方向の切替を失敗したことを示す切替失敗通知が、前記第1の入出力端子から受信されたか否かを判定し、
前記切替失敗通知が受信された場合、伝送方向の切替に失敗したと判断し、前記2つの入出力端子の前記一方を入力から出力に戻す
請求項4記載の通信装置。 The control unit further includes:
After transmitting the direction switching command from the first input / output terminal to the ring-shaped transmission path, a switching failure notification indicating that switching of the transmission direction has failed in any communication device on the ring-shaped transmission path, Determining whether it is received from the first input / output terminal;
The communication apparatus according to claim 4, wherein when the switching failure notification is received, it is determined that the switching of the transmission direction has failed, and the one of the two input / output terminals is returned from the input to the output.
前記切替失敗通知が受信された場合、当該切替失敗通知の送信元アドレスに基づいて伝送方向の切替を失敗した通信装置を特定する
請求項5記載の通信装置。 The control unit further includes:
The communication device according to claim 5, wherein when the switch failure notification is received, the communication device that has failed to switch the transmission direction based on a transmission source address of the switch failure notification.
請求項4〜6の何れかに記載の通信装置。 The said control part switches the said 2nd input / output terminal from an input to an output, when the said direction switch command which went round the said ring-shaped transmission line is received from the said 2nd input / output terminal. The communication apparatus in any one of.
前記リング状伝送路に接続され入力と出力とを切り替え可能な2つの入出力端子と、
前記2つの入出力端子のうちの一方である第1の入出力端子から受信されたコマンドを解析することにより、当該コマンドが前記リング状伝送路の伝送方向の切り替えを指示する方向切替コマンドであるか否かを判定するコマンド解析部と、
前記第1の入出力端子から受信されたコマンドが前記方向切替コマンドであると判定された場合、前記方向切替コマンドを前記2つの入出力端子の他方である第2の入出力端子から送信し、前記2つの入出力端子それぞれの入力と出力と切り替える制御部とを備える
通信装置。 A communication device connected to a ring-shaped transmission line,
Two input / output terminals connected to the ring-shaped transmission line and capable of switching between input and output;
By analyzing a command received from the first input / output terminal which is one of the two input / output terminals, the command is a direction switching command for instructing switching of the transmission direction of the ring-shaped transmission path. A command analysis unit for determining whether or not
When it is determined that the command received from the first input / output terminal is the direction switching command, the direction switching command is transmitted from the second input / output terminal which is the other of the two input / output terminals, A communication apparatus comprising a control unit that switches between input and output of each of the two input / output terminals.
前記通信装置の動作状況に基づいて前記2つの入出力端子の切替が可能か否かを判定する状態判定部を備え、
前記制御部は、
前記第1の入出力端子から受信されたコマンドが前記方向切替コマンドであると判定され、かつ、前記状態判定部が切替が可能でないと判定した場合、前記状態判定部の判定が変化するのを待ち、
一定時間内に判定が切替可能に変化した後、当該方向切替コマンドを前記第2の入出力端子から送信し、前記2つの入出力端子それぞれの入力と出力と切り替える
請求項8記載の通信装置。 The communication device further includes:
A state determination unit that determines whether the two input / output terminals can be switched based on an operation state of the communication device;
The controller is
If it is determined that the command received from the first input / output terminal is the direction switching command and the state determination unit determines that switching is not possible, the determination of the state determination unit changes. Wait,
9. The communication apparatus according to claim 8, wherein the direction switching command is transmitted from the second input / output terminal and the input and output of each of the two input / output terminals are switched after the determination changes so as to be switchable within a predetermined time.
前記制御部は、前記2つの入出力端子それぞれの入力と出力の切り替え完了後、さらに、前記通知生成部によって生成された切替完了通知を前記第1の入出力端子から送信させる
請求項8記載の通信装置。 The communication apparatus further includes a notification generation unit that generates a switching completion notification indicating that switching between output and input of the two input / output terminals is completed according to the direction switching command,
9. The control unit according to claim 8, further comprising: after completion of switching between input and output of each of the two input / output terminals, further transmitting a switching completion notification generated by the notification generation unit from the first input / output terminal. Communication device.
前記第2の入出力端子からの前記方向切替コマンドの送信から第2の所定時間内に、隣の通信装置において伝送方向の切替を完了したことを示す切替完了通知が前記第2の入出力端子から受信されたか否かを判定し、
前記通知生成部は、さらに、前記第2の所定時間内に切替完了通知が受信されないと判定された場合、隣の通信装置が伝送方向の切替に失敗したことを示す切替失敗通知を生成し、
前記制御部は、さらに、
前記通知生成部によって生成された切替失敗通知を前記第1の入出力端子から送信させ、
前記2つの入出力端子それぞれの入力と出力とを前記方向切替コマンド受信前と同じ状態に戻す
請求項10記載の通信装置。 The controller is
A switch completion notification indicating that the switching of the transmission direction has been completed in the adjacent communication device within the second predetermined time from the transmission of the direction switch command from the second input / output terminal is the second input / output terminal. To determine if it was received from
The notification generation unit further generates a switching failure notification indicating that the adjacent communication device has failed to switch the transmission direction when it is determined that the switching completion notification is not received within the second predetermined time,
The control unit further includes:
The switching failure notification generated by the notification generation unit is transmitted from the first input / output terminal,
The communication apparatus according to claim 10, wherein the input and output of each of the two input / output terminals are returned to the same state as before receiving the direction switching command.
請求項11記載の通信装置。 The communication device according to claim 11, wherein the notification generation unit generates the switching failure notification including an address of the communication device.
リング状伝送路上の何れかの通信装置において伝送方向の切替を失敗したことを示す切替失敗通知が、前記第2の入出力端子から受信されたか否かを判定し、
前記第2の入出力端子から前記切替失敗通知が受信されたと判定された場合、前記第1の入出力端子から当該切替失敗通知を送信し、
前記2つの入出力端子を前記方向切替コマンド受信前と同じ状態に戻す
請求項11記載の通信装置。 The controller is
Determining whether a switching failure notification indicating that switching of the transmission direction has failed in any communication device on the ring-shaped transmission path is received from the second input / output terminal;
When it is determined that the switching failure notification is received from the second input / output terminal, the switching failure notification is transmitted from the first input / output terminal;
The communication apparatus according to claim 11, wherein the two input / output terminals are returned to the same state as before receiving the direction switching command.
前記ホスト装置は、
前記リング状伝送路に接続され入力と出力とを切り替え可能な2つのホストI/O端子と、
前記リング状伝送路の伝送方向の切り替えを他の全てのスレーブ装置に指示する方向切替コマンドを生成するコマンド生成部と、
前記2つのホストI/O端子およびコマンド生成部を制御するホスト制御部と
を備え、
前記ホスト制御部は、
前記方向切替コマンドを前記2つのホストI/O端子のうちの一方である第1のホストI/O端子から前記リング状伝送路に送信させ、
前記リング状伝送路を1周した前記方向切替コマンドが前記2つのホストI/O端子のうちの他方である第2のホストI/O端子から受信されたとき、前記2つのホストI/O端子と前記リング状伝送路との間の伝送方向を前記方向切替コマンドの送信前と比べて反転させるように前記2つのホストI/O端子の切替を制御し、
各スレーブ装置は、
前記リング状伝送路に接続され入力と出力とを切り替え可能な2つのスレーブI/O端子と、
前記2つのスレーブI/O端子のうちの一方である第1のスレーブI/O端子から受信されたコマンドを解析することにより、当該コマンドが前記リング状伝送路の伝送方向の切り替えを指示する方向切替コマンドであるか否かを判定するコマンド解析部と、
前記第1のスレーブI/O端子から受信されたコマンドが前記方向切替コマンドであると判定された場合、前記方向切替コマンドを前記2つのスレーブI/O端子の他方である第2のスレーブI/O端子から送信し、前記2つのスレーブI/O端子それぞれの入力と出力と切り替えるスレーブ制御部とを備える
リング状伝送路システム。 A ring-shaped transmission line system comprising a host device connected to a ring-shaped transmission line and a plurality of slave devices,
The host device is
Two host I / O terminals connected to the ring-shaped transmission line and capable of switching between input and output;
A command generator for generating a direction switching command for instructing all other slave devices to switch the transmission direction of the ring-shaped transmission path;
A host controller that controls the two host I / O terminals and the command generator,
The host control unit
Sending the direction switching command from the first host I / O terminal, which is one of the two host I / O terminals, to the ring-shaped transmission line;
The two host I / O terminals when the direction switching command that makes one round of the ring-shaped transmission line is received from a second host I / O terminal that is the other of the two host I / O terminals. And control the switching of the two host I / O terminals so as to reverse the transmission direction between the transmission line and the ring-shaped transmission line compared to before transmission of the direction switching command,
Each slave device
Two slave I / O terminals connected to the ring-shaped transmission line and capable of switching between input and output;
A direction in which the command instructs switching of the transmission direction of the ring-shaped transmission line by analyzing a command received from the first slave I / O terminal which is one of the two slave I / O terminals. A command analysis unit for determining whether the command is a switching command;
When it is determined that the command received from the first slave I / O terminal is the direction switching command, the direction switching command is sent to the second slave I / O that is the other of the two slave I / O terminals. A ring transmission line system comprising a slave control unit that transmits from the O terminal and switches between input and output of each of the two slave I / O terminals.
前記ホスト制御部は、前記ホスト状態判定部が切替可能であると判定したとき前記第1のホストI/O端子から前記方向切替コマンドを送信させ、
前記各スレーブ装置は、さらに、
前記スレーブ装置の動作状況に基づいて前記2つのスレーブI/O端子の切替が可能か否かを判定するスレーブ状態判定部を備え、
前記スレーブ制御部は、
前記第1のスレーブI/O端子から受信されたコマンドが前記方向切替コマンドであると判定され、かつ、前記スレーブ状態判定部が切替可能でないと判定した場合、前記スレーブ状態判定部の判定が変化するのを待ち、
一定時間内に判定が切替可能に変化した後、当該方向切替コマンドを前記第2のスレーブI/O端子から送信し、前記2つのスレーブI/O端子それぞれの入力と出力と切り替える
請求項14記載のリング状伝送路システム。 The host device further includes a host state determination unit that determines whether the two host I / O terminals can be switched based on an operation state of the host device,
The host control unit transmits the direction switching command from the first host I / O terminal when the host state determination unit determines that the switching is possible,
Each slave device further comprises:
A slave state determination unit that determines whether the two slave I / O terminals can be switched based on an operation state of the slave device;
The slave control unit
When it is determined that the command received from the first slave I / O terminal is the direction switching command and the slave state determination unit determines that switching is not possible, the determination of the slave state determination unit changes. Wait for
15. The direction switching command is transmitted from the second slave I / O terminal after the determination is changed so as to be switchable within a predetermined time, and the input and output of each of the two slave I / O terminals are switched. Ring transmission line system.
前記第1のホストI/O端子から前記リング状伝送路に前記方向切替コマンドを送信させた後、前記第1のホストI/O端子を出力から入力に切り替え、
前記リング状伝送路上の隣のスレーブ装置から伝送方向の切替を完了したことを示す切替完了通知が、前記方向切替コマンドの送信から第1の所定時間内に前記第1のホストI/O端子から受信されたか否かを判定し、
前記第1の所定時間内に前記切替完了通知が受信されていないと判定された場合は、伝送方向の切替に失敗したと判断して前記第1のホストI/O端子を入力から出力に戻し、
前記第1の所定時間内に前記完了通知が受信されたと判定された場合は、前記第2のホストI/O端子から前記方向切替コマンドが受信されるのを待ち、
前記スレーブ装置は、さらに、前記方向切替コマンドに従って前記2つのスレーブI/O端子の出力と入力の切り替えを完了したことを示す切替完了通知を生成する通知生成部を備え、
前記スレーブ制御部は、前記2つのスレーブI/O端子それぞれの入力と出力の切り替え完了後、さらに、前記通知生成部によって生成された切替完了通知を前記第1のスレーブI/O端子から送信させる
請求項14記載のリング状伝送路システム。 The host control unit further includes:
After the direction switching command is transmitted from the first host I / O terminal to the ring transmission line, the first host I / O terminal is switched from output to input,
A switching completion notification indicating that transmission direction switching has been completed from an adjacent slave device on the ring-shaped transmission line is received from the first host I / O terminal within a first predetermined time from transmission of the direction switching command. Determine if it was received,
If it is determined that the switching completion notification has not been received within the first predetermined time, it is determined that transmission direction switching has failed, and the first host I / O terminal is returned from input to output. ,
If it is determined that the completion notification is received within the first predetermined time, wait for the direction switching command to be received from the second host I / O terminal;
The slave device further includes a notification generation unit that generates a switching completion notification indicating completion of switching between output and input of the two slave I / O terminals according to the direction switching command.
The slave control unit causes the first slave I / O terminal to transmit the switching completion notification generated by the notification generation unit after the switching of the input and output of each of the two slave I / O terminals is completed. The ring-shaped transmission line system according to claim 14.
前記第1のホストI/O端子から前記リング状伝送路に前記方向切替コマンドを送信させた後、リング状伝送路上のスレーブ装置において伝送方向の切替を失敗したことを示す切替失敗通知が、前記第1のホストI/O端子から受信されたか否かを判定し、
前記切替失敗通知が受信された場合、伝送方向の切替に失敗したと判断し、前記2つのホストI/O端子の前記一方を入力から出力に戻し、
前記スレーブ制御部は、
前記第2のスレーブI/O端子からの前記方向切替コマンドの送信から第2の所定時間内に、隣のホスト装置において伝送方向の切替を完了したことを示す切替完了通知が前記第2のスレーブI/O端子から受信されたか否かを判定し、
前記通知生成部は、さらに、前記第2の所定時間内に切替完了通知が受信されていないと判定された場合、隣のスレーブ装置が伝送方向の切替に失敗したことを示す切替失敗通知を生成し、
前記スレーブ制御部は、さらに、
前記通知生成部によって生成された切替失敗通知を前記第1のスレーブI/O端子から送信させ、
前記2つのスレーブI/O端子それぞれの入力と出力とを前記方向切替コマンド受信前と同じ状態に戻す
請求項16記載のリング状伝送路システム。 The host control unit further includes:
After transmitting the direction switching command from the first host I / O terminal to the ring-shaped transmission path, a switching failure notification indicating that the switching of the transmission direction has failed in the slave device on the ring-shaped transmission path, Determine whether it is received from the first host I / O terminal,
When the switching failure notification is received, it is determined that the transmission direction switching has failed, and the one of the two host I / O terminals is returned from the input to the output,
The slave control unit
Within the second predetermined time from the transmission of the direction switching command from the second slave I / O terminal, a switching completion notification indicating that switching of the transmission direction has been completed in the adjacent host device is sent to the second slave Determine whether it was received from the I / O terminal,
The notification generation unit further generates a switching failure notification indicating that the adjacent slave device has failed to switch the transmission direction when it is determined that the switching completion notification has not been received within the second predetermined time. And
The slave control unit further includes:
The switching failure notification generated by the notification generation unit is transmitted from the first slave I / O terminal,
17. The ring transmission line system according to claim 16, wherein the input and output of each of the two slave I / O terminals are returned to the same state as before receiving the direction switching command.
前記ホスト制御部は、さらに、前記切替失敗通知が受信された場合、当該切替失敗通知の送信元アドレスに基づいて伝送方向の切替を失敗したスレーブ装置を特定する
請求項17記載のリング状伝送路システム。 The notification generation unit generates the switching failure notification including the address of its own slave device,
The ring-shaped transmission line according to claim 17, wherein, when the switch failure notification is received, the host control unit further identifies a slave device that has failed to switch the transmission direction based on a transmission source address of the switch failure notification. system.
リング状伝送路上の何れかのスレーブ装置において伝送方向の切替を失敗したことを示す切替失敗通知が、前記第2のスレーブI/O端子から受信されたか否かを判定し、
前記第2のスレーブI/O端子から前記切替失敗通知が受信されたと判定された場合、前記第1のスレーブI/O端子から当該切替失敗通知を送信し、
前記2つのスレーブI/O端子を前記方向切替コマンド受信前と同じ状態に戻す
請求項17記載のリング状伝送路システム。 The slave control unit
Determining whether or not a switching failure notification indicating that switching of the transmission direction has failed in any of the slave devices on the ring-shaped transmission path is received from the second slave I / O terminal;
When it is determined that the switching failure notification is received from the second slave I / O terminal, the switching failure notification is transmitted from the first slave I / O terminal;
18. The ring transmission line system according to claim 17, wherein the two slave I / O terminals are returned to the same state as before receiving the direction switching command.
前記ホスト装置は、前記リング状伝送路に接続され入力と出力とを切り替え可能な2つのホストI/O端子を備え、
各スレーブ装置は、前記リング状伝送路に接続され入力と出力とを切り替え可能な2つのスレーブI/O端子を備え、
前記伝送方向切替方法は、
前記ホスト装置において、前記リング状伝送路の伝送方向の切り替えを他の全てのスレーブ装置に指示する方向切替コマンドを生成し、
前記ホスト装置において、前記方向切替コマンドを前記2つのホストI/O端子のうちの一方である第1のホストI/O端子から前記リング状伝送路に送信し、
前記ホスト装置において、前記2つのホストI/O端子のうちの他方である第2のホストI/O端子から前記リング状伝送路を1周した前記方向切替コマンドを受信し、
前記ホスト装置において、前記方向切替コマンドが受信されたとき、前記2つのホストI/O端子と前記リング状伝送路との間の伝送方向を前記方向切替コマンドの送信前と比べて反転させるように前記2つのホストI/O端子の切替を制御する
伝送方向切替方法。 A transmission direction switching method for a ring-shaped transmission line comprising a host device connected to the ring-shaped transmission line and a plurality of slave devices,
The host device includes two host I / O terminals connected to the ring-shaped transmission line and capable of switching between input and output;
Each slave device includes two slave I / O terminals that are connected to the ring-shaped transmission line and can be switched between input and output,
The transmission direction switching method is:
In the host device, generate a direction switching command that instructs all other slave devices to switch the transmission direction of the ring-shaped transmission path,
In the host device, the direction switching command is transmitted from the first host I / O terminal, which is one of the two host I / O terminals, to the ring-shaped transmission line,
In the host device, the direction switching command that has made one round of the ring-shaped transmission line is received from a second host I / O terminal that is the other of the two host I / O terminals,
In the host device, when the direction switching command is received, the transmission direction between the two host I / O terminals and the ring-shaped transmission line is reversed compared to before transmission of the direction switching command. A transmission direction switching method for controlling switching of the two host I / O terminals.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010105943A JP2011238982A (en) | 2010-04-30 | 2010-04-30 | Communication device, ring-shaped transmission path system, and transmission direction switching method |
PCT/JP2011/002200 WO2011135791A1 (en) | 2010-04-30 | 2011-04-14 | Communication device, ring-shaped transmission path system, and transmission direction switching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010105943A JP2011238982A (en) | 2010-04-30 | 2010-04-30 | Communication device, ring-shaped transmission path system, and transmission direction switching method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2011238982A true JP2011238982A (en) | 2011-11-24 |
Family
ID=44861119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010105943A Pending JP2011238982A (en) | 2010-04-30 | 2010-04-30 | Communication device, ring-shaped transmission path system, and transmission direction switching method |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2011238982A (en) |
WO (1) | WO2011135791A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI612429B (en) * | 2016-04-12 | 2018-01-21 | 緯創資通股份有限公司 | Server system and data access method using the same |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2918009B2 (en) * | 1991-06-24 | 1999-07-12 | 日本電気株式会社 | Clock switching method |
JPH0567021A (en) * | 1991-09-10 | 1993-03-19 | Fujitsu Ltd | Serial data communication method and device |
JP4064032B2 (en) * | 2000-02-01 | 2008-03-19 | 株式会社東芝 | Communications system |
-
2010
- 2010-04-30 JP JP2010105943A patent/JP2011238982A/en active Pending
-
2011
- 2011-04-14 WO PCT/JP2011/002200 patent/WO2011135791A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2011135791A1 (en) | 2011-11-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100865192B1 (en) | System and method of message-based power management | |
US8533501B2 (en) | Information processing apparatus and control method of information processing apparatus | |
WO2011036701A1 (en) | Wireless communication apparatus and communication program | |
CN104782081B (en) | Method for shifting the system of socket state and for migrating TCP connection | |
WO2011135791A1 (en) | Communication device, ring-shaped transmission path system, and transmission direction switching method | |
US20050141555A1 (en) | Method for generating commands for network controller modules of peripheral devices | |
TW201520883A (en) | Method for managing a storage system, and associated apparatus and associated computer program product | |
JP2004328262A (en) | Usb hub device, usb peripheral device, and data transmission and reception method | |
WO2020090032A1 (en) | Communication system, communication apparatus, communication method, and program | |
JP2009075710A (en) | Redundant system | |
JP2009217765A (en) | Synchronous transmitting method to multiple destination, its implementation system and processing program | |
JP2015115864A (en) | Data transfer system and control method for data transfer system | |
JP2003022248A (en) | Bus bridge circuit and data transferring method | |
JP2007027996A (en) | Logical connection method and information processor in network | |
CN112817774A (en) | System and method for transaction broadcasting in network on chip | |
US20120047397A1 (en) | Controlling apparatus, method for controlling apparatus and information processing apparatus | |
CN110138605B (en) | PW switching method and device based on virtual port | |
KR102161951B1 (en) | Method for Control message delivery for automatic route configuration in ring topology network | |
JP7283191B2 (en) | Information processing system | |
JP5024493B1 (en) | Integrated circuit and electronic equipment | |
JP4760560B2 (en) | Packet relay device | |
JP6641991B2 (en) | Node and communication method | |
WO2006057349A1 (en) | Management system, device for use in the system, program therefor, and management method | |
JP4220430B2 (en) | Redundant network control system | |
JP2017187973A (en) | Parallel processor and communication control method |