JP5601090B2 - Communication device - Google Patents
Communication device Download PDFInfo
- Publication number
- JP5601090B2 JP5601090B2 JP2010189815A JP2010189815A JP5601090B2 JP 5601090 B2 JP5601090 B2 JP 5601090B2 JP 2010189815 A JP2010189815 A JP 2010189815A JP 2010189815 A JP2010189815 A JP 2010189815A JP 5601090 B2 JP5601090 B2 JP 5601090B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- communication
- address
- communication protocol
- control device
- 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.)
- Active
Links
Images
Description
本発明は、通信装置に関する。 The present invention relates to a communication device.
特許文献1には、ホストデバイスからのレジスタアクセスに対して一元化したレジスタアクセス環境を実現することを目的とした通信モジュールが記載されている。この通信モジュールのマイコンは、XAUIリタイマ(XAUI:10 Gigabit attachment unit interface)によって値が更新されるIEEEレジスタのコピーを所定のタイミングでIEEE/XENPAK仮想レジスタに格納する。そして、マイコンは、MACレイヤからの要求に応じて、MDIOインタフェース(MDIO:MediumDependent Input/Output)を介してIEEE/XENPAK仮想レジスタに格納されたIEEEレジスタのコピーをMACレイヤへ出力する。このようなマイコンは、レジスタの内容を一元管理し、MACレイヤからの要求に対してレジスタの値を高速に送信する。 Japanese Patent Application Laid-Open No. 2005-228561 describes a communication module for the purpose of realizing a register access environment that is unified with respect to register access from a host device. The microcomputer of this communication module stores a copy of the IEEE register whose value is updated by an XAUI retimer (XAUI: 10 Gigabit attachment unit interface) in the IEEE / XENPAK virtual register at a predetermined timing. Then, in response to a request from the MAC layer, the microcomputer outputs a copy of the IEEE register stored in the IEEE / XENPAK virtual register to the MAC layer via an MDIO interface (MDIO: Medium Dependent Input / Output). Such a microcomputer centrally manages the contents of the register and transmits the register value at a high speed in response to a request from the MAC layer.
特許文献2には、DCU(デバイス制御ユニット)でPHYIC(トランシーバIC)のレジスタをエミュレーションするにあたり、PHYICでのみ検出される高速系のエラーとDCUでのみ検出される低速系のエラーの発生に伴うレジスタ内容の不整合を解消することを目的としたトランシーバモジュールが記載されている。このトランシーバモジュールは、PHY_LASI_Statusレジスタ(LASIレジスタ)(LASI:Link Alarm Status Interrupt)、PHYIC、及び、DCUを備える。PHYICは、LASI信号の生成可否がエラー要因に応じて設定されるPHY_LASI_Controlレジスタとを有する。DCUは、PHY_LASI_Controlレジスタ(エラー要因により当該エラーの発生を外部に通知すべきか否かを設定するアラームコントロールレジスタ)をエミュレーションしたレジスタを有する。そして、PHYICが、エラー要因によらず発生したエラーを特定するUnmask信号を生成してDCUに出力し、DCUが、Unmask信号に基づいて当該エラーをホストに通知すると共に、PHY_LASI_Statusレジスタの内容をDCU_LASI_Statusレジスタに書き込む。 In Patent Document 2, when a PHYIC (transceiver IC) register is emulated by a DCU (device control unit), a high-speed error detected only by the PHYIC and a low-speed error detected only by the DCU are accompanied. A transceiver module is described that aims to eliminate register content mismatch. This transceiver module includes a PHY_LASI_Status register (LASI register) (LASI: Link Alarm Status Interrupt), PHYIC, and DCU. The PHYIC includes a PHY_LASI_Control register in which whether or not a LASI signal can be generated is set according to an error factor. The DCU has a register that emulates a PHY_LASI_Control register (an alarm control register that sets whether or not the occurrence of the error should be notified to the outside due to an error factor). Then, the PHYIC generates a Unmask signal that identifies the error that occurred regardless of the error cause, and outputs it to the DCU. The DCU notifies the host of the error based on the Unmask signal, and the contents of the PHY_LASI_Status register are stored in the DCU_LASI_Status register. Write to register.
しかし、単にレジスタの管理を行うだけでは、通信方式の異なる複数のデバイスが混在する場合に対応することは困難である。通信方式に応じてデータの送信先の特定やデータの構成が異なるためである。通信方式の異なる複数のデバイスが混在する場合の対応として、データを予めメモリに保持し、このデータをそれぞれの通信方式に応じて、データの構成を変換し送信先の特定を行うこと等が考えられるが、このためには比較的大きなメモリが必要となる。また、対応可能なデバイスの数はメモリの大きさに依存して制限されることとなる。そこで、本発明の目的は、上記の事項を鑑みてなされたものであり、通信方式の異なる複数のデバイスが通信装置内に混在する場合であっても、通信装置のメモリの大きさを調整することなく、デバイスの数の増減が容易に行える通信装置を提供することである。 However, it is difficult to deal with a case where a plurality of devices having different communication methods coexist simply by managing registers. This is because the data transmission destination and the data configuration differ depending on the communication method. As a countermeasure when multiple devices with different communication methods coexist, it is possible to store data in memory in advance, convert the data configuration according to each communication method, and specify the transmission destination, etc. However, this requires a relatively large memory. Further, the number of devices that can be handled is limited depending on the size of the memory. Therefore, an object of the present invention has been made in view of the above matters, and adjusts the size of a memory of a communication device even when a plurality of devices having different communication methods coexist in the communication device. It is an object of the present invention to provide a communication apparatus that can easily increase or decrease the number of devices.
本発明の一側面に係る通信装置は、外部機器と通信を行う通信装置であって、(1)MDIO通信プロトコル(Medium Dependent Input/Output)及びSPI通信プロトコル(System Packet Interface)に基づく通信が可能であり、上記外部機器と当該通信装置との通信を制御する制御装置と、(2)上記制御装置に接続されており、MDIO通信プロトコル、SPI通信プロトコル、のうち何れか一に対応する第1の通信プロトコルに基づいて上記制御装置と通信を行う第1のデバイスと、(3)上記制御装置に接続されており、MDIO通信プロトコル、SPI通信プロトコル、のうち何れか一に対応する第2の通信プロトコルに基づいて上記制御装置と通信を行う第2のデバイスと、を備える。上記制御装置は、上記外部機器に接続されている場合に上記外部機器からMDIO通信プロトコルに基づく通信データを受けると上記通信データに含まれており上記通信データの送信先を示すアドレスデータを参照し、上記アドレスデータが上記第1のデバイスを示している場合には上記第1の通信プロトコルを用いて上記通信データに対応するデータを上記第1のデバイスに送信し、上記アドレスデータが上記第2のデバイスを示している場合には上記第2の通信プロトコルを用いて上記通信データに対応するデータを上記第2のデバイスに送信し、上記アドレスデータは、上記第1のデバイス及び上記第2のデバイスのうち何れか一に対応するレジスタアドレスを含む。 A communication apparatus according to an aspect of the present invention is a communication apparatus that communicates with an external device, and (1) communication based on MDIO communication protocol (Medium Dependent Input / Output) and SPI communication protocol (System Packet Interface) is possible. A control device for controlling communication between the external device and the communication device; and (2) a first device connected to the control device and corresponding to any one of the MDIO communication protocol and the SPI communication protocol. A first device that communicates with the control device based on the communication protocol; and (3) a second device connected to the control device and corresponding to any one of the MDIO communication protocol and the SPI communication protocol. A second device that communicates with the control device based on a communication protocol. When the control device receives communication data based on the MDIO communication protocol from the external device when connected to the external device, the control device refers to address data indicating the transmission destination of the communication data included in the communication data. When the address data indicates the first device, data corresponding to the communication data is transmitted to the first device using the first communication protocol, and the address data is the second device. The second communication protocol is used to transmit data corresponding to the communication data to the second device, and the address data includes the first device and the second device. A register address corresponding to one of the devices is included.
この通信装置によれば、MDIO通信プロトコル及びSPI通信プロトコルに基づいて通信が行えるので、通信装置が有する複数のデバイスのそれぞれが、MDIO通信プロトコル及びSPI通信プロトコルの何れのプロトコルに基づいて通信を行う場合であっても、通信データに含まれるアドレスデータを参照すれば、外部装置からの通信データに応じて各デバイスにデータを送信できる。また、MDIO通信プロトコルに基づく通信データに含まれるアドレスデータを参照して各デバイスにデータが送信されるので、通信装置のメモリの大きさを調整しなくても通信装置の有するデバイスの数を増減させることが可能となる。 According to this communication apparatus, since communication can be performed based on the MDIO communication protocol and the SPI communication protocol, each of the plurality of devices included in the communication apparatus performs communication based on any of the MDIO communication protocol and the SPI communication protocol. Even in this case, referring to the address data included in the communication data, the data can be transmitted to each device according to the communication data from the external device. In addition, since data is transmitted to each device with reference to address data included in communication data based on the MDIO communication protocol, the number of devices included in the communication device can be increased or decreased without adjusting the memory size of the communication device. It becomes possible to make it.
この制御装置は、上記第1の通信プロトコルがMDIO通信プロトコルであって上記アドレスデータが上記第1のデバイスを示している場合、上記通信データに含まれる内容を有しており上記第1のデバイスに対応するポートアドレスを有するデータを、上記第1のデバイスに送信する。このように、ポートアドレスを用いるので、デバイスごとに新たなアドレスを設けることなく、デバイスの選択が行える。 When the first communication protocol is the MDIO communication protocol and the address data indicates the first device, the control device has contents included in the communication data, and the first device Data having a port address corresponding to is transmitted to the first device. Thus, since the port address is used, the device can be selected without providing a new address for each device.
この上記制御装置は、上記第1のデバイスに対応するレジスタアドレスと、当該通信装置において割り当てられており上記第1のデバイスに対応するデバイスアドレス及びポートアドレスとを関連付け、且つ、上記第2のデバイスに対応するレジスタアドレスと、当該通信装置において割り当てられており上記第2のデバイスに対応するデバイスアドレス及びポートアドレスとを関連付けるテーブルデータを格納する記憶装置を有しており、上記アドレスデータと上記テーブルデータとを参照して上記第1のデバイスに対応するポートアドレスを特定する。このように、テーブルデータを用いて、送信先のデバイスを特定できるので、デバイスの数に増減があってもテーブルデータの変更で対応可能となり、また、メモリの大きさの調整も不要となる。 The control device associates a register address corresponding to the first device with a device address and port address assigned in the communication device and corresponding to the first device, and the second device. And a storage device that stores table data that associates a register address that is assigned in the communication device and a device address and a port address that correspond to the second device, the address data and the table The port address corresponding to the first device is specified with reference to the data. As described above, since the transmission destination device can be specified using the table data, it is possible to cope with the change in the table data even if the number of devices is increased or decreased, and it is not necessary to adjust the size of the memory.
この制御装置は、上記第2の通信プロトコルがMDIO通信プロトコルであって上記通信データに含まれているMDIO通信プロトコルのオペレーションコード(operation code)が書き込み指示を示している場合に、上記通信データに含まれる内容を有しており当該通信装置において未使用のポートアドレスを有するデータを、上記第2のデバイスに送信する。従って、書き込み指示の対象となっていないデバイスに対しては、未使用のポートアドレスが用いられるので書き込み指示がこのデバイスで実行されるのを確実に回避できる。 When the second communication protocol is the MDIO communication protocol and the operation code of the MDIO communication protocol included in the communication data indicates a write instruction, the control device Data having an included content and having an unused port address in the communication apparatus is transmitted to the second device. Accordingly, since an unused port address is used for a device that is not the target of the write instruction, it is possible to reliably avoid the write instruction being executed by this device.
この制御装置は、上記第1の通信プロトコルがSPI通信プロトコルであって上記アドレスデータが上記第1のデバイスに対応している場合に、上記通信データをSPI通信プロトコルに基づくデータに変換し、この変換後のデータを上記第1のデバイスに送信する。従って、SPI通信プロトコルに基づく通信を行うデバイスであっても、外部装置からの通信データに応じて、データの送信が可能となる。 The control device converts the communication data into data based on the SPI communication protocol when the first communication protocol is an SPI communication protocol and the address data corresponds to the first device, The converted data is transmitted to the first device. Therefore, even a device that performs communication based on the SPI communication protocol can transmit data according to communication data from an external device.
この制御装置によって上記通信データから変換された上記SPI通信プロトコルに基づくデータは、MDIO通信プロトコルのオペレーションコードに対応するコマンドデータを含み、上記コマンドデータは、12ビット以下のデータであって、少なくとも、アドレス設定、書き込み指示、読み出し指示、の何れかを示す。従って、制御装置によって作成されるSPI通信プロトコルに基づくデータは、MDIO通信プロトコルのオペレーションコードに対応するコマンドデータを含むので、制御装置は、MDIO通信プロトコルに基づく外部装置からの通信データに含まれる命令をSPI通信プロトコルに基づくデータに変換可能となる。また、制御装置によって作成されるSPI通信プロトコルに基づくデータは、12bit以下のデータなので、作成及び送受信に要する時間を短くできる。 Data based on the SPI communication protocol converted from the communication data by the control device includes command data corresponding to an operation code of the MDIO communication protocol, and the command data is data of 12 bits or less, and at least Indicates one of address setting, write instruction, and read instruction. Therefore, since the data based on the SPI communication protocol created by the control device includes command data corresponding to the operation code of the MDIO communication protocol, the control device can include a command included in the communication data from the external device based on the MDIO communication protocol. Can be converted into data based on the SPI communication protocol. Moreover, since the data based on the SPI communication protocol created by the control device is data of 12 bits or less, the time required for creation and transmission / reception can be shortened.
本発明によれば、通信方式の異なる複数のデバイスが通信装置内に混在する場合であっても、通信装置のメモリの大きさを調整することなく、デバイスの数の増減が容易に行える通信装置を提供することができる。 According to the present invention, even when a plurality of devices having different communication methods coexist in the communication apparatus, the communication apparatus can easily increase or decrease the number of devices without adjusting the memory size of the communication apparatus. Can be provided.
以下、図面を参照して、本発明に係る好適な実施形態について詳細に説明する。なお、図面の説明において、可能な場合には、同一要素には同一符号を付し、重複する説明を省略する。図1は、実施形態に係る通信装置1の構成を説明するための図である。通信装置1は、制御装置11、デバイス13,15,17を備える。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. In the description of the drawings, if possible, the same elements are denoted by the same reference numerals, and redundant description is omitted. FIG. 1 is a diagram for explaining a configuration of a
制御装置11は、CPU、送受信装置、及び、記憶装置11a(ROMやRAM等)を有する。CPUは、記憶装置11aに格納されているプログラムを実行することによって、制御装置11(特に、送受信装置及び記憶装置11a)を統括的に制御し、送受信装置は、MDIO通信プロトコル(Medium Dependent Input/Output)及びSPI通信プロトコル(System Packet Interface)に基づく通信が可能である。MDIO通信プロトコルは、数MHzのクロックで駆動されるシリアル通信規格である。MDIO通信プロトコルに基づく通信データを、以下、MDIO通信データといい、SPI通信プロトコルに基づく通信データを、以下、SPI通信データという。記憶装置11aは、テーブルデータTDを格納する。このテーブルデータTDは、デバイス13に対応するレジスタアドレスと、デバイス13に対応しており通信装置1において割り当てられているデバイスアドレス及びポートアドレスとを関連付け、且つ、デバイス15に対応するレジスタアドレスと、デバイス15に対応しており通信装置1において割り当てられているデバイスアドレス及びポートアドレスとを関連付ける(図2(B)を参照)。通信装置1において割り当てられているポートアドレスを内部ポートアドレスといい、通信装置1において割り当てられているレジスタアドレスを内部レジスタアドレスという。
The
制御装置11は、通信装置1の外部に設けられている外部装置3に接続されている。制御装置11は、MDIO通信プロトコルに基づいて外部装置3と通信する。制御装置11には、通信装置1が有する一又は複数のデバイスに接続されており、MDIO通信プロトコル、又は、SPI通信プロトコルに基づいて、この一又は複数のデバイスと通信する。本実施形態において、このデバイスは、デバイス13,15,17である。制御装置11は、MDIO通信プロトコルに基づいてデバイス13及びデバイス15と通信する。制御装置11は、SPI通信プロトコルに基づいてデバイス17と通信する。
The
制御装置11は、外部装置3からMDIO通信データを受けると、このMDIO通信データに含まれておりこのMDIO通信データの送信先を示すアドレスデータを参照する。そして、制御装置11は、アドレスデータがデバイス13,15に対応している場合にはMDIO通信プロトコルを用いてこのMDIO通信データに対応するデータをデバイス13,15に送信し、アドレスデータがデバイス17に対応している場合にはSPI通信プロトコルを用いてこのMDIO通信データに対応するデータをデバイス17に送信する。ここで、アドレスデータは、デバイス13,15,17のうち何れか一に対応するレジスタアドレスを含む。
When the
デバイス13及びデバイス15は、それぞれ、一例として、MDIO通信プロトコルに基づいて通信が行える光受信モジュール及び光送信モジュールであることができる。デバイス17は、一例として、SPI通信プロトコルに基づいて通信が行え通信装置1内の温度をモニタする温度モニタ回路であることができる。
For example, the
なお、デバイス13,15は、光受信モジュール及び光送信モジュールに限らず、他のデバイスであってもよいし、デバイス17は、温度モニタ回路に限らず、他のデバイスであってもよい。通信装置1は、MDIO通信プロトコルに基づいて通信を行うデバイスを一台のみ有していてもよいし、3台以上有していてもよい。通信装置1は、SPI通信プロトコルに基づいて通信を行うデバイスを2台以上有していてもよい。通信装置1は、MDIO通信プロトコルに基づいて通信を行うデバイスのみを有していてもよいし、又は、SPI通信プロトコルに基づいて通信を行うデバイスのみを有していてもよい。
The
外部装置3から制御装置11に送信されるMDIO通信データに含まれるポートアドレス、デバイスアドレス及びレジスタアドレスの具体例を、図2(A)に示す。外部装置3から制御装置11に送信されるMDIO通信データに含まれるポートアドレスは、外部ピン(通信装置1等の通信装置ごとに割り当てられている)に応じて任意に設定可能である。本実施形態では、一例として、通信装置1のポートアドレスに“0”が割り当てられている。外部装置3から制御装置11に送信されるMDIO通信データに含まれるデバイスアドレスは、一般には、“1”、“3”、“4”などが割り当てられている。本実施形態では、一例として、通信装置1のデバイスアドレスに“1”が割り当てられている。外部装置3から制御装置11に送信されるMDIO通信データに含まれるレジスタアドレスは、デバイス13,15,17の何れか一を特定するためのアドレスであり、例えば、“0000h-02FFh”、“C000h-C3FFh”及び“8000h-87FFh”の範囲内の何れか一の値が指定される。本実施形態では、一例として、デバイス13には“0000h-02FFh”の範囲内の何れか一の値が割り当てられており、デバイス15には“C000h-C3FFh”の範囲内の何れか一の値が割り当てられており、デバイス17には“8000h-87FFh”の範囲内の何れか一の値が割り当てられている。
A specific example of the port address, device address, and register address included in the MDIO communication data transmitted from the
外部装置3からのMDIO通信データに応じて制御装置11からデバイス13,15,17に送信するMDIO通信データに含まれる内部ポートアドレス、内部デバイスアドレス及びレジスタアドレスの具体例を図2(B)に示す。制御装置11からデバイス13,15に送信するMDIO通信データに含まれる内部ポートアドレスは、MDIO通信プロトコルに基づく通信を行うデバイス13,15ごとに割り当てられている。SPI通信プロトコルに基づく通信を行うデバイス17に対しては、内部ポートアドレスは不要であり、よって、デバイス17に内部ポートアドレスは割り当てられていない。本実施形態では、一例として、デバイス13の内部ポートアドレスに“3”が割り当てられており、デバイス15の内部ポートアドレスに“5”が割り当てられている。
A specific example of the internal port address, internal device address, and register address included in the MDIO communication data transmitted from the
また、制御装置11からデバイス13,15に送信するMDIO通信データに含まれる内部デバイスアドレスは、MDIO通信プロトコルに基づく通信を行うデバイス13,15ごとに割り当てられている。SPI通信プロトコルに基づく通信を行うデバイス17に対しては、デバイスアドレスは不要であり、よって、デバイス17に内部デバイスアドレスは割り当てられていない。本実施形態では、一例として、デバイス13の内部デバイスアドレスに“1”が割り当てられており、デバイス15の内部デバイスアドレスに“4”が割り当てられている。また、制御装置11からデバイス13,15に送信するMDIO通信データに含まれるレジスタアドレスは、外部装置3から制御装置11に送信されるMDIO通信データに含まれるレジスタアドレスと同一である。
Also, the internal device address included in the MDIO communication data transmitted from the
以下、図3〜図6を参照して、制御装置11の動作を説明する。図3〜図6は、制御装置11が受信及び送信する通信データを示す図である。まず、図3〜図6に示すMDIO通信データの内容について説明する。“PRE”は、MDIO通信プロトコルの“preamble”を表すデータであり、32bitの全てに“1”が設定されている。“ST”は、MDIO通信プロトコルの“start”を表すデータであり、2bitの全てに“1”が設定されている。“OP”は、MDIO通信プロトコルの“operationcode”を表す2bitのデータである。“OP”の2bitのデータは、命令を表すデータ(以下、コマンドデータという場合がある)であり、アドレス指定の命令を表すデータの場合“00”であり、書き込み指示の命令を表すデータの場合“01”であり、読み出し指示の命令を表すデータの場合“11”又は“10”である。
Hereinafter, the operation of the
“PRTAD”は、MDIO通信プロトコルの“port address”を表す5bitのデータである。図2に示すように、外部装置3が制御装置11に送信するMDIO通信データに含まれている“PRTAD”には“0”(ポートアドレス)が設定されており、制御装置11がデバイス13に送信するMDIO通信データに含まれる“PRTAD”には“3”(内部ポートアドレス)が設定されており、制御装置11がデバイス15に送信するMDIO通信データに含まれる“PRTAD”には“5”(内部ポートアドレス)が設定されている。
“PRTAD” is 5-bit data representing “port address” of the MDIO communication protocol. As shown in FIG. 2, “0” (port address) is set in “PRTAD” included in the MDIO communication data transmitted from the
“DEVAD”は、MDIO通信プロトコルの“device address”を表す5bitのデータである。図2に示すように、外部装置3が制御装置11に送信するMDIO通信データに含まれている“DEVAD”には“1”(デバイスアドレス)が設定されており、制御装置11がデバイス13に送信するMDIO通信データに含まれる“DEVAD”には“1”(内部デバイスアドレス)が設定されており、制御装置11がデバイス15に送信するMDIO通信データに含まれる“DEVAD”には“4”(内部デバイスアドレス)が設定されている。
“DEVAD” is 5-bit data representing “device address” of the MDIO communication protocol. As shown in FIG. 2, “DEVAD” included in the MDIO communication data transmitted from the
“TA”は、MDIO通信プロトコルの“turnround”を表すデータであり、信号方向の切り替え(送信から受信への切り替え、又は、受信から送信への切り替え)に要するタイミングギャップ(時間間隔)を表している。このタイミングギャップは、1bitを単位として規定されている。“ADDRESS”は、レジスタアドレスを表すデータである。図2に示すように、外部装置3が制御装置11に送信するMDIO通信データに含まれる“ADDRESS”には、デバイス13が指定されている場合には“0000h-02FFh”の範囲内の何れか一の値が設定され、デバイス15が指定されている場合には“C000h-C3FFh”の範囲内の何れか一の値が設定され、デバイス17が指定されている場合には“8000h-87FFh”の範囲内の何れか一の値が設定されている。
“TA” is data representing “turnround” of the MDIO communication protocol, and represents a timing gap (time interval) required for switching the signal direction (switching from transmission to reception or switching from reception to transmission). Yes. This timing gap is defined in units of 1 bit. “ADDRESS” is data representing a register address. As shown in FIG. 2, “ADDRESS” included in the MDIO communication data transmitted from the
“DATA”は、デバイス13、デバイス15に書き込むデータ、又は、デバイス13、デバイス15から読み出されたデータ、が設定される。“DATA”に設定されるデータは、“OP”が書き込み指示の命令を表すデータの場合、デバイス13、デバイス15に書き込むデータであり、“OP”が読み出し指示の命令を表すデータの場合、デバイス13、デバイス15から読み出されたデータである。
In “DATA”, data to be written to the
次に、図5及び図6に示すSPI通信データの内容について説明する。SPI通信データは、“SETAD”、“WRITE”及び“READ”等、MDIO通信プロトコルの“OP”に対応するコマンドデータを含む。SPI通信データに含まれるコマンドデータは12bit以下のデータである。“SETAD”は、SPI通信プロトコルの命令を表すデータであり、アドレス指定の命令を表すデータである。“WRITE”は、SPI通信プロトコルの命令を表すデータであり、書き込み指示の命令を表すデータである。“READ”は、SPI通信プロトコルの命令を表すデータであり、読み出し指示の命令を表すデータである。SPI通信データの“DATA”は、デバイス17に書き込むデータ、又は、デバイス17から読み出されたデータ、が設定される。SPI通信データの“DATA”に設定されるデータは、SPI通信データに含まれているSPI通信プロトコルの命令を表すデータが“WRITE”の場合、デバイス17に書き込むデータであり、SPI通信データに含まれているSPI通信プロトコルの命令を表すデータが“READ”の場合、デバイス17から読み出されたデータである。
Next, the contents of the SPI communication data shown in FIGS. 5 and 6 will be described. The SPI communication data includes command data corresponding to “OP” of the MDIO communication protocol such as “SETAD”, “WRITE”, and “READ”. Command data included in the SPI communication data is data of 12 bits or less. “SETAD” is data representing an instruction of the SPI communication protocol, and is data representing an instruction for addressing. “WRITE” is data representing an instruction of the SPI communication protocol, and is data representing an instruction of a write instruction. “READ” is data representing an instruction of the SPI communication protocol, and is data representing an instruction of a read instruction. In the “DATA” of the SPI communication data, data to be written to the
ここで、制御装置11が行う送受信処理の概要を説明する。まず、制御装置11がデバイス13,15にデータを送信する場合について説明する。制御装置11は、外部装置3からMDIO通信データの1bit(データd1という)を受信すると、この受信と同時に、デバイス13及びデバイス15のそれぞれに対しては、この受信したデータd1に対応する1bitのデータを送信する。そして、この後、制御装置11は、データd1に続くMDIO通信データの次の1bit(データd2という)を外部装置3から受信すると、この受信と同時に、デバイス13及びデバイス15のそれぞれに対しては、この受信したデータd2に対応する1bitのデータを送信する。デバイス13に対して送信される1bitのデータと、デバイス15に対して送信される1bitのデータとは、同一であるか、又は相違する。
Here, an outline of transmission / reception processing performed by the
具体的には、制御装置11は、例えば、外部装置3から送信されるMDIO通信データに含まれる第1番目の1bitのデータd1を受信すると、この受信と同時に、デバイス13及びデバイス15のそれぞれに対し、この受信したデータd1に対応する1bitのデータを送信する。データd1に対応しておりデバイス13に対して送信される1bitのデータと、データd1に対応しておりデバイス15に対して送信される1bitのデータとは、同一であるか、又は相違する。この後、制御装置11は、外部装置3から送信されるMDIO通信データに含まれる第2番目の1bitのデータd2を受信すると、この受信と同時に、デバイス13及びデバイス15のそれぞれに対し、この受信したデータd2に対応する1bitのデータを送信する。データd2に対応しておりデバイス13に対して送信される1bitのデータと、データd2に対応しておりデバイス15に対して送信される1bitのデータとは、同一であるか、又は相違する。
Specifically, for example, when the
制御装置11は、デバイス13及びデバイス15等、MDIO通信プロトコルに基づく通信を行うデバイスに対しては、このようなデータの受信及び送信を行う。すなわち、制御装置11は、デバイス13及びデバイス15に対しては、外部装置3からのMDIO通信データの受信と、デバイス13及びデバイス15に対するMDIO通信データ(外部装置3から受信したMDIO通信データに対応するデータ)の送信とを、並行して行う(並行して行う、とは、1bitのデータを受信すると、この受信と同時に、この受信したデータに対応する1bitのデータを送信する意であり、以下同様。)。
The
次に、制御装置11がデバイス17にデータを送信する場合について説明する。制御装置11は、外部装置3から受信したMDIO通信データに含まれる“PRE”、“ST”及び“OP”の受信が完了するまで、SPI通信プロトコルに基づく通信を行うデバイス17にデータ送信を行わない。そして、制御装置11は、このMDIO通信データに含まれる“OP”の受信が完了した後に、この“OP”に続くMDIO通信データの“PRTAD”、“DEVAD”、“TA”、“ADDRESS”、及び、“DATA”の内容に基づいて、SPI通信データ(“SETAD”、“WRITE”、“READ”等)を作成し、この作成したSPI通信データをデバイス17に送信する。制御装置11は、デバイス17等、SPI通信プロトコルに基づく通信を行うデバイスに対しては、このようなデータの受信及び送信を行う。
Next, a case where the
図3を参照して制御装置11の動作を詳細に説明する。図3には、デバイス15にデータを書き込むために用いられる通信データが示されている。
The operation of the
データD11a及びデータD11bは、制御装置11が外部装置3から受信するMDIO通信データである。データD11は、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD11bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”を含む。制御装置11は、データD11aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に受信し、データD11bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”の順に受信する。
Data D11a and data D11b are MDIO communication data received by the
データD11aの“OP”にはアドレス指定の命令を表す2bitのデータ“00”が設定され、データD11bの“OP”には書き込み指示の命令を表す2bitのデータ“01”が設定されている。データD11a及びデータD11bの“DEVAD”にはデバイス15のデバイスアドレスが設定され、データD11a及びデータD11bの“ADDRESS”にはデバイス15のレジスタアドレスが設定されている。データD11bの“DATA”にはデバイス15(データD11aの“ADDRESS”に設定されているレジスタアドレスに対応するデバイス)に書き込むデータが設定されている。
2-bit data “00” representing an address designation instruction is set in “OP” of data D11a, and 2-bit data “01” representing a write instruction instruction is set in “OP” of data D11b. The device address of the
データD12a及びデータD12bは、制御装置11がデバイス13に送信するMDIO通信データである。データD12aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD12bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”を含む。制御装置11は、データD12aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に送信し、データD12bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”の順に送信する。
Data D12a and data D12b are MDIO communication data transmitted from the
データD13a及びデータD13bは、制御装置11がデバイス15に送信するMDIO通信データである。データD13aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD13bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”を含む。制御装置11は、データD13aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に送信し、データD13bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”の順に送信する。
Data D13a and data D13b are MDIO communication data transmitted from the
制御装置11は、データD11aを受信した後に、データD11bを受信する。制御装置11は、データD12a及びデータD13aを送信した後に、データD12b及びデータD13bを送信する。制御装置11は、データD11aの受信とデータD12a及びデータD13aの送信とを並行して行い、データD11bの受信とデータD12b及びデータD13bの送信とを並行して行う。
The
制御装置11は、データD11aの“OP”の内容(アドレス指定の命令)から、データD11aがアドレス指定の通信データであると判断する。制御装置11は、データD12aの“PRTAD”をデバイス13の内部ポートアドレスである“3”に設定し、データD12aの“DEVAD”をデバイス13の内部デバイスアドレスである“1”に設定する。制御装置11は、データD13aの“PRTAD”をデバイス15の内部ポートアドレスである“5”に設定し、データD13aの“DEVAD”をデバイス15の内部デバイスアドレスである“4”に設定する。制御装置11は、データD11aの“ADDRESS”の内容(デバイス15のレジスタアドレス)とテーブルデータTDとに基づいて、データD11aに続くデータD11bの“OP”に設定されている命令を行うデバイスがデバイス15であると判断する。制御装置11は、データD11bの“OP”の内容(書き込み指示の命令)から、データD11bが書き込み指示を行うための通信データであると判断する。制御装置11は、データD12bの“PRTAD”を通信装置1において未使用の内部ポートアドレス(ダミーポートアドレス)に設定し、データD13bの“PRTAD”をデバイス15の内部ポートアドレスである“5”に設定し、データD13bの“DEVAD”をデバイス15の内部デバイスアドレスである“4”に設定する。
The
データD11aの“ADDRESS”によって指定されているデバイスはデバイス15であってデバイス13ではないので、デバイス13に送信されるデータD12bの“PRTAD”には、通信装置1で未使用の内部ポートアドレスが設定される。データD12bは、データD11a、11bに含まれている“PRTAD”を通信装置1で未使用の内部ポートアドレスに変更して得られるデータである。このようなダミーポートアドレスの設定により、データD11aの“ADDRESS”によって指定されているデバイスとは異なるデバイス13がデータD11bの書き込み指示を実行することを防止できる。また、データD11aの“ADDRESS”によって指定されているデバイスはデバイス15なので、デバイス15に送信されるデータD13bの“PRTAD”には、デバイス15の内部ポートアドレスである“5”が設定される。これによって、デバイス15は、制御装置11から送信されるデータD13bに応じて、データD11bの書き込み指示を実行できる。
Since the device specified by “ADDRESS” of the data D11a is the
なお、データD11a、データD12a及びデータD13aは、“PRTAD”及び“DEVAD”を除いて同一である。データD11b、データD12b及びデータD13bも、“PRTAD”及び“DEVAD”を除いて同一である。 The data D11a, the data D12a, and the data D13a are the same except for “PRTAD” and “DEVAD”. The data D11b, the data D12b, and the data D13b are the same except for “PRTAD” and “DEVAD”.
図4を参照して制御装置11の動作を詳細に説明する。図4には、デバイス15からデータを読み出すために用いられる通信データが示されている。
The operation of the
データD14a及びデータD14bは、制御装置11が外部装置3から受信するMDIO通信データである。データD14aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD14bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”を含む。制御装置11は、データD14aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に受信し、データD14bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”の順に受信する。
Data D14a and data D14b are MDIO communication data received by the
データD14aの“OP”にはアドレス指定の命令を表す2bitのデータ“00”が設定され、データD14bの“OP”には読み出し指示の命令を表す2bitのデータ“11”又は“10”が設定されている。データD14a及びデータD14bの“DEVAD”にはデバイス15のデバイスアドレスが設定され、データD14a及びデータD14bの“ADDRESS”にはデバイス15のレジスタアドレスが設定されている。
2-bit data “00” representing an address designation command is set in “OP” of data D14a, and 2-bit data “11” or “10” representing a read instruction command is set in “OP” of data D14b. Has been. The device address of the
データD15a及びデータD15bは、制御装置11がデバイス13に送信するMDIO通信データである。データD15aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD15bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”を含む。制御装置11は、データD15aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に送信し、データD15bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”の順に送信する。
Data D15a and data D15b are MDIO communication data transmitted from the
データD16a及びデータD16bは、制御装置11がデバイス15に送信するMDIO通信データである。データD16aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD16bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”を含む。制御装置11は、データD16aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に送信し、データD16bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”の順に送信する。
Data D16a and data D16b are MDIO communication data transmitted from the
データD21は、制御装置11が外部装置3に送信するデータである。データD22は、制御装置11がデバイス13から受信するデータであってデバイス13によって読み出されたデータである。データD23は、制御装置11がデバイス15から受信するデータであってデバイス15によって読み出されたデータである。データD21は、データD23と同一である。
Data D <b> 21 is data that the
制御装置11は、データD14aを受信した後に、データD14bを受信する。制御装置11は、データD15a及びデータD16aを送信した後に、データD15b及びデータD16bを送信する。制御装置11は、データD14bを受信した後に、データD21を送信する。制御装置11は、データD15b及びデータD16bを送信した後に、データD22及びデータD23を受信する。制御装置11は、データD14aの受信とデータD15a及びデータD16aの送信とを並行して行い、データD14bの受信とデータD15b及びデータD16bの送信とを並行して行う。制御装置11は、データD22及びデータD23の受信とデータD21の送信とを並行して行う。
The
制御装置11は、データD14aの“OP”の内容(アドレス指定の命令)から、データD14aがアドレス指定を行うための通信データであると判断する。制御装置11は、データD15aの“PRTAD”をデバイス13の内部ポートアドレスである“3”に設定し、データD15aの“DEVAD”をデバイス13の内部デバイスアドレスである“1”に設定する。制御装置11は、データD16aの“PRTAD”をデバイス15の内部ポートアドレスである“5”に設定し、データD16aの“DEVAD”をデバイス15の内部デバイスアドレスである“4”に設定する。制御装置11は、データD14aの“ADDRESS”の内容(デバイス15のレジスタアドレス)とテーブルデータTDとに基づいて、データD14aに続くデータD14bの“OP”に設定されている命令を行うデバイスがデバイス15であると判断する。
The
制御装置11は、データD14bの“OP”の内容(読み出し指示の命令)から、データD14bが読み出し指示を行うための通信データであると判断する。制御装置11は、データD15bの“PRTAD”をデバイス13の内部ポートアドレスである“3”に設定し、データD15bの“DEVAD”をデバイス13の内部デバイスアドレスである“1”に設定する。制御装置11は、データD16bの“PRTAD”をデバイス15の内部ポートアドレスである“5”に設定し、データD16bの“DEVAD”をデバイス15の内部デバイスアドレスである“4”に設定する。
The
制御装置11は、データD15aの“TA”に設定されているタイミングギャップ内にデバイス13が制御装置11に送信したデータD22と、データD16aの“TA”に設定されているタイミングギャップ内にデバイス15が制御装置11に送信したデータD23とを受信する。制御装置11は、データD14aの“TA”に設定されているタイミングギャップ内にデータD21を外部装置3に送信する。データD14aの“TA”に設定されているタイミングギャップと、データD15aの“TA”に設定されているタイミングギャップと、データD16aの“TA”に設定されているタイミングギャップと、は同一である。
The
データD14aの“ADDRESS”によって指定されているデバイスはデバイス15であってデバイス13ではないので、制御装置11はデバイス15から送信されるデータD23のみを制御装置11に送信し、デバイス13から送信されるデータD22は制御装置11に送信されない。これによって、デバイス15は、制御装置11から送信されるデータD16bに応じて、データD14bの読み出し指示を実行できる。
Since the device specified by “ADDRESS” of the data D14a is the
なお、データD14a、データD15a及びデータD16aは、“PRTAD”及び“DEVAD”を除いて同一であり、データD14b、データD15b及びデータD16bも、“PRTAD”及び“DEVAD”を除いて同一である。 The data D14a, the data D15a, and the data D16a are the same except for “PRTAD” and “DEVAD”, and the data D14b, the data D15b, and the data D16b are also the same except for “PRTAD” and “DEVAD”.
図5を参照して制御装置11の動作を詳細に説明する。図5には、デバイス17にデータを書き込むために用いられる通信データが示されている。
The operation of the
データD17a及びデータD17bは、制御装置11が外部装置3から受信するMDIO通信データである。データD17aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD17bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”を含む。制御装置11は、データD17aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に受信し、データD17bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“DATA”の順に受信する。
Data D17a and data D17b are MDIO communication data received by the
データD17aの“OP”にはアドレス指定の命令を表す2bitのデータ“00”が設定され、データD17bの“OP”には書き込み指示の命令を表す2bitのデータ“01”が設定されている。データD17a及びデータD17bの“ADDRESS”にはデバイス17のレジスタアドレスが設定されている。データD17bの“DATA”にはデバイス17(データD17aの“ADDRESS”に設定されているレジスタアドレスに対応するデバイス)に書き込むデータが設定されている。
2-bit data “00” representing an address designation instruction is set in “OP” of data D17a, and 2-bit data “01” representing a write instruction instruction is set in “OP” of data D17b. The register address of the
データD18a及びデータD18bは、制御装置11がデバイス17に送信するSPI通信データである。データD18aは“SETAD”及び“ADDRESS”を含み、データD18bは“WRITE”及び“DATA”を含む。制御装置11は、データD18aを、“SETAD”、“ADDRESS”の順に送信し、データD18bを、“WRITE”、“DATA”の順に送信する。
Data D18a and data D18b are SPI communication data transmitted from the
制御装置11は、データD17aを受信した後に、データD17bを受信する。制御装置11は、データD18aを送信した後に、データD18bを送信する。
The
制御装置11は、データD17aの“OP”の受信が終了するタイミングでデータD18aの“SETAD”を送信し、データD17aの“TA”の受信が終了するタイミングでデータD18aの“ADDRESS”を送信する。制御装置11は、データD17bの“OP”の受信が終了するタイミングでデータD18bの“WRITE”を送信し、データD17bの“TA”の受信が終了するタイミングでデータD18bの“DATA”を送信する。制御装置11は、データD17bの“DATA”の受信と、データD18bの“DATA”の送信とを並行して行う。
The
制御装置11は、データD17aの“OP”の内容(アドレス指定の命令)から、データD17aがアドレス指定を行うための通信データであると判断する。制御装置11は、データD17aの“OP”の受信が終了するタイミングで、データD18aの“SETAD”の送信を開始する。制御装置11は、データD17aの“ADDRESS”の内容(デバイス17のレジスタアドレス))とテーブルデータTDとに基づいて、データD17aに続くデータD17bの“OP”に設定されている命令を行うデバイスがデバイス17であると判断する。制御装置11は、データD17aの“TA”の受信が終了するタイミングで、データD18aの“ADDRESS”の送信を開始する。データD17aの“ADDRESS”の内容と、データD18aの“ADDRESS”の内容とは、同一である。
The
制御装置11は、データD17bの“OP”の内容(書き込み指示の命令)から、データD17bが書き込み指示を行うための通信データであると判断する。制御装置11は、データD17bの“OP”の受信が終了するタイミングで、データD18bの“WRITE”の送信を開始する。制御装置11は、データD17bの“TA”受信が終了するタイミングで、データD18bの“DATA”の送信を開始する。制御装置11は、データD17bの“DATA”の受信とデータD18bの“DATA”の送信とを並行して行う。データD17bの“DATA”の内容と、データD18bの“DATA”の内容とは、同一である。以上により、デバイス17は、制御装置11から送信されるデータD18bに応じて、データD17bの書き込み指示を実行できる。
The
図6を参照して制御装置11の動作を詳細に説明する。図6には、デバイス17からデータを読み出すために用いられる通信データが示されている。
The operation of the
データD19a及びデータD19bは、制御装置11が外部装置3から受信するMDIO通信データである。データD19aは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”を含み、データD19bは、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”を含む。制御装置11は、データD19aを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”、“TA”、“ADDRESS”の順に受信し、データD19bを、“PRE”、“ST”、“OP”、“PRTAD”、“DEVAD”の順に受信する。
Data D19a and data D19b are MDIO communication data received by the
データD19aの“OP”にはアドレス指定の命令を表す2bitのデータ“00”が設定され、データD19bの“OP”には読み出し指示の命令を表す2bitのデータ“11”又は“10”が設定されている。データD19a及び19bの“ADDRESS”にはデバイス17のレジスタアドレスが設定されている。
2-bit data “00” representing an address designation command is set in “OP” of data D19a, and 2-bit data “11” or “10” representing a read instruction command is set in “OP” of data D19b. Has been. The register address of the
データD20a及びデータD20bは、制御装置11がデバイス17に送信するSPI通信データである。データD20aは“SETAD”及び“ADDRESS”を含み、データD20bは“READ”を含む。制御装置11は、データD20aを、“SETAD”、“ADDRESS”の順に送信する。
Data D20a and data D20b are SPI communication data transmitted from the
データD24は、制御装置11がデバイス17から受信するデータであってデバイス17によって読み出されたデータである。
The data D24 is data received by the
制御装置11は、データD19aを受信した後に、データD19bを受信する。制御装置11は、データD20aを送信した後に、データ20bを送信する。制御装置11は、データ20bを送信した後であってデータD19bの受信が終了した後に、データD24を受信する。制御装置11は、データ20bを送信した後であってデータD19bの受信が終了した後に、データD24を外部装置3に送信する。制御装置11は、データD24の受信とデータD24の外部装置3への送信とを並行して行う。
The
制御装置11は、データD19aの“OP”の受信が終了するタイミングでデータD20aの“SETAD”を送信し、データD19aの“TA”の受信が終了するタイミングでデータD20aの“ADDRESS”を送信する。制御装置11は、データD19bの“OP”が終了するタイミングでデータD20bの“READ”を送信する。制御装置11は、データD19aの“OP”の内容(アドレス指定の命令)から、データD19aがアドレス指定を行うための通信データであると判断する。制御装置11は、データD19aの“OP”の受信が終了するタイミングで、データD20aの“SETAD”の送信を開始する。制御装置11は、データD11aの“ADDRESS”の内容(デバイス17のレジスタアドレス))とテーブルデータTDとに基づいて、データD19aに続くデータD19bの“OP”に設定されている命令を行うデバイスがデバイス17であると判断する。制御装置11は、データD19aの“TA”が終了するタイミングで、データD20aの“ADDRESS”の送信を開始する。データD19aの“ADDRESS”の内容と、データD20aの“ADDRESS”の内容とは、同一である。
The
制御装置11は、データD19bの“OP”の内容(読み出し指示の命令)から、データD19bが読み出し指示を行うための通信データであると判断する。制御装置11は、データD19bの“OP”の受信が終了するタイミングで、データD18bの“READ”の送信を開始する。制御装置11は、データD19aの“TA”に設定されているタイミングギャップ後に、デバイス17から受信した“DATA”を外部装置3に送信する。以上により、デバイス17は、制御装置11から送信されるデータD20bに応じて、データD19bの読み出し指示を実行できる。
The
以上説明したように、通信装置1の制御装置11は、MDIO通信プロトコル及びSPI通信プロトコルに基づいて通信が行えるので、通信装置1が有する複数のデバイス(デバイス13、デバイス15及びデバイス17)のそれぞれが、MDIO通信プロトコル及びSPI通信プロトコルの何れのプロトコルに基づいて通信を行う場合であっても、通信データに含まれるアドレスデータ(“ADDRESS”)を参照すれば、外部装置からの通信データに応じて各デバイスにデータを送信できる。
As described above, since the
また、MDIO通信プロトコルに基づく通信データに含まれるアドレスデータを参照して通信装置1の各デバイスにデータが送信されるので、通信装置1のメモリ(記憶装置11aのROM等)の大きさを調整しなくても通信装置1の有するデバイスの数を増減させることが可能となる。
Further, since the data is transmitted to each device of the
また、内部ポートアドレスを用いるので、デバイス毎に新たなアドレスを設けることなく、デバイスの選択が行える。また、記憶装置11aに格納されているテーブルデータTDを用いて送信先のデバイスを特定できるので、通信装置1に搭載されるデバイスの数に増減があってもテーブルデータTDの変更で対応可能となり、また、記憶装置11aの大きさの調整も不要となる。また、書き込み指示の対象となっていないデバイス(デバイス13)に対しては、通信装置1において未使用のダミーポートアドレスが用いられるので書き込み指示がデバイス13で実行されるのを確実に回避できる。
In addition, since the internal port address is used, the device can be selected without providing a new address for each device. Further, since the destination device can be specified using the table data TD stored in the
また、制御装置11は、SPI通信プロトコルに基づく通信を行うデバイス17に対しても、外部装置3からの通信データに応じて、データの送信が可能となる。
In addition, the
また、制御装置11によって作成されるSPI通信プロトコルに基づくデータは、MDIO通信プロトコルのオペレーションコードに対応するコマンドデータを含むので、制御装置11は、MDIO通信プロトコルに基づく外部装置3からの通信データに含まれる命令をSPI通信プロトコルに基づくデータに変換可能となる。
Further, since the data based on the SPI communication protocol created by the
また、制御装置11によって作成されるSPI通信プロトコルに基づくデータは、12bit以下のデータなので、作成及び送受信に要する時間を短くできる。
Further, since the data based on the SPI communication protocol created by the
以上、好適な実施の形態において本発明の原理を図示し説明してきたが、本発明は、そのような原理から逸脱することなく配置および詳細において変更され得ることは、当業者によって認識される。本発明は、本実施の形態に開示された特定の構成に限定されるものではない。したがって、特許請求の範囲およびその精神の範囲から来る全ての修正および変更に権利を請求する。 While the principles of the invention have been illustrated and described in the preferred embodiments, it will be appreciated by those skilled in the art that the invention can be modified in arrangement and detail without departing from such principles. The present invention is not limited to the specific configuration disclosed in the present embodiment. We therefore claim all modifications and changes that come within the scope and spirit of the following claims.
1…通信装置、11…制御装置、11a…記憶装置、13,15,17…デバイス、3…外部装置
DESCRIPTION OF
Claims (6)
MDIO通信プロトコル及びSPI通信プロトコル(System Packet Interface)に基づく通信が可能であり、MDIO通信プロトコルに基づく前記外部機器と当該通信装置との通信を制御する制御装置と、
前記制御装置に接続されており、MDIO通信プロトコル、SPI通信プロトコル、のうち何れか一に対応する第1の通信プロトコルに基づいて前記制御装置と通信を行う第1のデバイスと、
前記制御装置に接続されており、MDIO通信プロトコル、SPI通信プロトコル、のうち何れか一に対応する第2の通信プロトコルに基づいて前記制御装置と通信を行う第2のデバイスと、
を備え、
前記制御装置は、前記外部機器に接続されている場合に前記外部機器からMDIO通信プロトコルに基づく通信データを受けることと並行して、前記通信データに含まれており前記通信データの送信先を示すアドレスデータを参照し、前記アドレスデータが前記第1のデバイスを示している場合には前記第1の通信プロトコルを用いて前記通信データに対応するデータを前記第1のデバイスに送信し、前記アドレスデータが前記第2のデバイスを示している場合には前記第2の通信プロトコルを用いて前記通信データに対応するデータを前記第2のデバイスに送信し、
前記アドレスデータは、前記第1のデバイス及び前記第2のデバイスのうち何れか一に対応するレジスタアドレスを含む、通信装置。 A communication device that communicates with an external device based on the MDIO communication protocol (Medium Dependent Input / Output) ,
A control device capable of communication based on an MDIO communication protocol and an SPI communication protocol (System Packet Interface), and controlling communication between the external device and the communication device based on the MDIO communication protocol ;
A first device connected to the control device and communicating with the control device based on a first communication protocol corresponding to any one of an MDIO communication protocol and an SPI communication protocol;
A second device connected to the control device and communicating with the control device based on a second communication protocol corresponding to any one of the MDIO communication protocol and the SPI communication protocol;
With
The control device is included in the communication data and indicates a transmission destination of the communication data in parallel with receiving communication data based on the MDIO communication protocol from the external device when connected to the external device. Reference is made to address data, and when the address data indicates the first device, data corresponding to the communication data is transmitted to the first device using the first communication protocol, and the address If the data indicates the second device, the second communication protocol is used to transmit data corresponding to the communication data to the second device;
The communication apparatus, wherein the address data includes a register address corresponding to any one of the first device and the second device.
前記第1のデバイスに対応するレジスタアドレスと、当該通信装置において割り当てられており前記第1のデバイスに対応するデバイスアドレス及びポートアドレスとを関連付け、且つ、前記第2のデバイスに対応するレジスタアドレスと、当該通信装置において割り当てられており前記第2のデバイスに対応するデバイスアドレス及びポートアドレスとを関連付けるテーブルデータを格納する記憶装置を有しており、
前記アドレスデータと前記テーブルデータとを参照して前記第1のデバイスに対応するポートアドレスを特定する、請求項2に記載の通信装置。 The controller is
A register address corresponding to the first device is associated with a device address and a port address assigned in the communication apparatus and corresponding to the first device, and a register address corresponding to the second device A storage device that stores table data that is assigned in the communication device and associates a device address and a port address corresponding to the second device;
The communication apparatus according to claim 2, wherein a port address corresponding to the first device is specified with reference to the address data and the table data.
前記コマンドデータは、12ビット以下の長さのデータであって、少なくとも、アドレス設定、書き込み指示、読み出し指示、の何れかを示す、請求項5に記載の通信装置。 Data based on the SPI communication protocol converted from the communication data by the control device includes command data corresponding to an operation code of the MDIO communication protocol,
The communication device according to claim 5, wherein the command data is data having a length of 12 bits or less, and indicates at least one of address setting, a write instruction, and a read instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010189815A JP5601090B2 (en) | 2010-08-26 | 2010-08-26 | Communication device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010189815A JP5601090B2 (en) | 2010-08-26 | 2010-08-26 | Communication device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012049812A JP2012049812A (en) | 2012-03-08 |
JP5601090B2 true JP5601090B2 (en) | 2014-10-08 |
Family
ID=45904183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010189815A Active JP5601090B2 (en) | 2010-08-26 | 2010-08-26 | Communication device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5601090B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20220030837A (en) * | 2020-09-03 | 2022-03-11 | 금오공과대학교 산학협력단 | Management Data Input/Output interface device for OPEN board compatible AND Protocol conversion method using the same |
KR20220112086A (en) * | 2021-02-03 | 2022-08-10 | 금오공과대학교 산학협력단 | Intelligent battery management system that can process data at the edge with standalone IoT devices |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6197447B2 (en) | 2013-07-29 | 2017-09-20 | 住友電気工業株式会社 | Optical transceiver |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0235843A (en) * | 1988-07-26 | 1990-02-06 | Nec Corp | Protocol converting machine |
JP2000029823A (en) * | 1998-07-08 | 2000-01-28 | Fujitsu Ltd | Bus access control circuit |
JP2003308288A (en) * | 2002-04-18 | 2003-10-31 | Mitsubishi Electric Corp | Microcomputer system |
US8498309B2 (en) * | 2005-05-18 | 2013-07-30 | Intel Corporation | Data transport module |
-
2010
- 2010-08-26 JP JP2010189815A patent/JP5601090B2/en active Active
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20220030837A (en) * | 2020-09-03 | 2022-03-11 | 금오공과대학교 산학협력단 | Management Data Input/Output interface device for OPEN board compatible AND Protocol conversion method using the same |
KR102388267B1 (en) * | 2020-09-03 | 2022-04-18 | 금오공과대학교 산학협력단 | Management Data Input/Output interface device for OPEN board compatible AND Protocol conversion method using the same |
KR20220112086A (en) * | 2021-02-03 | 2022-08-10 | 금오공과대학교 산학협력단 | Intelligent battery management system that can process data at the edge with standalone IoT devices |
KR102488998B1 (en) * | 2021-02-03 | 2023-01-13 | 금오공과대학교 산학협력단 | Intelligent battery management system that can process data at the edge with standalone IoT devices |
Also Published As
Publication number | Publication date |
---|---|
JP2012049812A (en) | 2012-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7130933B2 (en) | Method, system, and program for handling input/output commands | |
US7765348B2 (en) | Configurable two-wire interface module | |
US11048569B1 (en) | Adaptive timeout mechanism | |
US20140068134A1 (en) | Data transmission apparatus, system, and method | |
US8225024B2 (en) | Use of a first two-wire interface communication to support the construction of a second two-wire interface communication | |
WO2016202114A1 (en) | Data transmission method and device and storage medium | |
EP2842293B1 (en) | Usb 3.0 link layer timer adjustment to extend distance | |
US20110022758A1 (en) | Method and system for processing frames in storage controllers | |
JP2019047146A (en) | Electronic equipment and power management method | |
US20200409706A1 (en) | Apparatuses and methods involving selective disablement of side effects caused by accessing register sets | |
EP3200089A1 (en) | Method, apparatus, communication equipment and storage media for determining link delay | |
US20170300434A1 (en) | Emi mitigation on high-speed lanes using false stall | |
JP5601090B2 (en) | Communication device | |
US6801963B2 (en) | Method, system, and program for configuring components on a bus for input/output operations | |
US20140059250A1 (en) | Network system | |
US10853255B2 (en) | Apparatus and method of optimizing memory transactions to persistent memory using an architectural data mover | |
JP2008502977A (en) | Interrupt method for bus controller | |
JP5497743B2 (en) | Method for controlling access to memory area from a plurality of processes, and communication module including message memory for realizing the method | |
US20100205334A1 (en) | Device wire adapter and communication control method to perform data transfer between wireless USB host and wired USB device | |
US20150212960A1 (en) | Ss hub, usb 3.0 hub, and information processing instrument | |
JP2009093225A (en) | Storage control device, method, program, and storage device | |
WO2021181874A1 (en) | Communication control device and method for controlling communication control device | |
JP2013235464A (en) | Computer and input/output control method of computer | |
KR100612454B1 (en) | Apparatus and method for adapting for i2c bus | |
JP5227601B2 (en) | Control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130822 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140417 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140430 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140627 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20140722 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140804 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5601090 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |