JP2012226619A - Portable terminal device, storage control method, and storage control program - Google Patents
Portable terminal device, storage control method, and storage control program Download PDFInfo
- Publication number
- JP2012226619A JP2012226619A JP2011094470A JP2011094470A JP2012226619A JP 2012226619 A JP2012226619 A JP 2012226619A JP 2011094470 A JP2011094470 A JP 2011094470A JP 2011094470 A JP2011094470 A JP 2011094470A JP 2012226619 A JP2012226619 A JP 2012226619A
- Authority
- JP
- Japan
- Prior art keywords
- difference data
- memory
- storage area
- size
- predetermined
- 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.)
- Withdrawn
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本発明は、プログラムのアップデートを行う携帯端末装置、記憶制御方法及び記憶制御プログラムに関する。 The present invention relates to a portable terminal device that updates a program, a storage control method, and a storage control program.
近年、無線によってデータを受信するOTA(Over The Air)機能を備えた携帯端末装置が提案されている。例えば、旧バージョンのファームウェアを新バージョンのファームウェアにアップデートする際に、OTA機能により、旧バージョンのファームウェアと新バージョンのファームウェアとの差分データを受信し、旧バージョンのファームウェアと差分データとを組み合わせることによりアップデートを行う方法が提案されている(例えば、特許文献1参照)。 In recent years, portable terminal devices having an OTA (Over The Air) function for receiving data wirelessly have been proposed. For example, when the old version firmware is updated to the new version firmware, the OTA function receives the difference data between the old version firmware and the new version firmware, and combines the old version firmware and the difference data. A method for updating is proposed (see, for example, Patent Document 1).
ところで、特許文献1に記載されている方法では、受信した差分データを、旧バージョンのファームウェアが記憶されている不揮発性メモリに記憶しておき、当該差分データと旧バージョンのファームウェアとをRAMに展開してアップデートを行う。
By the way, in the method described in
したがって、特許文献1に記載されている方法では、差分データが当該差分データ用に予め定められた不揮発性メモリの記憶領域よりもサイズが大きい場合、受信した差分データを不揮発性のメモリに記憶することができず、アップデートを行うことができない。
Therefore, in the method described in
本発明は、所定のプログラムの差分データが予め定められた記憶領域よりサイズが大きい場合であっても、所定のプログラムをアップデートすることができる携帯端末装置、記憶制御方法及び記憶制御プログラムを提供することを目的とする。 The present invention provides a portable terminal device, a storage control method, and a storage control program capable of updating a predetermined program even when the difference data of the predetermined program is larger than a predetermined storage area. For the purpose.
本発明に係る携帯端末装置は、無線通信部と、所定のプログラムのアップデートの際に用いられる差分データを記憶する所定の記憶領域が予め設けられている第1メモリと、前記所定の記憶領域より大きい第2メモリと、前記無線通信部により前記所定のプログラムの差分データを受信する際に、前記差分データのサイズと前記所定の記憶領域のサイズとを対比し、前記差分データのサイズが前記所定の記憶領域のサイズに比べて小さい場合に前記差分データを前記第1メモリに記憶させ、前記差分データのサイズが前記所定の記憶領域のサイズに比べて大きい場合に前記差分データを前記第2メモリに記憶させる制御部と、を備える。 The mobile terminal device according to the present invention includes a wireless communication unit, a first memory in which a predetermined storage area for storing difference data used in updating a predetermined program is provided in advance, and the predetermined storage area When the difference data of the predetermined program is received by the large second memory and the wireless communication unit, the size of the difference data is compared with the size of the predetermined storage area, and the size of the difference data is The difference data is stored in the first memory when the size is smaller than the size of the storage area, and the difference data is stored in the second memory when the size of the difference data is larger than the size of the predetermined storage area. And a control unit to be stored.
また、本発明に係る携帯端末装置では、前記第1メモリは不揮発性メモリであり、
前記第2メモリは揮発性メモリであることが好ましい。
In the mobile terminal device according to the present invention, the first memory is a nonvolatile memory,
The second memory is preferably a volatile memory.
また、本発明に係る携帯端末装置では、前記制御部は、前記差分データを前記第2メモリに記憶させた場合に、前記第2メモリに記憶されている差分データを保持したまま前記携帯端末装置を再起動し、当該再起動が完了した際に前記所定のプログラムのアップデートを実行することが好ましい。 Moreover, in the portable terminal device according to the present invention, when the control unit stores the difference data in the second memory, the portable terminal device retains the difference data stored in the second memory. It is preferable to update the predetermined program when the restart is completed.
また、本発明に係る携帯端末装置では、前記制御部は、前記第2メモリに記憶されている前記差分データに基づいて前記所定のプログラムのアップデートを実行する際に、前記差分データを前記第2メモリ内において再配置させることが好ましい。 In the mobile terminal device according to the present invention, the control unit may update the second difference data when executing the update of the predetermined program based on the difference data stored in the second memory. It is preferable to rearrange in the memory.
また、本発明に係る携帯端末装置では、前記制御部は、前記第2メモリに再配置された前記差分データのアドレスを前記第1メモリに記憶させ、前記第2メモリに記憶されている前記差分データに基づいて前記所定のプログラムのアップデートを実行する際に、前記第1メモリに記憶されている前記差分データのアドレスを参照して、前記差分データが記憶されている前記第2メモリ内の記憶領域を特定することが好ましい。 In the mobile terminal device according to the present invention, the control unit causes the first memory to store an address of the difference data rearranged in the second memory, and the difference stored in the second memory. A memory in the second memory in which the difference data is stored with reference to an address of the difference data stored in the first memory when the predetermined program is updated based on the data It is preferable to specify the region.
また、本発明に係る携帯端末装置では、前記制御部は、前記第2メモリに前記差分データを再配置した際に、前記差分データのアドレスを参照して、前記第2メモリの記憶領域のうち前記差分データ及び当該差分データに関連するデータが記憶されていない記憶領域を初期化させることが好ましい。 In the mobile terminal device according to the present invention, the control unit refers to the address of the difference data when the difference data is rearranged in the second memory, and includes the storage area of the second memory. It is preferable to initialize a storage area in which the difference data and data related to the difference data are not stored.
また、本発明に係る携帯端末装置では、前記制御部は、前記所定のプログラムのアップデートの際に、前記差分データと前記所定のプログラムとを、前記第2メモリの前記差分データ及び当該差分データに関連するデータが記憶されていない記憶領域に展開することが好ましい。 In the mobile terminal device according to the present invention, the control unit may convert the difference data and the predetermined program to the difference data and the difference data in the second memory when the predetermined program is updated. It is preferable to expand to a storage area in which related data is not stored.
本発明に係る記憶制御方法は、携帯端末装置が、所定のプログラムのアップデートの際に用いられる差分データの記憶を制御する記憶制御方法であって、前記携帯端末装置は、無線通信部と、前記差分データを記憶する所定の記憶領域が予め設けられている第1メモリと、前記所定の記憶領域より大きい第2メモリと、を備え、前記記憶制御方法は、前記無線通信部により前記差分データを受信する際に、前記差分データのサイズと前記所定の記憶領域のサイズとを対比するステップと、前記対比するステップにおいて、前記差分データのサイズが前記所定の記憶領域のサイズに比べて小さい場合に前記差分データを前記第1メモリに記憶させ、前記差分データのサイズが前記所定の記憶領域のサイズに比べて大きい場合に前記差分データを前記第2メモリに記憶させるステップと、を含む。 The storage control method according to the present invention is a storage control method in which a mobile terminal device controls storage of difference data used in updating a predetermined program, the mobile terminal device including a wireless communication unit, A first memory in which a predetermined storage area for storing difference data is provided in advance, and a second memory larger than the predetermined storage area, wherein the storage control method stores the difference data by the wireless communication unit. When receiving, in the step of comparing the size of the difference data and the size of the predetermined storage area, and the step of comparing, the size of the difference data is smaller than the size of the predetermined storage area The difference data is stored in the first memory, and the difference data is stored when the size of the difference data is larger than the size of the predetermined storage area. Comprising a step of storing the serial second memory.
本発明に係る記憶制御プログラムは、携帯端末装置に所定のプログラムのアップデートの際に用いられる差分データの記憶制御を実行させるための記憶制御プログラムであって、前記携帯端末装置は、無線通信部と、前記差分データを記憶する所定の記憶領域が予め設けられている第1メモリと、前記所定の記憶領域より大きい第2メモリと、を備え、前記記憶制御プログラムは、前記無線通信部により前記差分データを受信する際に、前記差分データのサイズと前記所定の記憶領域のサイズとを対比する処理と、前記対比する処理において、前記差分データのサイズが前記所定の記憶領域のサイズに比べて小さい場合に前記差分データを前記第1メモリに記憶させ、前記差分データのサイズが前記所定の記憶領域のサイズに比べて大きい場合に前記差分データを前記第2メモリに記憶させる処理と、を前記携帯端末装置に実行させる。 A storage control program according to the present invention is a storage control program for causing a mobile terminal device to execute storage control of difference data used when a predetermined program is updated, and the mobile terminal device includes: a wireless communication unit; A first memory in which a predetermined storage area for storing the difference data is provided in advance, and a second memory larger than the predetermined storage area, and the storage control program is configured to store the difference by the wireless communication unit. When receiving data, the size of the difference data is smaller than the size of the predetermined storage area in the process of comparing the size of the difference data with the size of the predetermined storage area and the process of comparing In the case where the difference data is stored in the first memory and the size of the difference data is larger than the size of the predetermined storage area. Wherein a process of the difference data is stored in the second memory, a is executed by the portable terminal device.
本発明によれば、所定のプログラムの差分データが、予め定められた記憶領域の記憶領域よりサイズが大きい場合であっても、所定のプログラムをアップデートすることができる。 According to the present invention, a predetermined program can be updated even when the difference data of the predetermined program is larger in size than the storage area of the predetermined storage area.
以下、本発明の実施の形態について説明する。まず、本発明の携帯端末装置の一実施形態に係る携帯電話機1の基本構造について、図1を参照しながら説明する。図1は、本実施形態に係る携帯電話機1の外観斜視図である。
Embodiments of the present invention will be described below. First, a basic structure of a
なお、図1は、いわゆる折り畳み型の携帯電話機の形態を示しているが、本発明に係る携帯電話機の形態としては、特にこれに限られない。例えば、両筐体を重ね合わせた状態から一方の筐体を一方向にスライドさせるようにした回転式(ターンタイプ)や、操作部と表示部とが1つの筐体に配置され、連結部を有さない形式(ストレートタイプ)でもよい。 FIG. 1 shows a so-called foldable mobile phone, but the mobile phone according to the present invention is not limited to this. For example, a rotary type (turn type) in which one casing is slid in one direction from a state where both casings are overlapped, an operation unit and a display unit are arranged in one casing, It may be a type that does not have (straight type).
携帯電話機1は、操作部側筐体部2と、表示部側筐体部3とを備えて構成される。
操作部側筐体部2は、表面部10に、操作部11と、携帯電話機1の使用者が通話時に発した音声が入力されるマイク12とを備えて構成される。操作部11は、各種設定や電話機能やメール機能等の各種機能を作動させるための機能設定操作キー13と、電話番号の数字やメール等の文字等を入力するための入力操作キー14と、各種操作における決定やスクロール等を行う決定操作キー15とから構成されている。
また、表示部側筐体部3は、表面部20に、各種情報を表示するためのLCD(Liquid Crystal Display)表示部21と、通話の相手側の音声を出力するスピーカ22とを備えて構成されている。
The
The operation unit
In addition, the display unit
また、操作部側筐体部2の上端部と表示部側筐体部3の下端部とは、ヒンジ機構4を介して連結されている。また、携帯電話機1は、ヒンジ機構4を介して連結された操作部側筐体部2と表示部側筐体部3とを相対的に回転することにより、操作部側筐体部2と表示部側筐体部3とを互いに開いた状態(開放状態)にしたり、操作部側筐体部2と表示部側筐体部3とを折り畳んだ状態(折畳み状態)にしたりできる。
Further, the upper end of the operation
図2は、本実施形態に係る携帯電話機1の機能を示す機能ブロック図である。
携帯電話機1は、図2に示すように、操作部11と、マイク12と、無線通信部30と、LCD制御部41と、音声処理部42と、メモリ50と、制御部60とを操作部側筐体部2に備える。また、携帯電話機1は、LCD表示部21と、スピーカ22と、LCDドライバ23とを表示部側筐体部3に備える。
FIG. 2 is a functional block diagram showing functions of the
As shown in FIG. 2, the
無線通信部30は、基地局(図示省略)等の外部機器と信号の送受信を行う。この無線通信部30は、アンテナとしてのメインアンテナ31と、RF回路部32とを備える。
The
メインアンテナ31は、基地局等の外部機器と、所定の変調方式で変調された高周波信号の送受信を行う。
RF回路部32は、メインアンテナ31により送受信される高周波信号を処理する。具体的には、RF回路部32は、メインアンテナ31によって受信した信号を所定の復調方式で復調し、処理後の信号を制御部60に供給する。また、RF回路部32は、制御部60から供給された信号を所定の変調方式で変調し、メインアンテナ31を介して基地局等の外部機器に送信する。
The
The
LCD制御部41は、制御部60の制御に従って、所定の画像処理を行い、処理後の画像データをLCDドライバ23に出力する。LCDドライバ23は、フレームメモリを備えており、LCD制御部41から供給された画像データをフレームメモリに蓄える。そして、LCDドライバ23は、フレームメモリに蓄えられた画像データを所定のタイミングでLCD表示部21又はサブLCD表示部(図示省略)に出力する。
The
音声処理部42は、制御部60の制御に従って、所定の音声処理を行い、処理後の信号をスピーカ22に出力する。スピーカ22は、音声処理部42から供給された信号を外部に出力する。また、音声処理部42は、マイク12から入力された信号を処理し、処理後の信号を制御部60に出力する。
The
メモリ50は、例えば、第1メモリ51と、第2メモリ52とにより構成されており、制御部60による演算処理に利用される。
The
第1メモリ51は、例えば、フラッシュメモリ等の不揮発性メモリであり、携帯電話機1の機能を実行するための所定のプログラムを記憶すると共に、当該所定のプログラムのアップデートの際に用いられる差分データを記憶する所定の記憶領域が予め設けられている。また、第1メモリ51には、所定のプログラムの差分データに基づいてアップデートを行うか否かを判定するためのアップデートフラグを記憶しており、アップデートフラグがONである場合に制御部60によりアップデートが実行される。
The
第2メモリ52は、例えば、SDRAM(SynchronousDRAM)等の揮発性メモリであり、制御部60による演算処理に利用されるワーキングメモリとしての機能を有する。第2メモリ52は、所定の記憶領域より大きい記憶容量を有している。
The
制御部60は、携帯電話機1の全体を制御しており、例えば、無線通信部30、LCD制御部41、音声処理部42等に対して所定の制御を行う。また、制御部60は、操作部11等から入力を受け付けて、各種処理を実行する。そして、制御部60は、処理実行の際には、メモリ50を制御し、各種プログラム及びデータの読み出し、並びにデータの書き込みを行う。
The
このように構成される携帯電話機1は、制御部60により、所定のプログラムをアップデートする場合に、所定のプログラムの差分データの記憶制御を行う。以下に、制御部60について、詳細な説明を行う。
In the
制御部60は、第1メモリ51に記憶されているアップデートフラグがOFFの場合、無線通信部30により所定のプログラムの差分データを受信する際に、差分データのサイズと第1メモリ51の所定の記憶領域の記憶容量(サイズ)とを対比する。続いて、制御部60は、差分データのサイズが第1メモリ51の所定の記憶領域の記憶容量に比べて小さい場合、この差分データを第1メモリ51に記憶させる。また、制御部60は、差分データのサイズが第1メモリ51の所定の記憶領域の記憶容量に比べて大きい場合、この差分データを第2メモリ52に記憶させる。制御部60は、差分データを第1メモリ51又は第2メモリ52に記憶させる場合、差分データが記憶されている記憶領域のアドレスを第1メモリ51に記憶させる。
When the update flag stored in the
続いて、制御部60は、差分データが第1メモリ51又は第2メモリ52に記憶されたことに応じて、所定のプログラムが実行されていない状態とするために携帯電話機1を再起動させる。具体的には、制御部60は、差分データを第2メモリ52に記憶させた場合、第2メモリ52に電力を供給して、第2メモリ52に記憶されている差分データを保持したまま携帯電話機1を再起動する。また、制御部60は、第1メモリ51のアップデートフラグをONにする。
Subsequently, in response to the difference data being stored in the
続いて、制御部60は、当該再起動が完了した際に所定のプログラムのアップデートを実行する。すなわち、制御部60は、第1メモリ51に記憶されているアップデートフラグがONであることに基づいて、所定のプログラムのアップデートを実行する。
Subsequently, the
具体的には、制御部60は、再起動が完了した後、第1メモリ51に記憶されているアップデートフラグがONの場合、第1メモリ51に記憶されている差分データのアドレスを参照して、差分データが第2メモリ52に記憶されているか否かを判定する。
Specifically, the
制御部60は、差分データが第1メモリ51に記憶されている場合、第2メモリ52の記憶領域を初期化する。
When the difference data is stored in the
制御部60は、差分データが第2メモリ52に記憶されている場合、第2メモリ52に記憶されている差分データに基づいて所定のプログラムのアップデートを実行する際に、当該差分データを第2メモリ52内において再配置させる。
When the difference data is stored in the
図3は、本実施形態に係る差分データを再配置する場合の第2メモリ52の状況を示す図である。具体的には、図3(a)は、差分データが再配置される前の第2メモリ52の状況を示す図であり、図3(b)は、差分データが再配置され、初期化された後の第2メモリ52の状況を示す図である。
FIG. 3 is a diagram illustrating a state of the
制御部60は、第1メモリ51に記憶されている差分データのアドレスを参照して、差分データが記憶されている第2メモリ52内の記憶領域のアドレス(図3に示すアドレスX)を特定すると共に、第2メモリ52の空き領域を特定する。ここで、空き領域には、アップデートに用いられないデータ(図3(a)に示されるデータA、B、C)を含む。続いて、制御部60は、第1メモリ51から読み出した差分データのアドレスに基づいて、当該空き領域に対して、差分データを末尾のデータから順に再配置を行う。ここでは、図3(a)に示すデータCに対応する記憶領域の末尾から順に、差分データの再配置が行われる。続いて、制御部60は、第2メモリ52に再配置された差分データが記憶されている記憶領域のアドレスを第1メモリ51に記憶させる。なお、制御部60は、差分データを再配置する際に、図3(b)に示すように、OTAアップデートの際に用いられるプログラム(OTAプログラム及びOTAプログラムのスタック)を第2メモリ52に記憶させる。このようにして、第2メモリ52には、OTAプログラムとOTAプログラムのスタックとが記憶されると共に、差分データが再配置される。
The
続いて、制御部60は、第2メモリ52に差分データを再配置した際に、第2メモリ52に再配置された差分データが記憶されている記憶領域のアドレスに基づいて、第2メモリ52の記憶領域のうち差分データ及び当該差分データに関連するデータ(OTAプログラム及びOTAプログラムのスタック)が記憶されていない記憶領域(図3(a)に示されるデータA及びB並びにCの一部に対応する記憶領域)を初期化させる。これによって、初期化された記憶領域は、アップデートにおいてワークメモリとして使用することができる。
Subsequently, when the difference data is rearranged in the
続いて、制御部60は、所定のプログラムのアップデートの際に、第1メモリ51又は第2メモリ52に記憶されている差分データのエラー検出処理を行う。続いて、制御部60は、差分データのエラーが検出されなかった場合、第2メモリ52においてアップデートを実施するために、第1メモリ51に記憶されている所定のプログラムを第2メモリ52に展開する。
Subsequently, the
また、制御部60は、第1メモリ51又は第2メモリ52に記憶されている差分データを第2メモリ52に展開する。制御部60は、第2メモリ52に記憶されている差分データに基づいて所定のプログラムのアップデートを実行する際に、第1メモリ51に記憶されている差分データのアドレスを参照して、差分データが記憶されている第2メモリ52内の記憶領域を特定する。これによって、第2メモリ52内の差分データをOTAプログラムと共に第2メモリ52内のワークメモリに展開させることができる。
In addition, the
図4及び図5は、本実施形態に係る携帯電話機1により差分データを記憶させる処理の流れの一例を示すフローチャートである。
4 and 5 are flowcharts illustrating an example of a flow of processing for storing difference data by the
ステップS1において、制御部60は、第1メモリ51に記憶されているアップデートフラグがOFFであるか否かを判定する。制御部60は、この判定がYESの場合、ステップS2に処理を移し、この判定がNOの場合、図5のステップS9に処理を移す。
In step S <b> 1, the
ステップS2において、制御部60は、無線通信部30により所定のプログラムの差分データを外部機器から受信するか否かを判定する。制御部60は、この判定がYESであると判定した場合、ステップS3に処理を移し、この判定がNOの場合、本フローチャートを終了する。
In step S <b> 2, the
ステップS3において、制御部60は、受信する差分データのサイズを特定し、この差分データのサイズと第1メモリ51の所定の記憶領域の記憶容量とを対比する。そして、制御部60は、差分データのサイズが第1メモリ51の所定の記憶領域の記憶容量に比べて大きいか否かを判定する。制御部60は、この判定がYESの場合、ステップS4に処理を移し、この判定がNOの場合、ステップS6に処理を移す。
In step S <b> 3, the
ステップS4において、制御部60は、無線通信部30により受信した差分データを第2メモリ52に記憶させる。すなわち、制御部60は、差分データのサイズが第1メモリ51の所定の記憶領域の記憶容量に比べて大きい場合、この差分データを第2メモリ52に記憶させる。また、制御部60は、差分データが第2メモリ52に記憶されている旨を第1メモリ51に記憶させる。
ステップS5において、制御部60は、差分データに対応する第2メモリ52の記憶領域のアドレスを第1メモリ51に記憶させる。制御部60は、この処理が終了すると、ステップS7に処理を移す。
In step S <b> 4, the
In step S <b> 5, the
ステップS6において、制御部60は、無線通信部30により受信した差分データを第1メモリ51に記憶させる。すなわち、制御部60は、差分データのサイズが第1メモリ51の所定の記憶領域の記憶容量に比べて小さい場合、この差分データを第1メモリ51に記憶させる。また、制御部60は、差分データが第1メモリ51に記憶されている旨を第1メモリ51に記憶させる。制御部60は、この処理が終了すると、ステップS7に処理を移す。
In step S <b> 6, the
ステップS7において、制御部60は、第1メモリ51に記憶されているアップデートフラグをONに設定する。
ステップS8において、制御部60は、携帯電話機1を再起動させる。制御部60は、この処理が終了すると、ステップS1に処理を移す。
In step S7, the
In step S8, the
図5に説明を移す。ステップS9において、制御部60は、差分データが第2メモリ52に記憶されているか否かを判定する。制御部60は、この判定がYESの場合、ステップS10に処理を移し、この判定がNOの場合、ステップS12に処理を移す。
The description will be shifted to FIG. In step S <b> 9, the
ステップS10において、制御部60は、第2メモリ52に記憶されている差分データを再配置する。
ステップS11において、制御部60は、第2メモリ52において、差分データ及び差分データの関連データが記憶されている領域以外の記憶領域を初期化する。ここで、差分データとの関連データとは、OTAを実施するためのプログラム(OTAプログラム)及び当該プログラムのスタック(OTAスタック)である。制御部60は、この処理が終了すると、ステップS13に処理を移す。
ステップS12において、制御部60は、第2メモリ52の記憶領域を初期化する。制御部60は、この処理が終了すると、ステップS13に処理を移す。
In step S <b> 10, the
In step S <b> 11, the
In step S <b> 12, the
ステップS13において、制御部60は、第1メモリ51又は第2メモリ52に記憶されている差分データのエラー検出処理を行い、差分データにエラーがあるか否かを判定する。制御部60は、この判定がYESの場合、ステップS15に処理を移し、この判定がNOの場合、ステップS14に処理を移す。
In step S13, the
ステップS14において、制御部60は、差分データにエラーがなく正常であるものと判定し、アップデートを実行する。制御部60は、アップデートを実行する際に、第1メモリ51に記憶されている所定のプログラムを第2メモリ52の記憶領域であって、差分データ及び差分データの関連データが記憶されている領域以外の記憶領域に展開すると共に、第1メモリ51又は第2メモリ52に記憶されている差分データを第2メモリ52に展開する。制御部60は、この処理が終了すると、ステップS16に処理を移す。
In step S14, the
ステップS15において、制御部60は、携帯電話機1のLCD表示部21にエラー表示を行う。制御部60は、この処理が終了すると、ステップS16に処理を移す。
ステップS16において、制御部60は、アップデートが完了した後、第1メモリ51に記憶されているアップデートフラグをOFFに設定する。
ステップS17において、制御部60は、携帯電話機1を再起動する。制御部60は、この処理が終了すると、ステップS1に処理を移す。
In step S <b> 15, the
In step S <b> 16, after the update is completed, the
In step S <b> 17, the
以上、本実施形態によれば、携帯電話機1は、制御部60により、差分データのサイズが第1メモリ51の所定の記憶領域の記憶容量(サイズ)に比べて小さい場合、この差分データを第1メモリ51に記憶させ、差分データのサイズが第1メモリ51の所定の記憶領域の記憶容量に比べて大きい場合、この差分データを第2メモリ52に記憶させる。
よって、携帯電話機1は、所定のプログラムの差分データが予め定められた記憶領域よりサイズが大きい場合であっても、第2メモリ52に記憶された差分データを利用して所定のプログラムをアップデートすることができる。
As described above, according to the present embodiment, when the size of the difference data is smaller than the storage capacity (size) of the predetermined storage area of the
Therefore, even when the difference data of the predetermined program is larger than the predetermined storage area, the
また、携帯電話機1は、第1メモリ51が不揮発性メモリであり、第2メモリ52が揮発性メモリにより構成される。
よって、携帯電話機1は、不揮発性メモリである第1メモリ51の記憶容量が足りない場合に、揮発性メモリである第2メモリ52を利用して所定のプログラムのアップデートに必要な差分データを記憶することができる。
In the
Therefore, when the storage capacity of the
また、携帯電話機1は、制御部60により、差分データを第2メモリ52に記憶させた場合に、第2メモリ52に記憶されている差分データを保持したまま、携帯電話機1を再起動し、当該再起動が完了した際に所定のプログラムのアップデートを実行する。
よって、携帯電話機1では、差分データが第1メモリ51又は第2メモリ52に記憶されたことに応じて、所定のプログラムが実行されていない状態として、所定のプログラムのアップデートを可能にすることができる。
In addition, when the
Therefore, in the
また、携帯電話機1は、制御部60により、第2メモリ52に記憶されている差分データに基づいて所定のプログラムのアップデートを実行する際に、差分データを第2メモリ52内において再配置させる。
よって、携帯電話機1は、第2メモリ52内において差分データを再配置することによって、差分データを最適な位置に配置して第2メモリ52における記憶可能領域を確保することができる。
Further, the
Therefore, the
また、携帯電話機1は、制御部60により、第2メモリ52に再配置された差分データのアドレスを第1メモリ51に記憶させ、第2メモリ52に記憶されている差分データに基づいて所定のプログラムのアップデートを実行する際に、第1メモリ51に記憶されている差分データのアドレスを参照して、差分データが記憶されている第2メモリ52内の記憶領域を特定する。
よって、携帯電話機1は、再起動した場合であっても、第2メモリ52において再配置された差分データのアドレスを第1メモリ51を参照して特定することができる。
In addition, the
Therefore, even when the
また、携帯電話機1は、制御部60により、第2メモリ52に差分データを再配置した際に、差分データのアドレスを参照して、第2メモリ52の記憶領域のうち差分データ及び当該差分データに関連するデータが記憶されていない記憶領域を初期化させる。
よって、携帯電話機1は、第2メモリ52に一時的に記憶されているデータのうち、不要なデータを削除して、所定のプログラムのアップデートに必要な記憶領域を増加させることができる。
In addition, when the
Therefore, the
また、携帯電話機1は、所定のプログラムのアップデートの際に、差分データと所定のプログラムとを第2メモリ52の記憶領域であって、差分データ及び差分データに関連するデータ以外の領域に展開するので、差分データ及び差分データに関連するデータが消去されることを阻止することができる。
In addition, when the predetermined program is updated, the
以上、本発明の実施形態について説明したが、本発明は前述した実施形態に限るものではない。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本発明の実施形態に記載されたものに限定されるものではない。 As mentioned above, although embodiment of this invention was described, this invention is not restricted to embodiment mentioned above. The effects described in the embodiments of the present invention are only the most preferable effects resulting from the present invention, and the effects of the present invention are limited to those described in the embodiments of the present invention. is not.
また、本発明は、本実施形態に係る携帯電話機1に限られるものではなく、携帯電話機1が本発明に係る各種機能を実行する方法、携帯電話機1に本発明に係る各種機能を実行させるためのプログラム、及びこのプログラムを記憶した記憶媒体にも適用可能である。また、本発明は、例えば、PDA(Personal Digital Assistant)や無線通信機能を備えたパーソナルコンピュータ等、様々な携帯端末装置に適用可能である。
In addition, the present invention is not limited to the
また、本実施形態では、差分データのエラー検出処理をアップデートを実行する直前に行うものとしたが、これに限らず、差分データの受信時にエラー検出処理を行ったり、差分データを第1メモリ51又は第2メモリ52に記憶させた際にエラー検出処理を行ったりしてもよい。
In the present embodiment, the error detection process for the difference data is performed immediately before the update is executed. However, the present invention is not limited to this, and the error detection process is performed when the difference data is received, or the difference data is stored in the
1 携帯電話機
30 無線通信部
51 第1メモリ
52 第2メモリ
60 制御部
DESCRIPTION OF
Claims (9)
所定のプログラムのアップデートの際に用いられる差分データを記憶する所定の記憶領域が予め設けられている第1メモリと、
前記所定の記憶領域より大きい第2メモリと、
前記無線通信部により前記所定のプログラムの差分データを受信する際に、前記差分データのサイズと前記所定の記憶領域のサイズとを対比し、前記差分データのサイズが前記所定の記憶領域のサイズに比べて小さい場合に前記差分データを前記第1メモリに記憶させ、前記差分データのサイズが前記所定の記憶領域のサイズに比べて大きい場合に前記差分データを前記第2メモリに記憶させる制御部と、
を備える携帯端末装置。 A wireless communication unit;
A first memory provided in advance with a predetermined storage area for storing difference data used in updating a predetermined program;
A second memory larger than the predetermined storage area;
When the difference data of the predetermined program is received by the wireless communication unit, the size of the difference data is compared with the size of the predetermined storage area, and the size of the difference data becomes the size of the predetermined storage area. A controller that stores the difference data in the first memory when the difference data is smaller than the first memory and stores the difference data in the second memory when the size of the difference data is larger than the size of the predetermined storage area; ,
A mobile terminal device comprising:
前記第2メモリは揮発性メモリである、
請求項1に記載の携帯端末装置。 The first memory is a non-volatile memory;
The second memory is a volatile memory;
The mobile terminal device according to claim 1.
請求項1又は2に記載の携帯端末装置。 When the difference data is stored in the second memory, the control unit restarts the portable terminal device while retaining the difference data stored in the second memory, and the restart is completed. When updating the predetermined program,
The portable terminal device according to claim 1 or 2.
請求項3に記載の携帯端末装置。 The control unit rearranges the difference data in the second memory when executing the update of the predetermined program based on the difference data stored in the second memory.
The mobile terminal device according to claim 3.
請求項4に記載の携帯端末装置。 The control unit stores the address of the difference data rearranged in the second memory in the first memory, and updates the predetermined program based on the difference data stored in the second memory. When executing, the storage area in the second memory in which the difference data is stored is specified by referring to the address of the difference data stored in the first memory.
The mobile terminal device according to claim 4.
請求項5に記載の携帯端末装置。 The control unit refers to the address of the difference data when the difference data is rearranged in the second memory, and the difference data and data related to the difference data in the storage area of the second memory Initialize the storage area where is not stored,
The mobile terminal device according to claim 5.
請求項6に記載の携帯端末装置。 When the predetermined program is updated, the control unit puts the difference data and the predetermined program in a storage area in which the difference data of the second memory and data related to the difference data are not stored. expand,
The mobile terminal device according to claim 6.
前記携帯端末装置は、
無線通信部と、
前記差分データを記憶する所定の記憶領域が予め設けられている第1メモリと、
前記所定の記憶領域より大きい第2メモリと、を備え、
前記記憶制御方法は、
前記無線通信部により前記差分データを受信する際に、前記差分データのサイズと前記所定の記憶領域のサイズとを対比するステップと、
前記対比するステップにおいて、前記差分データのサイズが前記所定の記憶領域のサイズに比べて小さい場合に前記差分データを前記第1メモリに記憶させ、前記差分データのサイズが前記所定の記憶領域のサイズに比べて大きい場合に前記差分データを前記第2メモリに記憶させるステップと、
を含む記憶制御方法。 A mobile terminal device is a storage control method for controlling the storage of difference data used in updating a predetermined program,
The portable terminal device
A wireless communication unit;
A first memory provided in advance with a predetermined storage area for storing the difference data;
A second memory larger than the predetermined storage area,
The storage control method includes:
A step of comparing the size of the difference data and the size of the predetermined storage area when receiving the difference data by the wireless communication unit;
In the comparing step, when the size of the difference data is smaller than the size of the predetermined storage area, the difference data is stored in the first memory, and the size of the difference data is the size of the predetermined storage area. Storing the difference data in the second memory when larger than
A storage control method.
前記携帯端末装置は、
無線通信部と、
前記差分データを記憶する所定の記憶領域が予め設けられている第1メモリと、
前記所定の記憶領域より大きい第2メモリと、を備え、
前記記憶制御プログラムは、
前記無線通信部により前記差分データを受信する際に、前記差分データのサイズと前記所定の記憶領域のサイズとを対比する処理と、
前記対比する処理において、前記差分データのサイズが前記所定の記憶領域のサイズに比べて小さい場合に前記差分データを前記第1メモリに記憶させ、前記差分データのサイズが前記所定の記憶領域のサイズに比べて大きい場合に前記差分データを前記第2メモリに記憶させる処理と、
を前記携帯端末装置に実行させる記憶制御プログラム。 A storage control program for causing a portable terminal device to execute storage control of difference data used in updating a predetermined program,
The portable terminal device
A wireless communication unit;
A first memory provided in advance with a predetermined storage area for storing the difference data;
A second memory larger than the predetermined storage area,
The storage control program is
When the difference data is received by the wireless communication unit, a process of comparing the size of the difference data with the size of the predetermined storage area;
In the comparison process, when the size of the difference data is smaller than the size of the predetermined storage area, the difference data is stored in the first memory, and the size of the difference data is the size of the predetermined storage area. A process of storing the difference data in the second memory when it is larger than
A storage control program for causing the portable terminal device to execute
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011094470A JP2012226619A (en) | 2011-04-20 | 2011-04-20 | Portable terminal device, storage control method, and storage control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011094470A JP2012226619A (en) | 2011-04-20 | 2011-04-20 | Portable terminal device, storage control method, and storage control program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012226619A true JP2012226619A (en) | 2012-11-15 |
Family
ID=47276699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011094470A Withdrawn JP2012226619A (en) | 2011-04-20 | 2011-04-20 | Portable terminal device, storage control method, and storage control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012226619A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015098811A1 (en) * | 2013-12-27 | 2015-07-02 | 京セラドキュメントソリューションズ株式会社 | Electronic device |
WO2019159715A1 (en) * | 2018-02-16 | 2019-08-22 | 日立オートモティブシステムズ株式会社 | Vehicle control device and program update system |
-
2011
- 2011-04-20 JP JP2011094470A patent/JP2012226619A/en not_active Withdrawn
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015098811A1 (en) * | 2013-12-27 | 2015-07-02 | 京セラドキュメントソリューションズ株式会社 | Electronic device |
JP6074064B2 (en) * | 2013-12-27 | 2017-02-01 | 京セラドキュメントソリューションズ株式会社 | Electronics |
WO2019159715A1 (en) * | 2018-02-16 | 2019-08-22 | 日立オートモティブシステムズ株式会社 | Vehicle control device and program update system |
CN111684416A (en) * | 2018-02-16 | 2020-09-18 | 日立汽车系统株式会社 | Vehicle control device and program update system |
JPWO2019159715A1 (en) * | 2018-02-16 | 2020-12-03 | 日立オートモティブシステムズ株式会社 | Vehicle control device and program update system |
JP7044859B2 (en) | 2018-02-16 | 2022-03-30 | 日立Astemo株式会社 | Vehicle control device and program update system |
US11449329B2 (en) | 2018-02-16 | 2022-09-20 | Hitachi Astemo, Ltd. | Vehicle control device and program update system |
CN111684416B (en) * | 2018-02-16 | 2023-09-29 | 日立安斯泰莫株式会社 | Vehicle control device and program update system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5213353B2 (en) | COMMUNICATION TERMINAL, COMMUNICATION TERMINAL CONTROL METHOD, COMMUNICATION DEVICE, AND COMMUNICATION DEVICE CONTROL METHOD | |
JP4532288B2 (en) | Information processing apparatus, information processing method thereof, and information processing program | |
KR20160089329A (en) | Method, device and terminal for restoring firmware program | |
KR100641220B1 (en) | Initialization method for portable terminal | |
KR20100120163A (en) | Mobile information processing device | |
JP4859465B2 (en) | Software updating method and mobile terminal device | |
EP1916589A1 (en) | Portable terminal | |
JP2012226619A (en) | Portable terminal device, storage control method, and storage control program | |
JP4376823B2 (en) | Electronic device and control method thereof | |
JP5751881B2 (en) | Electronic device, application determination method, and application determination program | |
JP5275103B2 (en) | Electronics | |
JP5275105B2 (en) | Electronics | |
JP4510746B2 (en) | Mobile phone with personal computer function | |
JP5045060B2 (en) | Mobile device | |
JP2005018244A (en) | Electronic apparatus and program storing method thereof | |
JP4774017B2 (en) | Mobile communication terminal | |
JP2005079910A (en) | Radio communication equipment | |
JP5563422B2 (en) | Electronic device and control method | |
KR20070013795A (en) | Portable terminal | |
JP2011175449A (en) | Storage device | |
JP5258697B2 (en) | Portable electronic devices | |
JP2011155526A (en) | Electronic equipment | |
JP5244544B2 (en) | Mobile device | |
JP2006059116A (en) | Portable terminal | |
JP2001086219A (en) | Mobile radio terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20140701 |