JP4945788B2 - Communication adapter - Google Patents
Communication adapter Download PDFInfo
- Publication number
- JP4945788B2 JP4945788B2 JP2007310793A JP2007310793A JP4945788B2 JP 4945788 B2 JP4945788 B2 JP 4945788B2 JP 2007310793 A JP2007310793 A JP 2007310793A JP 2007310793 A JP2007310793 A JP 2007310793A JP 4945788 B2 JP4945788 B2 JP 4945788B2
- Authority
- JP
- Japan
- Prior art keywords
- file
- update
- update file
- storage area
- area
- 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
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Stored Programmes (AREA)
- Selective Calling Equipment (AREA)
- Telephonic Communication Services (AREA)
Description
本発明は、家電機器をネットワークに接続するために用いられる通信アダプタに関するものである。 The present invention relates to a communication adapter used for connecting a home appliance to a network.
最近、エアコンや照明、冷蔵庫などの家電機器を家庭内ネットワークを介して通信制御装置と接続し、パソコンや、外部のインターネットを介した携帯電話などから、家電機器の動作を制御したり、家電機器の状態を外部に知らせたりする技術の開発が盛んになっている。 Recently, home appliances such as air conditioners, lighting, and refrigerators are connected to a communication control device via a home network, and the operation of the home appliances can be controlled from a personal computer or a mobile phone via the external Internet. The development of technology to inform the outside of the situation to the outside has become active.
家電機器をこのようなネットワークに接続するために、家電機器には通信アダプタが接続され、該通信アダプタを介してネットワーク側の通信制御装置と通信可能に接続されている。そして、ネットワーク側の通信制御装置からの信号を通信アダプタで受信して、該信号に基づき家電機器を制御するのである。 In order to connect the home appliance to such a network, a communication adapter is connected to the home appliance and is connected to the communication control device on the network side via the communication adapter. Then, a signal from the network-side communication control device is received by the communication adapter, and the home appliance is controlled based on the signal.
かかる通信アダプタにおいては、新たに機能を追加したり、プログラムミスを修正したりするために、その動作プログラムを更新する必要が生じる。従来、動作プログラムの更新のため、次のような構成が提案されている。すなわち、通信アダプタにフラッシュメモリ(フラッシュROM)を2個実装して、一方のフラッシュメモリに記憶させた動作プログラムで通信アダプタを動作させるようにしておき、更新に際しては、もう一方のフラッシュメモリに更新ファイルを書き込んだ後、動作させるフラッシュメモリを切り替えるというものである。 In such a communication adapter, it is necessary to update the operation program in order to newly add a function or correct a program mistake. Conventionally, the following configuration has been proposed for updating an operation program. In other words, two flash memories (flash ROM) are mounted on the communication adapter, and the communication adapter is operated with the operation program stored in one flash memory. When updating, the other flash memory is updated. After writing the file, the flash memory to be operated is switched.
しかしながら、この構成では、不揮発メモリとしてのフラッシュメモリを2個実装するものであるため、通信アダプタ自体がリッチな構成になってしまう。家電機器のための通信アダプタとしては、よりシンプルな構造が求められる。 However, in this configuration, since two flash memories as nonvolatile memories are mounted, the communication adapter itself becomes a rich configuration. A simpler structure is required as a communication adapter for home appliances.
一方で、下記特許文献1には、ルータ等の通信制御装置におけるシステムファイルの更新方法として、メモリカード等の外部記憶媒体装着スロットを設けておき、更新に際し、該スロットに外部記憶媒体を装着して更新前のファイルをバックアップした後、フラッシュメモリに更新ファイルを書き込んで更新し、更新が失敗した場合には外部記憶媒体にバックアップした更新前のファイルで立ち上げるようにして再度更新を実施することが提案されている。しかしながら、この更新方法では、通信アダプタに外部記憶媒体装着スロットを設ける必要があり、また、更新に際し、該スロットに外部記憶媒体を装着する必要があるので、家電機器のための通信アダプタとしては、リッチな構成となり、また更新手順も煩雑であるため、実用的とは言えない。
On the other hand, in
また、下記特許文献2には、高インテリジェントな通信端末装置における主プログラムの更新方法として、通信回線から更新ファイルを受信したときに、まず、そのファイルをRAM(ランダムアクセスメモリ)に取り込み、次いで、RAMに取り込んだ更新ファイルをフラッシュメモリのバックアップ領域に書き込み、その後、バックアップ領域の更新ファイルをフラッシュメモリの主プログラム用領域に書き込むことが提案されている。しかしながら、このように更新ファイルを一旦RAMに取り込んで展開する構成では、RAMの容量が大きくなければならず、揮発メモリとしてのRAMの容量が小さい家電機器のための通信アダプタでは、採用し難い構成である。
本発明は、以上の点に鑑みてなされたものであり、RAM等の揮発メモリの容量を大きくすることなく、1つの不揮発メモリを用いて動作プログラムの更新を行うことができる通信アダプタを提供することを目的とする。 The present invention has been made in view of the above points, and provides a communication adapter capable of updating an operation program using one nonvolatile memory without increasing the capacity of a volatile memory such as a RAM. For the purpose.
本発明に係る通信アダプタは、家電機器をネットワークに接続するための通信アダプタであって、家電機器に接続されて当該家電機器との間での通信を可能とする家電機器インタフェース部と、ネットワーク側の通信制御装置に接続されて当該通信制御装置との間での通信を可能とする物理メディア用送受信部と、ランダムアクセス可能な揮発メモリからなる第1メモリと、通信アダプタの動作プログラムを記憶する動作ファイル領域、前記動作プログラムを更新するための更新ファイルを記憶する更新ファイル格納領域、前記第2メモリが、ブートローダを格納するブートローダ領域と、前記更新ファイル格納領域への更新ファイルの展開の成否及び展開した前記更新ファイルの前記動作ファイル領域への書き込みの成否に関する情報を保存するフラグ格納領域とを有し、記憶情報の書き換えが可能な不揮発メモリからなる第2メモリと、を備えてなり、前記家電機器インタフェース部又は前記物理メディア用送受信部を介してファイルを受信したときに、当該ファイルが前記動作プログラムを更新するための更新ファイルか否かを判定し、前記ファイルが更新ファイルでなければ、当該ファイルを前記第1メモリに送って該第1メモリに展開し、前記ファイルが更新ファイルであれば、当該ファイルを前記第2メモリに送って前記更新ファイル格納領域に展開し、前記更新ファイル格納領域に展開した前記更新ファイルを前記動作ファイル領域に書き込んで保存することにより、前記動作プログラムを更新するよう構成され、前記第2メモリの前記更新ファイル格納領域への前記更新ファイルの展開が完了したときに、前記フラグ格納領域に、前記更新ファイルの誤り検出符号と前記更新ファイルの展開が完了したことを示す情報を保存し、再起動により前記ブートローダ領域に格納された前記ブートローダが起動したときに、前記フラグ格納領域に保存した前記誤り検出符号と前記情報を確認して前記更新ファイル格納領域に前記更新ファイルが格納されていれば、前記動作ファイル領域への前記更新ファイルの書き込みを実行するよう構成されている。 A communication adapter according to the present invention is a communication adapter for connecting a home appliance to a network, and is connected to the home appliance and enables communication with the home appliance, and the network side A physical media transmission / reception unit that is connected to the communication control device and enables communication with the communication control device, a first memory that includes a randomly accessible volatile memory, and a communication adapter operation program. operation file area, the update file storage area for storing an update file for updating the previous SL operation program, said second memory, and a boot loader area for storing a boot loader, the success or failure of deployment of the update file to the update file storage area And information regarding the success or failure of writing the expanded update file to the operation file area. And a flag storage area for, it comprises a second memory rewriting of stored information consists of the non-volatile memory capable, and when receiving the file via the home appliance interface unit or the physical media transceiver unit Determining whether or not the file is an update file for updating the operation program. If the file is not an update file, the file is sent to the first memory and expanded in the first memory, If the file is an update file, the file is sent to the second memory and expanded in the update file storage area, and the update file expanded in the update file storage area is written and stored in the operation file area , the operation program is configured to update the previous to the update file storage area of the second memory When update file expansion is completed, the error storage code of the update file and information indicating that the update file expansion has been completed are stored in the flag storage area, and stored in the boot loader area upon restart When the boot loader is activated, if the error detection code and the information stored in the flag storage area are confirmed and the update file is stored in the update file storage area, the update to the operation file area is performed. Configured to perform file writing .
上記通信アダプタでは、受信したファイルが更新ファイルか否かを予め判定してから、更新ファイルである場合に、第1メモリには展開することなく、第2メモリの更新ファイル格納領域に展開し、その後、展開した更新ファイルを第2メモリの動作ファイル領域に書き込む。このように、更新ファイルを揮発メモリである第1メモリには展開しないので、揮発メモリの容量を小さく抑えることができる。また、不揮発メモリである第2メモリに更新ファイル格納領域と動作ファイル領域を設け、受信した更新ファイルを更新ファイル格納領域に展開してから、動作ファイル領域に書き込むようにしたので、1つの不揮発メモリで動作プログラムの更新を実施することができる。 In the communication adapter, after determining in advance whether or not the received file is an update file, if it is an update file, it is expanded in the update file storage area of the second memory without being expanded in the first memory, Thereafter, the expanded update file is written in the operation file area of the second memory. As described above, since the update file is not expanded in the first memory, which is a volatile memory, the capacity of the volatile memory can be reduced. In addition, an update file storage area and an operation file area are provided in the second memory, which is a nonvolatile memory, and the received update file is expanded into the update file storage area and then written to the operation file area. The operation program can be updated with this.
以下、本発明の実施形態について図面に基づいて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、実施形態に係る通信アダプタ10を組み込んだホームネットワークの構成例を示したものである。図示するように、通信アダプタ10は、家電機器12に対して通信インタフェース14を介して接続され、また、ネットワーク20側の通信制御装置であるホームゲートウェイ16に物理メディア18を介して接続されている。これにより、家電機器12は通信アダプタ10を介してホームネットワークに参加している。
FIG. 1 shows a configuration example of a home network in which a
制御対象となる家電機器12としては、特に限定されず、例えば、エアコン、給湯器、照明器具、冷蔵庫、洗濯乾燥機、電子レンジの他、ビデオ、オーディオなどのAV機器など、各種の家電機器が挙げられる。 The home appliance 12 to be controlled is not particularly limited. For example, various home appliances such as an air conditioner, a water heater, a lighting fixture, a refrigerator, a washing and drying machine, a microwave oven, and an AV device such as a video and an audio. Can be mentioned.
ネットワーク20側のホームゲートウェイ16は、ネットワーク20に接続されて、物理メディア18を介して通信アダプタ10に所定のコマンドを与え、それによって家電機器12を制御する通信制御装置である。ネットワーク20は、インターネットなどの外部ネットワークに接続されてもよく、その場合、携帯電話などを用いて外部ネットワークを介した制御が可能となる。なお、ホームゲートウェイ16とネットワーク20との接続は、有線又は無線のいずれでもよいが、図では有線の例を示している。
The
通信アダプタ10は、図2に示すように、家電機器12と接続して通信するための家電機器インタフェース部30と、ホームゲートウェイ16と接続して通信するための物理メディア用送受信部32と、ファイル更新データを受け取ったときに格納するための記憶装置34と、これら家電機器インタフェース部30、物理メディア用送受信部32及び記憶装置34を使用して通信を実施したり、更新ファイルのデータを受け取ったりする等、各装置の制御を行うための演算装置36とを備えてなる。
As shown in FIG. 2, the
家電機器インタフェース部30は、この例では、シリアル通信(UART)をベースとしたオープンコレクタであり、従って、通信アダプタ10と家電機器12とは、シリアル転送可能な通信インタフェース14によって通信可能に接続される。
In this example, the home
物理メディア用送受信部32は、通信用の伝送媒体である物理メディア18を介して、ホームゲートウェイ16と通信を行う装置である。物理メディア18としては、Ethernet(登録商標)、Bluetooth(登録商標)、赤外線、小電力無線など、有線・無線を問わない。図1では、無線の例が示されており、一例としてBluetoothを用いる。
The physical media transmission /
記憶装置34は、ランダムアクセス可能な揮発メモリからなる第1メモリとしてのRAM(ランダムアクセスメモリ)38と、記憶情報の書き換えが可能な不揮発メモリからなる第2メモリとしてのフラッシュメモリ(フラッシュROM)40とで構成されている。 The storage device 34 includes a RAM (random access memory) 38 as a first memory composed of a volatile memory that can be randomly accessed, and a flash memory (flash ROM) 40 as a second memory composed of a nonvolatile memory capable of rewriting stored information. It consists of and.
RAM38は、一時的にデータを格納しておく記憶部であり、図3に示すように、RAM38の内部には、受信したデータを展開するためのデータ展開領域42が設けられている。
The
フラッシュメモリ40は、通信アダプタ10の動作プログラムを格納する記憶部であり、図3に示すように、フラッシュメモリ40の内部には、動作ファイル領域44と、更新ファイル格納領域46と、ブートローダ領域48と、フラグ格納領域50が設けられている。
The
動作ファイル領域44は、通信アダプタ10を動作させるための主プログラムである動作プログラムを記憶する領域である。
The operation file area 44 is an area for storing an operation program that is a main program for operating the
更新ファイル格納領域46は、該動作プログラムを更新するための更新ファイルを展開して記憶する領域である。 The update file storage area 46 is an area for expanding and storing an update file for updating the operation program.
ブートローダ領域48は、通信アダプタ10の電源が入ったときに最初に実行されるプログラムであるブートローダを格納する領域である。
The
フラグ格納領域50は、更新ファイル格納領域46への更新ファイルの展開の成否に関する情報や、展開した更新ファイルの動作ファイル領域44への書き込みの成否に関する情報としてのフラグを保存する領域である。フラグ格納領域50には、また、更新ファイルの誤り検出符号としてのチェックサムも格納される。このように、フラグ格納領域50に、更新ファイルのチェックサムと更新ファイルの格納状況に関するフラグを記憶させることにより、ファイル更新が途中で失敗したときのリカバリー処理が容易となる。
The
次に、上記通信アダプタ10の動作プログラムを更新する際の動作について説明する。この通信アダプタ10は、家電機器インタフェース部30を介した更新ファイルの受信と、物理メディア用送受信部32を介した更新ファイルの受信との双方が可能に構成されている。すなわち、通信アダプタ10は、通常時に家電機器12と接続するための通信インタフェース14を利用したファイル更新と、ホームネットワーク側の物理メディア18を利用したファイル更新との、2通りの更新が可能である。
Next, an operation when the operation program of the
図4は、通信インタフェース14を利用してファイル更新を実行するための構成例を示したものであり、通信アダプタ10は、更新ファイルを送信するパソコン22に対し、家電機器12を接続するための通信インタフェース14を用いて直接接続されている。この構成は、動作プログラムにより動作する物理メディア用送受信部32を用いないので、動作プログラムが格納されていない初期設定時において、通信アダプタ10に動作プログラムのためのファイルを格納させるときに有利に利用される。
FIG. 4 shows a configuration example for executing file update using the
図5は、物理メディア18を利用してファイル更新を実行するための構成例を示したものであり、更新ファイルを送信するパソコン22がネットワーク20を介してホームゲートウェイ16に接続されており、これにより、通信アダプタ10は、パソコン22に対し、物理メディア18及びホームゲートウェイ16を介して接続されている。なお、ネットワーク20からインターネットを介して外部のコンピュータに接続し、該コンピュータから更新ファイルを送信するようにしてもよい。図5の構成例では、物理メディア18をそのまま利用するので、ネットワークの構成を変えることなく、ファイル更新を実施することができる。
FIG. 5 shows an example of a configuration for executing a file update using the
図6は、動作プログラムの更新時における通信アダプタ10での処理の流れを示した図である。
FIG. 6 is a diagram showing a flow of processing in the
パソコン22から更新ファイルが送信されると、通信アダプタ10は、家電機器インタフェース部30又は物理メディア用送受信部32でファイルを受信する(ステップ100)。
When the update file is transmitted from the
ファイルの受信は、上記図4に示す構成例では、まず、通信速度(ボーレート)を調整した後、更新ファイルを一括又は分割して送信する。通信速度の調整は、パソコン22から特定のデータを特定の速度で送信し、通信アダプタ10がその速度をセンシングして求め、前記特定のデータをパソコン22に応答することによりなされる。一方、上記図5に示す構成例では、パソコン22から例えばHTTPにて通信アダプタ10にアクセスし、テキストファイルとしてデータを転送する。
In the configuration example shown in FIG. 4 above, the file is received by first adjusting the communication speed (baud rate) and then transmitting the update file in a batch or divided. The communication speed is adjusted by transmitting specific data from the
ファイルを受信すると、演算装置36は、そのファイルが動作プログラムを更新するための更新ファイルか否かの判定を実施する(ステップ101)。受信したファイルをRAM38で展開することなく上記判定が実施できるように、パソコン22から送信するデータには、更新ファイルかどうかの判別を可能とする判別手段が組み込まれている。例えば、上記図4に示す構成例の場合、通信インタフェース14を介して送信するパケットの先頭に特定のパラメータを付して、該パラメータによりその後に続くファイルの内容を判別できるようにしたり、あるいはパソコン22側で付与するファイル名で判別できるようにすることができる。また、上記図5に示す構成例の場合、パソコン22側で付与するテキストデータのファイル名でファイルの内容を判別できるようにすることができる。
When the file is received, the
上記判定の結果、受信したファイルが更新ファイルでなければ、当該ファイルをRAM38に送って、RAM38のデータ展開領域42で該ファイルを展開する(ステップ102)。このようなファイルとしては、通信アダプタ10の試験運転用のプログラムなどが挙げられる。演算装置36は、展開したファイルに従って、試運転などの通信アダプタ10の動作を実行させる。
If the received file is not an update file as a result of the determination, the file is sent to the
一方、判定の結果、受信したファイルが更新ファイルであれば、当該ファイルをフラッシュメモリ40に送って、その中の更新ファイル格納領域46に該ファイルを展開する(ステップ103)。
On the other hand, if the received file is an update file as a result of the determination, the file is sent to the
そして、更新ファイル格納領域46への更新ファイルの展開が正常に完了したときには、更新ファイル格納領域46に更新ファイルが展開されていることを示す展開フラグと、更新ファイルのチェックサムを、フラグ格納領域50に保存する(ステップ104)。 When the expansion of the update file to the update file storage area 46 is normally completed, an expansion flag indicating that the update file is expanded in the update file storage area 46 and a checksum of the update file are displayed in the flag storage area. 50 (step 104).
なお、上記ステップ101〜104の各動作は、図4に示す構成例の場合、事前に動作プログラムが存在しないことがあるので、例えば、ブートローダ領域48に予め格納されたプログラムに従って実施することができる。一方、図5に示す構成例の場合、更新前の動作プログラムを利用できるので、動作ファイル領域44内に格納されたプログラムに従って実施することができる。
Note that in the case of the configuration example shown in FIG. 4, the operations in
上記のようにして更新ファイル格納領域46に更新ファイルを格納した後、通信アダプタ10は自身をリセットして再起動する(ステップ105)。そうすると、まず、ブートローダ領域48に格納されたブートローダが起動する。
After storing the update file in the update file storage area 46 as described above, the
演算装置36は、該ブートローダに従い、フラグ格納領域50を参照して動作を決定する(ステップ106)。すなわち、フラグ格納領域50に保存した上記展開フラグとチェックサムを確認して、更新ファイル格納領域46に更新ファイルが格納されていれば、更新ファイル格納領域46に展開した更新ファイルを動作ファイル領域44に書き込んで(コピーして)保存する(ステップ108)。一方、フラグ格納領域50を参照して、更新ファイルが正常に展開されていないときには、更新をやり直す(ステップ107)。すなわち、ステップ100のファイルの受信からやり直す。
The
ここで、フラグ格納領域50の参照による動作決定は、詳細には図7に示すように行うことができる。まず、ステップ200において、フラグ格納領域50に後述する書込フラグが立っているかどうかを確認する。書込フラグが立っていなければ、ステップ201において、フラグ格納領域50に展開フラグが立っているかどうかを確認する。展開フラグが立っていなければ、更新ファイル格納領域46への展開が完了せずに異常終了したことと判断し、ステップ107に進んで更新をやり直す。一方、展開フラグが立っていれば、ステップ202において、フラグ格納領域50に保存されたチェックサムが更新ファイルとともに送信されたチェックサムと一致するかどうかを確認し、一致しなければステップ107に進んで更新をやり直し、一致していればステップ108へ進んで更新処理を継続する。
Here, the operation determination by referring to the
ステップ108において動作ファイル領域44への更新ファイルの書き込みが完了すると、フラグ格納領域50に、更新ファイルのチェックサムと、更新ファイルの書き込みが完了したことを示す書込フラグを保存する(ステップ109)。
When writing of the update file to the operation file area 44 is completed in
その後、通信アダプタ10は自身をリセットして再起動する(ステップ110)。そうすると、ブートローダ領域48に格納されたブートローダが起動し、演算装置36は、該ブートローダに従い、フラグ格納領域50を参照して動作を決定する(ステップ111)。詳細には、フラグ格納領域50に保存した上記書込フラグとチェックサムを確認して、動作ファイル領域44に更新ファイルが正常に書き込まれていれば、更新された動作プログラムによる通常動作状態に移行し、すなわち、動作ファイル領域44に格納された動作プログラムを実行することで通常のプログラム動作を開始する(ステップ112)。
Thereafter, the
一方、フラグ格納領域50を参照して、更新ファイルが正常に書き込まれていないときには、ステップ108に戻り、動作ファイル領域44への書き込みを再度実施する。
On the other hand, referring to the
ここでのフラグ格納領域50の参照による動作決定も図7に示す通りであり、ステップ200において、フラグ格納領域50に書込フラグが立っているかどうかを確認する。書込フラグが立っていれば、ステップ203において、フラグ格納領域50に保存されたチェックサムが更新ファイルとともに送信されたチェックサムと一致するかどうか確認し、一致していればステップ112に進んで通常動作状態に移行する。一致していなければステップ108に戻って再度書き込みを実施する。一方、ステップ200において、書込フラグが立っていなければ、この場合、前段階のステップ106で確認したように展開フラグが立っており、かつチェックサムも一致するので、ステップ108に戻って再度書き込みを実施する。
The operation determination by referring to the
以上のようにして、動作プログラムが更新された後、通常動作状態となるが、通常動作状態では、演算装置36が、RAM38を使って、動作ファイル領域44に格納された動作プログラムに従い動作し、ホームゲートウェイ16からの信号に基づいて家電機器12に対する制御を実施する。
As described above, after the operation program is updated, the normal operation state is set. In the normal operation state, the
例えば、ホームゲートウェイ16と通信アダプタ10との間でエコーネット(登録商標)プロトコルによる通信を行うものである場合、ホームゲートウェイ16から、UDPで、宛先のIPアドレス、エコーネットプロトコルによるアドレス、家電機器オブジェクト及び制御プロパティを指定したパケットが送信される。通信アダプタ10は、これを物理メディア用送受信部32で受信し、該パケットをRAMで展開して、対象となる家電機器12を制御する。
For example, when communication is performed between the
以上よりなる本実施形態であると、動作プログラムを更新する際に、パソコン22から送られてきたファイルが更新ファイルか否かを判定し、更新ファイルである場合に、RAM38に展開することなく、フラッシュメモリ40の更新ファイル格納領域46に展開するので、RAM38の容量が小さくても更新を実施することができる。また、該更新ファイルを一旦更新ファイル格納領域46に展開してから、動作ファイル領域44に書き込むようにしたので、1つのフラッシュメモリ40で動作プログラムの更新を安全に実施することができる。
In the present embodiment configured as described above, when updating the operation program, it is determined whether or not the file sent from the
また、フラッシュメモリ40にフラグ格納領域50を設けて、チェックサムとファイルの有り無しに関するフラグを格納することにより、ファイル更新が失敗したときのリカバリー処理が可能となり、無駄な更新処理の重複を回避することができる。特に、正常展開時のみに展開フラグを立てるようにしたので、更新ファイルが正常に展開しているかどうかを確認することができる。また、チェックサムを書き込むようにしたので、展開したファイルを正常に書き込むことができたかどうかの判定も可能である。
In addition, by providing a
また、本実施形態では、動作プログラムのファイル更新のためのデータの受け渡しを、家電機器12との接続用の通信インタフェース14からの受信と、物理メディア18からの受信との2通りが可能なので、通信アダプタ10の製造時や設置作業時、更には家庭内での通常動作時などの状況に応じ、適切な受け渡し方法を選択して動作プログラムの更新を行うことができ、利便性に優れる。
Further, in the present embodiment, the data exchange for updating the operation program file can be performed in two ways: reception from the
10…通信アダプタ
12…家電機器
16…ホームゲートウェイ(通信制御装置)
30…家電機器インタフェース部
32…物理メディア用送受信部
38…RAM(第1メモリ)
40…フラッシュメモリ(第2メモリ)
44…動作ファイル領域
46…更新ファイル格納領域
48…ブートローダ領域
50…フラグ格納領域
DESCRIPTION OF
30 ... Home
40: Flash memory (second memory)
44 ... Operation file area 46 ... Update
Claims (3)
家電機器に接続されて当該家電機器との間での通信を可能とする家電機器インタフェース部と、
ネットワーク側の通信制御装置に接続されて当該通信制御装置との間での通信を可能とする物理メディア用送受信部と、
ランダムアクセス可能な揮発メモリからなる第1メモリと、
通信アダプタの動作プログラムを記憶する動作ファイル領域、前記動作プログラムを更新するための更新ファイルを記憶する更新ファイル格納領域、ブートローダを格納するブートローダ領域と、前記更新ファイル格納領域への更新ファイルの展開の成否及び展開した前記更新ファイルの前記動作ファイル領域への書き込みの成否に関する情報を保存するフラグ格納領域とを有し、記憶情報の書き換えが可能な不揮発メモリからなる第2メモリと、
を備えてなり、
前記家電機器インタフェース部又は前記物理メディア用送受信部を介してファイルを受信したときに、当該ファイルが前記動作プログラムを更新するための更新ファイルか否かを判定し、前記ファイルが更新ファイルでなければ、当該ファイルを前記第1メモリに送って該第1メモリに展開し、前記ファイルが更新ファイルであれば、当該ファイルを前記第2メモリに送って前記更新ファイル格納領域に展開し、前記更新ファイル格納領域に展開した前記更新ファイルを前記動作ファイル領域に書き込んで保存することにより、前記動作プログラムを更新するよう構成され、
前記第2メモリの前記更新ファイル格納領域への前記更新ファイルの展開が完了したときに、前記フラグ格納領域に、前記更新ファイルの誤り検出符号と前記更新ファイルの展開が完了したことを示す情報を保存し、再起動により前記ブートローダ領域に格納された前記ブートローダが起動したときに、前記フラグ格納領域に保存した前記誤り検出符号と前記情報を確認して前記更新ファイル格納領域に前記更新ファイルが格納されていれば、前記動作ファイル領域への前記更新ファイルの書き込みを実行するよう構成された、
通信アダプタ。 A communication adapter for connecting home appliances to a network,
A home appliance interface unit that is connected to the home appliance and enables communication with the home appliance;
A physical media transmission / reception unit connected to a communication control device on the network side and enabling communication with the communication control device;
A first memory composed of a random accessible volatile memory;
Operation file area for storing the operation program of the communication adapter, the update file storage area for storing an update file for updating the previous SL operating program, and a boot loader area for storing a boot loader, deploy updates to the update file storage area A second storage memory comprising a non-volatile memory capable of rewriting stored information, and a flag storage area for storing information on success or failure of the development and success or failure of writing of the updated update file to the operation file area ;
With
When a file is received via the home appliance interface unit or the physical media transmission / reception unit, it is determined whether the file is an update file for updating the operation program, and the file is not an update file. The file is sent to the first memory and expanded in the first memory. If the file is an update file, the file is sent to the second memory and expanded in the update file storage area. The update program expanded in the storage area is configured to update the operation program by writing and storing the update file in the operation file area ,
When the expansion of the update file to the update file storage area of the second memory is completed, information indicating that the error detection code of the update file and the expansion of the update file are completed in the flag storage area When the boot loader stored in the boot loader area is saved and restarted, the error detection code and the information stored in the flag storage area are confirmed, and the update file is stored in the update file storage area. If configured to write the update file to the action file area,
Communication adapter.
請求項1記載の通信アダプタ。 When writing of the update file to the operation file area is completed, an error detection code of the update file and information indicating completion of writing of the update file are stored in the flag storage area, When the boot loader is started, if the error detection code and the information stored in the flag storage area are confirmed and the update file is written in the operation file area, the updated operation program normally Configured to transition to operational state,
The communication adapter according to claim 1.
請求項1記載の通信アダプタ。 Both reception of the update file through the home appliance interface unit and reception of the update file through the physical media transmission / reception unit are possible.
The communication adapter according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007310793A JP4945788B2 (en) | 2007-11-30 | 2007-11-30 | Communication adapter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007310793A JP4945788B2 (en) | 2007-11-30 | 2007-11-30 | Communication adapter |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009134563A JP2009134563A (en) | 2009-06-18 |
JP4945788B2 true JP4945788B2 (en) | 2012-06-06 |
Family
ID=40866382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007310793A Expired - Fee Related JP4945788B2 (en) | 2007-11-30 | 2007-11-30 | Communication adapter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4945788B2 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5439400B2 (en) * | 2011-01-31 | 2014-03-12 | 京セラドキュメントソリューションズ株式会社 | Image forming apparatus |
JP5857927B2 (en) * | 2012-09-21 | 2016-02-10 | 東芝ライテック株式会社 | Communication adapter and restart program |
JP2014143513A (en) * | 2013-01-23 | 2014-08-07 | Mitsubishi Electric Corp | Communication adapter, setting method of communication apparatus, program, and network system |
TWI518595B (en) * | 2014-03-17 | 2016-01-21 | 廣達電腦股份有限公司 | Method and system of software update and mobile device |
JP2016143318A (en) * | 2015-02-04 | 2016-08-08 | 三菱電機株式会社 | Program update device, program update system, household electric appliance, communication adapter, controller, program update method, and program |
US11442720B2 (en) | 2017-10-26 | 2022-09-13 | Noritz Corporation | Communication adapter and program update method for communication adapter |
US11080039B2 (en) * | 2019-11-25 | 2021-08-03 | Micron Technology, Inc. | Resilient software updates in secure storage devices |
JP7477328B2 (en) * | 2020-03-16 | 2024-05-01 | Fdk株式会社 | Control device and control program rewriting method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003228490A (en) * | 2002-02-04 | 2003-08-15 | Sanyo Electric Co Ltd | Terminal equipment connected to network, and network system using the same |
JP2005202518A (en) * | 2004-01-13 | 2005-07-28 | Sanyo Electric Co Ltd | Adaptor |
JP2006011906A (en) * | 2004-06-28 | 2006-01-12 | Yamaha Corp | Software installation method |
JP4561331B2 (en) * | 2004-09-30 | 2010-10-13 | 三菱電機株式会社 | Home appliance adapter and software development device |
JP2007179487A (en) * | 2005-12-28 | 2007-07-12 | Brother Ind Ltd | Content delivery system, software update method, terminal device and program |
-
2007
- 2007-11-30 JP JP2007310793A patent/JP4945788B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009134563A (en) | 2009-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4945788B2 (en) | Communication adapter | |
JP6390644B2 (en) | Program update system, program update method, and computer program | |
US8762666B2 (en) | Backup and restoration of operation control data in a heating, ventilation and air conditioning network | |
CN106020875B (en) | Firmware update management method and device of embedded terminal | |
US20050278518A1 (en) | Electronic system capable of using universal plug and play (upnp) protocol to update software program and method thereof | |
KR101256547B1 (en) | Air conditioner, method for controlling outdoor units of the air conditioner, and central control system having the same | |
US20160070562A1 (en) | System and method for over the air programming | |
US20160085538A1 (en) | Over-the-air updates for ble devices | |
CN105407475B (en) | configuration file enables processing method and eUICC | |
WO2015154578A1 (en) | Remote upgrade method, device and system of boot program of single board | |
JP2006244269A (en) | Facility managing device, program update system, facility management program updating method, starting program and facility management program | |
WO2012097570A1 (en) | Method and device for implementing software version synchronization | |
WO2023198056A1 (en) | Firmware update method for embedded device, and embedded device | |
JP2002189609A (en) | System and method for updating software adapted to accident | |
JP2007316800A (en) | Onboard program rewriting controller | |
JP2019214353A (en) | Communication device and control method | |
CN115509812A (en) | Data backup method and server based on Keepalive dual-computer hot standby | |
JP2015129994A (en) | Transmission program, transmission method, and transmission apparatus | |
CN112905206A (en) | Circuit upgrading method based on serial port | |
EP3349117A1 (en) | Control method and communication device employing same | |
WO2019082738A1 (en) | Communication adaptor and program updating method for communication adaptor | |
JP2010079382A (en) | Software update method | |
WO2022230256A1 (en) | Communication device and firmware update system | |
JP5156405B2 (en) | Control terminal | |
JP5016604B2 (en) | Information processing apparatus and information processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090917 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111129 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111206 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120116 |
|
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: 20120207 |
|
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: 20120214 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120305 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150316 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4945788 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150316 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150316 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150316 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313115 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313117 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |