[go: up one dir, main page]

JP4747015B2 - COMMUNICATION TERMINAL DEVICE AND ITS CONTROL METHOD - Google Patents

COMMUNICATION TERMINAL DEVICE AND ITS CONTROL METHOD Download PDF

Info

Publication number
JP4747015B2
JP4747015B2 JP2006093585A JP2006093585A JP4747015B2 JP 4747015 B2 JP4747015 B2 JP 4747015B2 JP 2006093585 A JP2006093585 A JP 2006093585A JP 2006093585 A JP2006093585 A JP 2006093585A JP 4747015 B2 JP4747015 B2 JP 4747015B2
Authority
JP
Japan
Prior art keywords
data
communication terminal
internal signal
command
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006093585A
Other languages
Japanese (ja)
Other versions
JP2007274036A (en
Inventor
武則 尾形
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Communication Systems Ltd
Original Assignee
NEC Communication Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Communication Systems Ltd filed Critical NEC Communication Systems Ltd
Priority to JP2006093585A priority Critical patent/JP4747015B2/en
Publication of JP2007274036A publication Critical patent/JP2007274036A/en
Application granted granted Critical
Publication of JP4747015B2 publication Critical patent/JP4747015B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Description

本発明は、通信端末装置、及び、その制御方法に関し、更に詳しくは、センター側装置との間で制御チャネルを介して通信を行う通信端末装置、及び、そのような通信端末装置の制御方法に関する。   The present invention relates to a communication terminal device and a control method thereof, and more particularly to a communication terminal device that performs communication with a center side device via a control channel and a control method of such a communication terminal device. .

通信端末装置として、信号の変調/復調を行うモデム装置がある。図6は、従来のモデム装置の構成を示している。このモデム装置は、xDSLモデム50として構成されており、xDSLデバイス52、CPU53、FLASH ROM54、RAM55、CPUペリフェラルデバイス56、FPGA57、PHYデバイス58、及び、シリアル/パラレル変換部59により構成されている。CPU53は、xDSLモデム50内の各部と、CPUバス223を介して接続されており、各部の制御やデバイスの設定を行う。   Communication terminal devices include modem devices that modulate / demodulate signals. FIG. 6 shows a configuration of a conventional modem device. This modem device is configured as an xDSL modem 50, and includes an xDSL device 52, a CPU 53, a FLASH ROM 54, a RAM 55, a CPU peripheral device 56, an FPGA 57, a PHY device 58, and a serial / parallel converter 59. The CPU 53 is connected to each unit in the xDSL modem 50 via the CPU bus 223, and controls each unit and sets a device.

FPGA57は、CPUインタフェースを有しており、CPUバス223を介して、CPU53と接続される。FLASH ROM54は、FPGAをプログラムするためのデータと、CPU53の組み込みソフトウェアとを記憶する。xDSLモデム50では、装置起動時のFPGA57のプログラムは、CPU53によって実行される構成となっている。PHYデバイス58は、シリアルインタフェースであるMDIOインタフェース220を有しており、シリアル/パラレル変換部59を介して、CPUバス223に接続されており、PHYデバイス58の設定や制御は、CPU53によって実行される。   The FPGA 57 has a CPU interface and is connected to the CPU 53 via the CPU bus 223. The FLASH ROM 54 stores data for programming the FPGA and embedded software of the CPU 53. In the xDSL modem 50, the program of the FPGA 57 when the apparatus is activated is configured to be executed by the CPU 53. The PHY device 58 has an MDIO interface 220 that is a serial interface, and is connected to the CPU bus 223 via the serial / parallel conversion unit 59. Settings and control of the PHY device 58 are executed by the CPU 53. The

xDSLデバイス52は、センター側装置との間で行われる制御データ通信を行う。xDSLデバイス52で受信された制御データの処理は、CPU53によって実行される。例えば、センター側装置から送信されたデータに従って、FLASH ROM54内に記憶されたFPGA57のプログラムデータを更新する場合には、CPU53が、制御データに含まれるROMデータを抽出し、抽出したROMデータを、CPUバス223を介してFLASH ROM54に書き込む。   The xDSL device 52 performs control data communication performed with the center side device. Processing of control data received by the xDSL device 52 is executed by the CPU 53. For example, when the program data of the FPGA 57 stored in the FLASH ROM 54 is updated according to the data transmitted from the center side device, the CPU 53 extracts the ROM data included in the control data, and the extracted ROM data is Write to the FLASH ROM 54 via the CPU bus 223.

上記のようなCPUを用いたxDSLモデムの制御は、比較的実現容易であり、広く採用されてきた(例えば、特許文献1や特許文献2を参照)。しかしながら、CPU53を組み込みソフトウェアで処理することでFLASH ROM54等の制御を行う場合には、CPUやそのペリフェラルデバイスによって部品点数が増加し、コストアップにつながるという問題がある。また、CPU53を動作させるためのソフトウェアの開発も必要であり、この部分によっても、コストが増加するという問題もある。   Control of an xDSL modem using a CPU as described above is relatively easy to implement and has been widely adopted (see, for example, Patent Document 1 and Patent Document 2). However, when controlling the FLASH ROM 54 and the like by processing the CPU 53 with embedded software, there is a problem that the number of parts increases due to the CPU and its peripheral devices, leading to an increase in cost. In addition, it is necessary to develop software for operating the CPU 53, and this part also has a problem that the cost increases.

xDSLモデムでは、CPUによる制御を必要としないデバイスも開発されている。このようなタイプのxDSLモデムでは、xDSLデバイスはMDIOインタフェースを有し、xDSLラインのeoc制御チャネルを用いて、センター側装置から、xDSLデバイスを直接制御可能となっている。しかし、この場合でも、モデムで使用するFPGAのプログラムデータ等、センター側装置から大量のデータをモデムに転送し、ROMデータの更新処理を実行するためには、やはりCPUが必要となり、CPUやそのペリフェラルデバイスを削減することができないという問題があった。   For xDSL modems, devices that do not require CPU control have been developed. In such a type of xDSL modem, the xDSL device has an MDIO interface, and the xDSL device can be directly controlled from the center side apparatus using the eoc control channel of the xDSL line. However, even in this case, in order to transfer a large amount of data from the center side device, such as FPGA program data used by the modem, to the modem and execute the update process of the ROM data, a CPU is still necessary. There was a problem that peripheral devices could not be reduced.

CPUを実装せずにFPGAのプログラムデータの更新が可能なxDSLモデムとして、図7に示す構成のxDSLモデム50aがある。このxDSLモデム50aは、FLASH ROM54を、FLASH ROMインタフェース221を介して制御するFLASH ROM制御回路60を備える。FLASH ROM制御回路60は、FPGA57とFPGAインタフェース222を介して接続されており、FLASH ROM54から読み出したFPGA57のプログラムデータに従って、FPGA57をプログラムする。FLASH ROM制御回路60は、外部端末61と接続するためのシリアルポート224を有し、外部端末61から転送されたROMデータに従って、FLASH ROM54が記憶するプログラムデータを更新可能である。   As an xDSL modem capable of updating FPGA program data without mounting a CPU, there is an xDSL modem 50a configured as shown in FIG. The xDSL modem 50 a includes a FLASH ROM control circuit 60 that controls the FLASH ROM 54 via the FLASH ROM interface 221. The FLASH ROM control circuit 60 is connected to the FPGA 57 via the FPGA interface 222, and programs the FPGA 57 in accordance with the program data of the FPGA 57 read from the FLASH ROM 54. The FLASH ROM control circuit 60 has a serial port 224 for connecting to the external terminal 61, and can update program data stored in the FLASH ROM 54 in accordance with the ROM data transferred from the external terminal 61.

特開2000−155684号公報JP 2000-155684 A 特開2003−37685号公報JP 2003-37685 A

図7に示す構成のxDSLモデム50aでは、CPUを必要としないことでコストは抑えられるものの、ユーザは、FLASH ROM54のデータ更新に際して、事前にROM更新データをダウンロードして用意しておく必要があり、手順が煩雑であるという問題がある。また、ユーザに納入して宅内に設置されたモデムについて、FLASH ROMの更新を行うか否かはユーザに依存することとなり、FLASH ROMの更新を、センター側装置で制御することができないという問題もある。   In the xDSL modem 50a having the configuration shown in FIG. 7, the cost is reduced by not requiring a CPU. However, when updating the data in the FLASH ROM 54, the user needs to download and prepare ROM update data in advance. There is a problem that the procedure is complicated. In addition, whether or not to update the FLASH ROM of the modem delivered to the user and installed in the home depends on the user, and there is a problem that the FLASH ROM update cannot be controlled by the center side device. is there.

本発明は、上記従来技術の問題点を解消し、CPUを必要とせずに、センター側装置から通信端末装置内の不揮発性メモリを制御できる通信端末装置及びその制御方法を提供する。   The present invention provides a communication terminal device and a control method therefor that can solve the above-mentioned problems of the prior art and can control a nonvolatile memory in the communication terminal device from a center side device without requiring a CPU.

上記目的を達成するために、本発明の通信端末装置は、センター側装置との間で制御チャネルを用いた通信を行う通信端末装置であって、前記制御チャネルを用いて受信した信号に基づいて、アクセス対象のデバイスのアドレスを含む所定フォーマットの内部信号を生成し、生成した前記内部信号を出力する内部信号生成部と、第1及び第2のアドレスが設定され、前記内部信号生成部が出力した前記内部信号を受信し、前記内部信号に含まれる前記アドレスが前記第1のアドレスである場合、前記内部信号に基づいて不揮発性メモリを制御し、前記内部信号に含まれる前記アドレスが前記第2のアドレスである場合、前記内部信号に基づいて保有するレジスタのデータを制御するメモリ制御手段とを備えたことを特徴とする。 To achieve the above object, the communication terminal apparatus of the present invention is a communication communication terminal apparatus that performs using the control channel between the center side device, based on the signal received using the control channel Generating an internal signal of a predetermined format including the address of the device to be accessed , outputting the generated internal signal, and first and second addresses are set, and the internal signal generator outputs When the internal signal is received and the address included in the internal signal is the first address, the nonvolatile memory is controlled based on the internal signal, and the address included in the internal signal is the first address. If a second address, characterized by comprising a memory control means for controlling the data registers held under the internal signal.

本発明の通信端末装置では、メモリ制御手段は、制御チャネルを介してセンター側装置から送信された不揮発性メモリに対する制御指示を解釈して、不揮発性メモリを制御する。このようにすることで、CPUを用いなくても、センター側装置から、通信端末装置内の不揮発性メモリを制御することができ、CPUを用いる場合に比して、部品点数を削減してコストを抑えることができる。   In the communication terminal device of the present invention, the memory control means interprets a control instruction for the nonvolatile memory transmitted from the center side device via the control channel, and controls the nonvolatile memory. In this way, the non-volatile memory in the communication terminal device can be controlled from the center side device without using the CPU, and the number of parts can be reduced and the cost can be reduced as compared with the case where the CPU is used. Can be suppressed.

本発明の通信端末装置では、前記メモリ制御手段は、前記内部信号に含まれるデータに従って、前記不揮発性メモリの書換えを行う構成を採用できる。この場合、例えば、センター側装置から不揮発性メモリ内のデータの更新データを送信して不揮発性メモリを書き換えることで、不揮発性メモリ内のデータを、最新のデータに更新できる。   In the communication terminal device according to the present invention, the memory control means can employ a configuration in which the nonvolatile memory is rewritten in accordance with data included in the internal signal. In this case, for example, the data in the nonvolatile memory can be updated to the latest data by transmitting update data of the data in the nonvolatile memory from the center side device and rewriting the nonvolatile memory.

本発明の通信端末装置では、前記不揮発性メモリは、運用に使用する第1のブロックと、バックアップ用の第2のブロックとを有し、前記メモリ制御手段は、前記内部信号に含まれるデータを前記第2のブロックに書き込み、該第2のブロックにデータを書き込んだ後に、前記第2のブロックのデータを前記第1のブロックにコピーする構成を採用できる。この場合、不揮発性メモリの書換え中に、電源断や回線断が発生した場合でも、第1のブロックのデータには影響がないため、運用には支障がない。   In the communication terminal device according to the present invention, the nonvolatile memory has a first block used for operation and a second block for backup, and the memory control means stores the data included in the internal signal. A configuration may be employed in which data is written to the second block, data is written to the second block, and then data of the second block is copied to the first block. In this case, even if a power interruption or a line interruption occurs during rewriting of the nonvolatile memory, there is no influence on the data of the first block, so there is no problem in operation.

本発明の通信端末装置では、前記センター側装置が、前記制御チャネル及び前記内部信号生成部を介して、通信端末装置内のレジスタを参照可能である構成を採用できる。センター側装置から、不揮発性メモリに対する制御を行う際には、レジスタアクセスと同様な手順でコマンドをメモリ制御手段に送信することで、センター側装置から、通信端末装置内の不揮発性メモリを制御できる。   In the communication terminal device of the present invention, a configuration in which the center side device can refer to a register in the communication terminal device via the control channel and the internal signal generation unit can be adopted. When controlling the nonvolatile memory from the center side device, it is possible to control the nonvolatile memory in the communication terminal device from the center side device by transmitting a command to the memory control means in the same procedure as the register access. .

本発明の通信端末装置では、前記内部信号が、通信端末装置内のレジスタアクセスのための信号であり、前記メモリ制御手段には、レジスタアクセスのための通信線を介して前記内部信号が入力される構成を採用できる。通信端末装置は、センター側装置から、制御チャネルを介して、通信端末装置内の各部のレジスタにアクセスできる構成となっていることが多い。メモリ制御手段に、このようなレジスタアクセスのための通信線を利用して不揮発性メモリに対する制御コマンドを入力することで、センター側装置から、通信端末装置内の不揮発性メモリを制御できる。   In the communication terminal device of the present invention, the internal signal is a signal for register access in the communication terminal device, and the memory control means receives the internal signal via a communication line for register access. Can be adopted. In many cases, the communication terminal device is configured to be able to access the registers of each unit in the communication terminal device from the center side device via a control channel. By inputting a control command for the nonvolatile memory using such a communication line for register access to the memory control means, the nonvolatile memory in the communication terminal device can be controlled from the center side device.

本発明の通信端末装置では、前記内部信号が、リード又はライトのアクセス種別と、通信端末装置内のアクセス対象のデバイスのアドレスを指定するアドレス部と、前記デバイスが保有するレジスタのうちでアクセス対象となるレジスタを指定するレジスタ指定部とを含む構成を採用できる。内部信号としては、例えば、IEEE802.3で定義されているMDIOの信号フォーマットを用いることができる。   In the communication terminal device of the present invention, the internal signal is an access target among a read or write access type, an address part that specifies an address of a device to be accessed in the communication terminal device, and a register held by the device. It is possible to adopt a configuration including a register designating unit that designates the register to be. For example, the MDIO signal format defined in IEEE 802.3 can be used as the internal signal.

本発明の通信端末装置では、前記メモリ制御手段は、前記レジスタ指定部に含まれるデータに基づいて、前記不揮発性メモリに対する制御を決定する構成を採用できる。この場合、センター側装置から、制御チャネル及び内部信号生成部を介して、レジスタ指定部に所望の制御コマンドを含む内部信号を、メモリ制御手段に入力することにより、不揮発性メモリに対して所望の制御を実行できる。   In the communication terminal apparatus according to the present invention, the memory control means may employ a configuration for determining control of the nonvolatile memory based on data included in the register designating unit. In this case, the center side device inputs an internal signal including a desired control command to the register designating unit via the control channel and the internal signal generating unit to the memory control unit, so that the nonvolatile memory has a desired value. Control can be executed.

本発明の通信端末装置では、前記メモリ制御手段は、受信した前記内部信号のアドレス指定部が前記第1のアドレスを指定するときには、前記レジスタ指定部に含まれるデータに基づいて、前記不揮発性メモリに対する制御を決定し、前記アドレス指定部が第2のアドレスを指定するときには、前記レジスタ指定部に含まれるデータに基づいて、保有するレジスタのデータをリードし、又は、レジスタにデータをライトする構成を採用できる。この場合、第1のアドレスと第2のアドレスとを使い分けることで、不揮発性メモリに対する制御と、メモリ制御手段内のレジスタに対するアクセスとの双方を実現できる。 The communication terminal apparatus of the present invention, prior SL memory control means, when the address portion of the internal signal received designating the first address, based on the data contained in the register specifying portion, the non-volatile When the control for the memory is determined and the address designating unit designates the second address, based on the data contained in the register designating unit, the data of the register held is read or the data is written to the register Configuration can be adopted. In this case, both the control of the nonvolatile memory and the access to the register in the memory control means can be realized by properly using the first address and the second address.

本発明の通信端末装置では、前記メモリ制御手段が、前記内部信号をデコードし、前記センター側装置によって発行された前記不揮発性メモリに対するコマンドを解釈するデコーダ回路と、前記デコーダ回路のデコード結果に従って、前記不揮発性メモリに対する制御コマンドを決定するコマンドシーケンス制御回路と、前記コマンドシーケンス制御回路が決定した制御コマンドを、前記不揮発性メモリに出力する制御コマンド生成回路と、前記コマンドシーケンス制御回路がデータ書き込みを示す制御コマンドを決定すると、前記内部信号に含まれる更新データを、前記不揮発性メモリに書き込むデータ書き込み制御回路とを備える構成を採用できる。   In the communication terminal device of the present invention, the memory control means decodes the internal signal, interprets a command for the nonvolatile memory issued by the center side device, and according to a decoding result of the decoder circuit, A command sequence control circuit for determining a control command for the nonvolatile memory, a control command generation circuit for outputting the control command determined by the command sequence control circuit to the nonvolatile memory, and the command sequence control circuit for writing data When a control command to be indicated is determined, a configuration including a data write control circuit for writing update data included in the internal signal into the nonvolatile memory can be employed.

本発明の通信端末装置では、前記メモリ制御手段が、前記デコーダ回路が解釈したコマンドと、該コマンドが完了した旨を示す完了フラグとを記憶するコマンドレジスタを更に備え、前記コマンドシーケンス制御回路は、前記制御コマンド生成回路による制御コマンドの出力、又は、前記データ書き込み制御回路によるデータ書き込みが完了すると、前記完了フラグをセットする構成を採用できる。この場合、センター側装置は、コマンドレジスタを参照することで、発行した制御コマンドの完了を確認できる。   In the communication terminal device of the present invention, the memory control means further includes a command register that stores a command interpreted by the decoder circuit and a completion flag indicating that the command is completed, and the command sequence control circuit includes: A configuration in which the completion flag is set when the output of the control command by the control command generation circuit or the data writing by the data write control circuit is completed can be employed. In this case, the center side device can confirm the completion of the issued control command by referring to the command register.

本発明の通信端末装置では、前記メモリ制御手段が、前記更新データのチェックサムを算出するチェックサム演算手段と、前記チェックサムの演算結果を保持するデータレジスタとを更に備える構成を採用できる。この場合、センター側装置は、データレジスタを参照することで、データを正しく更新できたか否かを確認できる。   In the communication terminal apparatus according to the present invention, the memory control unit may further include a checksum calculation unit that calculates a checksum of the update data and a data register that holds a checksum calculation result. In this case, the center side device can confirm whether or not the data has been correctly updated by referring to the data register.

本発明の通信端末装置では、前記不揮発性メモリは、通信制御処理を行うFPGAをプログラムするためのデータを記憶する構成を採用できる。この場合、FPGAをプログラムするためのデータに更新がある場合には、センター側装置からその更新データを送信し、不揮発性メモリの内容を書き換えることで、FPGAのプログラムデータを最新のデータに更新できる。   In the communication terminal device of the present invention, the nonvolatile memory can employ a configuration for storing data for programming an FPGA that performs communication control processing. In this case, when the data for programming the FPGA is updated, the update data is transmitted from the center side device, and the content of the nonvolatile memory is rewritten, whereby the program data of the FPGA can be updated to the latest data. .

本発明の通信端末の制御方法は、センター側装置との間で制御チャネルを用いた通信を行う通信端末装置を制御する方法であって、前記センター側装置から、前記制御チャネルを介して前記通信端末装置内の不揮発性メモリまたはレジスタを制御するコマンドを発行するステップと、該コマンドに従って、アクセス対象のデバイスのアドレスを含む所定フォーマットの内部信号を生成し、生成した前記内部信号を出力するステップと、前記内部信号を受信し、前記内部信号に含まれる前記アドレスが第1のアドレスである場合、前記内部信号に基づいて前記不揮発性メモリを制御し、前記内部信号に含まれるアドレスが第2のアドレスである場合、前記内部信号に基づいて保有するレジスタのデータを制御するステップと、を備えたことを特徴とする。 Control method of a communication terminal of the present invention is a method for controlling a communication terminal apparatus that performs communication using a control channel between the center side device, from the center side device, the communication via the control channel comprising the steps of: issuing a command for controlling the non-volatile memory or register in the terminal device, in accordance with the command, the step of generating an internal signal of a predetermined format including an address of the device to be accessed, and outputs the generated the internal signals When the internal signal is received and the address included in the internal signal is a first address, the nonvolatile memory is controlled based on the internal signal, and the address included in the internal signal is a second address If an address, especially in that it comprises the steps of: controlling the data registers held under the internal signal To.

本発明の通信端末装置の制御方法では、センター側装置からのコマンドに基づいて、通信端末装置内の不揮発性メモリを制御する。センター側装置からのコマンドの伝送には、通信端末装置内でセンター側装置からレジスタを参照する際に用いる信号を利用することができる。センター側装置から、不揮発性メモリを制御することにより、通信端末装置がCPUを備える必要がなく、CPUが必要な従来技術に比して、通信端末装置の部品点数を削減してコストを抑えることができる。   In the communication terminal device control method of the present invention, the nonvolatile memory in the communication terminal device is controlled based on a command from the center side device. For the transmission of the command from the center side device, a signal used when referring to the register from the center side device in the communication terminal device can be used. By controlling the non-volatile memory from the center side device, the communication terminal device does not need to have a CPU, and the cost is reduced by reducing the number of parts of the communication terminal device compared to the prior art that requires a CPU. Can do.

本発明の通信端末装置の制御方法では、前記センター側装置は、前記不揮発性メモリを制御するコマンド発行後、前記通信端末装置内のレジスタを前記制御チャネルを介して参照し、前記発行したコマンドの完了を確認する構成を採用できる。この場合、コマンドの完了の確認後、センター側装置から、次のコマンドを発行すればよい。
In the communication terminal device control method of the present invention, the center side device refers to a register in the communication terminal device through the control channel after issuing a command for controlling the nonvolatile memory, and issues the issued command. It is possible to adopt a configuration for confirming the completion of. In this case, after confirming the completion of the command, the center side device may issue the next command.

本発明の通信端末装置の制御方法では、前記センター側装置は、前記不揮発性メモリの更新データを前記制御チャネルを介して送信し、該送信した更新データを、前記不揮発性メモリに書き込ませる構成を採用できる。この場合、センター側装置によって、通信端末装置内の不揮発性メモリを、更新データで書き換えることができる。   In the control method for a communication terminal device according to the present invention, the center side device transmits the update data of the nonvolatile memory via the control channel, and the transmitted update data is written to the nonvolatile memory. Can be adopted. In this case, the non-volatile memory in the communication terminal device can be rewritten with the update data by the center side device.

本発明の通信端末の制御方法では、前記不揮発性メモリは、運用用の第1のブロックと、バックアップ用の第2のブロックとを有しており、前記センター側装置は、前記第2のブロックに前記更新データを書き込ませた後に、前記第2のブロックのデータを、前記第1のブロックにコピーする構成を採用できる。この場合、不揮発性メモリに書換え中に、電源断や回線断が発生した場合でも、第1のブロックのデータには影響がないため、通信端末装置の運用には支障がない。   In the communication terminal control method of the present invention, the non-volatile memory includes a first block for operation and a second block for backup, and the center side device includes the second block. After the update data is written into the second block, the second block data can be copied to the first block. In this case, even if a power interruption or line interruption occurs during rewriting to the nonvolatile memory, there is no effect on the data in the first block, so there is no problem in the operation of the communication terminal apparatus.

本発明の通信端末の制御方法では、前記センター側装置は、前記通信端末装置内で計算された前記更新データのチェックサムの演算結果を、前記制御チャネルを介して参照して更新データが正しく送信できたか否かを判断する構成を採用できる。   In the communication terminal control method of the present invention, the center side apparatus correctly transmits the update data by referring to the checksum calculation result of the update data calculated in the communication terminal apparatus via the control channel. It is possible to adopt a configuration for determining whether or not it has been completed.

本発明の通信端末装置では、メモリ制御手段は、制御チャネルを介してセンター側装置から送信された不揮発性メモリに対する制御指示を解釈して、不揮発性メモリを制御する。また、本発明の通信端末装置の制御方法では、センター側装置からのコマンドに基づいて、通信端末装置内の不揮発性メモリを制御する。このようにすることで、CPUを用いなくても、センター側装置から、通信端末装置内の不揮発性メモリを制御することができ、CPUを用いる場合に比して、部品点数を削減してコストを抑えることができる。   In the communication terminal device of the present invention, the memory control means interprets a control instruction for the nonvolatile memory transmitted from the center side device via the control channel, and controls the nonvolatile memory. In the communication terminal device control method of the present invention, the nonvolatile memory in the communication terminal device is controlled based on a command from the center side device. In this way, the non-volatile memory in the communication terminal device can be controlled from the center side device without using the CPU, and the number of parts can be reduced and the cost can be reduced as compared with the case where the CPU is used. Can be suppressed.

以下、図面を参照して、本発明の実施の形態を詳細に説明する。図1は、本発明の一実施形態の通信装置の構成を示している。この通信装置は、xDSLモデム10として構成されており、xDSLデバイス12、FPGA13、PHYデバイス14、FLASH ROM15、及び、FLASH ROM制御回路16を有する。ADSLやVDSL等のxDSLラインでは、ユーザデータ(ユーザパケット)の通信チャネルの他に、eoc(embedded operating channel)と呼ばれる制御チャネルが用意されており、図示しないセンター側装置とモデム装置との間で、ユーザデータと制御データとを同時に通信することができる。eocによる制御データの通信は、ANSIやITU−Tの標準スペックでは、使用方法に自由度が認められており、独自のプロトコルを用いて、センター側装置とモデム装置との間のデータ通信に使用することができる。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 shows the configuration of a communication apparatus according to an embodiment of the present invention. This communication apparatus is configured as an xDSL modem 10 and includes an xDSL device 12, an FPGA 13, a PHY device 14, a FLASH ROM 15, and a FLASH ROM control circuit 16. In xDSL lines such as ADSL and VDSL, a control channel called eoc (embedded operating channel) is prepared in addition to a communication channel for user data (user packets). User data and control data can be communicated simultaneously. Control data communication by eoc is used in data communication between the center side device and the modem device using a unique protocol in the standard specifications of ANSI and ITU-T. can do.

xDSLデバイス12は、xDSLラインを終端するxDSL終端部101と、xDSLラインで通信されるユーザパケットを終端するMAC部102とを有する。また、xDSLデバイス12は、後段のFPGA13やPHYデバイス14を制御するための制御系インタフェースとして、MDIOインタフェース120を有する。xDSLデバイス12のMAC部102(内部信号生成部)は、eoc制御チャネルを介して受信した信号を所定フォーマットのMDIO信号(内部信号)に変換し、変換したMDIO信号を、MDIOインタフェース120を介してモデム装置内の各部に入力する。この仕組みにより、モデム装置内の各部は、CPU制御を必要とせずに、eoc制御チャネルを用いて、センター側装置から直接に制御できる。   The xDSL device 12 includes an xDSL termination unit 101 that terminates an xDSL line, and a MAC unit 102 that terminates a user packet communicated on the xDSL line. Further, the xDSL device 12 has an MDIO interface 120 as a control system interface for controlling the FPGA 13 and the PHY device 14 in the subsequent stage. The MAC unit 102 (internal signal generation unit) of the xDSL device 12 converts a signal received via the eoc control channel into an MDIO signal (internal signal) of a predetermined format, and the converted MDIO signal is transmitted via the MDIO interface 120. Input to each part in the modem device. With this mechanism, each unit in the modem device can be directly controlled from the center side device using the eoc control channel without requiring CPU control.

FPGA(Field Programmable Gate Array)13は、ユーザパケット送信優先制御のQoS処理など、モデム装置に要求される機能を実現する回路であり、動作に必要な設定は、eoc制御チャネルとxDSLデバイス12のMDIOインタフェース120とを介して、センター側装置によって行われる。PHYデバイス14は、イーサネット(登録商標)のレイヤ1機能を実現する。PHYデバイス14の動作に必要な設定についても、eoc制御チャネルとxDSLデバイス12のMDIOインタフェース120とを介して、センター側装置によって行われる。xDSLデバイス12、FPGA13、及び、PHYデバイス14は、センター側装置との間で通信されるユーザパケットを後段のデバイスに転送するための主信号系インタフェース111と112とをそれぞれ有する。   An FPGA (Field Programmable Gate Array) 13 is a circuit that realizes functions required for a modem device, such as QoS processing for user packet transmission priority control, and settings required for operation include the eoc control channel and the MDIO of the xDSL device 12. This is performed by the center side device via the interface 120. The PHY device 14 realizes an Ethernet (registered trademark) layer 1 function. Settings necessary for the operation of the PHY device 14 are also performed by the center side device via the eoc control channel and the MDIO interface 120 of the xDSL device 12. The xDSL device 12, the FPGA 13, and the PHY device 14 have main signal system interfaces 111 and 112 for transferring user packets communicated with the center side device to subsequent devices, respectively.

FLASH ROM15は、FPGA13をプログラムするためのデータを記憶する。FLASH ROM制御回路16は、FPGAインタフェース122によってFPGA13と接続され、FLASH ROMインタフェース121によって、FLASH ROM15と接続される。FLASH ROM制御回路16は、装置の起動時にFLASH ROM15のデータを読み出してFPGA13をプログラムする機能を有する。また、FLSAH ROM制御回路16は、MDIOインタフェース120を備えており、MDIOインタフェース120から受信したコマンドとデータにより、FLASH ROM15のデータを書き換える機能を有する。   The FLASH ROM 15 stores data for programming the FPGA 13. The FLASH ROM control circuit 16 is connected to the FPGA 13 via the FPGA interface 122 and is connected to the FLASH ROM 15 via the FLASH ROM interface 121. The FLASH ROM control circuit 16 has a function of reading data from the FLASH ROM 15 and programming the FPGA 13 when the apparatus is activated. The FLSAH ROM control circuit 16 includes an MDIO interface 120, and has a function of rewriting data in the FLASH ROM 15 with commands and data received from the MDIO interface 120.

なお、eoc制御チャネルやxDSLデバイスのMDIOインタフェース120、FLASH ROM制御回路16によるFPGA13のプログラム方法はよく知られており、また、本発明とは直接関係しないため、その詳細な説明は省略する。   The programming method of the FPGA 13 by the eoc control channel, the MDIO interface 120 of the xDSL device, and the FLASH ROM control circuit 16 is well known and is not directly related to the present invention.

図2は、IEEE802.3で定義されているMDIOの信号フォーマットを示している。MDIOインタフェース120は、xDSLデバイス12のMAC部102からモデム装置内の各部のレジスタをリード/ライトするためのシリアルインタフェースとして構成される。MDIOの信号フォーマットは、リード動作かライト動作かを指定するOPコード201、MAC部102に接続されたモデム装置内の各部を指定するPHYアドレス202、モデム装置内の各部が備えるレジスタの番号を指定するレジスタアドレス203、リード動作の場合にモデム装置内の各部がMDIOインタフェース120にレジスタデータを出力する処理時間を確保するためのターンアラウンド204、及び、レジスタのリード/ライト動作のためのデータ領域205で構成される。   FIG. 2 shows an MDIO signal format defined in IEEE 802.3. The MDIO interface 120 is configured as a serial interface for reading / writing the registers of each unit in the modem device from the MAC unit 102 of the xDSL device 12. For the MDIO signal format, an OP code 201 for designating a read operation or a write operation, a PHY address 202 for designating each unit in the modem device connected to the MAC unit 102, and a register number included in each unit in the modem device are designated. Register address 203 to be used, a turnaround 204 for securing processing time for each unit in the modem device to output register data to the MDIO interface 120 in the case of a read operation, and a data area 205 for a register read / write operation Consists of.

ここで、MDIOインタフェース120経由でFLASH ROM15のデータを更新するためには、MAC部102からFLASH ROM制御回路16に大量のROMデータを転送する必要があり、また、FLASH ROM15の消去やデータ更新後に、FPGA13の再プログラムの処理が必要になるなど、単なるレジスタアクセス方式では、MDIO経由でROMデータを更新することは難しい。そこで、本実施形態では、FLASH ROM制御回路16に対するライト動作のMDIO信号フォーマット中のレジスタアドレス203を、MAC部102からFLASH ROM制御回路16へのコマンド用の命令コードとして使用する。また、16ビットのデータ領域205の一部を、命令コードに必要なパラメータの転送や、命令コードの拡張に使用してもよい。この場合、レジスタアドレス203は5ビットであるため、最大32種類の命令コードしか指定できないが、データ領域205の上位数ビットを命令コードの一部として使用することにより、32種類以上の命令コードを、FLASH ROM制御回路16に転送することができる。   Here, in order to update the data in the FLASH ROM 15 via the MDIO interface 120, it is necessary to transfer a large amount of ROM data from the MAC unit 102 to the FLASH ROM control circuit 16, and after erasing the FLASH ROM 15 or updating the data. It is difficult to update ROM data via MDIO with a simple register access method, such as requiring reprogramming of the FPGA 13. Therefore, in this embodiment, the register address 203 in the MDIO signal format of the write operation for the FLASH ROM control circuit 16 is used as an instruction code for a command from the MAC unit 102 to the FLASH ROM control circuit 16. Further, a part of the 16-bit data area 205 may be used for transferring parameters necessary for the instruction code and for extending the instruction code. In this case, since the register address 203 is 5 bits, only a maximum of 32 types of instruction codes can be specified. However, by using the upper several bits of the data area 205 as a part of the instruction code, more than 32 types of instruction codes can be specified. , And can be transferred to the FLASH ROM control circuit 16.

また、FLASH ROM制御回路16には、2つのPHYアドレスを割り当てる。割り当てるPHYアドレスのうちの1つは、命令コードの転送に使用する。もう1つのPHYアドレスは、通常のMDIOレジスタアクセスの動作により、FLASH ROM制御回路16が備えるMAC部102からリード/ライト可能なレジスタの指定に使用する。この場合、FLASH ROM制御回路16は、MDIO信号に含まれるPHYアドレス202を参照することで、受信したMDIO信号が命令コードの転送を行うための信号であるか、或いは、レジスタに対するリード/ライトのための信号であるかを判断することができる。   Further, two PHY addresses are assigned to the FLASH ROM control circuit 16. One of the PHY addresses to be assigned is used for transferring an instruction code. The other PHY address is used to designate a register that can be read / written from the MAC unit 102 included in the FLASH ROM control circuit 16 by a normal MDIO register access operation. In this case, the FLASH ROM control circuit 16 refers to the PHY address 202 included in the MDIO signal, so that the received MDIO signal is a signal for transferring the instruction code or the read / write of the register is performed. It is possible to determine whether the signal is for the purpose.

図3は、FALSH ROM制御回路16の詳細な構成を示している。FLASH ROM制御回路16は、MDIO終端回路301、デコーダ回路302、MDIOデータレジスタ303、MDIOコマンドレジスタ304、MDIOコマンドシーケンス制御回路305、チェックサム演算回路306、ROMデータプログラム制御回路307、FLASH ROM制御コマンド生成回路308、FPGAプログラム制御回路309、FLASH ROMインタフェース回路310、及び、FPGAインタフェース回路311を備える。   FIG. 3 shows a detailed configuration of the FALSH ROM control circuit 16. The FLASH ROM control circuit 16 includes an MDIO termination circuit 301, a decoder circuit 302, an MDIO data register 303, an MDIO command register 304, an MDIO command sequence control circuit 305, a checksum operation circuit 306, a ROM data program control circuit 307, and a FLASH ROM control command. A generation circuit 308, an FPGA program control circuit 309, a FLASH ROM interface circuit 310, and an FPGA interface circuit 311 are provided.

MDIO終端回路301は、MDIOインタフェース120を終端する。デコーダ回路302は、受信したMDIO信号をデコードする。その際、PHYアドレス202(図2)を参照して、通常のレジスタアクセス動作か、コマンド動作かを識別する。MDIOデータレジスタ303及びMDIOコマンドレジスタ304は、それぞれ、MDIOのレジスタリード動作によってセンター側装置が参照可能なレジスタである。MDIOデータレジスタ303は、センター側装置に通知する必要がある情報を保持する。MDIOコマンドレジスタ304は、センター側装置によって発行されたコマンドと、そのコマンド完了の有無を表示するフラグとを保持する。   The MDIO termination circuit 301 terminates the MDIO interface 120. The decoder circuit 302 decodes the received MDIO signal. At this time, referring to the PHY address 202 (FIG. 2), it is identified whether the operation is a normal register access operation or a command operation. The MDIO data register 303 and the MDIO command register 304 are registers that can be referred to by the center side device by the MDIO register read operation. The MDIO data register 303 holds information that needs to be notified to the center side device. The MDIO command register 304 holds a command issued by the center side device and a flag indicating whether or not the command is completed.

MDIOコマンドシーケンス制御回路305は、MDIOインタフェース120を介して受信したコマンドの実行管理を行う。チェックサム演算回路306は、MDIOインタフェース120を介して受信したROMデータのチェックサムを算出する。FLASH ROM制御コマンド生成回路308は、FLASH ROM15のセクタ消去コマンドや、連続プログラムコマンドなどの、FLASH ROM15を実際に制御するために必要なROM制御コマンドを生成する。ROMデータプログラム制御回路307は、FLASH ROM15へのROMデータの書き込みを行う。FPGAプログラム制御回路309は、FLASH ROM15のデータを読み出して、FPGA13をプログラムする。FLASH ROMインタフェース回路310は、FLASH ROM15との間のインタフェース121を実現する。FPGAインタフェース回路311は、FPGA13との間のインタフェース122を実現する。   The MDIO command sequence control circuit 305 performs execution management of commands received via the MDIO interface 120. The checksum calculation circuit 306 calculates the checksum of the ROM data received via the MDIO interface 120. The FLASH ROM control command generation circuit 308 generates ROM control commands necessary for actually controlling the FLASH ROM 15 such as a sector erase command of the FLASH ROM 15 and a continuous program command. The ROM data program control circuit 307 writes ROM data to the FLASH ROM 15. The FPGA program control circuit 309 reads the data in the FLASH ROM 15 and programs the FPGA 13. The FLASH ROM interface circuit 310 implements an interface 121 with the FLASH ROM 15. The FPGA interface circuit 311 implements an interface 122 with the FPGA 13.

図4は、xDSLモデム10のFLASH ROM15の書換え時の動作手順を示している。ROMデータの更新に際して、センター側装置は、制御チャネルを介して、xDSLモデム10に更新開始コマンドを発行する(ステップS1)。この更新開始コマンドは、MAC部102によってMDIOフォーマットの信号に変換され、MDIOインタフェース120を介して、FLASH ROM制御回路16に入力される。FLASH ROM制御回路16は、デコーダ回路302により、受信したMDIO信号をデコードする。デコーダ回路302は、受信したMDIO信号のPHYアドレス202及びレジスタアドレス203(図2)に基づいて、更新開始コマンドであると解釈し、MDIOコマンドシーケンス制御回路305に、更新開始コマンドを転送する(ステップS2)。   FIG. 4 shows an operation procedure when the FLASH ROM 15 of the xDSL modem 10 is rewritten. When updating the ROM data, the center side device issues an update start command to the xDSL modem 10 via the control channel (step S1). This update start command is converted into an MDIO format signal by the MAC unit 102 and input to the FLASH ROM control circuit 16 via the MDIO interface 120. The FLASH ROM control circuit 16 uses the decoder circuit 302 to decode the received MDIO signal. The decoder circuit 302 interprets it as an update start command based on the PHY address 202 and the register address 203 (FIG. 2) of the received MDIO signal, and transfers the update start command to the MDIO command sequence control circuit 305 (step S2).

MDIOコマンドシーケンス制御回路305は、更新開始コマンドが転送されると、MDIOコマンドレジスタ304のコマンド完了フラグをクリアし、転送された更新開始コマンドをMDIOコマンドレジスタ304に書き込む(ステップS3)。また、FLASH ROM制御コマンド生成回路308に対して、ROMデータ消去や連続プログラムなど、更新開始に必要となるROM制御コマンドの列(シーケンス)を、FLASH ROM15へ出力するように指示する(ステップS4)。MDIOコマンドシーケンス制御回路305は、FLASH ROM制御コマンド生成回路308によるROM制御コマンドの出力が終了すると、MDIOコマンドレジスタ304に、処理完了を示すフラグをセットする(ステップS5)。   When the update start command is transferred, the MDIO command sequence control circuit 305 clears the command completion flag in the MDIO command register 304 and writes the transferred update start command in the MDIO command register 304 (step S3). Further, the FLASH ROM control command generation circuit 308 is instructed to output to the FLASH ROM 15 a sequence (sequence) of ROM control commands necessary for starting update, such as ROM data erasure and continuous program (step S4). . When the output of the ROM control command by the FLASH ROM control command generation circuit 308 is completed, the MDIO command sequence control circuit 305 sets a flag indicating completion of processing in the MDIO command register 304 (step S5).

センター側装置は、MDIOレジスタのリード動作で、MDIOコマンドレジスタ304の値を読み出し、コマンド完了フラグがセットされているか否かをチェックし、更新開始コマンドの完了を確認する。センター側装置は、コマンド完了を確認すると、制御チャネルを介して、ROMデータ送信コマンドを発行する(ステップS6)。このROMデータ送信コマンドは、MAC部102によってMDIOフォーマットの信号に変換され、MDIOインタフェース120を介して、FLASH ROM制御回路16に入力される。このときFLASH ROM制御回路16が受信するMDIO信号のレジスタアドレス203には、ROMデータの送信を示す命令コード(コマンド)が付与され、データ領域205には、更新データが付与されている。   The center side device reads the value of the MDIO command register 304 by the read operation of the MDIO register, checks whether the command completion flag is set, and confirms the completion of the update start command. When the center side device confirms the completion of the command, it issues a ROM data transmission command via the control channel (step S6). The ROM data transmission command is converted into an MDIO format signal by the MAC unit 102 and input to the FLASH ROM control circuit 16 via the MDIO interface 120. At this time, an instruction code (command) indicating transmission of ROM data is given to the register address 203 of the MDIO signal received by the FLASH ROM control circuit 16, and update data is given to the data area 205.

MDIOコマンドシーケンス制御回路305は、MDIOコマンドレジスタ304のコマンド完了フラグをリセットし、MDIOコマンドレジスタ304に、デコーダ回路302を介して受信したROMデータの送信コマンドを書き込む(ステップS7)。その後、受信した命令コマンドがROMデータの送信であるため、ROMデータプログラム制御回路307に、コマンドと共に送信されたROM更新データの書き込みを指示する(ステップS8)。ROMデータプログラム制御回路307は、FLASH ROM15に更新データをプログラムする(ステップS9)。このとき、チェックサム演算回路306は、ROM更新データのチェックサムを算出し、チェックサムの演算結果を、MDIOデータレジスタ303に格納する(ステップS10)。   The MDIO command sequence control circuit 305 resets the command completion flag of the MDIO command register 304, and writes the ROM data transmission command received via the decoder circuit 302 into the MDIO command register 304 (step S7). Thereafter, since the received command is ROM data transmission, the ROM data program control circuit 307 is instructed to write the ROM update data transmitted together with the command (step S8). The ROM data program control circuit 307 programs update data in the FLASH ROM 15 (step S9). At this time, the checksum calculation circuit 306 calculates the checksum of the ROM update data, and stores the checksum calculation result in the MDIO data register 303 (step S10).

図5は、FLASH ROM15のROMデータのイメージ図を示している。FLASH ROM15には、FPGA13のプログラムデータが、2つのブロック501、502のそれぞれに記憶される。このうち、ブロック501に記憶されたデータは、FPGA13をプログラムする際に使用されるデータであり、ブロック502は、バックアップデータに相当する。ステップS10の更新データのプログラムは、バックアップ用のブロック502に対して行われる。このようにバックアップ用のブロック502を用いるのは、センター側装置とモデム装置間の制御チャネルによるデータ通信では、通信中のエラーに対しては、エラー検出時の再送処理など、通信プロトコルによって保護することはできるものの、ROMデータ更新中にモデムの電源が切られるなどの事態には対応できないため、ROMデータを、モデム装置側でバックアップして保持する必要があるためである。   FIG. 5 shows an image diagram of ROM data of the FLASH ROM 15. In the FLASH ROM 15, program data of the FPGA 13 is stored in each of the two blocks 501 and 502. Among these, the data stored in the block 501 is data used when the FPGA 13 is programmed, and the block 502 corresponds to backup data. The update data program in step S10 is performed for the backup block 502. In this way, the backup block 502 is used for data communication using the control channel between the center side device and the modem device, and protects against an error during communication by a communication protocol such as retransmission processing when an error is detected. This is because, however, it is not possible to cope with a situation such as the modem being turned off during the ROM data update, and therefore it is necessary to backup and hold the ROM data on the modem device side.

センター側装置とFLASH ROM制御回路16とは、ROM更新データの送信からFLASH ROM15のプログラム、チェックサムの演算までの処理を繰り返すことにより、ROMデータの転送を実行する。センター側装置は、MDIOレジスタのリード動作により、MDIOデータレジスタ303やMDIOコマンドレジスタ304をチェックすることで、チェックサムの演算結果や更新データ転送の実行状態を判断することができる。センター側装置は、全てのROMデータの送信が完了し、FLASH ROM15のプログラムに成功すると、送信完了コマンドを発行する(ステップS11)。この送信完了コマンドは、MDIOフォーマットの信号に変換されて、FLASH ROM制御回路16に入力される。   The center side device and the FLASH ROM control circuit 16 execute the ROM data transfer by repeating the processes from the transmission of the ROM update data to the FLASH ROM 15 program and the checksum calculation. The center side device can determine the checksum calculation result and the execution state of the update data transfer by checking the MDIO data register 303 and the MDIO command register 304 by the read operation of the MDIO register. When the transmission of all ROM data is completed and the program of the FLASH ROM 15 is successful, the center side device issues a transmission completion command (step S11). This transmission completion command is converted into an MDIO format signal and input to the FLASH ROM control circuit 16.

ROMデータの更新が正しく行われなかった場合には、センター装置側は更新失敗コマンドを発行し、FLASH ROM制御回路16に、データ更新の中断を指示する。また、MDIOコマンドシーケンス制御回路305がROMデータの更新開始後、所定時間以内にROMデータ送信コマンドや更新完了コマンドを受信しない場合には、データ更新処理を中断する。データ更新の中断処理は、MDIOコマンドシーケンス制御回路305が、FLASH ROM制御コマンド生成回路308に、FLASH ROM15へのプログラム終了コマンドを出力させることで実行される。   If the ROM data has not been updated correctly, the center device issues an update failure command and instructs the FLASH ROM control circuit 16 to interrupt the data update. If the MDIO command sequence control circuit 305 does not receive the ROM data transmission command or the update completion command within a predetermined time after the ROM data update is started, the data update process is interrupted. The data update interruption process is executed when the MDIO command sequence control circuit 305 causes the FLASH ROM control command generation circuit 308 to output a program end command to the FLASH ROM 15.

MDIOコマンドシーケンス制御回路305は、デコーダ回路302を介して更新完了コマンドを受信すると、ROMデータプログラム制御回路307に、バックアップ用のブロック502(図5)にプログラムしたROMデータを、ブロック501にコピーすることを指示する(ステップS12)。ROMデータプログラム制御回路307は、この指示に従って、ブロック502のデータを、ブロック501にコピーする(ステップS13)。その後、ブロック501に記憶されたデータを用いて、FPGA13の再プログラムを実行する。   When the MDIO command sequence control circuit 305 receives the update completion command via the decoder circuit 302, the ROM data program control circuit 307 copies the ROM data programmed in the backup block 502 (FIG. 5) to the block 501. (Step S12). In accordance with this instruction, the ROM data program control circuit 307 copies the data in the block 502 to the block 501 (step S13). Thereafter, the FPGA 13 is reprogrammed using the data stored in the block 501.

本実施形態では、センター側装置から、xDSLラインの制御チャネルを用いてxDSLモデム10にFLASH ROM15の更新データを送信する。xDSLモデム10では、受信した更新データを、xDSLデバイス12によってMDIOの信号フォーマットに変換した後に、FLASH ROM制御回路16に受け渡す。このようにすることにより、CPUを用いずに、センター装置側からモデム装置内のFLASH ROM15のROMデータ書換えを実行できる。   In this embodiment, the update data of the FLASH ROM 15 is transmitted from the center side device to the xDSL modem 10 using the control channel of the xDSL line. In the xDSL modem 10, the received update data is converted into the MDIO signal format by the xDSL device 12 and then transferred to the FLASH ROM control circuit 16. By doing so, it is possible to execute ROM data rewriting of the FLASH ROM 15 in the modem device from the center device side without using the CPU.

本実施形態では、MDIOの信号フォーマット中のレジスタアドレス203(図2)を、MAC部102からPHYデバイス14方向への命令コードの領域として使用する。これにより、センター側装置からxDSLモデム10に対して、大量のデータ転送を行うことができ、また、その他付随する処理を指示することができる。本実施形態では、チェックサム演算回路306によって、ROM更新が正しく行われた否かをチェックし、そのチェック結果を、MDIOデータレジスタ303に格納する。センター側装置は、MDIOのレジスタリードの動作によってチェックサムの演算結果を確認することができ、更新が正しく行われた場合にのみ、FLASH ROM15において、更新されたデータを有効とすることができる。   In this embodiment, the register address 203 (FIG. 2) in the MDIO signal format is used as an instruction code area from the MAC unit 102 toward the PHY device 14. Thereby, a large amount of data can be transferred from the center side apparatus to the xDSL modem 10, and other accompanying processing can be instructed. In this embodiment, the checksum operation circuit 306 checks whether the ROM update has been performed correctly, and stores the check result in the MDIO data register 303. The center side device can confirm the checksum calculation result by the MDIO register read operation, and can make the updated data valid in the FLASH ROM 15 only when the update is performed correctly.

以上、本発明をその好適な実施形態に基づいて説明したが、本発明の通信端末装置及びその制御方法は、上記実施形態にのみ限定されるものではなく、上記実施形態の構成から種々の修正及び変更を施したものも、本発明の範囲に含まれる。   Although the present invention has been described based on the preferred embodiments, the communication terminal device and the control method of the present invention are not limited to the above embodiments, and various modifications can be made from the configuration of the above embodiments. Further, modifications and changes are also included in the scope of the present invention.

本発明の一実施形態の通信装置の構成を示すブロック図。The block diagram which shows the structure of the communication apparatus of one Embodiment of this invention. MDIOの信号フォーマットを示す図。The figure which shows the signal format of MDIO. FALSH ROM制御回路の詳細な構成を示すブロック図。The block diagram which shows the detailed structure of a FALSE ROM control circuit. xDSLモデムのFLASH ROMの書換え時の動作手順を示すフローチャート。The flowchart which shows the operation | movement procedure at the time of rewriting of FLASH ROM of a xDSL modem. FLASH ROMのROMデータのイメージを示す図。The figure which shows the image of ROM data of FLASH ROM. CPUを有する従来のモデム装置の構成を示すブロック図。The block diagram which shows the structure of the conventional modem apparatus which has CPU. CPUを有しない従来のモデム装置の構成を示すブロック図。The block diagram which shows the structure of the conventional modem apparatus which does not have CPU.

符号の説明Explanation of symbols

10:通信装置(xDSLモデム)
12:xDSLデバイス
13:FPGA
14:PHYデバイス
15:FLASH ROM
16:FLASH ROM制御回路
101:xDSL終端部
102:MAC部
111、112:主信号系インタフェース
120:MDIOインタフェース
121:FLASH ROMインタフェース
122:FPGAインタフェース
301:MDIO終端回路
302:デコーダ回路
303:MDIOデータレジスタ
304:MDIOコマンドレジスタ
305:MDIOコマンドシーケンス制御回路
306:チェックサム演算回路
307:ROMデータプログラム制御回路
308:FLASH ROM制御コマンド生成回路
309:FPGAプログラム制御回路
310:FLASH ROMインタフェース回路
311:FPGAインタフェース回路
10: Communication device (xDSL modem)
12: xDSL device 13: FPGA
14: PHY device 15: FLASH ROM
16: FLASH ROM control circuit 101: xDSL termination unit 102: MAC unit 111, 112: main signal interface 120: MDIO interface 121: FLASH ROM interface 122: FPGA interface 301: MDIO termination circuit 302: decoder circuit 303: MDIO data register 304: MDIO command register 305: MDIO command sequence control circuit 306: checksum operation circuit 307: ROM data program control circuit 308: FLASH ROM control command generation circuit 309: FPGA program control circuit 310: FLASH ROM interface circuit 311: FPGA interface circuit

Claims (17)

センター側装置との間で制御チャネルを用いた通信を行う通信端末装置であって
前記制御チャネルを用いて受信した信号に基づいて、アクセス対象のデバイスのアドレスを含む所定フォーマットの内部信号を生成し、生成した前記内部信号を出力する内部信号生成部と、
第1及び第2のアドレスが設定され、前記内部信号生成部が出力した前記内部信号を受信し、前記内部信号に含まれる前記アドレスが前記第1のアドレスである場合、前記内部信号に基づいて不揮発性メモリを制御し、前記内部信号に含まれる前記アドレスが前記第2のアドレスである場合、前記内部信号に基づいて保有するレジスタのデータを制御するメモリ制御手段とを備えたことを特徴とする通信端末装置。
A communication communication terminal apparatus that performs using the control channel between the center side device,
An internal signal generation unit that generates an internal signal of a predetermined format including an address of a device to be accessed based on a signal received using the control channel, and outputs the generated internal signal;
When the first and second addresses are set, the internal signal output from the internal signal generation unit is received, and the address included in the internal signal is the first address, based on the internal signal Memory control means for controlling a nonvolatile memory and , when the address included in the internal signal is the second address, controlling data of a register held based on the internal signal. A communication terminal device.
前記メモリ制御手段は、前記内部信号に含まれるデータに従って、前記不揮発性メモリの書換えを行う、請求項1に記載の通信端末装置。   The communication terminal apparatus according to claim 1, wherein the memory control unit rewrites the nonvolatile memory according to data included in the internal signal. 前記不揮発性メモリは、運用に使用する第1のブロックと、バックアップ用の第2のブロックとを有し、前記メモリ制御手段は、前記内部信号に含まれるデータを前記第2のブロックに書き込み、該第2のブロックにデータを書き込んだ後に、前記第2のブロックのデータを前記第1のブロックにコピーする、請求項2に記載の通信端末装置。   The nonvolatile memory has a first block used for operation and a second block for backup, and the memory control means writes the data included in the internal signal to the second block, The communication terminal device according to claim 2, wherein after the data is written to the second block, the data of the second block is copied to the first block. 前記センター側装置が、前記制御チャネル及び前記内部信号生成部を介して、通信端末装置内のレジスタを参照可能である、請求項1〜3の何れか一に記載の通信端末装置。   The communication terminal device according to claim 1, wherein the center side device can refer to a register in the communication terminal device via the control channel and the internal signal generation unit. 前記内部信号が、通信端末装置内のレジスタアクセスのための信号であり、前記メモリ制御手段には、レジスタアクセスのための通信線を介して前記内部信号が入力される、請求項1〜4の何れか一に記載の通信端末装置。   The internal signal is a signal for register access in a communication terminal device, and the internal signal is input to the memory control unit via a communication line for register access. The communication terminal device according to any one of the above. 前記内部信号が、リード又はライトのアクセス種別と、通信端末装置内のアクセス対象のデバイスのアドレスを指定するアドレス部と、前記デバイスが保有するレジスタのうちでアクセス対象となるレジスタを指定するレジスタ指定部とを含む、請求項5に記載の通信端末装置。   The internal signal is a read or write access type, an address part that specifies the address of the device to be accessed in the communication terminal device, and a register specification that specifies a register to be accessed among the registers held by the device The communication terminal device according to claim 5, further comprising: 前記メモリ制御手段は、前記レジスタ指定部に含まれるデータに基づいて、前記不揮発性メモリに対する制御を決定する、請求項6に記載の通信端末装置。   The communication terminal apparatus according to claim 6, wherein the memory control unit determines control of the nonvolatile memory based on data included in the register specifying unit. 記メモリ制御手段は、受信した前記内部信号のアドレス指定部が前記第1のアドレスを指定するときには、前記レジスタ指定部に含まれるデータに基づいて、前記不揮発性メモリに対する制御を決定し、前記アドレス指定部が第2のアドレスを指定するときには、前記レジスタ指定部に含まれるデータに基づいて、保有するレジスタのデータをリードし、又は、レジスタにデータをライトする、請求項6に記載の通信端末装置。 Before SL memory control means, when the address portion of the internal signal received designating the first address, based on the data contained in the register designating unit determines a control for said non-volatile memory, wherein 7. The communication according to claim 6, wherein when the address designating unit designates the second address, based on the data contained in the register designating unit, the data of the register held is read or the data is written to the register. Terminal device. 前記メモリ制御手段が、
前記内部信号をデコードし、前記センター側装置によって発行された前記不揮発性メモリに対するコマンドを解釈するデコーダ回路と、
前記デコーダ回路のデコード結果に従って、前記不揮発性メモリに対する制御コマンドを決定するコマンドシーケンス制御回路と、
前記コマンドシーケンス制御回路が決定した制御コマンドを、前記不揮発性メモリに出力する制御コマンド生成回路と、
前記コマンドシーケンス制御回路がデータ書き込みを示す制御コマンドを決定すると、前記内部信号に含まれる更新データを、前記不揮発性メモリに書き込むデータ書き込み制御回路とを備える、請求項1〜8の何れか一に記載の通信端末装置。
The memory control means;
A decoder circuit for decoding the internal signal and interpreting a command for the nonvolatile memory issued by the center side device;
A command sequence control circuit for determining a control command for the nonvolatile memory according to a decoding result of the decoder circuit;
A control command generation circuit for outputting a control command determined by the command sequence control circuit to the nonvolatile memory;
9. The data write control circuit according to claim 1, further comprising: a data write control circuit that writes update data included in the internal signal to the nonvolatile memory when the command sequence control circuit determines a control command indicating data write. The communication terminal device described.
前記メモリ制御手段が、前記デコーダ回路が解釈したコマンドと、該コマンドが完了した旨を示す完了フラグとを記憶するコマンドレジスタを更に備え、前記コマンドシーケンス制御回路は、前記制御コマンド生成回路による制御コマンドの出力、又は、前記データ書き込み制御回路によるデータ書き込みが完了すると、前記完了フラグをセットする、請求項9に記載の通信端末装置。   The memory control means further includes a command register for storing a command interpreted by the decoder circuit and a completion flag indicating that the command is completed, and the command sequence control circuit includes a control command generated by the control command generation circuit. The communication terminal device according to claim 9, wherein the completion flag is set when the data output or the data writing by the data writing control circuit is completed. 前記メモリ制御手段が、前記更新データのチェックサムを算出するチェックサム演算手段と、前記チェックサムの演算結果を保持するデータレジスタとを更に備える、請求項9又は10に記載の通信端末装置。   The communication terminal apparatus according to claim 9 or 10, wherein the memory control unit further includes a checksum calculation unit that calculates a checksum of the update data, and a data register that holds a calculation result of the checksum. 前記不揮発性メモリは、通信制御処理を行うFPGAをプログラムするためのデータを記憶する、請求項1〜11の何れか一に記載の通信端末装置。   The communication terminal device according to claim 1, wherein the nonvolatile memory stores data for programming an FPGA that performs communication control processing. センター側装置との間で制御チャネルを用いた通信を行う通信端末装置を制御する方法であって
前記センター側装置から、前記制御チャネルを介して前記通信端末装置内の不揮発性メモリまたはレジスタを制御するコマンドを発行するステップと
該コマンドに従って、アクセス対象のデバイスのアドレスを含む所定フォーマットの内部信号を生成し、生成した前記内部信号を出力するステップと、
前記内部信号を受信し、前記内部信号に含まれる前記アドレスが第1のアドレスである場合、前記内部信号に基づいて前記不揮発性メモリを制御し、前記内部信号に含まれるアドレスが第2のアドレスである場合、前記内部信号に基づいて保有するレジスタのデータを制御するステップと、を備えたことを特徴とする通信端末装置の制御方法。
A method of controlling a communication terminal apparatus that performs communication using a control channel between the center side device,
Issuing a command for controlling a non-volatile memory or a register in the communication terminal device from the center side device via the control channel;
Generating an internal signal of a predetermined format including an address of a device to be accessed according to the command, and outputting the generated internal signal;
When the internal signal is received and the address included in the internal signal is a first address, the nonvolatile memory is controlled based on the internal signal, and the address included in the internal signal is a second address. If it is, control method of a communication terminal apparatus characterized by comprising the steps of: controlling the data registers held under the internal signal.
前記センター側装置は、前記不揮発性メモリを制御するコマンド発行後、前記通信端末装置内のレジスタを前記制御チャネルを介して参照し、前記発行したコマンドの完了を確認する、請求項13に記載の通信端末装置の制御方法。 The center side apparatus, after issuing the command for controlling the non-volatile memory, a register in said communication terminal device with reference via the control channel, to confirm the completion of the command the issued claim 13 Method for controlling the communication terminal apparatus of the present invention. 前記センター側装置は、前記不揮発性メモリの更新データを前記制御チャネルを介して送信し、該送信した更新データを、前記不揮発性メモリに書き込ませる、請求項13に記載の通信端末装置の制御方法。   The method of controlling a communication terminal device according to claim 13, wherein the center side device transmits update data of the nonvolatile memory via the control channel, and causes the transmitted update data to be written to the nonvolatile memory. . 前記不揮発性メモリは、運用用の第1のブロックと、バックアップ用の第2のブロックとを有しており、前記センター側装置は、前記第2のブロックに前記更新データを書き込ませた後に、前記第2のブロックのデータを、前記第1のブロックにコピーする、請求項15に記載の通信端末装置の制御方法。   The non-volatile memory has a first block for operation and a second block for backup, and the center side device writes the update data in the second block, The communication terminal apparatus control method according to claim 15, wherein the data of the second block is copied to the first block. 前記センター側装置は、前記通信端末装置内で計算された前記更新データのチェックサムの演算結果を、前記制御チャネルを介して参照して更新データが正しく送信できたか否かを判断する、請求項15又は16に記載の通信端末装置の制御方法。   The center side device refers to a checksum calculation result of the update data calculated in the communication terminal device, and determines whether or not the update data has been correctly transmitted with reference to the control channel. The control method of the communication terminal device of 15 or 16.
JP2006093585A 2006-03-30 2006-03-30 COMMUNICATION TERMINAL DEVICE AND ITS CONTROL METHOD Expired - Fee Related JP4747015B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006093585A JP4747015B2 (en) 2006-03-30 2006-03-30 COMMUNICATION TERMINAL DEVICE AND ITS CONTROL METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006093585A JP4747015B2 (en) 2006-03-30 2006-03-30 COMMUNICATION TERMINAL DEVICE AND ITS CONTROL METHOD

Publications (2)

Publication Number Publication Date
JP2007274036A JP2007274036A (en) 2007-10-18
JP4747015B2 true JP4747015B2 (en) 2011-08-10

Family

ID=38676433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006093585A Expired - Fee Related JP4747015B2 (en) 2006-03-30 2006-03-30 COMMUNICATION TERMINAL DEVICE AND ITS CONTROL METHOD

Country Status (1)

Country Link
JP (1) JP4747015B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI498822B (en) * 2012-12-27 2015-09-01 Giga Byte Tech Co Ltd Electronic device for bios updatable and bios updating method thereof
CN104133798B (en) * 2014-08-01 2017-10-10 西安电子科技大学 A kind of big data high-speed memory system and implementation method
CN110769333A (en) * 2019-10-31 2020-02-07 江苏亿通高科技股份有限公司 Method for automatically synchronizing EOC terminal list

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09237182A (en) * 1995-10-05 1997-09-09 Ricoh Co Ltd Communication device
JP2001056759A (en) * 1999-08-18 2001-02-27 Matsushita Electric Ind Co Ltd Software rewriting method and software rewriting device
DE10139610A1 (en) * 2001-08-11 2003-03-06 Daimler Chrysler Ag Universal computer architecture
US7558193B2 (en) * 2002-08-12 2009-07-07 Starent Networks Corporation Redundancy in voice and data communications systems
JP2006101435A (en) * 2004-09-30 2006-04-13 Mitsubishi Electric Corp Optical communication module

Also Published As

Publication number Publication date
JP2007274036A (en) 2007-10-18

Similar Documents

Publication Publication Date Title
CN112947977A (en) Software online upgrading method and system
WO2018120213A1 (en) Firmware updating method and controller
JPH09128330A (en) Video display
CN102945174A (en) The Method of Upgrading the Program of Single-chip Microcomputer by Attaching the External Flash
CN110297608B (en) Data processing method, device and storage medium
WO2008151230A2 (en) Expanded memory for communications controller
US9361138B2 (en) Peripheral device, method of controlling peripheral device, firmware download system and program
JP4747015B2 (en) COMMUNICATION TERMINAL DEVICE AND ITS CONTROL METHOD
US8335871B2 (en) Memory system and method of driving the same
JPWO2015063864A1 (en) Motor control program transfer system, host controller, motor control device, and motor control program transfer method
JP2008123147A (en) Remote rewrite method for electronic control unit
KR20010027466A (en) Method for reprogramming ecu of vehicles
JP4478298B2 (en) Data transfer system
JP2002007152A (en) Download method and device
JP4988982B2 (en) Microcomputer control method
JP2001117778A (en) USB device with firmware rewriting function
CN111090447A (en) Firmware updating method of IO module and related device
TWI792500B (en) Device and method for handling programming language function
JP2007041798A (en) Information processing apparatus and memory rewriting method for information processing apparatus
JP2008257415A (en) Controller with program writing function
JP3114907B2 (en) How to change the sequence program of the programmable controller
CN117171097A (en) A field programmable gate array remote loading method and system
JP2003264601A (en) Communication control unit and image formation system
CN118827659A (en) DMA data transmission method, system and chip based on i2c protocol
CN121209928A (en) A batch online upgrade system and method for FPGA

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090217

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100225

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110104

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110225

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110516

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

Free format text: PAYMENT UNTIL: 20140520

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4747015

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees