JP4072504B2 - Program rewriting method and system - Google Patents

Program rewriting method and system Download PDF

Info

Publication number
JP4072504B2
JP4072504B2 JP2004041020A JP2004041020A JP4072504B2 JP 4072504 B2 JP4072504 B2 JP 4072504B2 JP 2004041020 A JP2004041020 A JP 2004041020A JP 2004041020 A JP2004041020 A JP 2004041020A JP 4072504 B2 JP4072504 B2 JP 4072504B2
Authority
JP
Japan
Prior art keywords
program
rewriting
rewrite
control
program storage
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
JP2004041020A
Other languages
Japanese (ja)
Other versions
JP2005234743A (en
Inventor
史伯 本合
Original Assignee
埼玉日本電気株式会社
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 埼玉日本電気株式会社 filed Critical 埼玉日本電気株式会社
Priority to JP2004041020A priority Critical patent/JP4072504B2/en
Publication of JP2005234743A publication Critical patent/JP2005234743A/en
Application granted granted Critical
Publication of JP4072504B2 publication Critical patent/JP4072504B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、電子機器及びプログラム書き換えシステムに関する。 The present invention relates to an electronic device and a program rewrite system.

従来、携帯電話機に記憶保持(格納)され、該携帯電話機の動作制御に用いられるプログラムを書き換える方法としては、外部機器に記憶保持されたプログラムを携帯電話機のシリアルインタフェースを介して該携帯電話機内に入力し書き込む方法(例えば、特許文献1参照)や、メモリカードに記憶保持されたプログラムをメモリカードとの接続端子を介して入力し書き込む方法(例えば、特許文献2参照)がある。
特開平5−327582号公報(請求項1、第2−4頁) 特開2002−44738号公報(請求項1)
Conventionally, as a method of rewriting a program stored and stored in a mobile phone and used for operation control of the mobile phone, a program stored and held in an external device is stored in the mobile phone via a serial interface of the mobile phone. There are a method of inputting and writing (for example, see Patent Document 1) and a method of inputting and writing a program stored and held in a memory card via a connection terminal with the memory card (for example, see Patent Document 2).
JP-A-5-327582 (Claim 1, pages 2-4) JP 2002-44738 A (Claim 1)

しかしながら、特許文献1に記載されているようなシリアルインタフェースを介したプログラム転送は、処理速度が遅いため、プログラムの書き換えに時間がかかってしまうという問題がある。   However, the program transfer via the serial interface as described in Patent Document 1 has a problem that it takes time to rewrite the program because the processing speed is slow.

他方、特許文献2の技術のように、メモリカードからのプログラムを書き込む場合には、書き換え可能なプログラムの容量がメモリカードの記憶容量に制限されてしまい、大容量のプログラムを書き込むことができないという問題がある。   On the other hand, when writing a program from a memory card as in the technique of Patent Document 2, the capacity of a rewritable program is limited to the storage capacity of the memory card, and a large-capacity program cannot be written. There's a problem.

本発明は、上記のような問題点を解決するためになされたもので、携帯電話機或いはその他の電子機器のプログラム書き換えに要する時間を短縮し、しかも、従来よりも大容量のプログラムの書き換えを可能とする電子機器及びプログラム書き換えシステムを提供することを目的とする。 The present invention has been made in order to solve the above-described problems, shortens the time required for rewriting a program of a mobile phone or other electronic device, and can rewrite a program having a larger capacity than before. and to provide a that electronic equipment and program rewriting system to the.

本発明の電子機器は、シリアル通信用のシリアル通信端子と、外部メモリが接続される外部メモリ接続端子と、プログラムを格納したプログラム格納用メモリと、を備える電子機器において、前記プログラム格納用メモリに格納された前記プログラムを書き換える処理である書き換え処理を実行する書き換え制御手段を備え、前記書き換え処理には、前記外部メモリの記憶容量に相当するデータ量を有し前記外部メモリに格納された第1の書き換え用プログラムを、前記外部メモリから前記外部メモリ接続端子を介して当該電子機器に入力し、該入力した第1の書き換え用プログラムにより前記プログラム格納用メモリに格納された前記プログラムの一部を書き換える第1の制御と、第2の書き換え用プログラムを格納した第2の書き換え用プログラム格納装置から前記シリアル通信端子を介して当該電子機器に入力される第2の書き換え用プログラムにより、前記プログラム格納用メモリに格納された前記プログラムの他の一部を書き換える第2の制御と、前記第2の書き換え用プログラム格納装置から通知された種類の第1の書き換え用プログラムが前記外部メモリに格納されているか否かを判定し、格納されていればその旨を前記第2の書き換え用プログラム格納装置に通知する第3の制御と、前記1の制御が終了した旨を前記第2の書き換え用プログラム格納装置に対して通知する第4の制御と、が含まれ、前記書き換え制御手段は、前記プログラム格納用メモリに格納する前記第1の書き換え用プログラムの種類が前記第2の書き換え用プログラム格納装置から当該電子機器に通知されると、前記第3の制御を実行し、前記第3の制御を実行した後で、前記第1の書き換え用プログラムを前記プログラム格納用メモリの格納領域のうちどの領域に格納すればよいかが前記第2の書き換え用プログラム格納装置から当該電子機器に対して通知されると、前記第1の制御を実行し、該第1の制御では、前記第1の書き換え用プログラムを前記第2の書き換え用プログラム格納装置から通知された領域に格納することにより、前記プログラム格納用メモリに格納された前記プログラムの一部を書き換え、前記第1の制御が終了すると、前記第4の制御を実行し、前記第4の制御を実行した後で、前記第2の書き換え用プログラムを前記プログラム格納用メモリの格納領域のうちどの領域に格納すればよいかが前記第2の書き換え用プログラムから当該電子機器に対して通知され、前記第2の書き換え用プログラムが前記シリアル通信端子を介して当該電子機器に入力されると、前記第2の制御を実行し、該第2の制御では、前記第2の書き換え用プログラムを前記第2の書き換え用プログラム格納装置から通知された領域に格納することにより、前記プログラム格納用メモリに格納された前記プログラムの他の一部を書き換えることによって、前記第1の書き換え用プログラムを前記プログラム格納用メモリに格納するのに引き続いて前記第2の書き換え用プログラムを前記プログラム格納用メモリに格納することを特徴としている。 Electronic device of the present invention includes a serial communication terminal for serial communications, and the external memory connecting terminal external memory is connected, and a memory for storing programs that stores a program, an electronic apparatus comprising a memory for storing the program Rewriting control means for executing a rewriting process that is a process for rewriting the stored program is provided, and the rewriting process has a data amount corresponding to the storage capacity of the external memory and is stored in the external memory. The rewrite program is input to the electronic device from the external memory via the external memory connection terminal, and a part of the program stored in the program storage memory by the input first rewrite program is First control for rewriting and second rewriting for storing a second rewriting program A second control for rewriting another part of the program stored in the program storage memory by a second rewriting program input to the electronic device from the program storage device via the serial communication terminal; It is determined whether or not the first rewriting program of the type notified from the second rewriting program storage device is stored in the external memory, and if it is stored, that fact is indicated in the second rewriting program. A third control for notifying the program storage device, and a fourth control for notifying the second rewrite program storage device that the first control has been completed. The type of the first rewrite program stored in the program storage memory is changed from the second rewrite program storage device to the electronic The third control is executed, and after the third control is executed, the first rewrite program is stored in any storage area of the program storage memory. When the electronic device is notified from the second rewriting program storage device, the first control is executed, and in the first control, the first rewriting program is transferred to the first rewriting program. When the first control is completed, the fourth control is performed by rewriting a part of the program stored in the program storage memory. After executing the fourth control, the second rewriting program is stored in the storage area of the program storage memory. When the electronic device is notified from the rewriting program and the second rewriting program is input to the electronic device via the serial communication terminal, the second control is executed, and the second In the control, the second rewriting program is stored in the area notified from the second rewriting program storage device, thereby rewriting another part of the program stored in the program storing memory. Thus, the second rewriting program is stored in the program storage memory subsequent to storing the first rewriting program in the program storage memory .

本発明の電子機器においては、前記書き換え制御手段は、前記第2の書き換え用プログラム格納装置前記シリアル通信端子に接続された状態において前記第2の書き換え用プログラム格納装置から前記電子機器へと前記第2の書き換え用プログラムが転送されるときに前記書き換え処理を行うことが好ましい。 In the electronic apparatus of the present invention, the rewrite control means, from said second rewriting program storage device before Symbol state in which the second rewriting program storage device is connected to the serial communication terminal to the electronic device Preferably, the rewriting process is performed when the second rewriting program is transferred .

本発明の電子機器は、例えば、携帯電話機或いはその他の携帯情報端末装置であることを好ましい例とする。   The electronic device of the present invention is preferably a mobile phone or other portable information terminal device, for example.

本発明のプログラム書き換えシステムは、シリアル通信用のシリアル通信端子と、外部メモリ接続端子と、プログラムを格納したプログラム格納用メモリと、を備える電子機器と、前記外部メモリ接続端子に接続される外部メモリと、前記シリアル通信端子に接続される前記第2の書き換え用プログラム格納装置と、を備え、前記外部メモリには、該外部メモリの記憶容量に相当するデータ量を有する第1の書き換え用プログラムが格納され、前記第2の書き換え用プログラム格納装置には、第2の書き換え用プログラムが格納され、前記電子機器は、前記プログラム格納用メモリに格納された前記プログラムを書き換える処理である書き換え処理を実行する書き換え制御手段を備え、前記書き換え処理には、前記第1の書き換え用プログラムを前記外部メモリから前記外部メモリ接続端子を介して前記電子機器に入力し、該入力した第1の書き換え用プログラムにより前記プログラム格納用メモリに格納された前記プログラムの一部を書き換える第1の制御と、前記第2の書き換え用プログラム格納装置から前記シリアル通信端子を介して前記電子機器に入力される第2の書き換え用プログラムにより、前記プログラム格納用メモリに格納された前記プログラムの他の一部を書き換える第2の制御と、前記第2の書き換え用プログラム格納装置から通知された種類の第1の書き換え用プログラムが前記外部メモリに格納されているか否かを判定し、格納されていればその旨を前記第2の書き換え用プログラム格納装置に通知する第3の制御と、前記1の制御が終了した旨を前記第2の書き換え用プログラム格納装置に対して通知する第4の制御と、が含まれ、前記書き換え制御手段は、前記プログラム格納用メモリに格納する前記第1の書き換え用プログラムの種類が前記第2の書き換え用プログラム格納装置から前記電子機器に通知されると、前記第3の制御を実行し、前記第2の書き換え用プログラム格納装置は、前記第3の制御による前記通知を前記電子機器から受けると、前記第1の書き換え用プログラムを前記プログラム格納用メモリの格納領域のうちどの領域に格納すればよいかを前記電子機器に対して通知し、前記書き換え制御手段は、前記第1の書き換え用プログラムを前記プログラム格納用メモリの格納領域のうちどの領域に格納すればよいかが前記第2の書き換え用プログラム格納装置から前記電子機器に通知されると、前記第1の制御を実行し、該第1の制御では、前記第1の書き換え用プログラムを前記第2の書き換え用プログラム格納装置から通知された領域に格納することにより、前記プログラム格納用メモリに格納された前記プログラムの前記一部を書き換え、前記第1の制御が終了すると、前記第4の制御を実行し、前記第2の書き換え用プログラム格納装置は、前記第4の制御による前記通知を前記電子機器から受けると、前記第2の書き換え用プログラムを前記プログラム格納用メモリの格納領域のうちどの領域に格納すればよいかを前記電子機器に対して通知し、前記第2の書き換え用プログラムを前記シリアル通信端子を介して前記電子機器に入力し、前記書き換え制御手段は、前記第2の書き換え用プログラムが前記シリアル通信端子を介して前記電子機器に入力されると、前記第2の制御を実行し、該第2の制御では、前記第2の書き換え用プログラムを前記第2の書き換え用プログラム格納装置から通知された領域に格納することにより、前記プログラム格納用メモリに格納された前記プログラムの前記他の一部を書き換えるように構成したことによって、前記第1の書き換え用プログラムを前記プログラム格納用メモリに格納するのに引き続いて前記第2の書き換え用プログラムを前記プログラム格納用メモリに格納することを特徴としている。 The program rewriting system of the present invention includes an electronic device including a serial communication terminal for serial communication, an external memory connection terminal, a program storage memory storing a program, and an external memory connected to the external memory connection terminal And the second rewrite program storage device connected to the serial communication terminal, and the external memory has a first rewrite program having a data amount corresponding to the storage capacity of the external memory. The second rewriting program storage device stores a second rewriting program, and the electronic device executes a rewriting process that is a process of rewriting the program stored in the program storage memory. Rewriting control means for performing the rewriting process in the first rewriting program. Is input from the external memory to the electronic device via the external memory connection terminal, and the first control for rewriting a part of the program stored in the program storage memory by the input first rewriting program And another part of the program stored in the program storage memory by the second rewrite program input to the electronic device from the second rewrite program storage device via the serial communication terminal And the second control for rewriting and determining whether the first rewriting program of the type notified from the second rewriting program storage device is stored in the external memory, and if it is stored, The third control for notifying the second rewrite program storage device of the fact, and the fact that the first control is finished And a fourth control to be notified to the rewrite program storage device, wherein the rewrite control means is configured such that the type of the first rewrite program stored in the program storage memory is the second rewrite. When notified from the electronic program storage device to the electronic device, the third control is executed, and when the second rewrite program storage device receives the notification by the third control from the electronic device, The electronic device is notified of in which storage area of the program storage memory the first rewriting program should be stored, and the rewriting control means stores the first rewriting program. Which area should be stored in the storage area of the program storage memory from the second rewrite program storage device to the electronic When notified to the device, the first control is executed, and in the first control, the first rewriting program is stored in the area notified from the second rewriting program storage device. The part of the program stored in the program storage memory is rewritten, and when the first control is completed, the fourth control is executed, and the second rewrite program storage device is When the notification by the control of 4 is received from the electronic device, the electronic device is notified of in which storage area of the memory for storing the program the second rewriting program should be stored, The second rewriting program is input to the electronic device via the serial communication terminal, and the rewriting control means is configured to execute the second rewriting program before the second rewriting program. When input to the electronic device via a serial communication terminal, the second control is executed, and in the second control, the second rewriting program is notified from the second rewriting program storage device. Storing the first rewriting program in the program storing memory by rewriting the other part of the program stored in the program storing memory by storing in the program storing memory Subsequently, the second rewriting program is stored in the program storage memory .

本発明のプログラム書き換えシステムにおいては、前記書き換え制御手段は、前記第2の書き換え用プログラム格納装置が前記シリアル通信端子に接続された状態において前記第2の書き換え用プログラム格納装置から前記電子機器へと前記第2の書き換え用プログラムが転送されるときに前記書き換え処理を行うことが好ましい。 In the program rewriting system of the present invention, the rewrite control means transfers the second rewrite program storage device from the second rewrite program storage device to the electronic device in a state where the second rewrite program storage device is connected to the serial communication terminal. Preferably, the rewriting process is performed when the second rewriting program is transferred .

本発明によれば、外部メモリ接続端子を介して第1の書き換え用プログラムを電子機器に入力しプログラム格納用メモリに格納する一方で、シリアル通信端子を介して第2の書き換え用プログラムを電子機器に入力しプログラム格納用メモリに格納するので、プログラムの書き換えに要する時間がシリアル通信速度のみに依存するということがなくなる。このため、書き換えるべきプログラムの全体をシリアル通信端子を介して書き込む場合(特許文献1)と比べて、書き込みに要する時間を短縮することができる。しかも、外部メモリからのみプログラムを入力して書き込む場合(特許文献2)と比べて、大容量のプログラムを書き込むことが可能となる。 According to the present invention, the first rewrite program is input to the electronic device via the external memory connection terminal and stored in the program storage memory, while the second rewrite program is stored in the electronic device via the serial communication terminal. Fill in than that stores in a memory for program storage, the time required for rewriting the program that is eliminated that depends only on the serial communication speed. For this reason, compared with the case where the whole program to be rewritten is written via the serial communication terminal (Patent Document 1), the time required for writing can be shortened. In addition, it is possible to write a large-capacity program as compared with the case where the program is input and written only from the external memory (Patent Document 2).

すなわち、本発明によれば、従来よりも電子機器のプログラム書き換えに要する時間を短縮できるとともに、従来よりも大容量のプログラム書き換えを可能とすることができる。   That is, according to the present invention, it is possible to reduce the time required for rewriting the program of the electronic device as compared with the conventional case, and it is possible to rewrite the program with a larger capacity than before.

なお、本発明は、例えば、電子機器のプログラムを開発にあたり、プログラムのバージョンアップの際のプログラム書き換えに適用することができる。この場合、本発明を適用してプログラムの書き換え時間を短縮することにより、プログラム開発効率を向上させることができる。   It should be noted that the present invention can be applied to, for example, rewriting a program at the time of program version upgrade when developing a program for an electronic device. In this case, the program development efficiency can be improved by applying the present invention to shorten the program rewriting time.

或いは、本発明は、例えば、出荷後のフィールド障害発生により電子機器を回収した場合にプログラムをアップデートするに際してのプログラム書き換えに適用することができ、この場合も、迅速にアップデートを行うことが可能となる。   Alternatively, for example, the present invention can be applied to program rewriting when updating the program when the electronic device is collected due to the occurrence of a field failure after shipment. In this case as well, the update can be performed quickly. Become.

以下、図面を参照して、本発明に係る実施形態について説明する。   Embodiments according to the present invention will be described below with reference to the drawings.

本実施形態では、本発明に係る電子機器の好適な一例としての携帯電話機と、そのプログラム書き換えシステム、プログラム書き換え方法、プログラム書き換え用のプログラム及び記憶媒体について説明する。   In the present embodiment, a mobile phone, a program rewriting system, a program rewriting method, a program rewriting program, and a storage medium will be described as a preferred example of an electronic apparatus according to the present invention.

〔第1の実施形態〕
図1に示すように、第1の実施形態に係るプログラム書き換えシステム1は、携帯電話機(電子機器、携帯情報端末装置)10と、携帯電話機10と接続されプログラムの書き換えを行う書き換え装置(第2の書き換え用プログラム格納装置)17と、書き換え装置17と携帯電話機10とをシリアル通信可能に相互に接続するシリアル通信用ケーブル(例えば、RS−232Cケーブル)20と、携帯電話機10と接続される外部メモリ14と、を備えて構成されている。
[First Embodiment]
As shown in FIG. 1, a program rewriting system 1 according to the first embodiment includes a mobile phone (electronic device, portable information terminal device) 10 and a rewriting device (second device) that is connected to the mobile phone 10 and rewrites a program. , A reprogramming device 17 and a serial communication cable (for example, RS-232C cable) 20 that interconnects the rewriting device 17 and the mobile phone 10 so as to enable serial communication, and an external device connected to the mobile phone 10. And a memory 14.

このうち携帯電話機10は、該携帯電話機10の制御用のプログラムを格納するプログラム格納用メモリ(記憶媒体;例えば、フラッシュメモリ)15と、プログラム格納用メモリ15内のプログラム実行の際の作業領域として機能するRAM16と、プログラム格納用メモリ15内のプログラムに従って動作し携帯電話機10を統括制御するCPU(後述するように書き換え制御手段としても機能する)11と、CPU11により制御されシリアル通信の際のインタフェースとして機能するシリアルインタフェース12と、CPU11により制御され外部メモリ14(後述)との間のインタフェースとして機能する外部メモリインタフェース13と、を備えて構成されている。   Among these, the mobile phone 10 is a program storage memory (storage medium; for example, flash memory) 15 for storing a control program for the mobile phone 10 and a work area for executing the program in the program storage memory 15. A functioning RAM 16, a CPU (which also functions as a rewrite control means as will be described later) 11 that operates according to a program in the program storage memory 15 and performs overall control of the mobile phone 10, and an interface for serial communication controlled by the CPU 11 And an external memory interface 13 controlled by the CPU 11 and functioning as an interface between the external memory 14 (described later).

なお、外部メモリインタフェース13は、外部メモリ14との接続用のコネクタ(外部メモリ接続端子)13aを備えている。   The external memory interface 13 includes a connector (external memory connection terminal) 13 a for connection to the external memory 14.

また、シリアルインタフェース12は、シリアル通信用ケーブル20が接続されるシリアル通信端子12aを備えている。このシリアル通信端子12aにシリアル通信用ケーブル20の一端を接続し、該シリアル通信用ケーブル20の他端を書き換え装置17に接続することにより、書き換え装置17と携帯電話機10との間でシリアル通信が可能な状態となる。   The serial interface 12 includes a serial communication terminal 12a to which a serial communication cable 20 is connected. By connecting one end of the serial communication cable 20 to the serial communication terminal 12 a and connecting the other end of the serial communication cable 20 to the rewriting device 17, serial communication can be performed between the rewriting device 17 and the mobile phone 10. It becomes possible.

外部メモリ14には、携帯電話機10のプログラム格納用メモリ15内に新たに書き込まれるプログラム(以下、第1の書き換え用プログラム)19が記憶保持(格納)されている。この外部メモリ14は、例えば、メモリカードであることが挙げられる。この場合、外部メモリ14は、携帯電話機10の外部メモリインタフェース13のコネクタ13aに差し込まれて携帯電話機10と接続される。なお、第1の書き換え用プログラム19は、外部メモリ14の記憶容量に相当するデータ量を有することが好ましい。   The external memory 14 stores and stores (stores) a program (hereinafter referred to as a first rewrite program) 19 that is newly written in the program storage memory 15 of the mobile phone 10. The external memory 14 is, for example, a memory card. In this case, the external memory 14 is connected to the mobile phone 10 by being inserted into the connector 13 a of the external memory interface 13 of the mobile phone 10. The first rewriting program 19 preferably has a data amount corresponding to the storage capacity of the external memory 14.

書き換え装置17は、携帯電話機10のプログラム格納用メモリ15へのプログラムの書き換えを行う装置であり、例えば、パーソナルコンピュータからなる。この書き換え装置17は、例えば、CPU17a、RAM17b及びメモリ(記憶媒体;例えばROM)21を備えて構成され、このメモリ21には、携帯電話機10のプログラム格納用メモリ15内に新たに書き込まれるプログラム(以下、第2の書き換え用プログラム)18が記憶保持(格納)されている。なお、メモリ21には、他にも、書き換え装置17自体の動作制御用のプログラムも記憶され、このプログラムをCPU17aが実行することにより、該書き換え装置17の動作制御や、携帯電話機10のプログラム書き換えの際の制御(後述するプログラム書き換え処理の一部)が行われる。   The rewriting device 17 is a device for rewriting a program in the program storage memory 15 of the mobile phone 10 and is composed of, for example, a personal computer. The rewriting device 17 includes, for example, a CPU 17a, a RAM 17b, and a memory (storage medium; for example, a ROM) 21, and a program (newly written in the program storage memory 15 of the mobile phone 10) is stored in the memory 21. Hereinafter, the second rewriting program) 18 is stored (stored). The memory 21 also stores a program for controlling the operation of the rewriting device 17 itself, and the CPU 17a executes the program to control the operation of the rewriting device 17 and the program rewriting of the mobile phone 10. At this time, control (part of a program rewriting process described later) is performed.

具体的には、書き換え装置17は、携帯電話機10のプログラムの書き換えの際に、メモリ21内の第2の書き換え用プログラムを携帯電話機10へと転送したり、携帯電話機10に対し所要のコマンドを送信したりする。   Specifically, the rewriting device 17 transfers the second rewriting program in the memory 21 to the mobile phone 10 or rewrites a required command to the mobile phone 10 when rewriting the program of the mobile phone 10. Or send.

なお、書き換え装置17に記憶されている第2の書き換え用プログラム18と、外部メモリ14に記憶されている第1の書き換え用プログラム19とは、例えば、携帯電話機10への書き込み後、相互に補完して1つのプログラムを構成するものであっても良いし、別個のプログラムであっても良い。   Note that the second rewriting program 18 stored in the rewriting device 17 and the first rewriting program 19 stored in the external memory 14 complement each other after, for example, writing to the mobile phone 10. Thus, one program may be configured, or a separate program may be used.

図2に示すように、携帯電話機10のプログラム格納用メモリ15は、アプリケーションプログラム格納領域15aと、プログラム書き換え処理用プログラム格納領域15bと、を備えて構成されている。   As shown in FIG. 2, the program storage memory 15 of the mobile phone 10 includes an application program storage area 15a and a program rewrite processing program storage area 15b.

ここで、アプリケーションプログラム格納領域15aに記憶保持されるアプリケーションプログラムは、携帯電話機10を制御するメインプログラムであり、その一部又は全部が、後述するように新たに別のプログラムに書き換えられる。   Here, the application program stored and held in the application program storage area 15a is a main program for controlling the mobile phone 10, and a part or all of the main program is rewritten to another program as will be described later.

また、プログラム書き換え用プログラム格納領域15bに記憶保持されるプログラム書き換え処理用プログラム(プログラム)は、携帯電話機10のアプリケーションプログラムを書き換える際に、該携帯電話機10の制御に用いられるプログラムである。このプログラム書き換え用プログラムを携帯電話機10のCPU11が実行することにより、後述するプログラム書き換え処理の一部が行われる。   The program rewrite processing program (program) stored and held in the program rewrite program storage area 15 b is a program used to control the mobile phone 10 when the application program of the mobile phone 10 is rewritten. When the CPU 11 of the mobile phone 10 executes this program rewriting program, a part of the program rewriting process described later is performed.

次に、図3のフローチャートを参照して、動作を説明する。   Next, the operation will be described with reference to the flowchart of FIG.

図3に示すのは、プログラム書き換えの際に携帯電話機10及び書き換え装置17が協働で実行するプログラム書き換え処理である。   FIG. 3 shows a program rewriting process that the mobile phone 10 and the rewriting device 17 cooperatively execute during program rewriting.

なお、このプログラム書き換え処理の際には、携帯電話機10のCPU11は、書き換え制御手段として機能する。   In this program rewriting process, the CPU 11 of the mobile phone 10 functions as a rewrite control means.

ここで、以下で説明する一連のプログラム書き換え処理の開始トリガとしては、例えば、次に示すような例が挙げられる。   Here, as a start trigger of a series of program rewriting processes described below, for example, the following examples are given.

すなわち、プログラム書き換え処理は、例えば、書き換え装置17からのコマンドをトリガとして開始されることが挙げられる。更に言えば、このコマンドは、例えば、書き換え装置17の操作部(図示略;例えばキーボード及びマウスにより構成される)に対する所要の操作をトリガとして書き換え装置17から携帯電話機10に送信される。   That is, the program rewriting process can be started, for example, with a command from the rewriting device 17 as a trigger. Furthermore, for example, this command is transmitted from the rewriting device 17 to the mobile phone 10 as a trigger for a required operation on an operation unit (not shown; configured by a keyboard and a mouse, for example) of the rewriting device 17.

また、その他にも、例えば、携帯電話機10の操作部(図示略;例えば、操作キーにより構成される)を用いた所要の操作を開始トリガとしても良い。或いは、コネクタ13aに外部メモリ14が接続された際に該外部メモリ14が書き換え対象のプログラムを格納したものであるとCPU11が判定した場合に開始されるのであっても良い。この場合の判定は、例えば、外部メモリ14がメモリカードである場合に、該メモリカードから供給される識別用の情報(書き換え対象のプログラムを格納したものであることの識別用情報)を用いて行うことが挙げられる。   In addition, for example, a required operation using an operation unit (not shown; constituted by operation keys, for example) of the mobile phone 10 may be used as a start trigger. Alternatively, the processing may be started when the CPU 11 determines that the external memory 14 stores a program to be rewritten when the external memory 14 is connected to the connector 13a. In this case, for example, when the external memory 14 is a memory card, identification information (identification information indicating that the program to be rewritten is stored) supplied from the memory card is used. To do.

例えば、これらのうちの何れかの開始トリガが発生すると、携帯電話機10のCPU11は、プログラム格納用メモリ15内のプログラム書き換え用プログラム格納領域15bからプログラム書き換え用プログラムをフェッチし、該プログラム書き換え用プログラムを起動する(ステップS1)。なお、以下に説明するCPU11の動作は、このプログラム書き換え用プログラムに従う動作である。   For example, when any of these start triggers occurs, the CPU 11 of the mobile phone 10 fetches the program rewriting program from the program rewriting program storage area 15b in the program storing memory 15, and the program rewriting program Is activated (step S1). The operation of the CPU 11 described below is an operation according to this program rewriting program.

次に、CPU11は、外部メモリインタフェース13のコネクタ13aに外部メモリ14が接続されているか否かを判定する(ステップS2)。ここで、接続されていなかった場合(ステップS2のNO)には、図3の処理を終了する。   Next, the CPU 11 determines whether or not the external memory 14 is connected to the connector 13a of the external memory interface 13 (step S2). Here, if not connected (NO in step S2), the processing in FIG. 3 is terminated.

他方、コネクタ13aに外部メモリ14が接続されていた場合(ステップS2のYES)には、プログラム書き換え用プログラムを起動した旨(換言すればプログラムの書き換え処理を実行する旨)を書き換え装置17に通知する(ステップS3)。   On the other hand, when the external memory 14 is connected to the connector 13a (YES in step S2), the rewriting device 17 is notified that the program rewriting program has been started (in other words, the program rewriting process is executed). (Step S3).

なお、以下の説明において、携帯電話機10と書き換え装置17との相互間での通知やデータ送信(転送)は、何れもシリアルインタフェース12、シリアル通信端子12a及びシリアル通信用ケーブル20を介したシリアル通信によりなされる。   In the following description, notification and data transmission (transfer) between the mobile phone 10 and the rewriting device 17 are all serial communication via the serial interface 12, the serial communication terminal 12a, and the serial communication cable 20. Is made by

携帯電話機10からプログラム起動の旨の通知を受けた書き換え装置17のCPU17aは、外部メモリ14側から携帯電話機10のプログラム格納用メモリ15内に書き込むべきプログラムの種類を指定し、携帯電話機10に通知する(ステップS4)。   The CPU 17a of the rewriting device 17 that has received the notification of program activation from the mobile phone 10 specifies the type of program to be written in the program storage memory 15 of the mobile phone 10 from the external memory 14 side, and notifies the mobile phone 10 (Step S4).

ここで、プログラムの種類の指定は、携帯電話機10の種類に関する情報を用いて、オペレータの操作に基づきなされるのであっても良いし、或いは、シリアル通信により携帯電話機10側から得られる該携帯電話機10の種類に関する情報(型番など)を用いて、書き換え装置17のCPU17aの判断によりなされるのであっても良い。   Here, the designation of the type of program may be made based on an operator's operation using information on the type of the mobile phone 10, or the mobile phone obtained from the mobile phone 10 side by serial communication. The determination may be made by the CPU 17a of the rewriting device 17 using information on the ten types (model number and the like).

次に、プログラムの種類の通知を受けた携帯電話機10のCPU11は、通知された(つまり指定された)種類のプログラムが外部メモリ14に格納されているか否かを判定する(ステップS5)。ここで、格納されていなかった場合(ステップS5のNO)には、図3の処理を終了する。なお、このように判断(ステップS5のNO)されるのは、外部メモリ14に第1の書き換え用プログラム19が格納されていない場合や、書き換え装置17から指定したプログラムとは異なる第1の書き換え用プログラム19が格納されている場合である。この場合、例えば、外部メモリ14を正しいもの(指定された種類のプログラムを格納したもの)に差し替えた後で、上記の処理を最初から行う。   Next, the CPU 11 of the mobile phone 10 that has received the notification of the program type determines whether or not the notified (that is, designated) type of program is stored in the external memory 14 (step S5). Here, if it is not stored (NO in step S5), the processing in FIG. 3 is terminated. This determination (NO in step S5) is made when the first rewriting program 19 is not stored in the external memory 14 or when the first rewriting is different from the program specified by the rewriting device 17. This is a case where the program 19 is stored. In this case, for example, the above processing is performed from the beginning after the external memory 14 is replaced with a correct one (a program storing a specified type of program).

他方、指定された種類のプログラムが外部メモリ14に格納されていた場合(ステップS5のYES)には、CPU11は、該プログラムが格納されていた旨を書き換え装置17に通知する(ステップS6)。   On the other hand, when the designated type of program is stored in the external memory 14 (YES in step S5), the CPU 11 notifies the rewriting device 17 that the program is stored (step S6).

この通知を受けた書き換え装置17のCPU17aは、携帯電話機10のプログラム格納用メモリ15の記憶領域(格納領域)のうち、第1の書き換え用プログラム19を格納すべき第1の領域を指定し、携帯電話機10に通知する(ステップS7)。ここで、第1の領域は、アプリケーションプログラム格納領域15aのうちの一部である。   Upon receiving this notification, the CPU 17a of the rewriting device 17 designates a first area in which the first rewriting program 19 is to be stored, among the storage areas (storage areas) of the program storing memory 15 of the mobile phone 10, The mobile phone 10 is notified (step S7). Here, the first area is a part of the application program storage area 15a.

次に、この通知を受けた携帯電話機10のCPU11は、書き換え装置17により指定及び通知された第1の領域に、外部メモリ14内の第1の書き換え用プログラム19を格納する(ステップS8)。つまり、第1の領域に格納されていた元のプログラムを第1の書き換え用プログラム19に書き換える。 Next, upon receiving this notification, the CPU 11 of the mobile phone 10 stores the first rewriting program 19 in the external memory 14 in the first area designated and notified by the rewriting device 17 (step S8 ). . That is, the original program stored in the first area is rewritten to the first rewriting program 19.

このように第1の書き換え用プログラム19を格納し終えると、CPU11は該格納が終了した旨を書き換え装置17に通知する(ステップS9)。   When the storage of the first rewrite program 19 is thus completed, the CPU 11 notifies the rewriting device 17 that the storage has been completed (step S9).

この通知を受けた書き換え装置17のCPU17aは、該書き換え装置17側から携帯電話機10のプログラム格納用メモリ15内に書き込むべきプログラム(第2の書き換え用プログラム18)の種類を指定する一方で、携帯電話機10のプログラム格納用メモリ15の記憶領域のうち、該第2の書き換え用プログラム18を格納すべき第2の領域を指定し、それら指定した情報の両方を携帯電話機10に通知する(ステップS10)。   Upon receiving this notification, the CPU 17a of the rewriting device 17 designates the type of the program (second rewriting program 18) to be written in the program storage memory 15 of the mobile phone 10 from the rewriting device 17 side. Of the storage area of the program storage memory 15 of the telephone 10, a second area in which the second rewriting program 18 is to be stored is designated, and both of the designated information are notified to the mobile telephone 10 (step S10). ).

ここでのプログラムの種類の指定は、上記ステップS4の場合と同様に、携帯電話機10の種類に関する情報(型番など)を用いてオペレータの操作に基づきなされるのであっても良いし、或いは、シリアル通信により携帯電話機10側から得られる該携帯電話機10の種類に関する情報を用いて、書き換え装置17のCPU17aの判断によりなされるのであっても良い。   The designation of the type of program here may be made based on the operator's operation using information (model number or the like) regarding the type of mobile phone 10 as in the case of step S4 above, or serial The determination may be made by the CPU 17a of the rewriting device 17 using information on the type of the mobile phone 10 obtained from the mobile phone 10 side by communication.

また、第2の領域は、アプリケーションプログラム格納領域15aのうちの一部であり、しかも第1の領域とは別の領域である。   The second area is a part of the application program storage area 15a and is a different area from the first area.

このように、第2の書き換え用プログラム18の種類と、格納場所である第2の領域と、の通知を受けた携帯電話機10のCPU11は、これらの情報を認識した旨を書き換え装置17に通知する(ステップS11)。   As described above, the CPU 11 of the mobile phone 10 that has received the notification of the type of the second rewriting program 18 and the second area that is the storage location notifies the rewriting device 17 that the information has been recognized. (Step S11).

この通知を受けた書き換え装置17のCPU17aは、先のステップS10にて指定した第2の書き換え用プログラム18を携帯電話機10に転送する(ステップS12)。   Upon receiving this notification, the CPU 17a of the rewriting device 17 transfers the second rewriting program 18 designated in the previous step S10 to the mobile phone 10 (step S12).

他方、携帯電話機10のCPU11は、このように書き換え装置17から転送される第2の書き換え用プログラム18をプログラム格納用メモリ15のアプリケーションプログラム格納領域15aの第2の領域に格納する(ステップS13)。つまり、第2の領域に格納されていた元のプログラムを第2の書き換え用プログラム18に書き換える。 On the other hand, the CPU 11 of the mobile phone 10 stores the second rewriting program 18 thus transferred from the rewriting device 17 in the second area of the application program storage area 15a of the program storage memory 15 (step S1 3 ) That is, the original program stored in the second area is rewritten to the second rewriting program 18.

こうして、プログラム格納用メモリ15のアプリケーションプログラム格納領域15aの(第1及び第2の領域の)プログラムは、第1及び第2の書き換え用プログラム18,19に書き換えられる。   Thus, the programs (in the first and second areas) in the application program storage area 15a of the program storage memory 15 are rewritten into the first and second rewriting programs 18 and 19.

以上のような第1の実施形態によれば、外部メモリ接続端子13a及び外部メモリインタフェース13を介して第1の書き換え用プログラム19を携帯電話機10に入力し該第1の書き換え用プログラム19をプログラム格納用メモリ15に格納する(ステップS8)一方で、シリアル通信端子12a及びシリアルインタフェース12を介して第2の書き換え用プログラム18を携帯電話機10に入力し該第2の書き換え用プログラム18をプログラム格納用メモリ15に格納する(ステップS13)ので、プログラムの書き換えに要する時間がシリアル通信速度のみに依存するということがなくなる。すなわち、ステップS8により、シリアル通信に要する時間の影響を軽減することができる。このため、書き換えるべきプログラムの全てをシリアル通信端子12aを介して書き込む場合(特許文献1)と比べて、書き込みに要する時間を短縮することができる。しかも、外部メモリ14からのみプログラムを入力して書き込む場合(特許文献2)と比べて、大容量のプログラムを書き込むことが可能となる。すなわち、本発明によれば、従来と比べて、プログラム書き換えに要する時間を短縮できるとともに、大容量のプログラム書き換えを可能とすることができる。 According to the first embodiment as described above, the first rewriting program 19 is input to the mobile phone 10 via the external memory connection terminal 13a and the external memory interface 13, and the first rewriting program 19 is programmed. that stores in the storage memory 15 in (step S8) while the serial communication terminals 12a and the serial interface 12 and the second rewriting program 18 via the input to the cellular phone 10 programs the second rewrite program 18 that stores in the storage memory 15 (step S13) of the time required for rewriting the program that is eliminated that depends only on the serial communication speed. That is, the influence of the time required for serial communication can be reduced by step S8 . For this reason, compared with the case where all the programs which should be rewritten are written via the serial communication terminal 12a (patent document 1), the time required for writing can be shortened. Moreover, it is possible to write a large-capacity program as compared with the case where the program is input and written only from the external memory 14 (Patent Document 2). That is, according to the present invention, it is possible to shorten the time required for program rewriting and to enable large-capacity program rewriting as compared with the prior art.

更に、ステップS8に引き続いてステップS13を行うので、つまり、ステップS8とステップS13とは実質的にほぼ連続したタイミングで行うので、より確実にプログラム書き換え時間を短縮することができる。 Further, since the step S1 3 Following the step S 8, that is, the step S8 and step S13 is performed in substantially the timing which is substantially continuous, it is possible to more reliably reduce the program rewriting time.

また、第1の書き換え用プログラムを、外部メモリ14の記憶容量に相当するデータ量のプログラムとすることにより、極力シリアル通信に要する時間を短縮することができ、一層プログラム書き換え時間を短縮することができる。   Further, by making the first rewriting program a program having a data amount corresponding to the storage capacity of the external memory 14, the time required for serial communication can be shortened as much as possible, and the program rewriting time can be further shortened. it can.

また、プログラム格納用メモリ15のアプリケーションプログラム格納領域15aの格納領域のうち、第1の書き換え用プログラム19が格納される第1の領域と、第2の書き換え用プログラム18が格納される第2の領域と、をそれぞれ書き換え装置17により指定するので、双方のプログラム18,19を確実にアプリケーションプログラム格納領域15aに書き込むことができる。よって、例えば、誤って第1の書き換え用プログラム19を第2の書き換え用プログラム18で上書きしてしまいプログラムに欠損が生じてしまうということがない。   Of the storage areas of the application program storage area 15a of the program storage memory 15, the first area in which the first rewriting program 19 is stored and the second area in which the second rewriting program 18 is stored. Since the area is designated by the rewriting device 17, both programs 18 and 19 can be reliably written in the application program storage area 15 a. Therefore, for example, there is no case where the first rewriting program 19 is mistakenly overwritten with the second rewriting program 18 and the program is not lost.

〔第2の実施形態〕
次に、図4を参照して、第2の実施形態について説明する。
[Second Embodiment]
Next, a second embodiment will be described with reference to FIG.

なお、図4において、上記の第1の実施形態で説明した図3におけるステップと同様のステップには同一の符号を付している。   In FIG. 4, steps similar to those in FIG. 3 described in the first embodiment are denoted by the same reference numerals.

上記の第1の実施形態では、ステップS8に引き続いてステップS13を行う例について説明したが、第2の実施形態では、それらの工程の順序を逆にする例について説明する。 In the first embodiment described above has described the example in which the steps S1 3 Following the step S 8, in the second embodiment, an example to reverse the order of these steps.

すなわち、第2の実施形態の場合、図4に示すように、ステップS13に引き続いてステップS8を行う。 That is, in the case of the second embodiment, as shown in FIG. 4, performs the steps S 8 Following step S1 3.

また、このような工程の順序の変更に伴い、以下に説明するようにその他にも若干の変更がある。   In addition, with such a change in the order of the steps, there are some other changes as described below.

すなわち、第2の実施形態の場合、図4に示すように、ステップS1→ステップS2→ステップS3までは上記の第1の実施形態と同様に進行するが、ステップS3に続いては、ステップS10の処理を行う。   That is, in the case of the second embodiment, as shown in FIG. 4, the process proceeds from step S1 → step S2 → step S3 in the same manner as in the first embodiment, but following step S3, step S10 is performed. Perform the process.

ステップS10以降は、上記の第1の実施形態と同様に、ステップS10→ステップS11→ステップS12→ステップS13と進行する。更に、ステップS13に続いては、ステップS21を行う。   After step S10, the process proceeds in the order of step S10 → step S11 → step S12 → step S13, as in the first embodiment. Furthermore, step S21 is performed following step S13.

このステップS21では、先のステップS13での第2の書き換え用プログラム18の格納が終了した旨をCPU11から書き換え装置17に通知する。   In this step S21, the CPU 11 notifies the rewriting device 17 that the storage of the second rewriting program 18 in the previous step S13 has been completed.

ステップS21に続いては、ステップS4の処理を行う。ステップS4以降は、上記の第1の実施形態と同様に、ステップS4→ステップS5→ステップS6→ステップS7→ステップS8と進行し、プログラムの書き換え処理を終了する。   Following step S21, the process of step S4 is performed. After step S4, as in the first embodiment, the process proceeds from step S4 → step S5 → step S6 → step S7 → step S8, and the program rewriting process is terminated.

以上のような第2の実施形態によれば、第1の実施形態と同様の効果が得られる。   According to the second embodiment as described above, the same effect as in the first embodiment can be obtained.

なお、上記の各実施形態では、本発明に係る電子機器として、携帯電話機を例示したが、本発明はこの例に限らず、例えば、PHS(Personal Handy Phone System)、PDA(Personal Digital Assistant)或いはその他の携帯電話機以外の携帯情報端末装置にも同様に適用可能である。更に、本発明は、これら携帯情報端末装置に限らず、その他の電子機器にも同様に適用可能である。   In each of the above embodiments, a mobile phone is illustrated as an electronic apparatus according to the present invention. However, the present invention is not limited to this example, and for example, PHS (Personal Handy Phone System), PDA (Personal Digital Assistant) or The present invention can be similarly applied to other portable information terminal devices other than mobile phones. Furthermore, the present invention is not limited to these portable information terminal devices, but can be similarly applied to other electronic devices.

また、プログラム格納用メモリ15として、個別に書き込みが可能な複数のメモリ領域(格納領域)を備えるメモリを用い、ステップS8とステップS13とを(時系列的に)並行して行うようにしても良く、この場合には、より一層書き換え時間を短縮することができる。 Further, as the program storage memory 15, a memory having a plurality of individually writable memory areas (storage areas) is used, and step S8 and step S13 may be performed in parallel (in time series). In this case, the rewriting time can be further shortened.

また、上記の各実施形態で説明したプログラム書き換え処理は、以下のように一部の工程を省略して簡略化しても良い。   In addition, the program rewriting process described in each of the above embodiments may be simplified by omitting some processes as follows.

すなわち、上記の第1及び第2の実施形態の何れの場合にも(図3、図4の何れの場合にも)、ステップS10に続いてステップS12を実行するとともに、ステップS11を省略することとしても良く、このようにすることにより、プログラム書き換え処理を簡略化し、その処理時間をより短縮することができる。   That is, in both cases of the first and second embodiments described above (in either case of FIGS. 3 and 4), step S12 is executed following step S10, and step S11 is omitted. In this way, the program rewriting process can be simplified and the processing time can be further shortened.

また、上記の実施形態では、外部メモリ14の例として、メモリカードを例示したが、本発明はこの例に限らない。すなわち、外部メモリ14は、例えば、ハードディスクドライブ或いはその他の記憶装置であっても良い。この場合、例えば、外部メモリインタフェース13をUSBインタフェースに置き換え、USBケーブルを介して該外部メモリインタフェース13と記憶装置とを接続し、該記憶装置から電子機器(例えば携帯電話機10)へと第2の書き換え用プログラム18を転送するようにすると良い。   In the above embodiment, the memory card is illustrated as an example of the external memory 14, but the present invention is not limited to this example. That is, the external memory 14 may be, for example, a hard disk drive or other storage device. In this case, for example, the external memory interface 13 is replaced with a USB interface, the external memory interface 13 and the storage device are connected via a USB cable, and the second from the storage device to the electronic device (for example, the mobile phone 10). The rewriting program 18 may be transferred.

本発明の第1の実施形態に係るプログラム書き換えシステムを示すブロック図である。1 is a block diagram showing a program rewriting system according to a first embodiment of the present invention. 図1のプログラム書き換えシステムの携帯電話機が備えるプログラム格納用メモリの記憶内容を示す図である。It is a figure which shows the memory content of the program storage memory with which the mobile telephone of the program rewriting system of FIG. 第1の実施形態の場合のプログラム書き換え処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the program rewriting process in the case of 1st Embodiment. 第2の実施形態の場合のプログラム書き換え処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the program rewriting process in the case of 2nd Embodiment.

符号の説明Explanation of symbols

1 プログラム書き換えシステム
10 携帯電話機(電子機器)
11 CPU(書き換え制御手段)
12a シリアル通信端子
13a コネクタ(外部メモリ接続端子)
14 外部メモリ
15 プログラム格納用メモリ(記憶媒体)
17 書き換え装置(第2の書き換え用プログラム格納装置)
21 メモリ(記憶媒体)
19 第1の書き換え用プログラム
18 第2の書き換え用プログラム
1 Program rewriting system 10 Mobile phone (electronic equipment)
11 CPU (rewrite control means)
12a Serial communication terminal 13a Connector (external memory connection terminal)
14 External memory 15 Program storage memory (storage medium)
17 Rewriting device (second rewriting program storage device)
21 Memory (storage medium)
19 First rewriting program 18 Second rewriting program

Claims (6)

シリアル通信用のシリアル通信端子と、外部メモリが接続される外部メモリ接続端子と、プログラムを格納したプログラム格納用メモリと、を備える電子機器において、In an electronic device comprising a serial communication terminal for serial communication, an external memory connection terminal to which an external memory is connected, and a program storage memory storing a program,
前記プログラム格納用メモリに格納された前記プログラムを書き換える処理である書き換え処理を実行する書き換え制御手段を備え、  Rewriting control means for executing a rewriting process that is a process of rewriting the program stored in the program storage memory;
前記書き換え処理には、  For the rewriting process,
前記外部メモリの記憶容量に相当するデータ量を有し前記外部メモリに格納された第1の書き換え用プログラムを、前記外部メモリから前記外部メモリ接続端子を介して当該電子機器に入力し、該入力した第1の書き換え用プログラムにより前記プログラム格納用メモリに格納された前記プログラムの一部を書き換える第1の制御と、  A first rewriting program having a data amount corresponding to the storage capacity of the external memory and stored in the external memory is input from the external memory to the electronic device via the external memory connection terminal. First control for rewriting a part of the program stored in the program storage memory by the first rewriting program,
第2の書き換え用プログラムを格納した第2の書き換え用プログラム格納装置から前記シリアル通信端子を介して当該電子機器に入力される第2の書き換え用プログラムにより、前記プログラム格納用メモリに格納された前記プログラムの他の一部を書き換える第2の制御と、  The second rewrite program input from the second rewrite program storage device storing the second rewrite program to the electronic device via the serial communication terminal stores the program stored in the program storage memory. A second control for rewriting another part of the program;
前記第2の書き換え用プログラム格納装置から通知された種類の第1の書き換え用プログラムが前記外部メモリに格納されているか否かを判定し、格納されていればその旨を前記第2の書き換え用プログラム格納装置に通知する第3の制御と、  It is determined whether or not the first rewriting program of the type notified from the second rewriting program storage device is stored in the external memory, and if it is stored, that fact is indicated in the second rewriting program. A third control to notify the program storage device;
前記1の制御が終了した旨を前記第2の書き換え用プログラム格納装置に対して通知する第4の制御と、  A fourth control for notifying the second rewrite program storage device that the control of 1 has been completed;
が含まれ、  Contains
前記書き換え制御手段は、  The rewrite control means includes
前記プログラム格納用メモリに格納する前記第1の書き換え用プログラムの種類が前記第2の書き換え用プログラム格納装置から当該電子機器に通知されると、前記第3の制御を実行し、  When the second rewrite program storage device is notified of the type of the first rewrite program stored in the program storage memory from the second rewrite program storage device, the third control is executed,
前記第3の制御を実行した後で、前記第1の書き換え用プログラムを前記プログラム格納用メモリの格納領域のうちどの領域に格納すればよいかが前記第2の書き換え用プログラム格納装置から当該電子機器に対して通知されると、前記第1の制御を実行し、該第1の制御では、前記第1の書き換え用プログラムを前記第2の書き換え用プログラム格納装置から通知された領域に格納することにより、前記プログラム格納用メモリに格納された前記プログラムの一部を書き換え、  After executing the third control, it is determined from the second rewrite program storage device to which electronic device the second rewrite program storage device should store the first rewrite program. Is notified, the first control is executed, and in the first control, the first rewriting program is stored in the area notified from the second rewriting program storage device. By rewriting a part of the program stored in the program storage memory,
前記第1の制御が終了すると、前記第4の制御を実行し、  When the first control ends, the fourth control is executed,
前記第4の制御を実行した後で、前記第2の書き換え用プログラムを前記プログラム格納用メモリの格納領域のうちどの領域に格納すればよいかが前記第2の書き換え用プログラムから当該電子機器に対して通知され、前記第2の書き換え用プログラムが前記シリアル通信端子を介して当該電子機器に入力されると、前記第2の制御を実行し、該第2の制御では、前記第2の書き換え用プログラムを前記第2の書き換え用プログラム格納装置から通知された領域に格納することにより、前記プログラム格納用メモリに格納された前記プログラムの他の一部を書き換えることによって、  After executing the fourth control, the second rewriting program stores the second rewriting program in the storage area of the program storage memory from the second rewriting program to the electronic device. The second rewriting program is input to the electronic device via the serial communication terminal, the second control is executed. In the second control, the second rewriting program is executed. By storing the program in the area notified from the second rewrite program storage device, rewriting another part of the program stored in the program storage memory,
前記第1の書き換え用プログラムを前記プログラム格納用メモリに格納するのに引き続いて前記第2の書き換え用プログラムを前記プログラム格納用メモリに格納することを特徴とする電子機器。  An electronic apparatus comprising: storing the second rewrite program in the program storage memory subsequent to storing the first rewrite program in the program storage memory.
前記書き換え制御手段は、前記第2の書き換え用プログラム格納装置が前記シリアル通信端子に接続された状態において前記第2の書き換え用プログラム格納装置から前記電子機器へと前記第2の書き換え用プログラムが転送されるときに前記書き換え制御を行うことを特徴とする請求項1に記載の電子機器。The rewrite control means transfers the second rewrite program from the second rewrite program storage device to the electronic device in a state where the second rewrite program storage device is connected to the serial communication terminal. The electronic device according to claim 1, wherein the rewriting control is performed when the electronic device is operated. 当該電子機器は、携帯情報端末装置であることを特徴とする請求項1又は2に記載の電子機器。The electronic apparatus according to claim 1, wherein the electronic apparatus is a portable information terminal device. 当該電子機器は、携帯電話機であることを特徴とする請求項3に記載の電子機器。The electronic device according to claim 3, wherein the electronic device is a mobile phone. シリアル通信用のシリアル通信端子と、外部メモリ接続端子と、プログラムを格納したプログラム格納用メモリと、を備える電子機器と、An electronic device comprising a serial communication terminal for serial communication, an external memory connection terminal, and a program storage memory storing a program;
前記外部メモリ接続端子に接続される外部メモリと、  An external memory connected to the external memory connection terminal;
前記シリアル通信端子に接続される前記第2の書き換え用プログラム格納装置と、  The second rewrite program storage device connected to the serial communication terminal;
を備え、  With
前記外部メモリには、該外部メモリの記憶容量に相当するデータ量を有する第1の書き換え用プログラムが格納され、  The external memory stores a first rewriting program having a data amount corresponding to the storage capacity of the external memory,
前記第2の書き換え用プログラム格納装置には、第2の書き換え用プログラムが格納され、  The second rewrite program storage device stores a second rewrite program,
前記電子機器は、前記プログラム格納用メモリに格納された前記プログラムを書き換える処理である書き換え処理を実行する書き換え制御手段を備え、  The electronic device includes a rewrite control unit that executes a rewrite process that is a process of rewriting the program stored in the program storage memory,
前記書き換え処理には、  For the rewriting process,
前記第1の書き換え用プログラムを前記外部メモリから前記外部メモリ接続端子を介して前記電子機器に入力し、該入力した第1の書き換え用プログラムにより前記プログラム格納用メモリに格納された前記プログラムの一部を書き換える第1の制御と、  The first rewriting program is input from the external memory to the electronic device via the external memory connection terminal, and the program stored in the program storage memory by the input first rewriting program is input. A first control to rewrite the part;
前記第2の書き換え用プログラム格納装置から前記シリアル通信端子を介して前記電子機器に入力される第2の書き換え用プログラムにより、前記プログラム格納用メモリに格納された前記プログラムの他の一部を書き換える第2の制御と、  Another part of the program stored in the program storage memory is rewritten by a second rewriting program input to the electronic device from the second rewriting program storage device via the serial communication terminal. A second control;
前記第2の書き換え用プログラム格納装置から通知された種類の第1の書き換え用プログラムが前記外部メモリに格納されているか否かを判定し、格納されていればその旨を前記第2の書き換え用プログラム格納装置に通知する第3の制御と、  It is determined whether or not the first rewriting program of the type notified from the second rewriting program storage device is stored in the external memory, and if it is stored, that fact is indicated in the second rewriting program. A third control to notify the program storage device;
前記1の制御が終了した旨を前記第2の書き換え用プログラム格納装置に対して通知する第4の制御と、  A fourth control for notifying the second rewrite program storage device that the control of 1 has been completed;
が含まれ、  Contains
前記書き換え制御手段は、前記プログラム格納用メモリに格納する前記第1の書き換え用プログラムの種類が前記第2の書き換え用プログラム格納装置から前記電子機器に通知されると、前記第3の制御を実行し、  The rewrite control means executes the third control when the electronic device is notified of the type of the first rewrite program stored in the program storage memory from the second rewrite program storage device. And
前記第2の書き換え用プログラム格納装置は、前記第3の制御による前記通知を前記電子機器から受けると、前記第1の書き換え用プログラムを前記プログラム格納用メモリの格納領域のうちどの領域に格納すればよいかを前記電子機器に対して通知し、  When the second rewrite program storage device receives the notification by the third control from the electronic device, the second rewrite program storage device stores the first rewrite program in any storage area of the program storage memory. To notify the electronic device whether it should be
前記書き換え制御手段は、前記第1の書き換え用プログラムを前記プログラム格納用メモリの格納領域のうちどの領域に格納すればよいかが前記第2の書き換え用プログラム格納装置から前記電子機器に通知されると、前記第1の制御を実行し、該第1の制御では、前記第1の書き換え用プログラムを前記第2の書き換え用プログラム格納装置から通知された領域に格納することにより、前記プログラム格納用メモリに格納された前記プログラムの前記一部を書き換え、前記第1の制御が終了すると、前記第4の制御を実行し、  The rewrite control means is notified from the second rewrite program storage device to the electronic device which area of the storage area of the program storage memory the first rewrite program should be stored in. The first control is executed, and in the first control, the first rewrite program is stored in the area notified from the second rewrite program storage device, thereby the program storage memory. Rewriting the part of the program stored in the program, and when the first control is completed, execute the fourth control,
前記第2の書き換え用プログラム格納装置は、前記第4の制御による前記通知を前記電子機器から受けると、前記第2の書き換え用プログラムを前記プログラム格納用メモリの格納領域のうちどの領域に格納すればよいかを前記電子機器に対して通知し、前記第2の書き換え用プログラムを前記シリアル通信端子を介して前記電子機器に入力し、  When the second rewrite program storage device receives the notification by the fourth control from the electronic device, the second rewrite program storage device stores the second rewrite program in any storage area of the program storage memory. The electronic device is notified whether the second rewriting program is input to the electronic device via the serial communication terminal,
前記書き換え制御手段は、前記第2の書き換え用プログラムが前記シリアル通信端子を介して前記電子機器に入力されると、前記第2の制御を実行し、該第2の制御では、前記第2の書き換え用プログラムを前記第2の書き換え用プログラム格納装置から通知された領域に格納することにより、前記プログラム格納用メモリに格納された前記プログラムの前記他の一部を書き換えるように構成したことによって、  The rewrite control means executes the second control when the second rewrite program is input to the electronic device via the serial communication terminal, and in the second control, the second rewrite control unit executes the second control. By storing the rewrite program in the area notified from the second rewrite program storage device, and rewriting the other part of the program stored in the program storage memory,
前記第1の書き換え用プログラムを前記プログラム格納用メモリに格納するのに引き続いて前記第2の書き換え用プログラムを前記プログラム格納用メモリに格納することを特徴とするプログラム書き換えシステム。  A program rewriting system, wherein the second rewriting program is stored in the program storing memory subsequent to storing the first rewriting program in the program storing memory.
前記書き換え制御手段は、前記第2の書き換え用プログラム格納装置が前記シリアル通信端子に接続された状態において前記第2の書き換え用プログラム格納装置から前記電子機器へと前記第2の書き換え用プログラムが転送されるときに前記書き換え制御を行うことを特徴とする請求項5に記載のプログラム書き換えシステム。The rewrite control means transfers the second rewrite program from the second rewrite program storage device to the electronic device in a state where the second rewrite program storage device is connected to the serial communication terminal. 6. The program rewriting system according to claim 5, wherein the rewriting control is performed when the rewriting is performed.
JP2004041020A 2004-02-18 2004-02-18 Program rewriting method and system Expired - Fee Related JP4072504B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004041020A JP4072504B2 (en) 2004-02-18 2004-02-18 Program rewriting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004041020A JP4072504B2 (en) 2004-02-18 2004-02-18 Program rewriting method and system

Publications (2)

Publication Number Publication Date
JP2005234743A JP2005234743A (en) 2005-09-02
JP4072504B2 true JP4072504B2 (en) 2008-04-09

Family

ID=35017655

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004041020A Expired - Fee Related JP4072504B2 (en) 2004-02-18 2004-02-18 Program rewriting method and system

Country Status (1)

Country Link
JP (1) JP4072504B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008090723A (en) * 2006-10-04 2008-04-17 Kyocera Corp Portable terminal

Also Published As

Publication number Publication date
JP2005234743A (en) 2005-09-02

Similar Documents

Publication Publication Date Title
EP3252605B1 (en) Vehicle-mounted control device, program writing device, program generating device and program
JP6568947B2 (en) In-vehicle control device, program update system, and program update software
US7502813B2 (en) Software update process using an extra memory block
JP4768237B2 (en) Portable electronic device and method for controlling portable electronic device
JP2001195241A (en) Computer
CN106843955A (en) Based on compressing file and contactless FPGA Dynamic Configurations
US7222342B2 (en) Execution on a machine, the start of an auxiliary downloader when storage of new software memory fails during execution of a first downloader
JP2002278783A (en) System for rewriting firmware
JP2006059217A (en) Software memory image generation apparatus and built-in device software update system and program
JP4072504B2 (en) Program rewriting method and system
JP5085254B2 (en) Portable electronic device, IC card, and command processing method in portable electronic device
JP2007052558A (en) Flash memory rewrite device, flash memory rewrite method and flash memory rewrite program
JP5158883B2 (en) Firmware update method and firmware update apparatus
JP7420179B1 (en) Electronic information storage medium, IC card, issuance processing method, and program
JPH11282690A (en) Method for writing control program, information processor and information processing system
JP7397402B2 (en) Electronic information storage medium, data transmission method, and program
JP3730684B2 (en) Display device for programmable controller and display information writing method thereof
JP5341947B2 (en) IC card, control method of IC card, and control method of portable electronic device
JP4278580B2 (en) Program change method, programmable controller, and program editing apparatus.
JP2004013782A (en) Method for downloading firmware
JP2007034434A (en) Ic card, method for writing data to ic card, and ic card program
JP2022106442A (en) Electronic information storage medium, patch program writing method, and program
JP4309122B2 (en) User data protection method, PC and program when rewriting software on mobile phone
KR100693559B1 (en) Method for initializing RAM of electronic device
JP2000148466A (en) Information processor, and control program updating method of information processor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070809

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070904

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071030

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071121

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071210

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080121

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110125

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees