JP2008090723A - Portable terminal - Google Patents

Portable terminal Download PDF

Info

Publication number
JP2008090723A
JP2008090723A JP2006272905A JP2006272905A JP2008090723A JP 2008090723 A JP2008090723 A JP 2008090723A JP 2006272905 A JP2006272905 A JP 2006272905A JP 2006272905 A JP2006272905 A JP 2006272905A JP 2008090723 A JP2008090723 A JP 2008090723A
Authority
JP
Japan
Prior art keywords
terminal
control program
stored
unit
mobile terminal
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.)
Pending
Application number
JP2006272905A
Other languages
Japanese (ja)
Inventor
Hirokazu Takahashi
宏和 高橋
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 JP2006272905A priority Critical patent/JP2008090723A/en
Publication of JP2008090723A publication Critical patent/JP2008090723A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a portable terminal, requiring no reading part exclusive for data rewrite. <P>SOLUTION: The portable terminal comprises a flash memory 7 storing a terminal control program; a RAM 8; a reading part 11 reading a terminal control program to be updated stored in an external storage medium 10, and storing it in the RAM 8; a writing part 12 writing the terminal control program stored in the RAM 8 to the flash memory 7; and a control part 6 controlling operations of the reading part 11 and the writing part 12. The control part 6 performs control to shift, upon receipt of a specific mode transition command, the portable terminal T to a mode in which terminal control program can be rewritten, and to read and store, upon receipt of a rewrite command during this mode, the terminal control program to be updated stored in the external storage medium 10 in the RAM 8, and then rewrite the terminal control program stored in the flash memory 7 by the terminal control program stored in the RAM 8. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、携帯端末に関し、特に当該携帯端末に着脱自在な記憶媒体とのデータの授受が可能な携帯端末に関する。  The present invention relates to a mobile terminal, and more particularly to a mobile terminal capable of exchanging data with a storage medium detachably attached to the mobile terminal.

例えば、下記特許文献1には、通信端末装置におけるプログラムの更新を、専用のプログラム書込みツールを用いることなく容易に実行でき、且つ不正な更新に対するセキュリティを向上することを目的とし、通信端末装置に対して着脱可能な2次記憶デバイス(外部記憶媒体)に更新用の制御プログラムを保存して、更新が可能と判断された場合のみ、上記2次記憶デバイスの制御プログラムを端末内のフラッシュメモリに記憶させ、当該フラッシュメモリに記憶した制御プログラムの書き換えを行う技術が開示されている。
特開2002−99441号公報
For example, in Patent Document 1 below, a program in a communication terminal apparatus can be easily updated without using a dedicated program writing tool, and security for unauthorized updating is improved. On the other hand, the control program for update is stored in a removable secondary storage device (external storage medium), and the control program for the secondary storage device is stored in the flash memory in the terminal only when it is determined that the update is possible. A technique for storing and rewriting a control program stored in the flash memory is disclosed.
JP 2002-99441 A

上記従来技術では、プログラム書き換え用の処理を行うプログラムが必要であり、この処理用のプログラムと書き換える内容たるプログラムのデータとの両方を作成して保存しておく必要があり、メモリを多く必要としていた。また、従来技術では、プログラムの書き換えを行っている最中に通信動作などを行ってしまうと、プログラムの書き換えに不具合が発生する可能性があった。さらに、従来技術では、プログラムの書き換え処理にエラーが発生した場合、どのようなエラーが発生したのかを識別することが困難であった。   The above prior art requires a program for performing a program rewrite process, and it is necessary to create and save both the program for this process and the program data that is the content to be rewritten, which requires a lot of memory. It was. In the prior art, if a communication operation or the like is performed during rewriting of a program, there is a possibility that a problem occurs in rewriting of the program. Further, in the prior art, when an error occurs in the program rewriting process, it is difficult to identify what kind of error has occurred.

本発明は、上述した事情に鑑みてなされたものであり、プログラム書き換え専用の読み出し部を不要とする携帯端末を提供することを目的とする。また、本発明は、プログラムの書き換え中における不具合の発生を抑制し、さらにプログラムの書き換え処理中に発生したエラーの内容を識別可能にする携帯端末を提供することを目的とする。   The present invention has been made in view of the above-described circumstances, and an object of the present invention is to provide a portable terminal that does not require a read unit dedicated to program rewriting. Another object of the present invention is to provide a portable terminal that can suppress the occurrence of problems during program rewriting and that can identify the contents of errors that occur during the program rewriting process.

上記目的を達成するために、本発明では、携帯端末に係る第1の解決手段として、携帯端末の機能を制御する端末制御プログラムが記憶されている第1の記憶部と、前記携帯端末に着脱自在であり、更新予定の端末制御プログラムが記憶される記憶媒体と、第2の記憶部と、前記記憶媒体に記憶された前記更新予定の端末制御プログラムを読み出して前記第2の記憶部に記憶させると共に、前記記憶媒体に記憶されている前記端末制御プログラム以外のデータも読み出すことが可能な読み出し部と、前記第2の記憶部に記憶された前記端末制御プログラムを、前記第1の記憶部に書き込む書き込み部と、前記読み出し部及び書き込み部の動作を制御する制御部とを備え、前記制御部は、第1の情報を受信した場合に、前記端末制御プログラムの書き換えを実行可能とするモードに携帯端末を遷移させ、前記携帯端末が前記モードにある状態において、第2の情報を受信すると、前記記憶媒体に記憶された前記更新予定の端末制御プログラムを読み出して前記第2の記憶部に記憶させ、次いで前記第1の記憶部に記憶された端末制御プログラムを前記第2の記憶部に記憶された更新予定の端末制御プログラムに書き換えるように制御することを特徴とする。  In order to achieve the above object, in the present invention, as a first solution means for a mobile terminal, a first storage unit storing a terminal control program for controlling the function of the mobile terminal, and a detachable attachment to the mobile terminal A storage medium storing a terminal control program to be updated, a second storage unit, and the terminal control program to be updated stored in the storage medium are read out and stored in the second storage unit And a read unit capable of reading data other than the terminal control program stored in the storage medium, and the terminal control program stored in the second storage unit. And a control unit that controls operations of the reading unit and the writing unit, and the control unit receives the first information, and the terminal control program When the mobile terminal is shifted to a mode in which rewriting can be performed and the second information is received while the mobile terminal is in the mode, the terminal control program to be updated stored in the storage medium is read out Control is performed so that the terminal control program stored in the second storage unit and then the terminal control program stored in the first storage unit is rewritten with the terminal control program to be updated stored in the second storage unit. And

また、本発明では、携帯端末に係る第2の解決手段として、上記第1の解決手段において、前記第1の情報及び第2の情報の少なくとも一方は、前記携帯端末に接続された外部機器からの入力であることを特徴とする。   In the present invention, as the second solving means relating to the portable terminal, in the first solving means, at least one of the first information and the second information is from an external device connected to the portable terminal. Input.

また、本発明では、携帯端末に係る第3の解決手段として、上記第1または第2の解決手段において、前記制御部は、前記端末制御プログラムを書き換える制御を行う前に、該書き換える制御に不要な前記携帯端末の機能を停止させることを特徴とする。  In the present invention, as the third solving means relating to the portable terminal, in the first or second solving means, the control unit is not required for the rewriting control before performing the control for rewriting the terminal control program. The function of the portable terminal is stopped.

また、本発明では、携帯端末に係る第4の解決手段として、上記第3の解決手段において、前記記憶動作に不要な機能が、前記携帯端末におけるデータの送受信機能、プログラムの起動機能、及びキー入力機能の内の少なくともいずれか1つの機能を含むことを特徴とする。  Further, in the present invention, as a fourth solving means relating to the portable terminal, in the third solving means, functions unnecessary for the storage operation are a data transmission / reception function, a program activation function, and a key in the portable terminal. It includes at least one of the input functions.

また、本発明では、携帯端末に係る第5の解決手段として、上記第1〜第4のいずれかの解決手段において、前記制御部は、前記端末制御プログラムの書き換え処理を行っている際に、書き換え処理のエラーが発生した場合、該エラーの内容を前記記憶媒体に記憶させることを特徴とする。  Further, in the present invention, as the fifth solving means relating to the mobile terminal, in any one of the first to fourth solving means, the control unit is performing rewriting processing of the terminal control program, When a rewrite processing error occurs, the content of the error is stored in the storage medium.

また、本発明では、携帯端末に係る第6の解決手段として、上記第1〜第5のいずれかの解決手段において、前記第1の記憶部がNAND型フラッシュメモリであり、前記第2の記憶部がRAMであることを特徴とする。   In the present invention, as a sixth solving means relating to the mobile terminal, in any one of the first to fifth solving means, the first storage unit is a NAND flash memory, and the second storage The unit is a RAM.

本発明の携帯端末によれば、プログラム書き換え専用の読み出し部が不要となる。また、本発明の携帯端末によれば、プログラムの書き換え中における不具合の発生を抑制し、さらにプログラムの書き換え処理中に発生したエラーの内容を識別可能となる。  According to the portable terminal of the present invention, a read unit dedicated to program rewriting is not necessary. In addition, according to the portable terminal of the present invention, it is possible to suppress the occurrence of problems during the rewriting of the program and to identify the contents of errors that have occurred during the rewriting process of the program.

以下、図面を参照して本発明の一実施形態について詳細に説明する。図1に、本実施形態における携帯端末Tの構成ブロック図である。なお、本携帯端末Tとして携帯電話機を例示して説明する。  Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a configuration block diagram of the mobile terminal T in the present embodiment. A mobile phone will be described as an example of the mobile terminal T.

図1に示すように、本携帯端末Tは、無線通信部1、操作部2、音声入出力部3、表示部4、外部インタフェース部5、制御部6、フラッシュメモリ7及びRAM(Random Access Memory)8を備えている。   As shown in FIG. 1, the portable terminal T includes a wireless communication unit 1, an operation unit 2, a voice input / output unit 3, a display unit 4, an external interface unit 5, a control unit 6, a flash memory 7, and a RAM (Random Access Memory). ) 8 is provided.

無線通信部1は、制御部6による制御の下、制御部6から入力される送信用ベースバンド信号の誤り訂正符号化、変調、RF周波数帯への周波数変換を行った後、送信信号として図示しない基地局に送信する。また、この無線通信部1は、基地局から受信した信号をIF周波数帯に周波数変換した後、復調、誤り訂正復号し、受信ベースバンド信号として制御部6に出力する。操作部2は、電源キー、各種ファンクションキー、テンキー等の操作キーから構成されており、これら操作キーによる操作入力に基づいた操作信号を制御部6に出力する。   Under the control of the control unit 6, the wireless communication unit 1 performs error correction encoding, modulation, and frequency conversion to the RF frequency band of the transmission baseband signal input from the control unit 6, and then illustrated as a transmission signal Do not send to the base station. Further, the radio communication unit 1 frequency-converts the signal received from the base station to the IF frequency band, and then performs demodulation and error correction decoding, and outputs the received baseband signal to the control unit 6. The operation unit 2 includes operation keys such as a power key, various function keys, and a numeric keypad. The operation unit 2 outputs an operation signal based on an operation input using these operation keys to the control unit 6.

音声入出力部3は、マイク及びスピーカからなり、外部から入力された音声をデジタル信号化し、入力音声信号として制御部6に出力する一方、制御部6から入力される出力音声信号を音声変換して外部に出力する。表示部4は、例えば液晶ディスプレイまたは有機ELディスプレイなどであり、制御部6から入力される画像表示信号に基づいて画像を表示する。   The voice input / output unit 3 is composed of a microphone and a speaker. The voice input from the outside is converted into a digital signal and output to the control unit 6 as an input voice signal, while the output voice signal input from the control unit 6 is converted into a voice. Output to the outside. The display unit 4 is, for example, a liquid crystal display or an organic EL display, and displays an image based on an image display signal input from the control unit 6.

外部インタフェース部5は、外部記憶媒体10を本携帯端末Tの本体に着脱可能に保持するための図示しないスロット、外部記憶媒体10に対するデータの読み出し及び書き込みが可能なように制御部6と電気的に接続する図示しないコネクタ、携帯端末Tとパソコン等の外部機器とを接続するためのインタフェース等から構成されている。外部記憶媒体10の具体的な例として、フラッシュメモリを記憶媒体に使用した各種カード型の記憶デバイス、例えばコンパクト・フラッシュ・カード(登録商標)、スマートメディア(登録商標)、メモリースティック(登録商標)、SDカード(登録商標)などや小型の磁気ディスク装置などが挙げられる。また、本携帯端末Tは、Universal Serial Bus(以下、USBと記す)ケーブルにより、外部インタフェース部5を介して、外部機器としてのパソコンと接続される。   The external interface unit 5 is electrically connected to the control unit 6 so as to be able to read and write data to a slot (not shown) for holding the external storage medium 10 detachably in the main body of the portable terminal T and the external storage medium 10. And a connector (not shown) for connecting to the mobile terminal T and an interface for connecting the mobile terminal T to an external device such as a personal computer. Specific examples of the external storage medium 10 include various card-type storage devices using a flash memory as a storage medium, such as a compact flash card (registered trademark), a smart media (registered trademark), a memory stick (registered trademark), Examples thereof include an SD card (registered trademark) and a small magnetic disk device. The portable terminal T is connected to a personal computer as an external device via the external interface unit 5 by a universal serial bus (hereinafter referred to as USB) cable.

制御部6は、フラッシュメモリ7に記憶されている端末制御プログラムやその他のアプリケーションプログラム、無線通信部1から入力される受信ベースバンド信号、操作部2から入力される操作信号、音声入出力部3から入力される入力音声信号、外部インタフェース部5を介して外部記憶媒体10から入力されるデータ信号に基づいて、本携帯端末Tの全体動作を制御する。この制御部6は、外部記憶媒体10からデータを読み出す読み出し部11と、RAM8上のデータをフラッシュメモリ7に書き込む書き込み部12とを備える。   The control unit 6 includes a terminal control program and other application programs stored in the flash memory 7, a reception baseband signal input from the wireless communication unit 1, an operation signal input from the operation unit 2, and a voice input / output unit 3. The overall operation of the portable terminal T is controlled on the basis of an input audio signal input from the terminal and a data signal input from the external storage medium 10 via the external interface unit 5. The control unit 6 includes a reading unit 11 that reads data from the external storage medium 10 and a writing unit 12 that writes data on the RAM 8 to the flash memory 7.

フラッシュメモリ7は、例えばNAND型フラッシュメモリであり、複数のアドレスを1つのブロックとして取り扱い、ブロック単位でデータの書き込み、消去を行うメモリである。このフラッシュメモリ7は、携帯端末Tの起動に必要なコード(チェックコード)や上記制御部6で使用される端末制御プログラムやその他のアプリケーションプログラム、各種データを記憶している。RAM8は、制御部6が各種処理を実行する場合に、一時的にデータを格納するバッファとして使用されるメモリである。ここで、端末制御プログラムには、キー入力といった入出力機能やメモリの管理など、各種のアプリケーションから共通して利用される基本的な機能を提供し、携帯端末T本体を管理する基本ソフトウェアを含む。   The flash memory 7 is, for example, a NAND flash memory, which handles a plurality of addresses as one block, and writes and erases data in units of blocks. The flash memory 7 stores a code (check code) necessary for starting the mobile terminal T, a terminal control program used by the control unit 6, other application programs, and various data. The RAM 8 is a memory used as a buffer for temporarily storing data when the control unit 6 executes various processes. Here, the terminal control program includes basic software that provides basic functions commonly used by various applications such as input / output functions such as key input and memory management, and manages the mobile terminal T main body. .

次に、上記のように構成された本携帯端末Tにおける、フラッシュメモリ7に記憶されている端末制御プログラムを更新する場合の動作について説明する。なお、本明細書では、データやプログラム等を書き換えることを更新するともいう。   Next, the operation in the case of updating the terminal control program stored in the flash memory 7 in the portable terminal T configured as described above will be described. In this specification, rewriting data, programs, and the like is also referred to as updating.

図2は、外部記憶媒体10の内部フォーマット図である。この図2に示すように、外部記憶媒体10には、ブートファイル、更新用の端末制御プログラム、当該更新用の端末制御プログラムの巡回冗長検査(CRC:Cyclic Redundancy Check)コードが格納されている。フラッシュメモリ7に記憶されている端末制御プログラムを更新する場合は、このような外部記憶媒体10を、外部インタフェース部5に装着する。   FIG. 2 is an internal format diagram of the external storage medium 10. As shown in FIG. 2, the external storage medium 10 stores a boot file, a terminal control program for update, and a cyclic redundancy check (CRC) code of the terminal control program for update. When updating the terminal control program stored in the flash memory 7, such an external storage medium 10 is attached to the external interface unit 5.

図3は、フラッシュメモリ7に記憶されている端末制御プログラムを更新する場合の制御部6の動作フローチャート図である。   FIG. 3 is an operation flowchart of the control unit 6 when the terminal control program stored in the flash memory 7 is updated.

まず、制御部6は、起動後の待ち受け状態にてコマンド入力待ち処理を行う(ステップS1)。そして、制御部6は、外部インタフェース部5を介して接続されたパソコンから操作信号が入力されると、その操作信号が特殊モード遷移コマンドを示す信号が否かを判断する(ステップS2)。ここで、特殊モードとは、例えば、本携帯端末Tのメンテナンスを行う場合に使用される動作モードである。   First, the control unit 6 performs a command input waiting process in a standby state after activation (step S1). Then, when an operation signal is input from the personal computer connected via the external interface unit 5, the control unit 6 determines whether or not the operation signal is a signal indicating a special mode transition command (step S2). Here, the special mode is, for example, an operation mode used when maintenance of the mobile terminal T is performed.

上記ステップS2において、制御部6は、特殊モード遷移コマンドを受信していないと判断した場合(「NO」)、ステップS1の処理に戻り、また、特殊モード遷移コマンドを受信したと判断した場合(「YES」)、特殊モードに遷移する(ステップS3)。そして、制御部6は、コマンド入力待ち処理を行い(ステップS4)、外部インタフェース部5を介して接続されたパソコンから書き換えコマンドを示す信号が入力された否かを判断する(ステップS5)。   In step S2, if the control unit 6 determines that a special mode transition command has not been received ("NO"), the control unit 6 returns to the process of step S1 and determines that a special mode transition command has been received ( “YES”), transition to the special mode (step S3). Then, the control unit 6 performs a command input waiting process (step S4), and determines whether or not a signal indicating a rewrite command is input from a personal computer connected via the external interface unit 5 (step S5).

上記ステップS5において、制御部6は、書き換えコマンドを受信していないと判断した場合(「NO」)、ステップS4の処理に戻り、また、書き換えコマンドを受信したと判断した場合(「YES」)、書き換えモードに遷移する(ステップS6)。制御部6は、書き換えモードに遷移すると、書き換え処理に必要のない機能を停止する(ステップS7)。ここでは、例えば基地局とのデータ送受信機能、他のプログラム(アプリケーションなど)の起動機能、操作部2のキー入力機能などを停止する。このように書き換え処理に必要のない機能を停止することで、書き換え処理中における不具合の発生を抑制することができる。   In step S5, when it is determined that the rewrite command has not been received ("NO"), the control unit 6 returns to the process of step S4 and when it is determined that the rewrite command has been received ("YES"). Transition to the rewrite mode (step S6). When the control unit 6 transitions to the rewrite mode, the control unit 6 stops functions that are not necessary for the rewrite process (step S7). Here, for example, the data transmission / reception function with the base station, the activation function of other programs (applications, etc.), the key input function of the operation unit 2, etc. are stopped. Thus, by stopping the functions that are not necessary for the rewriting process, it is possible to suppress the occurrence of problems during the rewriting process.

そして、制御部6は、データの書き込み処理を開始する(ステップS8)。図4に、このデータの書き込み処理の詳細なフローチャート図を示す。この図4に示すように、制御部6は、まず、フラッシュメモリ7に格納されているチェックコードを消去する(ステップS100)。このように、携帯端末Tの起動に必要なチェックコードを予め消去しておくことにより、書き換えが異常終了した場合に、誤って再起動しないようにする。   Then, the control unit 6 starts a data writing process (step S8). FIG. 4 shows a detailed flowchart of the data writing process. As shown in FIG. 4, the control unit 6 first erases the check code stored in the flash memory 7 (step S100). As described above, the check code necessary for the activation of the portable terminal T is erased in advance so that the reactivation is not erroneously restarted when the rewriting is terminated abnormally.

続いて、制御部6の読み出し部11は、RAM8内におけるデータを一時的に保存するバッファ領域を初期化し(ステップS101)、外部記憶媒体10から、フラッシュメモリ7の1ブロック分の更新用の端末制御プログラムのデータを読み出し、上記バッファ領域に保存する(ステップS102)。そして、制御部6の書き込み部12は、フラッシュメモリ7に対し、バッファ領域に保存した1ブロック分のデータの書き込み処理を行う(ステップS103)。なお、読み出し部11は、外部記憶媒体10からデータを読み出す場合、フラッシュメモリ7に格納されている外部記憶媒体10からデータを読み出すための汎用のプログラムを用いてデータを読み出す。この汎用のプログラムは、更新用の端末制御プログラムのデータ以外にも、外部記憶媒体10に記憶された画像データ等を読み出すことができる。   Subsequently, the reading unit 11 of the control unit 6 initializes a buffer area for temporarily storing data in the RAM 8 (step S101), and updates one block of the flash memory 7 from the external storage medium 10. Data of the control program is read and stored in the buffer area (step S102). Then, the writing unit 12 of the control unit 6 performs a process of writing data for one block stored in the buffer area to the flash memory 7 (step S103). When reading data from the external storage medium 10, the reading unit 11 reads data using a general-purpose program for reading data from the external storage medium 10 stored in the flash memory 7. This general-purpose program can read image data and the like stored in the external storage medium 10 in addition to the data of the terminal control program for update.

図5に、1ブロック分のデータのフラッシュメモリ7への書き込み処理の詳細なフローチャート図を示す。図5に示すように、まず制御部6の書き込み部12は、RAM8内のバッファ領域に保存した1ブロック分のデータのサイズをチェックし、当該データのサイズがフラッシュメモリ7の1ブロック分のサイズ以上の大きさか否かを判断する(ステップS200)。このステップS200において、当該データのサイズがフラッシュメモリ7の1ブロック分のサイズ以上の大きさであった場合(「YES」)、1ブロック分のサイズのデータをフラッシュメモリ7内の所定のブロックに書き込み(ステップS201)、一方、当該データのサイズがフラッシュメモリ7の1ブロック分のサイズ未満の大きさであった場合(「NO」)、その端数分のデータをフラッシュメモリ7内の所定のブロックに書き込む(ステップS202)。なお、NAND型フラッシュメモリはデータの上書きができないため、更新用のデータを書き込む際には、その書き込みを行うブロックに予め記憶されているデータを消去してから書き込みを行う。   FIG. 5 shows a detailed flowchart of a process of writing data for one block to the flash memory 7. As shown in FIG. 5, the writing unit 12 of the control unit 6 first checks the size of one block of data stored in the buffer area in the RAM 8, and the size of the data is the size of one block of the flash memory 7. It is determined whether or not the size is the above (step S200). In this step S200, when the size of the data is larger than the size of one block of the flash memory 7 (“YES”), the data of the size of one block is stored in a predetermined block in the flash memory 7. Writing (step S201), on the other hand, if the size of the data is less than the size of one block of the flash memory 7 ("NO"), the fractional data is stored in a predetermined block in the flash memory 7. (Step S202). Note that, since data cannot be overwritten in the NAND flash memory, when data for update is written, the data stored in advance in the block to be written is erased before writing.

そして、制御部6の書き込み部12は、1ブロック分の更新用端末制御プログラムのデータの書き込み処理が完了したら、バッファ領域に保存されている書き込み元のデータと、フラッシュメモリ7に書き込まれたデータとのベリファイチェックを行い(ステップS203)、ベリファイチェック終了後、図4のステップS104に移行する(ステップS204)。   Then, the writing unit 12 of the control unit 6 completes the writing process of the data of the update terminal control program for one block, and the writing source data stored in the buffer area and the data written in the flash memory 7 (Step S203). After the verification check is completed, the process proceeds to step S104 in FIG. 4 (step S204).

図4に戻って説明すると、制御部6は、更新用の端末制御プログラムの全データの書き込みが完了したか否かを判断し(ステップS104)、全データの書き込みが完了していない場合(「NO」)、ステップS101の処理に戻り、全データの書き込みが完了した場合(「YES」)、更新用の端末制御プログラムが正しく書き込まれているかCRCチェックを行う(ステップS105)。具体的には、制御部6は、フラッシュメモリ7に書き込まれた更新用の端末制御プログラムデータのCRC値を算出し、当該算出したCRC値と外部記憶媒体10に格納されているCRCコードとを比較することにより、更新用の端末制御プログラムが正しく書き込まれているかをチェックする。   Returning to FIG. 4, the control unit 6 determines whether or not writing of all data of the terminal control program for update has been completed (step S <b> 104), and when writing of all data has not been completed (“ NO ”), returning to the process of step S101, and when writing of all the data is completed (“ YES ”), a CRC check is performed to check whether the terminal control program for updating is correctly written (step S105). Specifically, the control unit 6 calculates the CRC value of the terminal control program data for update written in the flash memory 7, and calculates the calculated CRC value and the CRC code stored in the external storage medium 10. By comparing, it is checked whether the terminal control program for update is written correctly.

そして、制御部6は、算出したCRC値が正しいか否か(つまり外部記憶媒体10に格納されているCRCコードと一致するか否か)を判断し(ステップS106)、CRC値が正しかった場合(「YES」)、フラッシュメモリ7にチェックコードを書き込み(ステップS107)、更新用の端末制御プログラムのデータの書き込み処理を正常終了して図3のステップS9に移行する(ステップS108)。一方、上記ステップS106において、CRC値が正しくなかった場合(「NO」)、更新用端末制御プログラムのデータの書き込み処理を異常終了して図3のステップS9に移行する(ステップS109)。   Then, the control unit 6 determines whether or not the calculated CRC value is correct (that is, whether or not it matches the CRC code stored in the external storage medium 10) (step S106), and when the CRC value is correct ("YES"), a check code is written in the flash memory 7 (step S107), the update terminal control program data writing process ends normally, and the process proceeds to step S9 in FIG. 3 (step S108). On the other hand, if the CRC value is not correct in step S106 ("NO"), the data writing process of the update terminal control program is terminated abnormally and the process proceeds to step S9 in FIG. 3 (step S109).

図3に戻って説明すると、制御部6は、更新用の端末制御プログラムのデータの書き込み処理が正常終了か否かを判断し(ステップS9)、当該書き込み処理が正常終了したと判断した場合(「YES」)、本携帯端末Tをリブート(再起動)する(ステップS10)。一方、上記ステップS9において、制御部6は、当該書き込み処理が異常終了したと判断した場合(「NO」)、エラー処理を行う(ステップS11)。   Returning to FIG. 3, the control unit 6 determines whether or not the data writing process of the terminal control program for update is normally completed (step S <b> 9), and when it is determined that the writing process is normally completed ( “YES”), the portable terminal T is rebooted (restarted) (step S10). On the other hand, in step S9, when it is determined that the writing process has ended abnormally ("NO"), the control unit 6 performs an error process (step S11).

ここで、制御部6は、エラー処理として、エラー内容を外部記憶媒体10に記録する。具体的には、制御部6は、外部記憶媒体10に、エラー内容を記録するためのエラーファイルを作成する。このエラーファイルには、例えば(1)外部記憶媒体10に更新用の端末制御プログラムが存在しない、(2)ブートファイルなど更新に必要なファイルが外部記憶媒体10に存在しない、または存在していても開けない、(3)更新に必要なファイルを開いた後で、そのファイル内のデータを読み出せない、(4)データを書き込む前に行われる、フラッシメモリ7内に予め記憶されていたデータの消去に失敗した、またはフラッシュメモリ7への書き込み処理そのものに失敗した、(5)フラッシュメモリ7への書き込み処理完了後のCRCチェックで異常を検出した、など、発生したこれらのエラー内容を示すエラーコードが記録されている。なお、外部記憶媒体10にもともとエラーログファイルが存在する場合、更新処理を開始する前に、このエラーログファイルを削除して新たに上記エラーファイルを作成しても良い。   Here, the control unit 6 records the error content in the external storage medium 10 as error processing. Specifically, the control unit 6 creates an error file for recording error contents in the external storage medium 10. In this error file, for example, (1) the terminal control program for update does not exist in the external storage medium 10, and (2) a file required for update such as a boot file does not exist or exists in the external storage medium 10. (3) After opening a file necessary for updating, data in the file cannot be read. (4) Data stored in the flash memory 7 in advance before data is written. The details of these errors that occurred, such as failure to erase data, failure to write to the flash memory 7 itself, (5) detection of an abnormality in the CRC check after completion of the write processing to the flash memory 7, etc. An error code is recorded. If the error log file originally exists in the external storage medium 10, the error log file may be deleted and a new error file may be created before starting the update process.

そして、制御部6は、上記のように外部記憶媒体10にエラー内容を記録した後、本携帯端末Tに設けられている赤色LED(図示せず)を点滅させたり、表示部4にエラーメッセージを表示させたり、または音声入出力部3のスピーカから警告音を出力するなどして、ユーザに端末制御プログラムの更新に失敗したことを知らせる。   Then, after recording the error content in the external storage medium 10 as described above, the control unit 6 blinks a red LED (not shown) provided in the portable terminal T or displays an error message on the display unit 4. Is displayed, or a warning sound is output from the speaker of the voice input / output unit 3 to notify the user that the update of the terminal control program has failed.

以上のように、本実施形態の携帯端末Tによれば、外部記憶媒体10に記憶されている端末制御プログラムを読み出すために汎用のプログラムを使用するので、従来のように、プログラムの書き換え用の専用のプログラムが不要となり、また、端末制御プログラムの書き換え処理中において、端末制御プログラムの書き換え処理に不要な機能を停止することにより、端末制御プログラムの書き換え処理中における不具合の発生を抑制し、さらに、端末制御プログラムの書き換え処理中に発生したエラーの内容を外部記憶媒体10に記録することにより、どのようなエラーが発生したのかを識別することが可能となる。
また、本実施形態の携帯端末Tによれば、特殊モードに遷移した後であって、且つ、書き換えコマンドを受信した後に書き換えモードに遷移してデータの書き込み処理が行われるため、誤ってデータの書き換えモードに遷移される危険性を軽減することができ、且つ、誤書き込みの危険性も軽減することができる。
As described above, according to the mobile terminal T of the present embodiment, since a general-purpose program is used to read the terminal control program stored in the external storage medium 10, it is possible to rewrite the program as in the past. A dedicated program is not required, and during the terminal control program rewriting process, functions that are not necessary for the terminal control program rewriting process are stopped, thereby suppressing the occurrence of problems during the terminal control program rewriting process. By recording the content of the error that occurred during the rewriting process of the terminal control program in the external storage medium 10, it is possible to identify what kind of error has occurred.
In addition, according to the mobile terminal T of the present embodiment, after the transition to the special mode, and after the rewrite command is received, the transition to the rewrite mode is performed and the data writing process is performed. The risk of transition to the rewrite mode can be reduced, and the risk of erroneous writing can be reduced.

また、上記実施形態では、更新するプログラムとして端末制御プログラムを例示して説明したが、これに限定されず、他のアプリケーションやデータなどの更新にも本発明を適用することができる。また、上記実施形態では、携帯端末として携帯電話機を例示して説明したが、これに限定されず、他の携帯端末であっても本発明を適用することができる。
また、本携帯端末Tに外部インタフェース部5を介して接続される外部機器はパソコンに限定されず、サーバ等任意の装置を用いることができる。
Moreover, although the terminal control program was illustrated and demonstrated in the said embodiment as a program to update, it is not limited to this, This invention is applicable also to update of another application, data, etc. In the above-described embodiment, a mobile phone is exemplified as the mobile terminal. However, the present invention is not limited to this, and the present invention can be applied to other mobile terminals.
The external device connected to the portable terminal T via the external interface unit 5 is not limited to a personal computer, and any device such as a server can be used.

本発明の一実施形態における携帯端末Tの構成概略図である。1 is a schematic configuration diagram of a mobile terminal T in an embodiment of the present invention. 本発明の一実施形態における外部記憶媒体10の内部フォーマット図である。It is an internal format figure of the external storage medium 10 in one Embodiment of this invention. 本発明の一実施形態における携帯端末Tの第1の動作フローチャート図である。It is a 1st operation | movement flowchart figure of the portable terminal T in one Embodiment of this invention. 本発明の一実施形態における携帯端末Tの第2の動作フローチャート図である。It is a 2nd operation | movement flowchart figure of the portable terminal T in one Embodiment of this invention. 本発明の一実施形態における携帯端末Tの第3の動作フローチャート図である。It is a 3rd operation | movement flowchart figure of the portable terminal T in one Embodiment of this invention.

符号の説明Explanation of symbols

T…携帯端末、1…無線通信部、2…操作部、3…音声入出力部、4…表示部、5…外部インタフェース部、6…制御部、7…フラッシュメモリ(第1の記憶部)、8…RAM、10…外部記憶媒体(記憶媒体)、11…読み出し部、12…書き込み部  T: mobile terminal, 1 ... wireless communication unit, 2 ... operation unit, 3 ... voice input / output unit, 4 ... display unit, 5 ... external interface unit, 6 ... control unit, 7 ... flash memory (first storage unit) , 8 ... RAM, 10 ... external storage medium (storage medium), 11 ... reading unit, 12 ... writing unit

Claims (6)

携帯端末の機能を制御する端末制御プログラムが記憶されている第1の記憶部と、
前記携帯端末に着脱自在であり、更新予定の端末制御プログラムが記憶される記憶媒体と、
第2の記憶部と、
前記記憶媒体に記憶された前記更新予定の端末制御プログラムを読み出して前記第2の記憶部に記憶させると共に、前記記憶媒体に記憶されている前記端末制御プログラム以外のデータも読み出すことが可能な読み出し部と、
前記第2の記憶部に記憶された前記端末制御プログラムを、前記第1の記憶部に書き込む書き込み部と、
前記読み出し部及び書き込み部の動作を制御する制御部とを備え、
前記制御部は、
第1の情報を受信した場合に、前記端末制御プログラムの書き換えを実行可能とするモードに携帯端末を遷移させ、
前記携帯端末が前記モードにある状態において、第2の情報を受信すると、前記記憶媒体に記憶された前記更新予定の端末制御プログラムを読み出して前記第2の記憶部に記憶させ、次いで前記第1の記憶部に記憶された端末制御プログラムを前記第2の記憶部に記憶された更新予定の端末制御プログラムに書き換えるように制御する、
ことを特徴とする携帯端末。
A first storage unit storing a terminal control program for controlling the function of the mobile terminal;
A storage medium that is detachable from the portable terminal and stores a terminal control program to be updated;
A second storage unit;
Reading that allows the terminal control program to be updated stored in the storage medium to be read and stored in the second storage unit, and that data other than the terminal control program stored in the storage medium can also be read And
A writing unit that writes the terminal control program stored in the second storage unit to the first storage unit;
A control unit for controlling operations of the reading unit and the writing unit,
The controller is
When the first information is received, the mobile terminal is changed to a mode in which the terminal control program can be rewritten,
When the second information is received while the portable terminal is in the mode, the terminal control program to be updated stored in the storage medium is read out and stored in the second storage unit, and then the first information is stored in the second storage unit. Control to rewrite the terminal control program stored in the storage unit of the terminal control program to be updated stored in the second storage unit,
A portable terminal characterized by that.
前記第1の情報及び第2の情報の少なくとも一方は、前記携帯端末に接続された外部機器からの入力であることを特徴とする請求項1記載の携帯端末。   The portable terminal according to claim 1, wherein at least one of the first information and the second information is an input from an external device connected to the portable terminal. 前記制御部は、
前記端末制御プログラムを書き換える制御を行う前に、該書き換える制御に不要な前記携帯端末の機能を停止させる、
ことを特徴とする請求項1又は2に記載の携帯端末。
The controller is
Before performing control to rewrite the terminal control program, stop the function of the mobile terminal unnecessary for the rewrite control,
The mobile terminal according to claim 1, wherein the mobile terminal is a mobile terminal.
前記記憶動作に不要な機能が、
前記携帯端末におけるデータの送受信機能、プログラムの起動機能、及びキー入力機能の内の少なくともいずれか1つの機能を含む、
ことを特徴とする請求項3記載の携帯端末。
Functions unnecessary for the memory operation
Including at least one of a data transmission / reception function, a program activation function, and a key input function in the portable terminal;
The mobile terminal according to claim 3.
前記制御部は、
前記端末制御プログラムの書き換え処理を行っている際に、書き換え処理のエラーが発生した場合、該エラーの内容を前記記憶媒体に記憶させる、
ことを特徴とする請求項1〜4のいずれか一項に記載の携帯端末。
The controller is
When rewriting processing error occurs during rewriting processing of the terminal control program, the content of the error is stored in the storage medium.
The portable terminal as described in any one of Claims 1-4 characterized by the above-mentioned.
前記第1の記憶部がNAND型フラッシュメモリであり、
前記第2の記憶部がRAMである、
ことを特徴とする請求項1〜5のいずれか一項に記載の携帯端末。
The first storage unit is a NAND flash memory;
The second storage unit is a RAM;
The mobile terminal according to claim 1, wherein the mobile terminal is a mobile terminal.
JP2006272905A 2006-10-04 2006-10-04 Portable terminal Pending JP2008090723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006272905A JP2008090723A (en) 2006-10-04 2006-10-04 Portable terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006272905A JP2008090723A (en) 2006-10-04 2006-10-04 Portable terminal

Publications (1)

Publication Number Publication Date
JP2008090723A true JP2008090723A (en) 2008-04-17

Family

ID=39374778

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006272905A Pending JP2008090723A (en) 2006-10-04 2006-10-04 Portable terminal

Country Status (1)

Country Link
JP (1) JP2008090723A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012084118A (en) * 2010-09-16 2012-04-26 Ricoh Co Ltd Communication apparatus, update method and program
JP2014106758A (en) * 2012-11-28 2014-06-09 Kyocera Document Solutions Inc Data write circuit and image forming apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002099441A (en) * 2000-09-26 2002-04-05 Mitsubishi Electric Corp Communication terminal apparatus and its operating method
JP2005234743A (en) * 2004-02-18 2005-09-02 Nec Saitama Ltd Program rewriting method and system
JP2006069125A (en) * 2004-09-03 2006-03-16 Matsushita Electric Ind Co Ltd Image forming apparatus, and portable storage medium with stored firmware therefor
JP2006133889A (en) * 2004-11-02 2006-05-25 Sharp Corp Method for updating program, program and device
JP2006178537A (en) * 2004-12-20 2006-07-06 Sony Corp Memory card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002099441A (en) * 2000-09-26 2002-04-05 Mitsubishi Electric Corp Communication terminal apparatus and its operating method
JP2005234743A (en) * 2004-02-18 2005-09-02 Nec Saitama Ltd Program rewriting method and system
JP2006069125A (en) * 2004-09-03 2006-03-16 Matsushita Electric Ind Co Ltd Image forming apparatus, and portable storage medium with stored firmware therefor
JP2006133889A (en) * 2004-11-02 2006-05-25 Sharp Corp Method for updating program, program and device
JP2006178537A (en) * 2004-12-20 2006-07-06 Sony Corp Memory card

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012084118A (en) * 2010-09-16 2012-04-26 Ricoh Co Ltd Communication apparatus, update method and program
US9442711B2 (en) 2010-09-16 2016-09-13 Ricoh Company, Ltd. Communication device, update method, and computer program product for updating a program based on received metainformation
JP2014106758A (en) * 2012-11-28 2014-06-09 Kyocera Document Solutions Inc Data write circuit and image forming apparatus

Similar Documents

Publication Publication Date Title
JP4817836B2 (en) Card and host equipment
CN107179909A (en) Method for upgrading software, device and computer-readable recording medium
JPWO2005076203A1 (en) Memory card, data processing device, memory card control method and setting method
JPH113224A (en) Program updating method for portable information terminal equipment
US20050164694A1 (en) Error data recovery system and method in a mobile communication terminal
CN102404366A (en) Method for achieving long-distance wireless file-upgrading system
JP2010257367A (en) Program update system, electronic device with program update function
US11144299B2 (en) Firmware updating method
KR100625811B1 (en) Method and apparatus for correcting code data error
US20140214434A1 (en) Method for processing sound data and circuit therefor
JP2008090723A (en) Portable terminal
JP2008225672A (en) Semiconductor memory device
CN109871334B (en) Cable modem and method of operation
US20070022222A1 (en) Memory device and associated method
JPWO2005041050A1 (en) Recording medium, data processing apparatus, and data processing method
CN113434086B (en) Data storage method, device, nonvolatile memory device and memory
JP2010231699A (en) Data processing device, data processing method and data processing program
JP2001154926A (en) Storage method using flash memory and recording medium recording storage control program
JP2012212415A (en) Wireless base station device
JP2010079382A (en) Software update method
KR100743253B1 (en) Method and apparatus for correcting code data error
KR100743252B1 (en) Method and apparatus for correcting code data error
JP2005316667A (en) Method for updating firmware
JPH10177527A (en) Method for writing and reading-out data in and from flash memory, and storage device using the memory
JP5762139B2 (en) Information processing terminal and management server

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090928

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111213

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120209

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120228