JP2005286502A - Portable information equipment, program rewriting method, and program - Google Patents

Portable information equipment, program rewriting method, and program Download PDF

Info

Publication number
JP2005286502A
JP2005286502A JP2004094926A JP2004094926A JP2005286502A JP 2005286502 A JP2005286502 A JP 2005286502A JP 2004094926 A JP2004094926 A JP 2004094926A JP 2004094926 A JP2004094926 A JP 2004094926A JP 2005286502 A JP2005286502 A JP 2005286502A
Authority
JP
Japan
Prior art keywords
program
storage memory
power supply
data
portable information
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
JP2004094926A
Other languages
Japanese (ja)
Inventor
Keiichi Kobayashi
圭一 小林
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2004094926A priority Critical patent/JP2005286502A/en
Publication of JP2005286502A publication Critical patent/JP2005286502A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a portable information equipment capable of preventing a write disable state caused by a decrease in a supply voltage that can occur during the reading of program data, and to provide a program rewriting method and a program. <P>SOLUTION: A voltage detector for detecting the voltage of a battery is provided in a cellular phone. An operation permission voltage VP in a program rewrite mode is set sufficiently larger than a drop voltage VD estimated in program rewriting operation, and is set as a value that is larger than a terminal voltage VE. When the voltage of the battery detected in the program rewrite mode is the operation permission voltage VP or larger, the program is rewritten. When the voltage of the battery is the operation permission voltage VP or smaller, program rewrite is prohibited. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、携帯情報機器のプログラム書き換え技術に関する。   The present invention relates to a program rewriting technique for a portable information device.

従来、携帯情報機器では、そのプログラムは携帯情報機器内部の保存メモリに固定されたものであるか、或いは書き換えや追加可能なアプリケーションプログラムは機器の機能のうち本質的な部分に影響を与えるものではなかったため、例えば、プログラムデータの読み込み(ダウンロード)中に電源電圧が低下しても、再度プログラムデータの読み込みを行えばよかった(例えば、特許文献1参照)。   Conventionally, in a portable information device, the program is fixed in a storage memory inside the portable information device, or an application program that can be rewritten or added does not affect the essential part of the device function. For example, even if the power supply voltage decreases during reading (downloading) program data, it is only necessary to read program data again (see, for example, Patent Document 1).

同特許文献1には、入力装置と、表示装置と、無線装置と、処理装置とを備えた携帯電話端末において、新規サービスの導入や、サービスの機能向上(サービスプログラムのバージョンアップ)が行われても、携帯電話端末自体を交換する等の処置を必要とせず、少ないメモリ容量で、多種多様のサービスの提供を実現するため、移動体通信網側との間でプログラムの転送を行うための転送プログラムを格納したROMと、RAMとを備えるようにし、処理装置は、転送プログラムを実行することで、入力装置からの入力情報に応じたサービスプログラムを移動体通信網側からダウンロードし、RAMに格納する技術が開示されている。また、同特許文献1には、予め定めたサービスプログラム、および、移動体通信網側との間でプログラムの転送を行うための転送プログラムを格納したROMと、RAMとを備えるようにし、処理装置は、転送プログラムを実行することで、入力装置からの入力情報に応じたサービスプログラムを移動体通信網側からダウンロードし、RAMに格納する技術も開示されている。   In Patent Document 1, introduction of a new service and improvement of service functions (service program version upgrade) are performed in a mobile phone terminal including an input device, a display device, a wireless device, and a processing device. However, in order to provide a wide variety of services with a small memory capacity without requiring measures such as exchanging the mobile phone terminal itself, it is necessary to transfer a program to and from the mobile communication network side. A ROM that stores the transfer program and a RAM are provided, and the processing device executes the transfer program to download a service program corresponding to the input information from the input device from the mobile communication network side and store it in the RAM. A storing technique is disclosed. In addition, the Patent Document 1 includes a ROM that stores a predetermined service program and a transfer program for transferring the program to and from the mobile communication network, and a RAM. Discloses a technique of downloading a service program corresponding to input information from an input device from the mobile communication network side by executing a transfer program and storing it in a RAM.

特開平11−239094号公報Japanese Patent Laid-Open No. 11-239094

しかしながら、近年は、携帯情報機器の機能のうち本質的な部分に影響を与えないアプリケーションプログラムだけでなく、ファームウエアと呼ばれるような機器の機能のうち本質的な部分に係わるプログラムデータをも更新できるような機器が出現しており、このような機器では、プログラムデータの読み込み中に電源電圧が低下してしまうと、場合によっては再起動さえ不可能になるといった問題点があった。   However, in recent years, not only application programs that do not affect the essential part of the functions of the portable information device but also program data related to the essential part of the function of the device called firmware can be updated. Such a device has appeared, and such a device has a problem that even if the power supply voltage decreases during reading of the program data, even the restart is impossible in some cases.

本発明は上記問題点を解決するためになされたものであって、プログラムデータの読み込み中に生じ得る電源電圧の低下を起因とする書込み不能状態を回避し得る、携帯情報機器、プログラム書き換え方法、及びプログラムの提供を目的とする。   The present invention has been made to solve the above-described problems, and can avoid an unwritable state caused by a decrease in power supply voltage that may occur during reading of program data, a portable information device, a program rewriting method, And to provide a program.

上記課題を解決するために、請求項1記載の発明では、入力部と、表示部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器であって、外部装置から送信されるプログラムデータを受信するデータ受信手段と、電源電池の電圧を検出する電圧検出手段と、プログラム書き換え指示を検出する書き換え指示検出手段と、この書き換え指示検出手段によりプログラム書き換え指示が検出されたとき、電圧検出手段で検出された電源電池の電圧値とプログラム書き換え用にこの携帯情報機器の終端電圧より高い値に設定された閾値とを比較する比較手段と、この比較手段による比較の結果、電源電池の電圧が閾値以上でない場合は、プログラム格納メモリに格納されているプログラムを受信したプログラムデータで書き換えることを禁止するプログラム書き換え禁止手段と、を設けたことを特徴とする携帯情報機器を提供する。
これにより、通常の動作よりも厳密なバッテリーチェックによって電池電圧を確認してから外部装置から受信したプログラムデータの書き換えを行うので、プログラムデータの書き換え中に電源が落ちて動作不能になったり、場合によっては再起動不能になるような事態の発生を防止できる。
In order to solve the above-mentioned problem, the invention according to claim 1 is a portable information device comprising an input unit, a display unit, a program storage memory storing a program, a temporary storage memory, and a control unit. A data receiving means for receiving program data transmitted from an external device, a voltage detecting means for detecting the voltage of the power supply battery, a rewriting instruction detecting means for detecting a program rewriting instruction, and a program rewriting instruction by the rewriting instruction detecting means A comparison means for comparing the voltage value of the power supply battery detected by the voltage detection means with a threshold value set to a value higher than the termination voltage of the portable information device for program rewriting, and the comparison means As a result of the comparison, if the voltage of the power battery is not equal to or higher than the threshold value, the program stored in the program storage memory is received. Providing a program rewriting inhibiting means for inhibiting the rewriting in program data, the portable information device, characterized in that a.
As a result, the program data received from the external device is rewritten after confirming the battery voltage through a battery check that is stricter than the normal operation. Depending on the situation, it is possible to prevent the occurrence of a situation where the restart is impossible.

また、請求項2に記載の発明では、比較手段による電源電池の電圧値と閾値との比較は、データ受信部で受信したプログラムデータを一部記憶メモリに記憶した後、書き換え指示検出手段によりプログラム書き換え指示が検出されたときに行うことを特徴とする請求項1記載の携帯情報機器を提供する。
これにより、外部からプログラムデータを一旦一時記憶メモリに書込んだ後、通常の動作よりも厳密なバッテリーチェックによって電池電圧を確認し、電源電圧が不足している場合はプログラムデータの書き換えを行わないので、プログラムデータの書き換え中に電源が落ちて動作不能になったり、場合によっては再起動不能になるような事態の発生を防止できる。
According to the second aspect of the present invention, the comparison between the voltage value of the power source battery and the threshold value by the comparing means is performed by storing the program data received by the data receiving section in a part of the storage memory and then by the rewrite instruction detecting means. The portable information device according to claim 1, which is performed when a rewrite instruction is detected.
As a result, after the program data is once written to the temporary storage memory from outside, the battery voltage is checked by a battery check that is stricter than normal operation, and if the power supply voltage is insufficient, the program data is not rewritten. Therefore, it is possible to prevent the occurrence of a situation in which the power is turned off during the rewriting of the program data and the operation becomes impossible or the restart becomes impossible in some cases.

また、請求項3に記載の発明では、入力部と、表示部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器であって、 外部装置から送信されるプログラムデータを受信するデータ受信手段と、電源電池の電圧を検出する電圧検出手段と、データ受信部で受信したプログラムデータを一時記憶メモリに記憶する記憶制御手段と、プログラム書き換え指示を検出する書き換え指示検出手段と、この書き換え指示検出手段によりプログラム書き換え指示が検出されたとき、電圧検出部で検出された電源電池の電圧値に基づいて、プログラム格納メモリに格納されているプログラムを内部メモリに記憶されたプログラムデータで書き換えるか否かを決定するプログラム書き換え可否決定手段と、を備えたことを特徴とする携帯情報機器を提供する。
これにより、外部からプログラムデータを一旦一時記憶メモリに書込んだ後、電池電圧を確認してからプログラムデータの書き換えを行うので、プログラムデータの書き換え中に電源が落ちて動作不能になったり、場合によっては再起動不能になるような事態の発生を防止できる。
According to a third aspect of the present invention, there is provided a portable information device comprising an input unit, a display unit, a program storage memory storing a program, a temporary storage memory, and a control unit, and transmitted from an external device Receiving means for receiving program data, voltage detecting means for detecting the voltage of the power supply battery, storage control means for storing the program data received by the data receiving section in the temporary storage memory, and detecting a program rewrite instruction When the rewrite instruction detecting unit detects a program rewrite instruction by the rewrite instruction detecting unit, the program stored in the program storage memory is stored in the internal memory based on the voltage value of the power supply battery detected by the voltage detecting unit. Program rewritability determination means for deciding whether or not to rewrite with stored program data. Provided is a portable information device characterized by
As a result, program data is temporarily written to the temporary storage memory from outside, and then the program data is rewritten after checking the battery voltage. Depending on the situation, it is possible to prevent the occurrence of a situation where the restart is impossible.

また、請求項4に記載の発明では、プログラム可否決定手段は、電圧検出部で検出された電源電池の電圧値とプログラム書き換え用にこの携帯情報機器の終端電圧より高い値に設定された閾値とを比較する手段と、電池電圧が該閾値以上の場合のみにプログラム書き換えを可能とし、電池電圧が該閾値未満のときの場合はプログラム書き換えを禁止する手段とを含むことを特徴とする請求項3記載の携帯情報機器を提供する。
これにより、外部からプログラムデータを一旦一時記憶メモリに書込んだ後、通常の動作よりも厳密なバッテリーチェックによって電池電圧を確認してからプログラムデータの書き換えを行うので、プログラムデータの書き換え中に電源が落ちて動作不能になったり、場合によっては再起動不能になるような事態の発生を確実に防止できる。
Further, in the invention according to claim 4, the program availability determination means includes a voltage value of the power source battery detected by the voltage detection unit and a threshold value set to a value higher than the termination voltage of the portable information device for program rewriting. And means for prohibiting program rewriting when the battery voltage is less than the threshold, and means for prohibiting program rewriting when the battery voltage is less than the threshold. The portable information device described is provided.
As a result, the program data is temporarily written in the temporary storage memory from the outside, and then the battery voltage is checked by a battery check that is stricter than the normal operation, and then the program data is rewritten. It is possible to reliably prevent the occurrence of a situation in which the operation of the projector becomes impossible due to the falling of the screen, or in some cases the restart becomes impossible.

また、請求項5に記載の発明では、更に、この携帯情報機器の使用電力を可能な限り削減する使用電力削減手段を備え、プログラム書き換え指示はこの使用電力削減手段による使用電力の削減が行われた後に可能であることを特徴とする請求項3記載の携帯情報機器を提供する。
これにより、使用電力が最も少ない状態で電源電池の電圧を検出し、通常の動作よりも厳密なバッテリーチェックによって電池電圧を確認してからプログラムデータの書き換えを行うので、バッテリーチェックの閾値を使用電力削減分だけ低くすることができ、プログラムデータ書き換え可能電圧範囲を拡張できる。
Further, the invention according to claim 5 further includes a power consumption reduction means for reducing the power consumption of the portable information device as much as possible, and the program rewrite instruction is used to reduce the power consumption by the power consumption reduction means. 4. The portable information device according to claim 3, wherein the portable information device is possible after that.
As a result, the voltage of the power supply battery is detected with the least amount of power used, and the program data is rewritten after checking the battery voltage through a stricter battery check than in normal operation. The voltage can be lowered by the reduction amount, and the voltage range in which program data can be rewritten can be expanded.

また、請求項6に記載の発明では、入力部と、表示部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、外部装置からUSB等の電源供給型インターフェース接続により送信されるプログラムデータを受信するデータ受信手段と、制御部とを備えた携帯情報機器であって、データ受信手段で受信したプログラムデータを内部メモリに一時記憶する記憶制御手段と、プログラム書き換え指示を検出する書き換え指示検出手段と、この書き換え指示検出手段によりプログラム書き換え指示が検出された後、電源供給型インターフェース接続による外部電源供給の有無を検出し、電源供給型インターフェース接続による外部電源供給がない場合にはプログラム格納メモリに格納されているプログラムを内部メモリに記憶されたプログラムデータで書き換えることを禁止するプログラム書き換え禁止手段と、を備えたことを特徴とする携帯情報機器を提供する。
これにより、電源供給型インターフェース接続による外部からの電源供給によりプログラムデータの書き換えを行うため、外部装置が例えば商用電源から電源供給を受けているデスクトップパソコンなどであれば、電源を気にせずに安全にプログラムデータの書き換えを行うことができる。
According to a sixth aspect of the present invention, program data transmitted from an input unit, a display unit, a program storage memory storing a program, a temporary storage memory, and a power supply interface connection such as a USB from an external device. Is a portable information device comprising a data receiving means for receiving a data and a control unit, a storage control means for temporarily storing program data received by the data receiving means in an internal memory, and a rewrite instruction detection for detecting a program rewrite instruction And after the program rewrite instruction is detected by the rewrite instruction detecting means, the presence or absence of external power supply by the power supply type interface connection is detected, and when there is no external power supply by the power supply type interface connection, the program storage memory Program stored in the internal memory Providing a program rewriting inhibiting means for inhibiting the rewriting in program data, the portable information device characterized by comprising a.
As a result, program data can be rewritten by external power supply through a power-supply interface connection, so if the external device is a desktop PC or the like that is supplied with power from a commercial power supply, it is safe without worrying about the power supply. Program data can be rewritten.

また、請求項7に記載の発明では、更に、プログラム書き換え指示手段による書き換え指示があったときこの携帯情報機器の使用電力を節減する使用電力節減手段を備え、記憶制御手段は、この使用電力節減手段による使用電力の節減が行われた後にプログラムデータを内部メモリに一時記憶することを特徴とする請求項6記載の携帯情報機器を提供する。
これにより、この携帯情報機器の使用電力を節約した状態でUSB等の電源供給型インターフェース接続による電源供給によりプログラムデータの書き換えを行うので、例えば、携帯パソコン等をプログラムデータ送信元兼電源供給元とした場合のように、電池で動作する外部装置側の電源電池の容量低下を防止し、プログラムデータの書き換えの安全を図ることができる。
Further, the invention according to claim 7 further comprises power consumption saving means for reducing the power consumption of the portable information device when a rewrite instruction is given by the program rewrite instruction means, and the storage control means has the power consumption reduction. 7. The portable information device according to claim 6, wherein the program data is temporarily stored in the internal memory after the power consumption is reduced by the means.
As a result, program data can be rewritten by power supply via a power supply interface connection such as USB while saving power consumption of the portable information device. For example, a portable personal computer or the like can be used as a program data transmission source and power supply source. As in this case, it is possible to prevent the capacity of the power supply battery on the side of the external device operating on the battery from being reduced, and to secure the rewriting of the program data.

また、請求項8に記載の発明では、入力部と、表示部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、外部装置からプログラムデータを受信するデータ受信部と、制御部とを備えた携帯情報機器であって、データ受信部で受信したプログラムデータを内部メモリに一時記憶する記憶制御手段と、プログラム書き換え指示を検出する書き換え指示検出手段と、この書き換え指示検出手段によりプログラム書き換え指示が検出された後、たとえばACアダプタなどを経由した外部電源供給の有無を検出し、外部電源供給がない場合には、プログラム格納メモリに格納されているプログラムを内部メモリに記憶されたプログラムデータで書き換えることを禁止するプログラム書き換え禁止手段と、を備えたことを特徴とする携帯情報機器を提供する。
これにより、外部電源からの電源供給によりプログラムデータの書き換えを行うため、電源を気にせずに安全にプログラムデータの書き換えを行うことができる。
According to an eighth aspect of the present invention, an input unit, a display unit, a program storage memory storing a program, a temporary storage memory, a data receiving unit for receiving program data from an external device, and a control unit are provided. A storage control means for temporarily storing the program data received by the data receiver in the internal memory; a rewrite instruction detection means for detecting a program rewrite instruction; and a program rewrite instruction by the rewrite instruction detection means Is detected, for example, the presence or absence of external power supply via an AC adapter or the like is detected. If there is no external power supply, the program stored in the program storage memory is replaced with the program data stored in the internal memory. And a program rewrite prohibiting means for prohibiting rewriting. To provide a band information equipment.
Thus, since the program data is rewritten by supplying power from an external power supply, the program data can be safely rewritten without worrying about the power supply.

また、請求項9に記載の発明では、更に、電源電池の電圧を検出する電圧検出手段を備え、プログラム書き換え禁止手段は、外部電源供給があっても前記電圧検出手段からの検出値の変動幅が所定値より大きい場合はプログラムをプログラムデータで書き換えることを禁止する手段を含むことを特徴とする請求項6又は8記載の携帯情報機器を提供する。 これにより、外部電源の供給があっても、この携帯情報機器が電源電池で駆動している場合はプログラムの書き換えを行わないので、プログラム書き換え中に電源電圧の低下によりプログラム書き換えができなくなるといった事態が生じない。   Further, the invention according to claim 9 further comprises voltage detection means for detecting the voltage of the power supply battery, and the program rewrite prohibiting means has a fluctuation range of the detected value from the voltage detection means even when external power is supplied. 9. The portable information device according to claim 6, further comprising means for prohibiting rewriting of the program with program data when the value is larger than a predetermined value. As a result, even if external power is supplied, the program is not rewritten when this portable information device is driven by a power supply battery, so the program cannot be rewritten due to a drop in power supply voltage during program rewriting. Does not occur.

また、請求項10に記載の発明では、データ受信手段は、移動体無線網を介して外部装置から送信されるデータを受信する無線データ受信手段であることを特徴とする請求項1、3又は8記載の携帯情報機器を提供する。
これにより、この携帯情報機器は無線データ受信手段を備えるので、無線ネットワークからデータを受信することができ、例えば、携帯電話の運営会社のサーバから更新用プログラムデータを受信することができる。
According to a tenth aspect of the present invention, the data receiving means is a wireless data receiving means for receiving data transmitted from an external device via a mobile wireless network. 8. A portable information device according to claim 8 is provided.
Accordingly, since the portable information device includes the wireless data receiving means, it is possible to receive data from the wireless network. For example, it is possible to receive the update program data from a server of a mobile phone operating company.

また、請求項11に記載の発明では、データ受信手段は、USB接続により外部装置から送信されるプログラムデータを受信する手段であることを特徴とする請求項1、3又は8記載の携帯情報機器を提供する。
これにより、この携帯情報機器はUSB接続した外部装置からデータを受信することができ、例えば、パソコンから更新用プログラムデータを受信することができる。
Further, in the invention described in claim 11, the data receiving means is means for receiving program data transmitted from an external device by USB connection. I will provide a.
As a result, the portable information device can receive data from an external device connected via USB, and can receive update program data from a personal computer, for example.

また、請求項12に記載の発明では、携帯情報機器は無線通信手段を備えた携帯電話であることを特徴とする請求項1乃至11のいずれか1項に記載の携帯情報機器を提供する。   According to a twelfth aspect of the present invention, there is provided the portable information device according to any one of the first to eleventh aspects, wherein the portable information device is a cellular phone provided with wireless communication means.

また、請求項13に記載の発明では、携帯情報機器は撮像手段を備えた撮像装置であることを特徴とする請求項1乃至11のいずれか1項に記載の携帯情報機器を提供する。   According to a thirteenth aspect of the present invention, there is provided the portable information device according to any one of the first to eleventh aspects, wherein the portable information device is an image pickup apparatus including an image pickup unit.

また、請求項14に記載の発明は、入力部と、表示部と、外部装置からのデータを受信するデータ受信部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器におけるプログラム書き換え方法であって、プログラムの書き換え指示を検出したとき、電源電池の電圧値とプログラム書き換え用にこの携帯情報機器の終端電圧より高い値に設定された閾値とを比較し、電源電池の電圧が閾値以上でない場合はプログラム格納メモリに格納されているプログラムをデータ受信部で受信したプログラムデータで書き換えることを禁止する、ことを特徴とするプログラム書き換え方法を提供する。
これにより、通常の動作よりも厳密なバッテリーチェックによって電池電圧を確認してから外部装置から受信したプログラムデータの書き換えを行うので、プログラムデータの書き換え中に電源が落ちて動作不能になったり、場合によっては再起動不能になるような事態の発生を防止できる。
The invention according to claim 14 includes an input unit, a display unit, a data receiving unit that receives data from an external device, a program storage memory that stores a program, a temporary storage memory, and a control unit. A method for rewriting a program in a portable information device provided with a method of comparing a voltage value of a power supply battery with a threshold set to a value higher than the termination voltage of the portable information device for program rewriting when a program rewrite instruction is detected. A program rewriting method is provided that prohibits rewriting of a program stored in a program storage memory with program data received by a data receiving unit when the voltage of the power supply battery is not equal to or higher than a threshold value.
As a result, the program data received from the external device is rewritten after confirming the battery voltage through a battery check that is stricter than the normal operation. Depending on the situation, it is possible to prevent the occurrence of a situation where the restart is impossible.

また、請求項15に記載の発明では、電源電池の電圧値と閾値との比較は、データ受信部で受信したプログラムデータを一時記憶メモリに記憶した後に、プログラム書き換え指示が検出されたときに行うことを特徴とする請求項14記載のプログラム書き換え方法を提供する。
これにより、外部からプログラムデータを一旦一時記憶メモリに書込んだ後、通常の動作よりも厳密なバッテリーチェックによって電池電圧を確認し、電源電圧が不足している場合はプログラムデータの書き換えを行わないので、プログラムデータの書き換え中に電源が落ちて動作不能になったり、場合によっては再起動不能になるような事態の発生を防止できる。
Further, in the invention described in claim 15, the comparison between the voltage value of the power battery and the threshold is performed when the program rewrite instruction is detected after the program data received by the data receiving unit is stored in the temporary storage memory. A program rewriting method according to claim 14 is provided.
As a result, after the program data is once written to the temporary storage memory from outside, the battery voltage is checked by a battery check that is stricter than normal operation, and if the power supply voltage is insufficient, the program data is not rewritten. Therefore, it is possible to prevent the occurrence of a situation in which the power is turned off during the rewriting of the program data and the operation becomes impossible or the restart becomes impossible in some cases.

また、請求項16に記載に発明では、入力部と、表示部と、USB等の電源供給型インターフェース接続部と、外部装置から電源供給型インターフェース接続により送信されるデータを受信するデータ受信部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器におけるプログラム書き換え方法であって、プログラム書き換え指示を検出したとき、電源供給型インターフェース接続による外部電源供給の有無を検出し、電源供給型インターフェース接続による外部電源供給がない場合にはプログラム格納メモリに格納されているプログラムを一時記憶メモリに記憶されたプログラムデータで書き換えることを禁止することを特徴とするプログラム書き換え方法を提供する。
これにより、電源供給型インターフェース接続による外部からの電源供給によりプログラムデータの書き換えを行うので、商用電源から電源供給を受けている外部装置であれば電源を気にせずに安全にプログラムデータの書き換えを行うことができる。
In the invention described in claim 16, an input unit, a display unit, a power supply type interface connection unit such as a USB, and a data reception unit that receives data transmitted from an external device through a power supply type interface connection; A program rewriting method in a portable information device comprising a program storage memory storing a program, a temporary storage memory, and a control unit, wherein when a program rewrite instruction is detected, an external power supply by connecting a power supply interface is detected. A program for detecting presence / absence and prohibiting rewriting of a program stored in a program storage memory with program data stored in a temporary storage memory when there is no external power supply through a power supply type interface connection Provide a rewriting method.
As a result, program data can be rewritten by supplying power from the outside via a power supply interface connection. Therefore, program data can be safely rewritten without worrying about the power if the external device is receiving power from a commercial power supply. It can be carried out.

また、請求項17に記載の発明では、入力部と、表示部と、外部装置から送信されるデータを受信するデータ受信部と、外部電源入力部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器におけるプログラム書き換え方法であって、プログラム書き換え指示を検出した後、ACアダプタ経由等の外部電源供給の有無を検出し、外部電源供給がない場合には、プログラム格納メモリに格納されているプログラムを一時記憶メモリに記憶されたプログラムデータで書き換えることを禁止することを特徴とするプログラム書き換え方法を提供する。
これにより、ACアダプタからの電源供給によりプログラムデータの書き換えを行うため、電源を気にせずに安全にプログラムデータの書き換えを行うことができる。
In the invention according to claim 17, an input unit, a display unit, a data receiving unit for receiving data transmitted from an external device, an external power input unit, a program storage memory for storing a program, A method for rewriting a program in a portable information device comprising a storage memory and a control unit, and detecting the presence or absence of external power supply via an AC adapter after detecting a program rewrite instruction and there is no external power supply Provides a program rewriting method for prohibiting rewriting of a program stored in a program storage memory with program data stored in a temporary storage memory.
Thus, since the program data is rewritten by supplying power from the AC adapter, the program data can be safely rewritten without worrying about the power supply.

また、請求項18に記載に発明では、入力部と、表示部と、外部装置からのデータを受信するデータ受信部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器において実行可能なプログラムであって、データ受信部で受信したプログラムデータを一時記憶メモリに一時記憶させるプログラムステップと、プログラムの書き換え指示を検出させるプログラムステップと、プログラム書き換え指示を検出したとき電源電池の電圧値とプログラム書き換え用にこの携帯情報機器の終端電圧より高い値に設定された閾値とを比較させるプログラムステップと、電源電池の電圧が閾値以上でない場合はプログラム格納メモリに格納されているプログラムをデータ受信部で受信したプログラムデータで書き換えることを禁止させるプログラムステップと、を含むことを特徴とするプログラムを提供する。
これにより、プログラムの書き換えを行う前に通常の動作よりも厳密なバッテリーチェックを行い、電源電池の電圧が所定値より低い場合はプログラムの書き換えを禁止できるので、プログラムデータの書き換え中に電源が落ちて動作不能になったり、場合によっては再起動不能になるような事態の発生を防止できる。
In the invention described in claim 18, an input unit, a display unit, a data receiving unit that receives data from an external device, a program storage memory that stores a program, a temporary storage memory, and a control unit are provided. A program that can be executed in a portable information device provided, a program step that temporarily stores program data received by the data receiving unit in a temporary storage memory, a program step that detects a program rewrite instruction, and a program rewrite instruction A program step for comparing the voltage value of the power supply battery with a threshold value set higher than the termination voltage of the portable information device for program rewriting, and storing in the program storage memory if the power supply battery voltage is not equal to or higher than the threshold value Program data received by the data receiver Include, a program step for prohibiting changing can provide program characterized.
As a result, a battery check that is stricter than normal operation is performed before rewriting the program, and rewriting of the program can be prohibited if the power supply battery voltage is lower than the predetermined value. Therefore, it is possible to prevent the occurrence of a situation in which it becomes impossible to operate or in some cases it cannot be restarted.

また、請求項19に記載の発明では、入力部と、表示部と、USB等の電源供給型インターフェース接続部と、外部装置から電源供給型インターフェース接続により送信されるデータを受信するデータ受信部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器において実行可能なプログラムであって、プログラム書き換え指示を検出させるプログラムステップと、プログラム書き換え指示を検出したとき電源供給型インターフェース接続による外部電源供給の有無を検出させるプログラムステップと、電源供給型インターフェース接続による外部電源供給がない場合にはプログラム格納メモリに格納されているプログラムを一時記憶メモリに記憶されたプログラムデータで書き換えることを禁止させるプログラムステップと、を含むことを特徴とするプログラムを提供する。
これにより、電源供給型インターフェース接続された外部装置から電源供給がない場合はプログラムの書き換えを禁止できる。
According to a nineteenth aspect of the present invention, an input unit, a display unit, a power supply type interface connection unit such as a USB, and a data reception unit that receives data transmitted from an external device through a power supply type interface connection; A program that can be executed in a portable information device that includes a program storage memory that stores a program, a temporary storage memory, and a control unit, and that detects a program rewrite instruction and a program rewrite instruction Program step for detecting presence / absence of external power supply by power supply type interface connection, and program stored in program storage memory when there is no external power supply by power supply type interface connection Rewrite with data Providing a program which comprises the program steps to prohibit the.
Thus, rewriting of the program can be prohibited when there is no power supply from the external device connected to the power supply type interface.

また、請求項20に記載の発明では、入力部と、表示部と、外部装置から送信されるデータを受信するデータ受信部と、外部電源入力部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器において実行可能なプログラムであって、プログラム書き換え指示を検出させるプログラムステップと、プログラム書き換え指示を検出したときACアダプタ経由等の外部電源供給の有無を検出させるプログラムステップと、外部電源供給がない場合にはプログラム格納メモリに格納されているプログラムを一時記憶メモリに記憶されたプログラムデータで書き換えることを禁止させるプログラムステップと、を含むことを特徴とするプログラム。
これにより、外部からの電源供給でない場合はプログラムの書き換えを禁止できるので、プログラムデータの書き換え中に電源が落ちて動作不能になったり、場合によっては再起動不能になるような事態の発生を防止できる。
In the invention described in claim 20, an input unit, a display unit, a data receiving unit for receiving data transmitted from an external device, an external power input unit, a program storage memory for storing a program, A program that can be executed in a portable information device including a storage memory and a control unit, the program step for detecting a program rewrite instruction, and the presence or absence of external power supply via an AC adapter when the program rewrite instruction is detected And a program step for prohibiting rewriting of a program stored in the program storage memory with program data stored in the temporary storage memory when there is no external power supply. program.
As a result, rewriting of the program can be prohibited when the power is not supplied from the outside, preventing the occurrence of a situation in which the power is turned off during program data rewriting and becomes inoperable or in some cases unable to restart. it can.

本発明によれば、プログラムの書き換えを行う前に電源状態を調べ、プログラムの書き換えが可能な電源状態の場合に限り書き換えを行うので、プログラムデータの読み込み中に生じ得る電源電圧の低下を起因とする書込み不能状態を防止できる。   According to the present invention, the power state is checked before rewriting the program, and rewriting is performed only in a power state in which the program can be rewritten. This prevents an unwritable state.

(実施形態1)
図1は、本発明の実施の形態を携帯電話に適用した場合の一実施例を示す図であり、図1(a)は携帯電話(開状態)の外観を示す正面図、図1(b)は背面図である。図1において、携帯電話1は大きく、蓋部2と本体部3から構成されている。蓋部2は本体部3側に折り込み可能に構成されている。アンテナ4は蓋部2の背面に設けられており、伸縮自在となっている。
(Embodiment 1)
FIG. 1 is a diagram showing an example when the embodiment of the present invention is applied to a mobile phone. FIG. 1A is a front view showing the appearance of the mobile phone (in an open state), and FIG. ) Is a rear view. In FIG. 1, the mobile phone 1 is large and includes a lid portion 2 and a main body portion 3. The lid portion 2 is configured to be foldable toward the main body portion 3 side. The antenna 4 is provided on the back surface of the lid portion 2 and is extendable.

スピーカ5は、蓋部2の前面側に設けられており、音声出力を行う。表示部(メイン表示部)6はカラー液晶であり、開状態で選択画面やメッセージ又は画像等の情報表示画面を表示する。また、開状態でカメラモードへの移行を検出するとスルー画像や再生画像を表示する。また、表示部6の背部にはバックライトランプ(図示せず)が設けられており、選択画面やメッセージ又は画像等の情報表示画面を表示する際に表示画面を背部からライト表示する。シャッターキー7は、本体部3の側面に設けられており、カメラモードにおいて、ユーザの押圧操作により、後述する撮像レンズ12による撮像を指示する。キー入力部8は本体部3の前面に設けられており、各種機能キーや、テンキーからなる。マイク9は本体部3の下部に設けられており、音声入力を行う。   The speaker 5 is provided on the front side of the lid portion 2 and outputs sound. A display unit (main display unit) 6 is a color liquid crystal and displays an information display screen such as a selection screen or a message or an image in an open state. Further, when a shift to the camera mode is detected in the open state, a through image and a reproduced image are displayed. In addition, a backlight lamp (not shown) is provided on the back of the display unit 6 to light-display the display screen from the back when an information display screen such as a selection screen or a message or an image is displayed. The shutter key 7 is provided on the side surface of the main body 3 and instructs imaging by an imaging lens 12 described later by a user's pressing operation in the camera mode. The key input unit 8 is provided on the front surface of the main unit 3 and includes various function keys and a numeric keypad. The microphone 9 is provided at the lower part of the main body 3 and performs voice input.

サブ表示部10は、蓋部2の背面に設けられている。該サブ表示部10の表示面は、後述する撮像レンズ12の光軸とほぼ直交するように配置されている。背面キー11は、透明、又は半透明部材で構成され、着信の際発光するLEDを内蔵する。撮像レンズ12は、蓋部2の背面、上記サブ表示部10の下部に設けられている。バッテリーパック13は本体部3の裏面に着脱可能に設けられており、ロック部14により固定されている。ロック部14は、バッテリーパック13を本体部3に固定するためのものである。報知スピーカ15は着信などを報知するものであり、蓋部2を本体部3に閉じた状態でも報知音が聞こえるように、本体部3の裏面に配置されている。   The sub display unit 10 is provided on the back surface of the lid unit 2. The display surface of the sub display unit 10 is disposed so as to be substantially orthogonal to the optical axis of the imaging lens 12 described later. The back key 11 is made of a transparent or translucent member and incorporates an LED that emits light when an incoming call is received. The imaging lens 12 is provided on the back surface of the lid portion 2 and below the sub display portion 10. The battery pack 13 is detachably provided on the back surface of the main body portion 3 and is fixed by a lock portion 14. The lock part 14 is for fixing the battery pack 13 to the main body part 3. The notification speaker 15 notifies incoming calls and the like, and is arranged on the back surface of the main body 3 so that a notification sound can be heard even when the lid 2 is closed to the main body 3.

また、本体部3の側部下方に図示のように電源供給型インターフェースであるUSB(Universal Serial Bus)接続可能なUSB接続部33が設けられている。また、本体部3の側部下方に図示のように外部電源入力端子34が設けられている。   In addition, a USB connection unit 33 capable of USB (Universal Serial Bus) connection, which is a power supply type interface, is provided below the side of the main unit 3 as shown in the figure. An external power input terminal 34 is provided below the side of the main body 3 as shown in the figure.

図2は本実施形態による携帯電話の構成を示すブロック図である。無線送受信部16は無線によりアンテナ4を介して音声やデータを送受し変調/復調する。無線信号処理部17は、無線送受信部16で受信した音声やデータを復調し、或いは無線送受信部16から送信する音声やデータを変調するなどの無線通信に必要な処理を行う。制御部18は、CPU及びその周辺回路等からなり、蓋部2、本体部3の各種動作及び携帯電話1全体の動作を制御する。   FIG. 2 is a block diagram showing the configuration of the mobile phone according to the present embodiment. The wireless transmission / reception unit 16 wirelessly transmits and receives voice and data via the antenna 4 to modulate / demodulate. The wireless signal processing unit 17 performs processing necessary for wireless communication such as demodulating voice and data received by the wireless transmission / reception unit 16 or modulating voice and data transmitted from the wireless transmission / reception unit 16. The control unit 18 includes a CPU and peripheral circuits thereof, and controls various operations of the lid unit 2 and the main body unit 3 and operations of the entire mobile phone 1.

検出部19はシャッターキー7が操作されたことを検出する。開閉検出部20は、光センサ、メカニカルスイッチ等で構成され、携帯電話1が開状態(蓋部2と本体部3が開放された状態)になったのか、閉状態か(本体部3に蓋部2が被さった状態)を検出する。ドライバ21は表示部6を駆動させる。ドライバ22は、サブ表示部10を駆動させる。加入者情報記憶部23は、携帯電話1を呼び出すための電話番号や、操作者(加入者)のID等、プロフィールデータを格納する。   The detection unit 19 detects that the shutter key 7 has been operated. The open / close detection unit 20 includes an optical sensor, a mechanical switch, and the like, and whether the mobile phone 1 is in an open state (a state in which the lid portion 2 and the main body portion 3 are opened) or in a closed state (the main body portion 3 is covered with a lid). State in which part 2 is covered). The driver 21 drives the display unit 6. The driver 22 drives the sub display unit 10. The subscriber information storage unit 23 stores profile data such as a telephone number for calling the mobile phone 1 and an operator (subscriber) ID.

フラッシュROM24は、電気的に消去(書き換え)できるROMであり、制御部18を制御する各種プログラムなどを記憶する(図3参照)。RAM25は無線通信端末として必要な各種データを記憶し、且つ制御部18が動作する上で必要なプログラムやデータを記憶すると共に、撮像された画像データも記憶する。また、RAM25は、プログラムデータの書込み時には、通信ネットワークを介して外部装置からダウンロードされたプログラムデータ、つまり、無線送受信部16で受信し、無線信号処理部17で復調したプログラムデータやUSB接続部33を介してパソコン等の外部装置から取り込まれたプログラムデータを一時記憶する(図4参照)。   The flash ROM 24 is an electrically erasable (rewritable) ROM and stores various programs for controlling the control unit 18 (see FIG. 3). The RAM 25 stores various data necessary as a wireless communication terminal, stores programs and data necessary for the operation of the control unit 18, and stores captured image data. The RAM 25 writes program data downloaded from an external device via a communication network, that is, program data received by the wireless transmission / reception unit 16 and demodulated by the wireless signal processing unit 17 or the USB connection unit 33 when the program data is written. The program data taken in from an external device such as a personal computer is temporarily stored via the (see FIG. 4).

音声信号処理部26は、マイク9から入力された音声信号を符号化処理したり、無線信号処理部17から出力された信号に基づいて復号化してスピーカ5から出力したりする。DSP27は、撮影モジュール28に取り込まれた画像データを符号化処理する。撮影モジュール28はCCD若しくはCMOSで構成され、撮像レンズ12を介して被写体のカラー画像を取り込む。ドライバ29は、スピーカ15、バイブレータ30、LED111を駆動するためのドライバである。   The audio signal processing unit 26 encodes the audio signal input from the microphone 9 or decodes the audio signal based on the signal output from the wireless signal processing unit 17 and outputs the decoded signal from the speaker 5. The DSP 27 encodes the image data captured by the photographing module 28. The photographing module 28 is composed of a CCD or a CMOS, and captures a color image of the subject through the imaging lens 12. The driver 29 is a driver for driving the speaker 15, the vibrator 30, and the LED 111.

バッテリー31はバッテリーパック13に収容された電池からなり、携帯電話1の各回路に電力を供給する。また、表示部6やサブ表示部10の背部に設けられているバックライトランプやLEDランプ等にライト用電源を供給する。電圧検出部32は電圧検出回路からなり、バッテリー31の電圧を検出して検出値を制御部18に送る。   The battery 31 is a battery housed in the battery pack 13 and supplies power to each circuit of the mobile phone 1. Further, a power supply for light is supplied to a backlight lamp, an LED lamp, or the like provided on the back of the display unit 6 or the sub display unit 10. The voltage detection unit 32 includes a voltage detection circuit, detects the voltage of the battery 31, and sends the detection value to the control unit 18.

USB接続部33が設けられている場合は、後述するようにUSB接続部33に接続されたUSBケーブル(図示せず)を介してパソコン等の外部装置からプログラムデータを取り込むことができる。この際、外部電源をUSB接続された相手側機器から供給するようにしてもよい。また、外部電源はACアダプタを介して外部電源入力端子34から得るようにしてもよい。   When the USB connection unit 33 is provided, program data can be fetched from an external device such as a personal computer via a USB cable (not shown) connected to the USB connection unit 33 as will be described later. At this time, external power may be supplied from the counterpart device connected via USB. Moreover, you may make it obtain an external power supply from the external power supply input terminal 34 via an AC adapter.

図3はフラッシュROM24のプログラム格納構成を示す模式図である。フラッシュROM24の先頭部分にはCPUの動作に不可欠なOS(オペレーティングシステム)や通信制御プログラムや移動用プログラム等の基本的な制御プログラム241や、起動用プログラムロードモジュール242や本発明のプログラムデータアップデート用のプログラムデータ書き換え動作プログラム243や、各種動作プログラムやアプリケーション用のプログラムデータであるタスクモジュール(TASK1モジュール、・・・、TASKNモジュール)244等が格納されている。   FIG. 3 is a schematic diagram showing a program storage configuration of the flash ROM 24. At the top of the flash ROM 24, there is an OS (operating system) indispensable for the operation of the CPU, a basic control program 241 such as a communication control program and a movement program, a startup program load module 242, and the program data update of the present invention. Program data rewriting operation program 243, task modules (TASK1 module,..., TASKN module) 244, which are program data for various operation programs and applications, and the like are stored.

図4は、RAM25の各種データの格納構成を示す模式図である。RAM25はプログラムの実行上必要な各種データを記憶する実行用データ251や画像データ252のほか、本発明のプログラムデータ書き換え動作プログラム243の実行時に外部装置等から取り込まれるプログラムデータ253等が一時記憶される。   FIG. 4 is a schematic diagram showing a storage configuration of various data in the RAM 25. The RAM 25 temporarily stores not only execution data 251 and image data 252 for storing various data necessary for program execution, but also program data 253 fetched from an external device or the like when the program data rewriting operation program 243 of the present invention is executed. The

図5はバッテリー電圧の推移及びプログラム書き換え動作許容電圧の説明図である。バッテリー電圧は図示のようなカーブで下降するので携帯電話動作時の終端電圧はそのカーブ上のある電圧VEとして設計上設定されている。一方、プログラムの書き換えが行われた場合、動作期間t1では電圧下降の幅Vd1を差し引いても図示のようにプログラム書き換え動作時の電圧>終端電圧VEであるため安定的にズーム駆動するが、駆動期間t2では電圧下降の幅Vd2を差し引くと図示のようにプログラム書き換え動作時の電圧<終端電圧VEとなり、ズーム動作不能となる。そこで、本実施形態では、プログラム書き換えモード時の動作許可電圧VPをプログラム書き換え動作時に見込まれる降下電圧VDより十分大きく取って、終端電圧VEより大きな値(閾値)として設定し、バッテリー31の電圧が動作許可電圧VP以下の場合にはプログラム書き換えを禁止する。なお、図5で記号Vlimは充電可能限界点を示す。   FIG. 5 is an explanatory diagram of battery voltage transition and program rewrite operation allowable voltage. Since the battery voltage falls with a curve as shown in the figure, the termination voltage during the operation of the mobile phone is set as a certain voltage VE on the curve. On the other hand, when the program is rewritten, the zoom driving is stably performed because the voltage during the program rewriting operation is higher than the terminal voltage VE as shown in the figure even if the voltage drop width Vd1 is subtracted during the operation period t1. When the voltage drop width Vd2 is subtracted during the period t2, the voltage during the program rewrite operation <the termination voltage VE as shown in the figure, and the zoom operation becomes impossible. Therefore, in the present embodiment, the operation permission voltage VP in the program rewrite mode is set to a value (threshold value) larger than the terminal voltage VE by setting the operation permission voltage VP sufficiently higher than the drop voltage VD expected in the program rewrite operation. When the operation permission voltage VP or less, program rewriting is prohibited. In FIG. 5, symbol Vlim indicates a chargeable limit point.

図6は携帯電話へのプログラムデータのダウンロード方法の幾つかの例を示す図であり、図6(a)は通信ネットワーク51及び無線通信局52を介して外部装置(例えば、携帯電話通信運営会社等のサーバ50)から無線で携帯電話1にプログラムデータを取り込む例である。通信ネットワーク51及び無線通信局52は無線通信ネットワークを構成する。図6(b)はパソコン55等の外部装置からUSBケーブル56を介して携帯電話1にプログラムデータを取り込む例である。なお、この際、USBケーブル56を介して電源を得るようにしてもよい。また、図6(c)は外部装置から無線通信により携帯電話1にプログラムデータを取り込み、電源はACアダプタ57を介して得る例を示す。   FIG. 6 is a diagram showing some examples of a method for downloading program data to a mobile phone. FIG. 6A shows an external device (for example, a mobile phone communication management company) via a communication network 51 and a wireless communication station 52. In this example, program data is taken into the mobile phone 1 wirelessly from a server 50). The communication network 51 and the wireless communication station 52 constitute a wireless communication network. FIG. 6B shows an example in which program data is taken into the mobile phone 1 from the external device such as the personal computer 55 via the USB cable 56. At this time, power may be obtained via the USB cable 56. FIG. 6C shows an example in which program data is taken into the mobile phone 1 by wireless communication from an external device, and power is obtained via the AC adapter 57.

図7は、携帯電話に対するプログラムデータの書き換え動作時の制御部の制御動作例を示すフローチャートであり、制御部18はフラッシュROM24に格納されているプログラムデータ書き換え動作プログラム243に従って動作する。本実施形態はプログラムの書き換えの可否を電圧検出部32によって検出されるバッテリー31の電圧値によって決定する。以下、携帯電話1はプログラム書き換えモードを備えており、ユーザの選択操作によりプログラムモード(プログラム書き換え動作プログラム243の起動)に移行する。   FIG. 7 is a flowchart showing an example of control operation of the control unit during rewriting operation of program data for the mobile phone. The control unit 18 operates according to the program data rewriting operation program 243 stored in the flash ROM 24. In the present embodiment, whether or not the program can be rewritten is determined by the voltage value of the battery 31 detected by the voltage detection unit 32. Hereinafter, the mobile phone 1 has a program rewrite mode, and shifts to a program mode (start of the program rewrite operation program 243) by a user's selection operation.

携帯電話1でプログラム書き換えモードが選択されると(ステップS1)、制御部18は無線通信ネットワーク経由で外部装置50から受信したプログラムデータ(図6(a))又は無線経由で外部装置から受信したプログラムデータ(図6(b))をRAM25に書込み(ステップS2)、書き換え指示があったか否かを調べ、書き換え指示があった場合はステップS4に進み、所定時間経過しても書き換え指示がないか取消し指示があった場合はプログラム書き換えモードを終了させる。なお書き換え指示はキー入力部8の機能キーの操作等によって行うことができ、制御部18は機能キーの操作によりキー入力部から受け取る状態信号を基に書き換え指示の有無を判定できる(ステップS3)。   When the program rewriting mode is selected on the mobile phone 1 (step S1), the control unit 18 receives program data (FIG. 6A) received from the external device 50 via the wireless communication network or received from the external device via wireless. Program data (FIG. 6B) is written to the RAM 25 (step S2), and it is checked whether or not there is a rewrite instruction. If there is a rewrite instruction, the process proceeds to step S4. When there is a cancel instruction, the program rewrite mode is terminated. The rewriting instruction can be performed by operating a function key of the key input unit 8, and the control unit 18 can determine the presence / absence of a rewriting instruction based on a status signal received from the key input unit by operating the function key (step S3). .

書き換え指示があると、制御部18は表示部6やサブ表示部10の液晶画面表示電源をオフにしたり、バックライトランプを消灯する他、プログラムデータ書き換えに必要な電力以外の電力の使用を極力削減する使用電力削減処理を実行した後(ステップS4)、電圧検出部32によって検出され制御部18に送られるバッテリー31の電圧値と予め設定されているプログラム書き換え動作許容電圧VP(図5)を比較し、バッテリー31の電圧値がプログラム書き換え動作許容電圧VP以上の場合はステップS6に進み、そうでない場合はステップS8に進む(ステップS5)。   When there is a rewrite instruction, the control unit 18 turns off the power of the liquid crystal screen display of the display unit 6 and the sub display unit 10, turns off the backlight lamp, and uses power other than that necessary for rewriting program data as much as possible. After executing the power consumption reduction process to be reduced (step S4), the voltage value of the battery 31 detected by the voltage detection unit 32 and sent to the control unit 18 and the preset program rewrite operation allowable voltage VP (FIG. 5) are obtained. In comparison, if the voltage value of the battery 31 is equal to or higher than the program rewrite operation allowable voltage VP, the process proceeds to step S6, and if not, the process proceeds to step S8 (step S5).

バッテリー31の電圧値がプログラム書き換え動作許容電圧VP以上の場合は、制御部18は書き換え実行があったか否かを調べ、書き換え実行指示があった場合はステップS7に進み、所定時間経過しても書き換え実行指示がないか取消し指示があった場合はRAM25に記憶したプログラムデータを消去してプログラム書き換えモードを終了させる。なお書き換え実行指示はキー入力部8の機能キーの操作等によって行うことができ、制御部18は機能キーの操作によりキー入力部から受け取る状態信号を基に書き換え実行指示の有無を判定できる(ステップS6)。   If the voltage value of the battery 31 is equal to or higher than the program rewrite operation allowable voltage VP, the control unit 18 checks whether or not rewrite has been performed. If there is a rewrite execution instruction, the process proceeds to step S7. If there is no execution instruction or a cancellation instruction, the program data stored in the RAM 25 is erased and the program rewriting mode is terminated. The rewrite execution instruction can be performed by operating a function key of the key input unit 8 or the like, and the control unit 18 can determine the presence or absence of a rewrite execution instruction based on a status signal received from the key input unit by operating the function key (step S6).

書き換え実行指示があった場合は、制御部18は上記ステップS2でRAM25に記憶したプログラムデータをフラッシュROM24に書込む。なお、この際、プログラムデータと同一プログラム名のプログラム(タスクモジュール)がフラッシュROM24に格納されている場合はプログラムの更新処理(フラッシュROM24に格納されているプログラムを消去し、RAM25から読み出したプログラムデータを書込む処理)を行い、プログラムデータと同一プログラム名のプログラムがフラッシュROM24に格納されていない場合はプログラムの追加処理(追加書き込み処理)を行なう。また、プログラムデータが削除コマンドと削除するファイル名からなる場合は当該プログラムの削除処理を行い、全てのプログラムデータの処理が終わるとプログラムデータ書き換えモードを終了する(ステップS7)。   If there is a rewrite execution instruction, the control unit 18 writes the program data stored in the RAM 25 in step S2 into the flash ROM 24. At this time, if a program (task module) having the same program name as the program data is stored in the flash ROM 24, the program update process (the program data read from the RAM 25 by erasing the program stored in the flash ROM 24) If a program having the same program name as the program data is not stored in the flash ROM 24, a program addition process (additional writing process) is performed. If the program data consists of a delete command and a file name to be deleted, the program is deleted, and when all the program data has been processed, the program data rewrite mode is ended (step S7).

また、バッテリー31の電圧値がプログラム書き換え動作許容電圧VP以上でない場合は、制御部18はRAM25に記憶したプログラムデータを消去してプログラム書き換え動作を禁止すると共に(ステップS8)、上記ステップS4で行った使用電力削減処理を解除(例えば、表示部6やサブ表示部10の表示電源をオンにしたり、バックライトランプを点灯)してから、プログラムデータ書込み禁止を意味するメッセージ(例えば、「バッテリー容量不足によりプログラムの書き換えはできません」)を表示してプログラムデータ書き換えモードを終了する(ステップS9)。   When the voltage value of the battery 31 is not equal to or higher than the program rewrite operation allowable voltage VP, the control unit 18 erases the program data stored in the RAM 25 and prohibits the program rewrite operation (step S8). After canceling the power consumption reduction process (for example, turning on the display power of the display unit 6 or the sub display unit 10 or turning on the backlight lamp), a message (for example, “battery capacity” The program cannot be rewritten due to the shortage ")" is displayed and the program data rewriting mode is terminated (step S9).

上記図7のフローチャートに基づく動作により、外部からプログラムデータを一旦内部メモリ(RAM25)に書込んだ後、通常の動作よりも厳密なバッテリーチェックによって電池電圧を確認してからプログラムデータの書き換えを行うので、プログラムデータの書き換え中に電源が落ちて動作不能になったり、場合によっては再起動不能になるような事態の発生を防止できる。   After the program data is once written from the outside to the internal memory (RAM 25) by the operation based on the flowchart of FIG. 7, the program data is rewritten after the battery voltage is confirmed by a battery check that is stricter than the normal operation. Therefore, it is possible to prevent the occurrence of a situation in which the power is turned off during the rewriting of the program data and the operation becomes impossible or the restart becomes impossible in some cases.

(実施形態2)
図8は、携帯電話1に対するプログラムデータの書き換え動作時の制御部の制御動作例を示すフローチャートであり、制御部18はフラッシュROM24に格納されているプログラムデータ書き換え動作プログラム243に従って動作する。本実施形態はプログラムの書き換えをUSB接続による外部電源供給時にのみ行うようにした例である。以下、携帯電話1はプログラム書き換えモードを備えており、ユーザの選択操作によりプログラムモードに移行する。
(Embodiment 2)
FIG. 8 is a flowchart showing an example of the control operation of the control unit at the time of rewriting the program data for the mobile phone 1, and the control unit 18 operates according to the program data rewrite operation program 243 stored in the flash ROM 24. In this embodiment, the program is rewritten only when external power is supplied through USB connection. Hereinafter, the mobile phone 1 has a program rewrite mode, and shifts to the program mode by a user's selection operation.

図8(a)で、携帯電話1でプログラム書き換えモードが選択されると(ステップT1)、書き換え指示があったか否かを調べ、書き換え指示があった場合はステップT3に進み、所定時間経過しても書き換え指示がないか取消し指示があった場合はプログラム書き換えモードを終了させる(ステップT2)。   In FIG. 8A, when the program rewrite mode is selected on the mobile phone 1 (step T1), it is checked whether or not there is a rewrite instruction. If there is a rewrite instruction, the process proceeds to step T3, and a predetermined time has elapsed. If there is no rewrite instruction or cancel instruction, the program rewrite mode is terminated (step T2).

書き換え指示があると、制御部18は表示部6の液晶画面表示電源オフ或いはバックライトランプを消灯し、LEDの点灯点滅表示或いはサブ表示部10の液晶画面表示のみとし、できるだけ使用電力を削減する使用電力節約処理を実行した後(ステップT3)、USB接続により外部装置55から受信したプログラムデータ(図6(b))をRAM25に書込み(ステップT4)、USB接続により外部電源が供給されているか否かを調べ、USB接続により外部電源が供給されている場合はステップT6に進み、そうでない場合はステップT9に進む(ステップT5)。   When there is a rewriting instruction, the control unit 18 turns off the liquid crystal screen display power of the display unit 6 or turns off the backlight lamp, and only turns on / off the LED or displays the liquid crystal screen on the sub display unit 10 to reduce the power consumption as much as possible. After executing the power saving process (step T3), the program data (FIG. 6B) received from the external device 55 by USB connection is written to the RAM 25 (step T4), and external power is supplied by USB connection. Whether or not the external power supply is supplied through the USB connection proceeds to step T6, otherwise proceeds to step T9 (step T5).

USB接続により外部電源が供給されている場合は、制御部18は、書き換え実行指示入力を促すメッセージデータを表示部6に送ってその旨のメッセージを表示させ(ステップT6)、書き換え実行があったか否かを調べ、書き換え実行指示があった場合はステップT8に進み、所定時間経過しても書き換え実行指示がないか取消し指示があった場合はRAM25に記憶したプログラムデータを消去してプログラム書き換えモードを終了させる(ステップT7)。   When the external power is supplied through the USB connection, the control unit 18 sends message data for prompting the input of the rewrite execution instruction to the display unit 6 to display a message to that effect (step T6). If there is a rewrite execution instruction, the process proceeds to step T8, and if there is a rewrite execution instruction or cancel instruction even after a predetermined time has elapsed, the program data stored in the RAM 25 is erased and the program rewrite mode is set. End (step T7).

書き換え実行指示があった場合は、制御部18は、USB接続による外部装置55からの供給電源により、上記ステップT4でRAM25に記憶したプログラムデータをフラッシュROM24に書込む。なお、この際、プログラムデータと同一プログラム名のプログラム(タスクモジュール)がフラッシュROM24に格納されている場合はプログラムの更新処理(フラッシュROM24に格納されているプログラムを消去し、RAM25から読み出したプログラムデータを書込む処理)を行い、プログラムデータと同一プログラム名のプログラムがフラッシュROM24に格納されていない場合はプログラムの追加処理(追加書き込み処理)を行なう。また、プログラムデータが削除コマンドと削除するファイル名からなる場合は当該プログラムの削除処理を行い、全てのプログラムデータの処理が終わるとプログラムデータ書き換えモードを終了する(ステップT8)。   If there is a rewrite execution instruction, the control unit 18 writes the program data stored in the RAM 25 in step T4 to the flash ROM 24 by the power supplied from the external device 55 via USB connection. At this time, if a program (task module) having the same program name as the program data is stored in the flash ROM 24, the program update process (the program data read from the RAM 25 by erasing the program stored in the flash ROM 24) If a program having the same program name as the program data is not stored in the flash ROM 24, a program addition process (additional writing process) is performed. If the program data consists of a delete command and a file name to be deleted, the program is deleted, and when all the program data has been processed, the program data rewrite mode is ended (step T8).

また、USB接続により外部電源が供給されていない場合は、制御部18はRAM25に記憶したプログラムデータを消去すると共に上記ステップT3で行った使用電力節約処理を解除してから、プログラムデータ書込み不能を意味するメッセージ(例えば、「電源がUSB接続されていないのでプログラムの書き換えはできません」)を表示してプログラムデータ書き換えモードを終了する(ステップT9)。   If the external power is not supplied due to the USB connection, the control unit 18 erases the program data stored in the RAM 25 and cancels the use power saving process performed in step T3 before the program data cannot be written. A meaning message (for example, “the program cannot be rewritten because the power source is not connected via USB”) is displayed, and the program data rewriting mode is terminated (step T9).

上記図8(a)のフローチャートに基づく動作により、USB接続による外部からの電源供給によりプログラムデータの書き換えを行うため、外部装置が例えばデスクトップパソコンなどであれば、電源を気にせずに安全にプログラムデータの書き換えを行うことができる。   Since the program data is rewritten by the external power supply through the USB connection by the operation based on the flowchart of FIG. 8A, if the external device is, for example, a desktop personal computer, the program can be safely programmed without worrying about the power supply. Data can be rewritten.

なお、上記ステップT5とT6の間に、図8(b)に示すように、携帯情報端末が電源電池からの電力により駆動しているか否かを調べるステップT5−1を設け、「電源電池からの電力により駆動している場合はステップT9に進み、そうでない場合にステップT6に進む」ように構成してもよい。なお、携帯電話1が電源電池で駆動しているか否かは、例えば、電圧検出部32で検出するバッテリー31の電圧変動が所定値以上か否かで判定できる。   In addition, as shown in FIG. 8B, a step T5-1 for checking whether or not the portable information terminal is driven by the power from the power source battery is provided between the steps T5 and T6. It may be configured such that the process proceeds to step T9 when driven by the electric power of step S9, and proceeds to step T6 otherwise. Whether or not the mobile phone 1 is driven by a power supply battery can be determined, for example, by determining whether or not the voltage fluctuation of the battery 31 detected by the voltage detection unit 32 is equal to or greater than a predetermined value.

このようにすれば、USB接続による外部電源の供給があっても、この携帯情報機器が電源電池で駆動している場合はプログラムの書き換えを行わないので、プログラム書き換え中に電源電圧の低下によりプログラム書き換えができなくなるといった事態が生じない。   In this way, even if external power is supplied through USB connection, if the portable information device is driven by a power battery, the program is not rewritten. There will be no situation where rewriting becomes impossible.

(実施形態3)
図9は、携帯電話に対するプログラムデータの書き換え動作時の制御部の制御動作例を示すフローチャートであり、制御部18はフラッシュROM24に格納されているプログラムデータ書き換え動作プログラム243に従って動作する。本実施形態はプログラムの書き換えをACアダプタを介した外部電源供給時にのみ行うようにした例である。以下、携帯電話1はプログラム書き換えモードを備えており、ユーザの選択操作によりプログラムモードに移行する。
(Embodiment 3)
FIG. 9 is a flowchart showing an example of the control operation of the control unit at the time of rewriting the program data for the mobile phone. The control unit 18 operates according to the program data rewriting operation program 243 stored in the flash ROM 24. In this embodiment, the program is rewritten only when external power is supplied via an AC adapter. Hereinafter, the mobile phone 1 has a program rewrite mode, and shifts to the program mode by a user's selection operation.

図9(a)で、携帯電話1でプログラム書き換えモードが選択されると(ステップU1)、制御部18は無線通信ネットワーク経由で外部装置50から受信したプログラムデータ(図6(a))又はUSB接続経由で外部装置55から受信したプログラムデータ(図6(b))をRAM25に書込み(ステップU2)、書き換え指示があったか否かを調べ、書き換え指示があった場合はステップU4に進み、所定時間経過しても書き換え指示がないか取消し指示があった場合はプログラム書き換えモードを終了させる(ステップU3)。   In FIG. 9A, when the program rewriting mode is selected on the mobile phone 1 (step U1), the control unit 18 receives the program data (FIG. 6A) or USB received from the external device 50 via the wireless communication network. The program data (FIG. 6B) received from the external device 55 via the connection is written into the RAM 25 (step U2), and it is checked whether or not there is a rewrite instruction. If there is a rewrite instruction, the process proceeds to step U4 for a predetermined time. If there is no rewrite instruction even after the elapse, or if there is a cancel instruction, the program rewrite mode is terminated (step U3).

書き換え指示があると、制御部18はACアダプタを介して外部電源が供給されているか否かを調べ、ACアダプタを介して外部電源が供給されている場合はステップU5に進み、そうでない場合はステップU8に進む(ステップU4)。   When there is a rewrite instruction, the control unit 18 checks whether or not external power is supplied via the AC adapter. If the external power is supplied via the AC adapter, the control unit 18 proceeds to step U5. Proceed to step U8 (step U4).

ACアダプタを介して外部電源が供給されている場合は、制御部18は、書き換え実行指示入力を促すメッセージデータを表示部6に送ってその旨のメッセージを表示させ(ステップU5)、書き換え実行があったか否かを調べ、書き換え実行指示があった場合はステップU7に進み、所定時間経過しても書き換え実行指示がないか取消し指示があった場合はRAM25に記憶したプログラムデータを消去してプログラム書き換えモードを終了させる(ステップU6)。   When the external power supply is supplied via the AC adapter, the control unit 18 sends message data for prompting rewrite execution instruction input to the display unit 6 to display a message to that effect (step U5), and rewrite execution is performed. If there is a rewrite execution instruction, the process proceeds to step U7, and if there is a rewrite execution instruction or cancel instruction even after a predetermined time has elapsed, the program data stored in the RAM 25 is erased and the program rewrite is performed. The mode is terminated (step U6).

書き換え実行指示があった場合は、制御部18は、USB接続による外部装置55からの供給電源により、上記ステップU2でRAM25に記憶したプログラムデータをフラッシュROM24に書込む。なお、この際、プログラムデータと同一プログラム名のプログラム(タスクモジュール)がフラッシュROM24に格納されている場合はプログラムの更新処理(フラッシュROM24に格納されているプログラムを消去し、RAM25から読み出したプログラムデータを書込む処理)を行い、プログラムデータと同一プログラム名のプログラムがフラッシュROM24に格納されていない場合はプログラムの追加処理(追加書き込み処理)を行なう。また、プログラムデータが削除コマンドと削除するファイル名からなる場合は当該プログラムの削除処理を行い、全てのプログラムデータの処理が終わるとプログラムデータ書き換えモードを終了する(ステップU7)。   When there is a rewrite execution instruction, the control unit 18 writes the program data stored in the RAM 25 in the above step U2 into the flash ROM 24 by the power supplied from the external device 55 by USB connection. At this time, if a program (task module) having the same program name as the program data is stored in the flash ROM 24, the program update process (the program data read from the RAM 25 by erasing the program stored in the flash ROM 24) If a program having the same program name as the program data is not stored in the flash ROM 24, a program addition process (additional writing process) is performed. If the program data consists of a delete command and the file name to be deleted, the program is deleted, and when all the program data has been processed, the program data rewrite mode is ended (step U7).

また、USB接続により外部電源が供給されていない場合は、制御部18はRAM25に記憶したプログラムデータを消去すると共にプログラムデータ書込み不能を意味するメッセージ(例えば、「電源がACアダプタに接続されていないのでプログラムの書き換えはできません」)を表示してプログラムデータ書き換えモードを終了する(ステップU8)。   When the external power is not supplied through the USB connection, the control unit 18 erases the program data stored in the RAM 25 and indicates a message indicating that the program data cannot be written (for example, “the power is not connected to the AC adapter”). Therefore, the program cannot be rewritten ") to display the program data rewrite mode (step U8).

上記図9(a)のフローチャートに基づく動作により、ACアダプタからの電源供給によりプログラムデータの書き換えを行うため、電源を気にせずに安全にプログラムデータの書き換えを行うことができる。   By the operation based on the flowchart of FIG. 9A, the program data is rewritten by supplying power from the AC adapter, so that the program data can be safely rewritten without worrying about the power supply.

なお、上記ステップU4とU5の間に、図9(b)に示すように、携帯情報端末が電源電池からの電力により駆動しているか否かを調べるステップU4−1を設け、「携帯電話1がバッテリー31の供給電力により駆動している場合はステップU8に進み、そうでない場合にステップU5に進む」ように構成してもよい。なお、携帯電話1が電源電池で駆動しているか否かは、例えば、電圧検出部32で検出するバッテリー31の電圧変動が所定値以上か否かで判定できる。   In addition, as shown in FIG. 9B, a step U4-1 for checking whether the portable information terminal is driven by the power from the power source battery is provided between the steps U4 and U5. May be configured to proceed to step U8 when driven by the power supplied from the battery 31, and to step U5 otherwise. Whether or not the mobile phone 1 is driven by a power supply battery can be determined, for example, by determining whether or not the voltage fluctuation of the battery 31 detected by the voltage detection unit 32 is equal to or greater than a predetermined value.

このようにすれば、ACアダプタからの電源供給があっても、携帯電話1が電源電池で駆動している場合はプログラムの書き換えを行わないので、プログラム書き換え中に電源電圧の低下によりプログラム書き換えができなくなるといった事態が生じない。   In this way, even if power is supplied from the AC adapter, if the mobile phone 1 is driven by the power supply battery, the program is not rewritten. The situation that it becomes impossible to occur does not occur.

また、上記各実施形態における実施例の説明ではカメラ付き携帯電話を例として説明したが、本発明のプログラムの書き換え方法は、カメラ付きでない携帯電話にもそのまま適用できる。
<他の情報端末への応用例>
また、上記各実施形態では携帯電話を例として説明したが、本発明のプログラムの書き換え方法はUSB接続部やACアダプタからの外部電源を取り込むAC電源入力端子を備えたデジタルカメラ等の撮像装置にもそのまま応用できる。この場合、撮像装置はプログラム書き換えモードを備えるように構成するものとする。
In the description of the examples in the above embodiments, the camera-equipped mobile phone has been described as an example. However, the program rewriting method of the present invention can be applied to a mobile phone without a camera as it is.
<Application examples to other information terminals>
In each of the above embodiments, a mobile phone has been described as an example. However, the program rewriting method of the present invention is applied to an imaging apparatus such as a digital camera provided with an AC power input terminal for taking in an external power from a USB connection unit or an AC adapter. Can be applied as is. In this case, the imaging apparatus is configured to have a program rewrite mode.

なお、プログラムを格納する不揮発性のメモリとして、フラッシュROMの代わりに画像データ等を保存記録するためのフラッシュメモリを備えた撮像装置ではフラッシュメモリの先頭領域をプログラム格納領域として割り当て、図3に示したフラッシュROM24のプログラム格納構成に示すようにプログラムを格納するようにしてもよい。このようにした場合は、プログラム書き換えモードで、フラッシュメモリに格納されているプログラムは、無線通信ネットワーク経由や、USB接続経由、或いはACアダプタ経由で外部装置から受信し、内部メモリ(RAM)に書込まれたプログラムデータで書き換えられる。なお、フラッシュメモリは内蔵されたものでもよく、交換可能なメモリカードとして構成され、撮像装置に装着されているのでもよい。   Note that, in an imaging apparatus provided with a flash memory for storing and recording image data or the like as a non-volatile memory for storing a program in place of the flash ROM, the head area of the flash memory is assigned as a program storage area, as shown in FIG. The program may be stored as shown in the program storage configuration of the flash ROM 24. In this case, in the program rewrite mode, the program stored in the flash memory is received from the external device via the wireless communication network, via the USB connection, or via the AC adapter, and written to the internal memory (RAM). It is rewritten with the embedded program data. Note that the flash memory may be built-in, configured as a replaceable memory card, and attached to the imaging device.

また、上記応用例の説明ではデジタルカメラを撮像装置の例として説明したが、撮像表示装置という語はデジタルカメラに限定されない。例えば、電子カメラやビデオカメラなども含む。また、携帯情報機器という語は携帯電話や撮像装置に限定されない。例えば、PDA(Personal Digital Assistance)や、無線通信モジュールを備えた携帯パソコンや、無線通信モジュールを備えていない携帯パソコンや、デジタルオーディオ等、電池で駆動される情報機器を含む。   In the description of the application example, the digital camera is described as an example of the imaging device, but the term imaging display device is not limited to the digital camera. For example, an electronic camera and a video camera are also included. The term portable information device is not limited to a mobile phone or an imaging device. For example, it includes battery-powered information devices such as PDAs (Personal Digital Assistance), portable personal computers equipped with wireless communication modules, portable personal computers not equipped with wireless communication modules, and digital audio.

以上、本発明の一実施例について説明したが本発明は上記実施例に限定されるものではなく、種々の変形実施が可能であることはいうまでもない。   As mentioned above, although one Example of this invention was described, this invention is not limited to the said Example, It cannot be overemphasized that various deformation | transformation implementation is possible.

本発明の実施の形態を携帯電話に適用した場合の一実施例を示す図である。It is a figure which shows one Example at the time of applying embodiment of this invention to a mobile telephone. 本実施形態による携帯電話の構成を示すブロック図である。It is a block diagram which shows the structure of the mobile telephone by this embodiment. フラッシュROMのプログラム格納構成を示す模式図である。It is a schematic diagram which shows the program storage structure of flash ROM. RAMの各種データの格納構成を示す模式図である。It is a schematic diagram which shows the storage structure of the various data of RAM. バッテリー電圧の推移及びプログラム書き換え動作許容電圧の説明図である。It is explanatory drawing of transition of a battery voltage, and a program rewrite operation allowable voltage. 携帯電話へのプログラムデータのダウンロード方法の幾つかの例を示す図である。It is a figure which shows some examples of the download method of the program data to a mobile telephone. 実施形態1における携帯電話に対するプログラムデータの書き換え動作時の制御部の制御動作例を示すフローチャートである。3 is a flowchart illustrating an example of a control operation of a control unit during a program data rewriting operation on a mobile phone according to the first embodiment. 実施形態2における携帯電話に対するプログラムデータの書き換え動作時の制御部の制御動作例を示すフローチャートである。6 is a flowchart illustrating an example of a control operation of a control unit during a program data rewriting operation on a mobile phone according to a second embodiment. 実施形態3における携帯電話に対するプログラムデータの書き換え動作時の制御部の制御動作例を示すフローチャートである。10 is a flowchart illustrating an example of a control operation of a control unit during rewriting operation of program data for a mobile phone according to a third embodiment.

符号の説明Explanation of symbols

1 携帯電話(携帯情報機器)
4 アンテナ
6 表示部
8 キー入力部(入力部)
10 サブ表示部
16 無線送受信部(データ受信手段、データ受信部、無線データ受信手段)
17 無線信号処理部
18 制御部(記憶制御手段、プログラム書き換え指示検出手段)
24 フラッシュROM(プログラム格納メモリ)
25 RAM(一時記憶メモリ)
31 バッテリー(電源電池)
32 電圧検出部(電圧検出手段)
33 USB接続部
34 外部電源入力端子
51 通信ネットワーク(無線通信網)
52 無線通信局(無線通信網)
1 Mobile phone (mobile information device)
4 Antenna 6 Display unit 8 Key input unit (input unit)
10 Sub display section 16 Wireless transmission / reception section (data receiving means, data receiving section, wireless data receiving means)
17 Radio signal processing unit 18 Control unit (storage control means, program rewrite instruction detection means)
24 Flash ROM (program storage memory)
25 RAM (temporary storage memory)
31 Battery (power battery)
32 Voltage detector (voltage detection means)
33 USB connection 34 External power input terminal 51 Communication network (wireless communication network)
52 Wireless communication station (wireless communication network)

Claims (20)

入力部と、表示部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器であって、
外部装置から送信されるプログラムデータを受信するデータ受信手段と、
電源電池の電圧を検出する電圧検出手段と、
プログラム書き換え指示を検出する書き換え指示検出手段と、
この書き換え指示検出手段によりプログラム書き換え指示が検出されたとき、前記電圧検出手段で検出された前記電源電池の電圧値とプログラム書き換え用にこの携帯情報機器の終端電圧より高い値に設定された閾値とを比較する比較手段と、
この比較手段による比較の結果、前記電源電池の電圧が前記閾値以上でない場合は、前記プログラム格納メモリに格納されているプログラムを前記受信したプログラムデータで書き換えることを禁止するプログラム書き換え禁止手段と、
を設けたことを特徴とする携帯情報機器。
A portable information device comprising an input unit, a display unit, a program storage memory storing a program, a temporary storage memory, and a control unit,
Data receiving means for receiving program data transmitted from an external device;
Voltage detection means for detecting the voltage of the power battery;
Rewrite instruction detecting means for detecting a program rewrite instruction;
When a program rewrite instruction is detected by the rewrite instruction detection means, the voltage value of the power supply battery detected by the voltage detection means and a threshold value set higher than the termination voltage of the portable information device for program rewriting A comparison means for comparing
As a result of the comparison by the comparison means, if the voltage of the power supply battery is not equal to or higher than the threshold value, a program rewrite prohibiting means for prohibiting rewriting the program stored in the program storage memory with the received program data;
A portable information device characterized by comprising
前記比較手段による電源電池の電圧値と前記閾値との比較は、前記データ受信部で受信したプログラムデータを前記一部記憶メモリに記憶した後、前記書き換え指示検出手段によりプログラム書き換え指示が検出されたときに行うことを特徴とする請求項1記載の携帯情報機器。   The comparison between the voltage value of the power battery and the threshold value by the comparing means is that the program rewriting instruction is detected by the rewriting instruction detecting means after the program data received by the data receiving unit is stored in the partial storage memory. The portable information device according to claim 1, which is sometimes performed. 入力部と、表示部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器であって、
外部装置から送信されるプログラムデータを受信するデータ受信手段と、
電源電池の電圧を検出する電圧検出手段と、
前記データ受信部で受信したプログラムデータを前記一時記憶メモリに記憶する記憶制御手段と、
プログラム書き換え指示を検出する書き換え指示検出手段と、
この書き換え指示検出手段によりプログラム書き換え指示が検出されたとき、前記電圧検出部で検出された電源電池の電圧値に基づいて、前記プログラム格納メモリに格納されているプログラムを前記内部メモリに記憶されたプログラムデータで書き換えるか否かを決定するプログラム書き換え可否決定手段と、
を備えたことを特徴とする携帯情報機器。
A portable information device comprising an input unit, a display unit, a program storage memory storing a program, a temporary storage memory, and a control unit,
Data receiving means for receiving program data transmitted from an external device;
Voltage detection means for detecting the voltage of the power battery;
Storage control means for storing the program data received by the data receiving unit in the temporary storage memory;
Rewrite instruction detecting means for detecting a program rewrite instruction;
When the program rewrite instruction is detected by the rewrite instruction detection means, the program stored in the program storage memory is stored in the internal memory based on the voltage value of the power supply battery detected by the voltage detection unit. A program rewritability determination means for determining whether to rewrite with program data;
A portable information device characterized by comprising:
前記プログラム可否決定手段は、前記電圧検出部で検出された電源電池の電圧値とプログラム書き換え用にこの携帯情報機器の終端電圧より高い値に設定された閾値とを比較する手段と、電池電圧が該閾値以上の場合のみにプログラム書き換えを可能とし、電池電圧が該閾値未満の場合はプログラム書き換えを禁止する手段とを含むことを特徴とする請求項3記載の携帯情報機器。   The program enable / disable determining means compares the voltage value of the power supply battery detected by the voltage detection section with a threshold value set to a value higher than the termination voltage of the portable information device for program rewriting, and the battery voltage is 4. The portable information device according to claim 3, further comprising means for enabling program rewriting only when the threshold is equal to or higher than the threshold, and prohibiting program rewriting when the battery voltage is lower than the threshold. 更に、この携帯情報機器の使用電力を可能な限り削減する使用電力削減手段を備え、
前記プログラム書き換え指示はこの使用電力削減手段による使用電力の削減が行われた後に可能であることを特徴とする請求項3記載の携帯情報機器。
Furthermore, it has a power consumption reduction means for reducing the power consumption of this portable information device as much as possible,
4. The portable information device according to claim 3, wherein the program rewriting instruction can be issued after the power consumption is reduced by the power consumption reduction means.
入力部と、表示部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、外部装置から電源供給型インターフェース接続により送信されるプログラムデータを受信するデータ受信手段と、制御部とを備えた携帯情報機器であって、
前記データ受信手段で受信したプログラムデータを内部メモリに一時記憶する記憶制御手段と、
プログラム書き換え指示を検出する書き換え指示検出手段と、
この書き換え指示検出手段によりプログラム書き換え指示が検出された後、前記電源供給型インターフェース接続による外部電源供給の有無を検出し、電源供給型インターフェース接続による外部電源供給がない場合には前記プログラム格納メモリに格納されているプログラムを前記内部メモリに記憶されたプログラムデータで書き換えることを禁止するプログラム書き換え禁止手段と、
を備えたことを特徴とする携帯情報機器。
An input unit, a display unit, a program storage memory storing a program, a temporary storage memory, data receiving means for receiving program data transmitted from an external device through a power supply interface connection, and a control unit A portable information device,
Storage control means for temporarily storing program data received by the data receiving means in an internal memory;
Rewrite instruction detecting means for detecting a program rewrite instruction;
After the rewrite instruction detecting means detects the program rewrite instruction, it detects the presence or absence of external power supply through the power supply interface connection, and if there is no external power supply through the power supply interface connection, the program storage memory Program rewrite prohibiting means for prohibiting rewriting of a stored program with program data stored in the internal memory;
A portable information device characterized by comprising:
更に、前記プログラム書き換え指示手段による書き換え指示があったときこの携帯情報機器の使用電力を節減する使用電力節減手段を備え、
前記記憶制御手段は、この使用電力節減手段による使用電力の節減が行われた後にプログラムデータを内部メモリに一時記憶することを特徴とする請求項6記載の携帯情報機器。
In addition, when there is a rewrite instruction by the program rewrite instruction means, comprising a power consumption saving means for reducing the power consumption of this portable information device,
7. The portable information device according to claim 6, wherein the storage control means temporarily stores the program data in the internal memory after the power consumption is reduced by the power consumption saving means.
入力部と、表示部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、外部装置からプログラムデータを受信するデータ受信部と、制御部とを備えた携帯情報機器であって、
前記データ受信部で受信したプログラムデータを内部メモリに一時記憶する記憶制御手段と、
プログラム書き換え指示を検出する書き換え指示検出手段と、
この書き換え指示検出手段によりプログラム書き換え指示が検出された後、外部電源供給の有無を検出し、外部電源供給がない場合には、前記プログラム格納メモリに格納されているプログラムを前記内部メモリに記憶されたプログラムデータで書き換えることを禁止するプログラム書き換え禁止手段と、
を備えたことを特徴とする携帯情報機器。
A portable information device comprising an input unit, a display unit, a program storage memory storing a program, a temporary storage memory, a data receiving unit for receiving program data from an external device, and a control unit,
Storage control means for temporarily storing program data received by the data receiving unit in an internal memory;
Rewrite instruction detecting means for detecting a program rewrite instruction;
After the program rewrite instruction is detected by the rewrite instruction detecting means, the presence / absence of external power supply is detected. If there is no external power supply, the program stored in the program storage memory is stored in the internal memory. Program rewrite prohibition means for prohibiting rewriting with the program data,
A portable information device characterized by comprising:
更に、電源電池の電圧を検出する電圧検出手段を備え、前記プログラム書き換え禁止手段は、前記外部電源供給があっても前記電圧検出手段からの検出値の変動幅が所定値より大きい場合は前記プログラムを前記プログラムデータで書き換えることを禁止する手段を含むことを特徴とする請求項6又は8記載の携帯情報機器。   Furthermore, it comprises voltage detection means for detecting the voltage of the power supply battery, and the program rewrite prohibiting means is configured to detect the program if the fluctuation range of the detection value from the voltage detection means is larger than a predetermined value even when the external power supply is supplied. 9. The portable information device according to claim 6, further comprising means for prohibiting rewriting of the program information with the program data. 前記データ受信手段は、移動体無線網を介して外部装置から送信されるデータを受信する無線データ受信手段であることを特徴とする請求項1、3又は8記載の携帯情報機器。   9. The portable information device according to claim 1, wherein the data receiving means is wireless data receiving means for receiving data transmitted from an external device via a mobile wireless network. 前記データ受信手段は、USB接続により外部装置から送信されるプログラムデータを受信する手段であることを特徴とする請求項1、3又は8記載の携帯情報機器。   9. The portable information device according to claim 1, wherein the data receiving means is means for receiving program data transmitted from an external device through a USB connection. 前記携帯情報機器は無線通信手段を備えた携帯電話であることを特徴とする請求項1乃至11のいずれか1項に記載の携帯情報機器。   The portable information device according to any one of claims 1 to 11, wherein the portable information device is a cellular phone including a wireless communication unit. 前記携帯情報機器は撮像手段を備えた撮像装置であることを特徴とする請求項1乃至11のいずれか1項に記載の携帯情報機器。   The portable information device according to any one of claims 1 to 11, wherein the portable information device is an imaging device including an imaging unit. 入力部と、表示部と、外部装置からのデータを受信するデータ受信部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器におけるプログラム書き換え方法であって、
プログラムの書き換え指示を検出したとき、電源電池の電圧値とプログラム書き換え用にこの携帯情報機器の終端電圧より高い値に設定された閾値とを比較し、前記電源電池の電圧が前記閾値以上でない場合は前記プログラム格納メモリに格納されているプログラムを前記データ受信部で受信したプログラムデータで書き換えることを禁止する、ことを特徴とするプログラム書き換え方法。
A program rewriting method in a portable information device comprising an input unit, a display unit, a data receiving unit that receives data from an external device, a program storage memory that stores a program, a temporary storage memory, and a control unit. And
When a program rewrite instruction is detected, the voltage value of the power supply battery is compared with a threshold value set higher than the termination voltage of the portable information device for program rewrite, and the voltage of the power supply battery is not equal to or higher than the threshold value A program rewriting method characterized by prohibiting rewriting of a program stored in the program storage memory with program data received by the data receiving unit.
前記電源電池の電圧値と前記閾値との比較は、前記データ受信部で受信したプログラムデータを前記一時記憶メモリに記憶した後に、プログラム書き換え指示が検出されたときに行うことを特徴とする請求項14記載のプログラム書き換え方法。   The comparison between the voltage value of the power battery and the threshold value is performed when a program rewrite instruction is detected after the program data received by the data receiving unit is stored in the temporary storage memory. 14. The program rewriting method according to 14. 入力部と、表示部と、電源供給型インターフェース接続部と、外部装置から電源供給型インターフェース接続により送信されるデータを受信するデータ受信部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器におけるプログラム書き換え方法であって、
プログラム書き換え指示を検出したとき、前記電源供給型インターフェース接続による外部電源供給の有無を検出し、電源供給型インターフェース接続による外部電源供給がない場合には前記プログラム格納メモリに格納されているプログラムを前記一時記憶メモリに記憶されたプログラムデータで書き換えることを禁止することを特徴とするプログラム書き換え方法。
An input unit, a display unit, a power supply type interface connection unit, a data reception unit for receiving data transmitted from an external device through a power supply type interface connection, a program storage memory storing a program, and a temporary storage memory; A program rewriting method in a portable information device comprising a control unit,
When a program rewrite instruction is detected, the presence / absence of external power supply through the power supply interface connection is detected. If there is no external power supply through the power supply interface connection, the program stored in the program storage memory is A program rewriting method for prohibiting rewriting with program data stored in a temporary storage memory.
入力部と、表示部と、外部装置から送信されるデータを受信するデータ受信部と、外部電源入力部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器におけるプログラム書き換え方法であって、
プログラム書き換え指示を検出した後、外部電源供給の有無を検出し、外部電源供給がない場合には、前記プログラム格納メモリに格納されているプログラムを前記一時記憶メモリに記憶されたプログラムデータで書き換えることを禁止することを特徴とするプログラム書き換え方法。
A portable device including an input unit, a display unit, a data receiving unit that receives data transmitted from an external device, an external power input unit, a program storage memory that stores a program, a temporary storage memory, and a control unit A method for rewriting a program in an information device,
After detecting the program rewrite instruction, the presence / absence of external power supply is detected. If there is no external power supply, the program stored in the program storage memory is rewritten with the program data stored in the temporary storage memory. A program rewriting method characterized by prohibiting
入力部と、表示部と、外部装置からのデータを受信するデータ受信部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器において実行可能なプログラムであって、
前記データ受信部で受信したプログラムデータを一時記憶メモリに一時記憶させるプログラムステップと、プログラムの書き換え指示を検出させるプログラムステップと、プログラム書き換え指示を検出したとき電源電池の電圧値とプログラム書き換え用にこの携帯情報機器の終端電圧より高い値に設定された閾値とを比較させるプログラムステップと、前記電源電池の電圧が前記閾値以上でない場合は前記プログラム格納メモリに格納されているプログラムを前記データ受信部で受信したプログラムデータで書き換えることを禁止させるプログラムステップと、を含むことを特徴とするプログラム。
A program executable in a portable information device comprising an input unit, a display unit, a data receiving unit for receiving data from an external device, a program storage memory storing a program, a temporary storage memory, and a control unit There,
A program step for temporarily storing the program data received by the data receiving unit in a temporary storage memory, a program step for detecting a program rewrite instruction, and a voltage value of the power supply battery and a program rewrite when the program rewrite instruction is detected. A program step for comparing a threshold value set to a value higher than the termination voltage of the portable information device, and a program stored in the program storage memory when the voltage of the power supply battery is not equal to or higher than the threshold value in the data receiving unit And a program step for prohibiting rewriting with received program data.
入力部と、表示部と、電源供給型インターフェース接続部と、外部装置からUSB接続により送信されるデータを受信するデータ受信部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器において実行可能なプログラムであって、
プログラム書き換え指示を検出させるプログラムステップと、プログラム書き換え指示を検出したとき前記電源供給型インターフェース接続による外部電源供給の有無を検出させるプログラムステップと、電源供給型インターフェース接続による外部電源供給がない場合には前記プログラム格納メモリに格納されているプログラムを前記一時記憶メモリに記憶されたプログラムデータで書き換えることを禁止させるプログラムステップと、を含むことを特徴とするプログラム。
An input unit, a display unit, a power supply interface connection unit, a data reception unit that receives data transmitted from an external device through USB connection, a program storage memory that stores a program, a temporary storage memory, and a control unit A program executable on a portable information device comprising:
When there is no program step for detecting a program rewrite instruction, a program step for detecting the presence or absence of external power supply through the power supply interface connection when the program rewrite instruction is detected, and when there is no external power supply through the power supply interface connection And a program step for prohibiting rewriting of the program stored in the program storage memory with the program data stored in the temporary storage memory.
入力部と、表示部と、外部装置から送信されるデータを受信するデータ受信部と、外部電源入力部と、プログラムを格納したプログラム格納メモリと、一時記憶メモリと、制御部とを備えた携帯情報機器において実行可能なプログラムであって、
プログラム書き換え指示を検出させるプログラムステップと、プログラム書き換え指示を検出したとき外部電源供給の有無を検出させるプログラムステップと、外部電源供給がない場合には前記プログラム格納メモリに格納されているプログラムを前記一時記憶メモリに記憶されたプログラムデータで書き換えることを禁止させるプログラムステップと、を含むことを特徴とするプログラム。
A portable device including an input unit, a display unit, a data receiving unit that receives data transmitted from an external device, an external power input unit, a program storage memory that stores a program, a temporary storage memory, and a control unit A program executable on an information device,
A program step for detecting a program rewrite instruction, a program step for detecting the presence or absence of external power supply when the program rewrite instruction is detected, and a program stored in the program storage memory when there is no external power supply. And a program step for prohibiting rewriting with the program data stored in the storage memory.
JP2004094926A 2004-03-29 2004-03-29 Portable information equipment, program rewriting method, and program Pending JP2005286502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004094926A JP2005286502A (en) 2004-03-29 2004-03-29 Portable information equipment, program rewriting method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004094926A JP2005286502A (en) 2004-03-29 2004-03-29 Portable information equipment, program rewriting method, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2007069781A Division JP2007184975A (en) 2007-03-19 2007-03-19 Portable information device, reprogramming method, and program

Publications (1)

Publication Number Publication Date
JP2005286502A true JP2005286502A (en) 2005-10-13

Family

ID=35184446

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004094926A Pending JP2005286502A (en) 2004-03-29 2004-03-29 Portable information equipment, program rewriting method, and program

Country Status (1)

Country Link
JP (1) JP2005286502A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008165536A (en) * 2006-12-28 2008-07-17 Fujitsu Ltd Information processor, storage part erroneous writing protection method, and information processing system
JP2008301071A (en) * 2007-05-30 2008-12-11 Hitachi Ltd Sensor node
JP4938893B2 (en) * 2007-08-06 2012-05-23 サンディスク コーポレイション Improved write interruption mechanism for non-volatile memory
JP2015011475A (en) * 2013-06-27 2015-01-19 キヤノン株式会社 Information processing device, control method thereof, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008165536A (en) * 2006-12-28 2008-07-17 Fujitsu Ltd Information processor, storage part erroneous writing protection method, and information processing system
JP2008301071A (en) * 2007-05-30 2008-12-11 Hitachi Ltd Sensor node
JP4938893B2 (en) * 2007-08-06 2012-05-23 サンディスク コーポレイション Improved write interruption mechanism for non-volatile memory
JP2015011475A (en) * 2013-06-27 2015-01-19 キヤノン株式会社 Information processing device, control method thereof, and program

Similar Documents

Publication Publication Date Title
JP5741095B2 (en) Wireless communication apparatus and power saving control method
JP2005222171A (en) Cellular phone set
KR20210042953A (en) Security service deletion method and electronic device
JP4791162B2 (en) Portable information terminal
JP2009038790A (en) Communication apparatus
JPH10336574A (en) Digital still camera
JP4724512B2 (en) Imaging apparatus, control method, control program, and storage medium
JP2005286502A (en) Portable information equipment, program rewriting method, and program
JP2007166774A (en) Mobile electronic apparatus and method of charging its built-in battery
JP2007184975A (en) Portable information device, reprogramming method, and program
JP2006119996A (en) Battery-driven device and its nonvolatile memory updating method
JP4681937B2 (en) Imaging apparatus and imaging method
WO2006041179A1 (en) Linking operation method, and communication terminal device
JP2009284263A (en) Mobile phone, method of controlling mobile phone, control program of mobile phone, and computer readable recording medium
JP2007158604A (en) Imaging apparatus and its control method
JP2005136921A (en) Portable phone with unauthorized photography prevention function
JP4963029B2 (en) Portable information terminal and control program
JP4510746B2 (en) Mobile phone with personal computer function
KR101130520B1 (en) Methods and apparatus&#39; protecting data outflow for mobile phone
JP2009094909A (en) Communication terminal device and program
JP2005079910A (en) Radio communication equipment
JP4539860B2 (en) Portable terminal device, power supply control method, and program
KR101635413B1 (en) Apparatus and method for preventing use of portable terminal in mobile communication system
JP2005260461A (en) Charger of mobile terminal
JP2004201043A (en) Personal digital assistant

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060209

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060314

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061019

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070116

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070319

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071120

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080118

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080519

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080708