JP5275103B2 - Electronics - Google Patents

Electronics Download PDF

Info

Publication number
JP5275103B2
JP5275103B2 JP2009075530A JP2009075530A JP5275103B2 JP 5275103 B2 JP5275103 B2 JP 5275103B2 JP 2009075530 A JP2009075530 A JP 2009075530A JP 2009075530 A JP2009075530 A JP 2009075530A JP 5275103 B2 JP5275103 B2 JP 5275103B2
Authority
JP
Japan
Prior art keywords
storage unit
program code
unit
update
code stored
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
JP2009075530A
Other languages
Japanese (ja)
Other versions
JP2010231300A (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.)
Kyocera Corp
Original Assignee
Kyocera Corp
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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP2009075530A priority Critical patent/JP5275103B2/en
Publication of JP2010231300A publication Critical patent/JP2010231300A/en
Application granted granted Critical
Publication of JP5275103B2 publication Critical patent/JP5275103B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、ソフトウェアの更新機能を有する電子機器に関する。   The present invention relates to an electronic device having a software update function.

従来、様々な電子機器において、メモリに予め記憶されたソフトウェアを実行することにより各種機能を実現している。このような電子機器の中には、ソフトウェアの不具合修正や機能拡張等の理由により、更新用データを取得して新しいソフトウェアに更新する機能を有するものがある。   Conventionally, various functions are realized in various electronic devices by executing software stored in advance in a memory. Some of such electronic devices have a function of acquiring update data and updating to new software for reasons such as software defect correction and function expansion.

このようなソフトウェア更新の機能を有する電子機器は、例えば、ソフトウェアの新旧バージョンの差分データをダウンロードし、所定の更新エンジンを実行して、この差分データにより単位領域(ブロック)毎にソフトウェアを更新する(例えば、特許文献1参照)。   An electronic device having such a software update function downloads, for example, difference data of new and old versions of software, executes a predetermined update engine, and updates software for each unit area (block) with the difference data. (For example, refer to Patent Document 1).

特開2007−219883号公報JP 2007-219883 A

ところで、電子機器は、安価で容量の大きい不揮発性のメモリ(例えば、NANDフラッシュメモリ)にソフトウェアを格納し、実際にソフトウェアを実行する際には、読み書きが高速な揮発性メモリ(例えば、SDRAM(Synchronous Dynamic Random Access Memory))にコピーして実行する場合が多い。   By the way, an electronic device stores software in an inexpensive and large-capacity nonvolatile memory (for example, a NAND flash memory), and when actually executing the software, the volatile memory (for example, SDRAM (for example, SDRAM)) that reads and writes at high speed Synchronous Dynamic Random Access Memory)) is often executed.

この場合、電子機器は、揮発性メモリにコピーされたソフトウェアによって通常動作中に、不揮発性メモリのソフトウェアを更新する、いわゆるバックグラウンド更新を行うことができる。その後、電子機器は、不揮発性メモリ上の更新済みのソフトウェアの機能を電子機器の実際の動作に反映させるため、再起動処理に伴って、更新済みソフトウェアの全ブロックを揮発性メモリへコピーしていた。   In this case, the electronic device can perform so-called background update in which the software in the nonvolatile memory is updated during normal operation by the software copied to the volatile memory. After that, the electronic device copies all the blocks of the updated software to the volatile memory during the restart process in order to reflect the function of the updated software on the nonvolatile memory in the actual operation of the electronic device. It was.

しかしながら、揮発性メモリへのコピーを要するブロック数が多いと、コピー処理が終了してユーザによる利用が可能となるまでに長時間を要するという問題があった。   However, when the number of blocks that need to be copied to the volatile memory is large, there is a problem that it takes a long time until the copy process is completed and the user can use it.

本発明は、ソフトウェア更新後の再起動に要する時間を短縮することのできる電子機器を提供することを目的とする。   It is an object of the present invention to provide an electronic device that can shorten the time required for restart after software update.

本発明に係る電子機器は、ソフトウェアのプログラムコードをブロック単位で格納する不揮発性の第1記憶部と、前記第1記憶部に格納されたプログラムコードを更新するための更新情報データを受信する通信部と、前記通信部により受信した更新情報データに基づいて、前記第1記憶部に格納されたプログラムコードを前記ブロック単位で更新する更新部と、実行対象のプログラムコードを作業用に格納する揮発性の第2記憶部と、前記第1記憶部に格納されたプログラムコードの一部または全部を、前記第2記憶部へコピーし、前記第2記憶部に格納されたプログラムコードを実行する制御部と、を備え、前記制御部は、前記更新部により更新されたブロックのみを前記第2記憶部へコピーすることを特徴とする。   An electronic device according to the present invention includes a nonvolatile first storage unit that stores software program codes in units of blocks, and communication that receives update information data for updating the program codes stored in the first storage unit Based on update information data received by the communication unit, an update unit that updates the program code stored in the first storage unit in units of blocks, and a volatile that stores the program code to be executed for work The second storage unit having the control function and a control for copying a part or all of the program code stored in the first storage unit to the second storage unit and executing the program code stored in the second storage unit And the control unit copies only the block updated by the updating unit to the second storage unit.

また、前記制御部がプログラムコードの実行を再起動する場合において、前記第2記憶部は、電流が供給され、再起動前に格納されていた前記実行対象のプログラムコードを、再起動後も保持することが好ましい。   Further, when the control unit restarts execution of the program code, the second storage unit retains the program code to be executed, which has been stored before the restart, supplied with current even after the restart. It is preferable to do.

また、本発明に係る電子機器は、前記通信部により受信した更新情報データを記憶する第3記憶部をさらに備えることが好ましい。   Moreover, it is preferable that the electronic device according to the present invention further includes a third storage unit that stores update information data received by the communication unit.

また、本発明に係る電子機器は、前記更新情報データに基づいて更新されるブロックを示すデータを記憶する第4記憶部をさらに備え、前記更新部は、前記第1記憶部に格納されたプログラムコードを更新したときに、当該更新したブロックを示すデータを前記第4記憶部に記憶することが好ましい。   The electronic apparatus according to the present invention further includes a fourth storage unit that stores data indicating a block to be updated based on the update information data, and the update unit is a program stored in the first storage unit. When the code is updated, it is preferable to store data indicating the updated block in the fourth storage unit.

また、本発明に係る電子機器は、前記更新情報データに基づいて更新されるブロックを示すデータを記憶する第4記憶部をさらに備え、前記通信部は、前記更新情報データと共に、前記更新されるブロックを示すデータを受信し、前記第4記憶部に記憶することが好ましい。   The electronic device according to the present invention further includes a fourth storage unit that stores data indicating a block to be updated based on the update information data, and the communication unit is updated together with the update information data. It is preferable that data indicating a block is received and stored in the fourth storage unit.

本発明によれば、ソフトウェア更新後の再起動に要する時間を短縮することができる。   According to the present invention, the time required for restart after software update can be shortened.

第1実施形態に係る携帯電話機の外観斜視図である。1 is an external perspective view of a mobile phone according to a first embodiment. 第1実施形態に係る携帯電話機の機能を示すブロック図である。It is a block diagram which shows the function of the mobile telephone which concerns on 1st Embodiment. 第1実施形態に係るソフトウェアの更新システムを示す概略図である。It is the schematic which shows the update system of the software which concerns on 1st Embodiment. 第1実施形態に係るNANDからSDRAMへのプログラムコードのコピー処理を示す図である。It is a figure which shows the copy process of the program code from NAND to SDRAM which concerns on 1st Embodiment. 第1実施形態に係るNANDにおけるバックグラウンド更新処理を示す図である。It is a figure which shows the background update process in NAND which concerns on 1st Embodiment. 第1実施形態に係るバックグラウンド更新が終了し、再起動した際のSDRAMへのコピー処理を示す図である。It is a figure which shows the copy process to SDRAM when the background update which concerns on 1st Embodiment is complete | finished and restarted. 第1実施形態に係るMPUの処理を示すフローチャートである。It is a flowchart which shows the process of MPU which concerns on 1st Embodiment. 第2実施形態に係るMPUの処理を示すフローチャートである。It is a flowchart which shows the process of MPU which concerns on 2nd Embodiment.

<第1実施形態>
以下、本発明の第1実施形態について説明する。なお、本実施形態では、電子機器の一例として、携帯電話機1を説明する。なお、本発明の電子機器はこれには限られず、例えば、PHS(Personal Handy phone System)やPDA(Personal Digital Assistant)の他、ナビゲーション装置やパーソナルコンピュータ等、様々な電子機器に適用可能である。
<First Embodiment>
The first embodiment of the present invention will be described below. In the present embodiment, a mobile phone 1 will be described as an example of an electronic device. The electronic device of the present invention is not limited to this, and can be applied to various electronic devices such as a navigation device and a personal computer in addition to PHS (Personal Handyphone System) and PDA (Personal Digital Assistant).

図1は、本実施形態に係る携帯電話機1(電子機器)の外観斜視図である。なお、図1は、いわゆる折り畳み型の携帯電話機の形態を示しているが、本発明に係る携帯電話機の形態はこれに限られない。例えば、両筐体を重ね合わせた状態から一方の筐体を一方向にスライドさせるようにしたスライド式や、重ね合せ方向に沿う軸線を中心に一方の筐体を回転させるようにした回転式(ターンタイプ)や、操作部と表示部とが1つの筐体に配置され、連結部を有さない形式(ストレートタイプ)でもよい。   FIG. 1 is an external perspective view of a mobile phone 1 (electronic device) according to the present embodiment. 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 sliding type in which one casing is slid in one direction from a state in which both casings are overlapped, or a rotary type in which one casing is rotated around an axis along the overlapping direction ( Turn type), or a type (straight type) in which the operation unit and the display unit are arranged in one housing and does not have a connecting unit.

携帯電話機1は、操作部側筐体2と、表示部側筐体3と、を備えて構成される。操作部側筐体2は、表面部10に、操作部11と、携帯電話機1の使用者が通話時に発した音声が入力されるマイク12と、を備えて構成される。操作部11は、各種設定機能や電話帳機能やメール機能等の各種機能を作動させるための機能設定操作ボタン13と、電話番号の数字やメールの文字等を入力するための入力操作ボタン14と、各種操作における決定やスクロール等を行う決定操作ボタン15と、から構成されている。   The mobile phone 1 includes an operation unit side body 2 and a display unit side body 3. The operation unit side body 2 includes an operation unit 11 and a microphone 12 into which a voice uttered by a user of the mobile phone 1 is input on the surface unit 10. The operation unit 11 includes a function setting operation button 13 for activating various functions such as various setting functions, a telephone book function, and a mail function, and an input operation button 14 for inputting numbers of telephone numbers, mail characters, and the like. , And a determination operation button 15 for performing determination and scrolling in various operations.

また、表示部側筐体3は、表面部20に、各種情報を表示するための表示部21と、通話の相手側の音声を出力するレシーバ22と、を備えて構成されている。   The display unit side body 3 includes a display unit 21 for displaying various types of information on the surface unit 20 and a receiver 22 for outputting the voice of the other party of the call.

また、操作部側筐体2の上端部と表示部側筐体3の下端部とは、ヒンジ機構4を介して連結されている。また、携帯電話機1は、ヒンジ機構4を介して連結された操作部側筐体2と表示部側筐体3とを相対的に回転することにより、操作部側筐体2と表示部側筐体3とが互いに開いた状態(開放状態)にしたり、操作部側筐体2と表示部側筐体3とを折り畳んだ状態(折畳み状態)にしたりできる。   Further, the upper end portion of the operation unit side body 2 and the lower end portion of the display unit side body 3 are connected via a hinge mechanism 4. In addition, the mobile phone 1 relatively rotates the operation unit side body 2 and the display unit side body 3 which are connected via the hinge mechanism 4, so that the operation unit side body 2 and the display unit side body 3 are rotated. The body 3 can be in an open state (open state), or the operation unit side body 2 and the display unit side body 3 can be folded (folded state).

図2は、本実施形態に係る携帯電話機1の機能を示すブロック図である。携帯電話機1は、MPU30(更新部、制御部)と、電源部31と、無線部32(通信部)と、アンテナ33と、SDRAM34(第2記憶部)と、NAND35(第1記憶部、第3記憶部、第4記憶部)と、操作部11と、表示部21と、音声制御部36と、を備える。   FIG. 2 is a block diagram showing functions of the mobile phone 1 according to the present embodiment. The mobile phone 1 includes an MPU 30 (update unit, control unit), a power supply unit 31, a radio unit 32 (communication unit), an antenna 33, an SDRAM 34 (second storage unit), and a NAND 35 (first storage unit, first storage unit). 3 storage units, a fourth storage unit), an operation unit 11, a display unit 21, and a voice control unit 36.

MPU30は、携帯電話機1の全体を制御しており、例えば、表示部21、無線部32、音声制御部36等に対して所定の制御を行う。また、MPU30は、操作部11等から入力を受け付けて、各種処理を実行する。そして、MPU30は、処理実行の際には、SDRAM34およびNAND35を制御し、各種プログラムおよびデータの読み出し、およびデータの書き込みを行う。   The MPU 30 controls the entire mobile phone 1, and performs predetermined control on the display unit 21, the radio unit 32, the voice control unit 36, and the like, for example. Further, the MPU 30 receives input from the operation unit 11 or the like and executes various processes. When executing the process, the MPU 30 controls the SDRAM 34 and the NAND 35 to read various programs and data and write data.

電源部31は、携帯電話機1の各部へ電源を供給している。また、電源ON/OFFを切り替える所定の操作入力に応じて、電源部31は、電源の供給先を変更する。すなわち、電源OFFの場合には、例えばSDRAM34等の限られた部位のみに電源を供給する。   The power supply unit 31 supplies power to each unit of the mobile phone 1. Further, the power supply unit 31 changes the power supply destination in response to a predetermined operation input for switching power ON / OFF. That is, when the power is off, power is supplied only to a limited part such as the SDRAM 34.

無線部32は、所定の使用周波数帯(例えば、2GHz帯や800MHz帯等)で外部装置(基地局)と通信を行う。そして、無線部32は、アンテナ33より受信した信号を復調処理し、処理後の信号をMPU30に供給し、また、MPU30から供給された信号を変調処理し、アンテナ33から外部装置に送信する。   The radio unit 32 communicates with an external device (base station) in a predetermined use frequency band (for example, 2 GHz band, 800 MHz band, etc.). The radio unit 32 demodulates the signal received from the antenna 33, supplies the processed signal to the MPU 30, modulates the signal supplied from the MPU 30, and transmits the signal from the antenna 33 to the external device.

SDRAM34は、MPU30により作業用に使用される記憶装置であり、電流の供給を受け続けることによりデータを保持する揮発性の記憶装置である。なお、携帯電話機1は、電源をOFFにした場合にも、電源部31によりSDRAM34へ電流を供給し続ける。これにより、例えば再起動時に一旦電源がOFFとなった場合にも、SDRAM34に記憶されたデータは保持される(セルフリフレッシュ)。   The SDRAM 34 is a storage device used for work by the MPU 30 and is a volatile storage device that retains data by continuing to receive a current. Note that the cellular phone 1 continues to supply current to the SDRAM 34 by the power supply unit 31 even when the power is turned off. Thereby, for example, even when the power is once turned off at the time of restart, the data stored in the SDRAM 34 is retained (self-refresh).

NAND35は、ソフトウェアのプログラムコード等を静的に記憶する不揮発性の記憶装置である。SDRAM34へのデータの読み書きは、NAND35へのそれよりも速いため、NAND35に記憶されたプログラムコードの一部または全部をSDRAM34にコピーすることにより、MPU30で実行される。また、無線部32により受信(ダウンロード)したソフトウェア、あるいはソフトウェアの更新情報データは、このNAND35に記憶される。   The NAND 35 is a nonvolatile storage device that statically stores software program codes and the like. Since reading and writing of data to and from the SDRAM 34 is faster than that to the NAND 35, the MPU 30 is executed by copying a part or all of the program code stored in the NAND 35 to the SDRAM 34. The software received (downloaded) by the wireless unit 32 or software update information data is stored in the NAND 35.

表示部21は、MPU30の制御に従って、所定の画像処理を行う。そして、処理後の画像データをフレームメモリに蓄え、所定のタイミングで画面出力する。   The display unit 21 performs predetermined image processing according to the control of the MPU 30. Then, the processed image data is stored in the frame memory and output to the screen at a predetermined timing.

音声制御部36は、MPU30の制御に従って、無線部32から供給された信号に対して所定の音声処理を行い、処理後の信号をレシーバ22に出力する。レシーバ22は、音声制御部36から供給された信号を外部に出力する。なお、この信号は、レシーバ22に代えて、または、レシーバ22と共に、スピーカ(図示せず)から出力されるとしてもよい。   The sound control unit 36 performs predetermined sound processing on the signal supplied from the wireless unit 32 according to the control of the MPU 30, and outputs the processed signal to the receiver 22. The receiver 22 outputs the signal supplied from the audio control unit 36 to the outside. This signal may be output from a speaker (not shown) instead of or together with the receiver 22.

また、音声制御部36は、MPU30の制御に従って、マイク12から入力された信号を処理し、処理後の信号を無線部32に出力する。無線部32は、音声制御部36から供給された信号に所定の処理を行い、処理後の信号をアンテナ33より出力する。   In addition, the voice control unit 36 processes the signal input from the microphone 12 according to the control of the MPU 30, and outputs the processed signal to the radio unit 32. The radio unit 32 performs predetermined processing on the signal supplied from the audio control unit 36 and outputs the processed signal from the antenna 33.

図3は、本実施形態に係るソフトウェアの更新システムを示す概略図である。携帯電話機1で利用されるソフトウェアは、管理サーバにて新旧のバージョン管理がされている。管理サーバは、データベースにてソフトウェアのプログラムコードと、旧バージョンから新バージョンへ更新するための更新情報データとを保持する。そして、管理サーバは、携帯電話機1からの要求に応じて、最新のプログラムコードまたは更新情報データを、基地局を介して送信する。   FIG. 3 is a schematic diagram showing a software update system according to the present embodiment. The software used in the mobile phone 1 is subjected to new and old version management by a management server. The management server holds the program code of software and update information data for updating from the old version to the new version in the database. Then, the management server transmits the latest program code or update information data through the base station in response to a request from the mobile phone 1.

以下、携帯電話機1で実行されるソフトウェアを新バージョンへ更新するための、MPU30の処理内容を説明する。   Hereinafter, processing contents of the MPU 30 for updating the software executed on the mobile phone 1 to a new version will be described.

図4は、本実施形態に係るNAND35からSDRAM34へのプログラムコードのコピー処理を示す図である。この処理では、MPU30は、携帯電話機1の電源がONとなったときに、実行対象のソフトウェアのプログラムコードを、作業用の記憶装置であるSDRAM34へコピーする。   FIG. 4 is a diagram showing a program code copy process from the NAND 35 to the SDRAM 34 according to the present embodiment. In this processing, the MPU 30 copies the program code of the execution target software to the SDRAM 34 that is a working storage device when the power of the mobile phone 1 is turned on.

NAND35において、プログラムコードはブロック単位に格納されており、SDRAM34へも、このブロック単位で順次コピーされる。そして、全ブロックのコピーが完了すると、MPU30は、SDRAM34上でソフトウェアを実行し、ユーザの利用が開始される。   In the NAND 35, the program code is stored in units of blocks, and is sequentially copied to the SDRAM 34 in units of blocks. When the copying of all the blocks is completed, the MPU 30 executes software on the SDRAM 34 and starts using the user.

なお、前述のセルフリフレッシュ機能が動作しているときは、SDRAM34のデータが保持されているので、本処理は省略され、MPU30は、即座にSDRAM34上でソフトウェアを実行することができる。   Note that when the above-described self-refresh function is operating, the data of the SDRAM 34 is retained, so this process is omitted, and the MPU 30 can immediately execute the software on the SDRAM 34.

図5は、本実施形態に係る更新情報データを受信した後の、NAND35におけるバックグラウンド更新処理を示す図である。この処理は、携帯電話機1が利用され、SDRAM34上でソフトウェアが実行されている間に実行される。   FIG. 5 is a diagram showing a background update process in the NAND 35 after receiving the update information data according to the present embodiment. This process is executed while the mobile phone 1 is used and software is executed on the SDRAM 34.

MPU30は、旧バージョンのソフトウェアを新バージョンへ更新するための差分データ(更新情報データ)をサーバより受信すると、当該差分データをNAND35の差分データ用の記憶領域に記憶する。続いて、この差分データおよび、NAND35の該当ブロックにある更新前のイメージに基づいて、更新後のイメージを生成すると、このブロックを更新後のイメージで更新する。   When the MPU 30 receives the difference data (update information data) for updating the old version software to the new version from the server, the MPU 30 stores the difference data in the NAND 35 difference data storage area. Subsequently, when an updated image is generated based on the difference data and the image before update in the corresponding block of the NAND 35, the block is updated with the updated image.

さらに、MPU30は、差分データによりNAND35のどのブロックを更新したのか(例えば、ブロック1〜ブロック3)を示す更新ブロック情報を、後述の処理のために生成して記憶しておく。   Further, the MPU 30 generates and stores update block information indicating which block of the NAND 35 has been updated with the difference data (for example, block 1 to block 3) for processing to be described later.

図6は、本実施形態に係るバックグラウンド更新が終了し、再起動した際のSDRAM34へのコピー処理を示す図である。   FIG. 6 is a diagram showing a copy process to the SDRAM 34 when the background update according to the present embodiment is completed and restarted.

たとえ、前述のセルフリフレッシュ機能が動作していても、NAND35の更新が行われた場合には、SDRAM34に格納されているソフトウェアは旧バージョンである。したがって、NAND35からのコピー処理(図4参照)が行われないと、新バージョンのソフトウェアは実行されない。   Even if the self-refresh function described above is operating, if the NAND 35 is updated, the software stored in the SDRAM 34 is an old version. Therefore, the new version of software is not executed unless the copy process from the NAND 35 (see FIG. 4) is performed.

ところが、図4に示すようにMPU30が全ブロックをコピーした場合において、全てのブロックが更新されないとき(例えば、ブロック1〜ブロック3のみが更新されるとき)、MPU30は、NAND35とSDRAM34のデータが同じブロックについてもNAND35からSDRAM34へのコピーを行うため、処理の終了までに時間が掛かる。   However, as shown in FIG. 4, when all the blocks are not updated when the MPU 30 has copied all the blocks (for example, when only the blocks 1 to 3 are updated), the MPU 30 stores the data in the NAND 35 and the SDRAM 34. Since the same block is copied from the NAND 35 to the SDRAM 34, it takes time to complete the processing.

そこで、本実施形態では、バックグラウンド更新処理にて生成された更新ブロック情報に基づいて、MPU30は、更新されたNAND35のブロックのデータのみを、SDRAM34の対応するブロックへコピーする。その他のブロックは、セルフリフレッシュ機能により再起動前のデータを保持するため、MPU30は、最小限のコピー処理にて、更新後のデータをSDRAM34上に展開することが可能となる。したがって、更新後のデータをユーザが利用可能となるまでの時間が短縮される。   Therefore, in this embodiment, based on the update block information generated in the background update process, the MPU 30 copies only the updated block data of the NAND 35 to the corresponding block of the SDRAM 34. The other blocks hold the data before restart by the self-refresh function, so that the MPU 30 can expand the updated data on the SDRAM 34 with a minimum copy process. Therefore, the time until the user can use the updated data is shortened.

図7は、本実施形態に係るMPU30の処理を示すフローチャートである。
ステップS1では、MPU30は、携帯電話機1の起動処理を行う。SDRAM34のデータが保持されていない場合、MPU30は、NAND35からSDRAM34へデータをコピーした後に当該データを実行する(図4参照)。
FIG. 7 is a flowchart showing processing of the MPU 30 according to the present embodiment.
In step S <b> 1, the MPU 30 performs activation processing of the mobile phone 1. When the data of the SDRAM 34 is not held, the MPU 30 executes the data after copying the data from the NAND 35 to the SDRAM 34 (see FIG. 4).

ステップS2では、MPU30は、更新の存在が通知されたことに応じて、基地局を介して所定のサーバからソフトウェア更新の差分データをダウンロードする。MPU30は、ダウンロードした差分データをNAND35に記憶する。   In step S2, the MPU 30 downloads software update difference data from a predetermined server via the base station in response to the notification of the presence of the update. The MPU 30 stores the downloaded difference data in the NAND 35.

ステップS3では、MPU30は、NAND35に記憶されているソフトウェア(データ)のバックグラウンド更新を実行するか否かを判定する。具体的には、ユーザからの所定の指示入力を受け付けたか否かを判定する。この判定がYESの場合はステップS4に移り、判定がNOの場合は指示入力を待機する。   In step S <b> 3, the MPU 30 determines whether to perform background update of software (data) stored in the NAND 35. Specifically, it is determined whether or not a predetermined instruction input from the user has been accepted. If this determination is YES, the process proceeds to step S4, and if the determination is NO, the instruction input is awaited.

ステップS4では、MPU30は、ステップS2で受信した差分データによるバックグラウンド更新が完了するまで、ループ処理を実行する。全ブロックを更新すると、MPU30は、当該ループ処理を終了し、ステップS7に移る。   In step S4, the MPU 30 executes a loop process until the background update using the difference data received in step S2 is completed. When all the blocks are updated, the MPU 30 ends the loop process and proceeds to step S7.

ステップS5では、MPU30は、ステップS2で受信した差分データに基づいて、NAND35のブロック単位に、プログラムコードのバックグラウンド更新を行う(図5参照)。   In step S5, the MPU 30 performs background update of the program code for each block of the NAND 35 based on the difference data received in step S2 (see FIG. 5).

ステップS6では、MPU30は、ステップS5で更新したブロックを示す更新ブロック情報をNAND35に記録する。   In step S6, the MPU 30 records updated block information indicating the block updated in step S5 in the NAND 35.

ステップS7では、MPU30は、携帯電話機1を再起動し、起動処理を実行する。具体的には、ステップS6で記録された更新ブロック情報を参照し、NAND35からSDRAM34へ、更新されたブロックのみをコピーする(図6参照)。なお、前述したように、更新されないブロックに関しては、SDRAM34は再起動前のデータを保持する。   In step S7, the MPU 30 restarts the mobile phone 1 and executes a startup process. Specifically, the updated block information recorded in step S6 is referred to, and only the updated block is copied from the NAND 35 to the SDRAM 34 (see FIG. 6). As described above, the SDRAM 34 holds the data before restart for the blocks that are not updated.

本処理では、ユーザからの指示入力に応じてバックグラウンド更新を開始したが、これには限られない。例えば、受信した差分データの属性として付加された重要度に応じて、自動的に開始してもよい。また、重要度にかかわらず、自動的にバックグラウンド更新を開始する態様であってもよい。   In this process, background update is started in response to an instruction input from the user, but the present invention is not limited to this. For example, you may start automatically according to the importance added as the attribute of the received difference data. Moreover, the aspect which starts a background update automatically irrespective of importance may be sufficient.

<第2実施形態>
以下、本発明の第2実施形態について説明する。第1実施形態では、更新ブロック情報をMPU30が生成して記録したが、本実施形態では、サーバから更新ブロック情報をダウンロードする。
Second Embodiment
Hereinafter, a second embodiment of the present invention will be described. In the first embodiment, the update block information is generated and recorded by the MPU 30, but in this embodiment, the update block information is downloaded from the server.

図8は、本実施形態に係るMPU30の処理を示すフローチャートである。なお、第1実施形態(図7)と同様の処理については同一の符号を付し、説明を省略または簡略化する。   FIG. 8 is a flowchart showing processing of the MPU 30 according to the present embodiment. In addition, the same code | symbol is attached | subjected about the process similar to 1st Embodiment (FIG. 7), and description is abbreviate | omitted or simplified.

ステップS1での起動処理の後、ステップS2aにおいて、MPU30は、ソフトウェア更新のための差分データと共に、いずれのブロックを更新するのかを示す更新ブロック情報をダウンロードする。MPU30は、受信した差分データおよび更新ブロック情報を、NAND35の受信したデータ用の領域に記憶する。   After the activation process in step S1, in step S2a, the MPU 30 downloads update block information indicating which block is to be updated together with the difference data for software update. The MPU 30 stores the received difference data and updated block information in the received data area of the NAND 35.

MPU30は、ステップS3において、バックグラウンド更新を実行すると判定すると、ステップS4からステップS5において、ステップ差分データに基づいてNAND35のバックグラウンド更新を実行する。   If the MPU 30 determines that the background update is to be executed in step S3, the MPU 30 executes the background update of the NAND 35 based on the step difference data in steps S4 to S5.

そして、ステップS7において、MPU30は、携帯電話機1を再起動し、起動処理を実行する。ここでは、第1実施形態と同様に、ステップS2aで記憶された更新ブロック情報を参照し、NAND35からSDRAM34へ、更新されたブロックをコピーする(図6参照)。   In step S7, the MPU 30 restarts the mobile phone 1 and executes a startup process. Here, as in the first embodiment, the updated block information stored in step S2a is referred to, and the updated block is copied from the NAND 35 to the SDRAM 34 (see FIG. 6).

このように、サーバから更新ブロック情報の提供を受けることにより、第1実施形態においてバックグラウンド更新中に更新ブロック情報を生成して記憶していた処理負荷が低減される。   Thus, by receiving the update block information from the server, the processing load generated and stored in the first embodiment during the background update is reduced.

以上、本発明の実施形態について説明したが、本発明は前述した実施形態に限るものではない。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本発明の実施形態に記載されたものに限定されるものではない。   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.

前述の実施形態では、バックグラウンド更新後の再起動時において、NAND35からSDRAM34へプログラムコードをコピーする処理について述べたが、本発明の適用はこれには限られない。例えば、通常起動時にNAND35を更新した後のコピー処理に適用してもよい。   In the above-described embodiment, the process of copying the program code from the NAND 35 to the SDRAM 34 at the time of restart after the background update has been described, but the application of the present invention is not limited to this. For example, the present invention may be applied to a copy process after the NAND 35 is updated at normal startup.

また、携帯電話機1は、基地局を介して無線にて更新情報データを取得することとしたが、これには限られず、他の電子機器(例えば、パーソナルコンピュータ)や外付けの記憶装置から有線にて取得することとしてもよい。   In addition, the mobile phone 1 acquires the update information data wirelessly via the base station, but the present invention is not limited to this, and it is wired from another electronic device (for example, a personal computer) or an external storage device. It is good also as acquiring by.

1 携帯電話機(電子機器)
11 操作部
21 表示部
30 MPU(更新部、制御部)
31 電源部
32 無線部(通信部)
33 アンテナ
34 SDRAM(第2記憶部)
35 NAND(第1記憶部、第3記憶部、第4記憶部)
36 音声制御部
1 Mobile phone (electronic equipment)
11 operation unit 21 display unit 30 MPU (update unit, control unit)
31 power supply unit 32 wireless unit (communication unit)
33 Antenna 34 SDRAM (second storage unit)
35 NAND (first storage unit, third storage unit, fourth storage unit)
36 Voice control unit

Claims (5)

ソフトウェアのプログラムコードをブロック単位で格納する不揮発性の第1記憶部と、
前記第1記憶部に格納されたプログラムコードを更新するための更新情報データを受信する通信部と、
前記通信部により受信した更新情報データに基づいて、前記第1記憶部に格納されたプログラムコードを前記ブロック単位で更新する更新部と、
実行対象のプログラムコードを作業用に格納する揮発性の第2記憶部と、
前記第1記憶部に格納されたプログラムコードの一部または全部を、前記第2記憶部へコピーし、前記第2記憶部に格納されたプログラムコードを実行する制御部と、を備え、
前記制御部は、前記更新部により更新されたブロックのみを前記第2記憶部へコピーすることを特徴とする電子機器であって、
前記制御部がプログラムコードの実行を再起動する場合において、前記第2記憶部は、電流が供給され、再起動前に格納されていた前記実行対象のプログラムコードを、再起動後も保持することを特徴とする電子機器
A nonvolatile first storage unit that stores software program codes in units of blocks;
A communication unit that receives update information data for updating the program code stored in the first storage unit;
An update unit that updates the program code stored in the first storage unit in units of blocks based on update information data received by the communication unit;
A volatile second storage unit for storing the program code to be executed for work;
A control unit that copies part or all of the program code stored in the first storage unit to the second storage unit and executes the program code stored in the second storage unit;
The control unit is an electronic device characterized in that only the block updated by the update unit is copied to the second storage unit ,
When the control unit restarts execution of the program code, the second storage unit retains the execution target program code stored before the restart after being supplied with the current after the restart. Electronic equipment characterized by
前記通信部により受信した更新情報データを記憶する第3記憶部をさらに備える請求項1に記載の電子機器。 The electronic device according to claim 1, further comprising a third storage unit that stores update information data received by the communication unit. 前記更新情報データに基づいて更新されるブロックを示すデータを記憶する第4記憶部をさらに備え、
前記更新部は、前記第1記憶部に格納されたプログラムコードを更新したときに、当該更新したブロックを示すデータを前記第4記憶部に記憶することを特徴とする請求項1または請求項2に記載の電子機器。
A fourth storage unit for storing data indicating a block to be updated based on the update information data;
The updating unit, when updating program code stored in the first storage unit, according to claim 1 or claim, characterized in that storing data indicating the updated block in said fourth storage unit 2 The electronic device as described in.
ソフトウェアのプログラムコードをブロック単位で格納する不揮発性の第1記憶部と、A nonvolatile first storage unit that stores software program codes in units of blocks;
前記第1記憶部に格納されたプログラムコードを更新するための更新情報データを受信する通信部と、A communication unit that receives update information data for updating the program code stored in the first storage unit;
実行対象のプログラムコードを作業用に格納する揮発性の第2記憶部と、A volatile second storage unit for storing the program code to be executed for work;
前記第2記憶部に格納されたプログラムコードを実行する制御部と、を備える電子機器であって、A control unit that executes the program code stored in the second storage unit, and an electronic device comprising:
前記第2記憶部は、再起動前に格納されていた前記実行対象のプログラムコードを再起動後も保持することが可能であり、The second storage unit can hold the execution target program code stored before the restart even after the restart,
前記制御部は、前記通信部により受信した更新情報データに基づいて前記第1記憶部に格納されたプログラムコードを前記ブロック単位で更新し、当該更新の後に再起動されると、前記第1記憶部に格納されたプログラムコードの更新されたブロックのみを前記第2記憶部にコピーして前記第2記憶部に保持されているプログラムコードを更新し、当該更新されたプログラムコードを実行するThe control unit updates the program code stored in the first storage unit based on the update information data received by the communication unit in the block unit, and when restarted after the update, the first storage Only the updated block of the program code stored in the section is copied to the second storage section, the program code held in the second storage section is updated, and the updated program code is executed
電子機器。Electronics.
ソフトウェアのプログラムコードをブロック単位で格納する不揮発性の第1記憶部と、
前記第1記憶部に格納されたプログラムコードを更新するための更新情報データを受信する通信部と、
前記通信部により受信した更新情報データに基づいて、前記第1記憶部に格納されたプログラムコードを前記ブロック単位で更新する更新部と、
実行対象のプログラムコードを作業用に格納する揮発性の第2記憶部と、
前記第1記憶部に格納されたプログラムコードの一部または全部を、前記第2記憶部へコピーし、前記第2記憶部に格納されたプログラムコードを実行する制御部と、を備え、
前記制御部は、前記更新部により更新されたブロックのみを前記第2記憶部へコピーすることを特徴とする電子機器であって、
前記更新情報データに基づいて更新されるブロックを示すデータを記憶する更新ブロックデータ記憶部をさらに備え、
前記通信部は、前記更新情報データと共に、前記更新されるブロックを示すデータを受信し、前記更新ブロックデータ記憶部に記憶することを特徴とする電子機器。
A nonvolatile first storage unit that stores software program codes in units of blocks;
A communication unit that receives update information data for updating the program code stored in the first storage unit;
An update unit that updates the program code stored in the first storage unit in units of blocks based on update information data received by the communication unit;
A volatile second storage unit for storing the program code to be executed for work;
A control unit that copies part or all of the program code stored in the first storage unit to the second storage unit and executes the program code stored in the second storage unit;
The control unit is an electronic device characterized in that only the block updated by the update unit is copied to the second storage unit,
An update block data storage unit for storing data indicating a block to be updated based on the update information data;
The communication unit is configured with update information data, the received data indicating the block to be updated, the update block you wherein electronic equipment be stored in the data storage unit.
JP2009075530A 2009-03-26 2009-03-26 Electronics Expired - Fee Related JP5275103B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009075530A JP5275103B2 (en) 2009-03-26 2009-03-26 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009075530A JP5275103B2 (en) 2009-03-26 2009-03-26 Electronics

Publications (2)

Publication Number Publication Date
JP2010231300A JP2010231300A (en) 2010-10-14
JP5275103B2 true JP5275103B2 (en) 2013-08-28

Family

ID=43047086

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009075530A Expired - Fee Related JP5275103B2 (en) 2009-03-26 2009-03-26 Electronics

Country Status (1)

Country Link
JP (1) JP5275103B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7206106B2 (en) * 2018-12-25 2023-01-17 東芝テック株式会社 Information processing device and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05100843A (en) * 1991-10-09 1993-04-23 Fujitsu Ltd Micro program loading method
JP2812189B2 (en) * 1994-02-10 1998-10-22 日本電気株式会社 How to download the program

Also Published As

Publication number Publication date
JP2010231300A (en) 2010-10-14

Similar Documents

Publication Publication Date Title
JP4944686B2 (en) Software update method and portable terminal device
US7584379B2 (en) Mobile terminal and software update method
JP4859465B2 (en) Software updating method and mobile terminal device
JP2009009391A (en) Updating software self-update method and portable terminal device
JP5275103B2 (en) Electronics
JP5275105B2 (en) Electronics
JP5478090B2 (en) Electronics
JP2007258895A (en) Mobile terminal, control method therefor, program, and recording medium
KR20070022439A (en) Method for upgrading data in mobile telecommunication terminal
JP2004320591A (en) Portable communication terminal
JP2011154548A (en) Storage device
JP2012226619A (en) Portable terminal device, storage control method, and storage control program
JP2011155526A (en) Electronic equipment
JP5258697B2 (en) Portable electronic devices
JP2005018244A (en) Electronic apparatus and program storing method thereof
JP5474588B2 (en) Electronics
JP5259521B2 (en) Portable electronic devices
JP5590595B2 (en) Portable terminal device, memory update method, and program
JP5396894B2 (en) Portable terminal
JP2008147787A (en) Portable terminal device
JP4309122B2 (en) User data protection method, PC and program when rewriting software on mobile phone
JP2011175449A (en) Storage device
JP2006011906A (en) Software installation method
JP2006059116A (en) Portable terminal
JP2005258894A (en) Digital electronic apparatus, and method for setting function

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120203

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20120803

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130129

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130329

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130515

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5275103

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees