JP2000163167A - Electronic equipment and method for controlling data rewriting of electronic equipment and storage medium for storing computer readable program - Google Patents

Electronic equipment and method for controlling data rewriting of electronic equipment and storage medium for storing computer readable program

Info

Publication number
JP2000163167A
JP2000163167A JP10340244A JP34024498A JP2000163167A JP 2000163167 A JP2000163167 A JP 2000163167A JP 10340244 A JP10340244 A JP 10340244A JP 34024498 A JP34024498 A JP 34024498A JP 2000163167 A JP2000163167 A JP 2000163167A
Authority
JP
Japan
Prior art keywords
power supply
rewriting
battery
voltage
data
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
JP10340244A
Other languages
Japanese (ja)
Inventor
Takehiko Kasamatsu
健彦 笠松
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP10340244A priority Critical patent/JP2000163167A/en
Publication of JP2000163167A publication Critical patent/JP2000163167A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PROBLEM TO BE SOLVED: To normally finish data rewriting without destroying the contents of a non-volatile memory by ensuring power supply from a built-in battery even when outside power supply is interrupted. SOLUTION: When this electronic equipment is operated by power supply from an adaptor 10, whether or not the voltage of a built-in battery 20 is within a normal operating range is detected through a battery voltage detecting part 41, and this detected battery voltage is judged so that a data rewriting executing state for a non-volatile memory 108 at the time of power supply from the adaptor 10 can be controlled by a CPU 105.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、装着可能な内蔵電
池からの電源供給あるいは外部電源からの電源供給のい
ずれかにより所定の動作を実行する電子機器および電子
機器のデータ書換え制御方法およびコンピュータが読み
出し可能なプログラムを格納した記憶媒体に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic apparatus which executes a predetermined operation by either a power supply from a built-in battery which can be mounted or a power supply from an external power supply, a data rewriting control method of the electronic apparatus, and a computer. The present invention relates to a storage medium storing a readable program.

【0002】[0002]

【従来の技術】従来、フラッシュメモリ等の不揮発性メ
モリを用いた電子機器において、その不揮発性メモリの
内蔵のデータの書き換えを行う場合、メモリのクリアや
書き込み時間が長い場合には、書き込みの途中で装置へ
の電源供給が停電等の影響、あるいは電池内蔵の機器に
ついては、電池の容量不足により、機器への電源供給が
遮断されてしまう可能性が生じることがある。
2. Description of the Related Art Conventionally, in an electronic device using a nonvolatile memory such as a flash memory, when data stored in the nonvolatile memory is rewritten, when the memory is cleared or the writing time is long, the writing is not performed. Therefore, there is a possibility that the power supply to the apparatus may be interrupted due to the influence of a power failure or the like, or in the case of a device with a built-in battery, due to insufficient battery capacity.

【0003】例えば電池電源を装着可能で、かつ、外部
電源においても駆動が可能な機器においては、書き換え
作業の際、電池電源により駆動している場合においては
容量不足による書き換え作業の中断、また、アダプタ等
の外部電源で駆動している場合には、電池が装着されて
いない場合には、停電や、ユーザのミスによる電源の供
給中断となる事態が生じる可能性がある。
For example, in a device that can be equipped with a battery power supply and can be driven by an external power supply, the rewriting operation is interrupted due to lack of capacity when the device is driven by a battery power supply. In the case of driving with an external power supply such as an adapter, if a battery is not mounted, there is a possibility that power supply may be interrupted or power supply may be interrupted due to a user error.

【0004】従来、このような事態に対しては、書き換
えのバックアップ用としての二次電源を装備する方法が
一般的に用いられてたり、あるいは予備の不揮発性メモ
リを有して、電源切れの場合においては、書き換え前の
データを有効とする手段が取られている。また、電池が
装着されていた場合についても、電池容量が十分である
とは限らないため、電池がバックアップ用電源としての
機能を常に果たしているとは限らないことになる。
Conventionally, in order to cope with such a situation, a method of equipping a secondary power supply as a backup for rewriting is generally used, or a method is provided in which a non-volatile memory having a spare nonvolatile memory is used. In some cases, means for validating the data before rewriting is used. Further, even when a battery is mounted, the battery capacity is not always sufficient, so that the battery does not always function as a backup power supply.

【0005】[0005]

【発明が解決しようとする課題】そして、不揮発性メモ
リの書き換え作業の途中で上記のような事態に陥ると、
突然の電源供給の中断により、メモリ内に内蔵されてい
るプログラムやデータの破壊による機器の復旧不可能な
状態となってしまう等の問題点があった。
When the above situation occurs during the rewriting operation of the nonvolatile memory,
Due to the sudden interruption of the power supply, there is a problem that the device cannot be recovered due to the destruction of programs and data contained in the memory.

【0006】一方、上記のような問題点を別の不揮発性
メモリを備える構成により対応することも可能である
が、そのような構成を採用すると、電子機器全体からコ
スト的に考えても、容積的に考えても現実的な対応とい
は言えない。
On the other hand, the above problem can be dealt with by a configuration having another non-volatile memory. However, if such a configuration is adopted, the volume of the electronic device can be reduced in terms of cost. It cannot be said that it is a realistic response even if it is considered.

【0007】本発明は、上記の問題点を解決するために
なされたもので、外部電源からの電源供給で動作する際
に、内蔵電池の電圧が正常動作範囲の電圧にあるかどう
かを判定して、該判定結果に基づいて外部電源供給によ
る不揮発性メモリに対するデータ書き換えを制御するこ
とにより、外部電源供給が遮断されても、内蔵電池から
の電源供給を確保して、不揮発性メモリの内容を破壊す
ることなく正常にデータ書き換えを完了して、不揮発性
メモリの内容が破壊されてしまう不測の事態を回避する
ことができる電子機器および電子機器のデータ書換え制
御方法およびコンピュータが読み出し可能なプログラム
を格納した記憶媒体を提供することである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and it is determined whether or not the voltage of a built-in battery is within a normal operating range when operating by supplying power from an external power supply. Then, by controlling the data rewriting to the nonvolatile memory by the external power supply based on the determination result, even if the external power supply is cut off, the power supply from the built-in battery is secured, and the contents of the nonvolatile memory are stored. An electronic device, a data rewriting control method for an electronic device, and a computer-readable program capable of avoiding an unexpected situation in which data rewriting is completed normally without destruction and the content of the non-volatile memory is destructed can be avoided. The purpose of the present invention is to provide a storage medium having stored therein.

【0008】[0008]

【課題を解決するための手段】本発明に係る第1の発明
は、装着可能な内蔵電池(図1に示す電池20)からの
電源供給あるいは外部電源(図1に示すアダプタ10)
からの電源供給のいずれかにより所定の動作を実行する
電子機器であって、所定の書き換えデータを外部から受
信するための受信手段(図1に示すインタフェース10
6)と、前記所定の動作を実行させるための制御情報を
記憶する書き換え可能な不揮発性メモリ(図1に示す不
揮発性メモリ108)と、前記外部電源からの電源供給
中に、前記不揮発性メモリの書き換え要求を行う要求手
段(図1に示す操作部109)と、前記要求手段による
書き換え要求時に、前記内蔵電池の電圧を検出する検出
手段(図1に示す電池電圧検出部41)と、前記検出手
段により検出された前記内蔵電池の電圧が正常動作範囲
電圧レベルかどうかを判定する判定手段(図1に示すC
PU105が揮発性メモリ107に記憶される制御プロ
グラムを実行して判定処理する)と、前記判定手段によ
る判定結果に基づいて前記不揮発性メモリに対するデー
タ書き換えを制御する制御手段(図1に示すCPU10
5が揮発性メモリ107に記憶される制御プログラムを
実行して制御する)とを有するものである。
According to a first aspect of the present invention, there is provided a power supply from a built-in battery (battery 20 shown in FIG. 1) or an external power supply (adapter 10 shown in FIG. 1).
Receiving means for receiving predetermined rewrite data from the outside (an interface 10 shown in FIG. 1).
6), a rewritable non-volatile memory (non-volatile memory 108 shown in FIG. 1) for storing control information for executing the predetermined operation, and the non-volatile memory during power supply from the external power source. Requesting means (operation unit 109 shown in FIG. 1) for requesting rewriting of the battery; detecting means (battery voltage detecting unit 41 shown in FIG. 1) for detecting the voltage of the internal battery when the requesting means requests rewriting; Determining means for determining whether the voltage of the internal battery detected by the detecting means is within a normal operating range voltage level (C shown in FIG. 1)
The PU 105 executes a control program stored in the volatile memory 107 to perform the determination process), and control means (CPU 10 shown in FIG. 1) for controlling data rewriting to the nonvolatile memory based on the determination result by the determination means.
5 executes and executes a control program stored in the volatile memory 107).

【0009】本発明に係る第2の発明は、前記制御手段
は、前記内蔵電池の電圧が正常動作範囲電圧レベルであ
ると判定した場合に、前記不揮発性メモリの内容を前記
受信手段が外部から受信した書き換えデータに書き換え
るものである。
According to a second aspect of the present invention, when the control means determines that the voltage of the internal battery is in a normal operation range voltage level, the receiving means externally transmits the contents of the nonvolatile memory. It is to be rewritten with the received rewrite data.

【0010】本発明に係る第3の発明は、前記所定の動
作は、プリント動作またはスキャナ動作とするものであ
る。
[0010] In a third aspect of the present invention, the predetermined operation is a printing operation or a scanner operation.

【0011】本発明に係る第4の発明は、装着可能な内
蔵電池(図1に示す電池20)からの電源供給あるいは
外部電源(図1に示すアダプタ10)からの電源供給の
いずれかにより所定の動作を実行する電子機器のデータ
書換え制御方法であって、所定の書き換えデータを外部
から受信するための受信工程(図2に示すステップ
(7))と、前記外部電源からの電源供給中に、前記所
定の動作を実行させるための制御情報を記憶する書き換
え可能な不揮発性メモリの書き換え要求を行う要求工程
(図2に示すステップ(2))と、前記要求工程による
書き換え要求時に、前記内蔵電池の電圧を検出する検出
工程(図2に示すステップ(4))と、前記検出工程に
より検出された前記内蔵電池の電圧が正常動作範囲電圧
レベルかどうかを判定する判定工程(図2に示すステッ
プ(5))と、前記判定工程による判定結果に基づいて
前記不揮発性メモリに対するデータ書き換えを実行する
書換え工程(図2に示すステップ(7))とを有するも
のである。
A fourth invention according to the present invention is characterized in that predetermined power is supplied from either a power supply from a built-in battery (battery 20 shown in FIG. 1) or an external power supply (adapter 10 shown in FIG. 1). A data rewriting control method for an electronic device which performs the operation of (1), wherein a receiving step (step (7) shown in FIG. 2) for receiving predetermined rewriting data from outside is performed during power supply from the external power supply. A request step (step (2) shown in FIG. 2) for requesting rewriting of a rewritable nonvolatile memory storing control information for executing the predetermined operation; A detecting step of detecting the voltage of the battery (step (4) shown in FIG. 2), and determining whether the voltage of the internal battery detected in the detecting step is in a normal operating range voltage level (Step (5) shown in FIG. 2), and a rewriting step (Step (7) shown in FIG. 2) for executing data rewriting to the nonvolatile memory based on the result of the judgment in the above-mentioned judging step. It is.

【0012】本発明に係る5の発明は、前記書換え工程
(図2に示すステップ(7))は、前記判定工程により
前記内蔵電池の電圧が正常動作範囲電圧レベルであると
判定した場合に、前記不揮発性メモリの内容を前記受信
工程により外部から受信した書き換えデータに書き換え
るものである。
According to a fifth aspect of the present invention, in the rewriting step (step (7) shown in FIG. 2), when the voltage of the internal battery is determined to be in a normal operation range voltage level in the determining step, The content of the nonvolatile memory is rewritten to rewrite data received from the outside in the receiving step.

【0013】本発明に係る第6の発明は、前記所定の動
作は、プリント動作またはスキャナ動作とするものであ
る。
In a sixth aspect according to the present invention, the predetermined operation is a printing operation or a scanner operation.

【0014】本発明に係る第7の発明は、装着可能な内
蔵電池(図1に示す電池20)からの電源供給あるいは
外部電源(図1に示すアダプタ10)からの電源供給の
いずれかにより所定の動作を実行する電子機器を制御す
るコンピュータが読み出し可能なプログラムを格納した
記憶媒体であって、所定の書き換えデータを外部から受
信するための受信工程(図2に示すステップ(7))
と、前記外部電源からの電源供給中に、前記所定の動作
を実行させるための制御情報を記憶する書き換え可能な
不揮発性メモリの書き換え要求を行う要求工程(図2に
示すステップ(2))と、前記要求工程による書き換え
要求時に、前記内蔵電池の電圧を検出する検出工程(図
2に示すステップ(4))と、前記検出工程により検出
された前記内蔵電池の電圧が正常動作範囲電圧レベルか
どうかを判定する判定工程(図2に示すステップ
(5))と、前記判定工程による判定結果に基づいて前
記不揮発性メモリに対するデータ書き換えを実行する書
換え工程(図2に示すステップ(7))とを有するコン
ピュータが読み出し可能なプログラムを記憶媒体に格納
したものである。
According to a seventh aspect of the present invention, a power supply is supplied from either a built-in battery (battery 20 shown in FIG. 1) or an external power supply (adapter 10 shown in FIG. 1). A storage medium storing a computer-readable program for controlling an electronic device that executes the above-mentioned operation, and a receiving step for receiving predetermined rewritten data from outside (step (7) shown in FIG. 2)
Requesting a rewrite request for a rewritable nonvolatile memory that stores control information for executing the predetermined operation during power supply from the external power supply (step (2) illustrated in FIG. 2); A detecting step (step (4) shown in FIG. 2) for detecting a voltage of the internal battery when a rewriting request is made in the requesting step; and determining whether a voltage of the internal battery detected in the detecting step is a voltage level in a normal operation range. A determining step (step (5) shown in FIG. 2) for determining whether or not a rewriting step (step (7) shown in FIG. 2) for rewriting data in the nonvolatile memory based on the determination result of the determining step; Is stored in a storage medium.

【0015】本発明に係る第8の発明は、前記書換え工
程(図2に示すステップ(7))は、前記判定工程によ
り前記内蔵電池の電圧が正常動作範囲電圧レベルである
と判定した場合に、前記不揮発性メモリの内容を前記受
信工程により外部から受信した書き換えデータに書き換
えるコンピュータが読み出し可能なプログラムを記憶媒
体に格納したものである。
According to an eighth aspect of the present invention, in the rewriting step (step (7) shown in FIG. 2), when the voltage of the internal battery is determined to be in a normal operation range voltage level in the determining step. A computer-readable program for rewriting the contents of the non-volatile memory to externally received rewrite data in the receiving step is stored in a storage medium.

【0016】本発明に係る第9の発明は、前記所定の動
作は、プリント動作またはスキャナ動作とするコンピュ
ータが読み出し可能なプログラムを記憶媒体に格納した
ものである。
In a ninth aspect according to the present invention, the predetermined operation is a print operation or a scanner operation, and a computer-readable program is stored in a storage medium.

【0017】[0017]

【発明の実施の形態】図1は、本実施形態を示す電子機
器の構成を説明する制御ブロック図であり、電源にAC
アダプタと電池の双方を利用できる電子機器に対応す
る。
FIG. 1 is a control block diagram for explaining the configuration of an electronic apparatus according to the present embodiment.
Compatible with electronic devices that can use both adapters and batteries.

【0018】図において、1は電子機器で、フラッシュ
ROM等の不揮発性メモリを搭載可能なデバイスであれ
ばデバイスに制限はなく、インクジェットプリンタある
いはスキャナ機能付きインクジェットプリンタ等に適用
すれば好適である。
In FIG. 1, reference numeral 1 denotes an electronic device, which is not limited as long as it is a device capable of mounting a nonvolatile memory such as a flash ROM, and is suitably applied to an ink jet printer or an ink jet printer with a scanner function.

【0019】10はアダプタであり、AC電源が供給さ
れ、所定電位の直流電源が電源切替部103に供給され
る。20は電池であり、所定電位の直流電源が電源切替
部103に供給される。電子機器1はアダプタ10から
あるいは電池20のどちらかの電源を使用することによ
り、動作が可能となっている。
Reference numeral 10 denotes an adapter, to which AC power is supplied, and DC power of a predetermined potential is supplied to the power switching unit 103. Reference numeral 20 denotes a battery, and DC power of a predetermined potential is supplied to the power switching unit 103. The electronic device 1 can operate by using either the power supply from the adapter 10 or the battery 20.

【0020】電子機器1において、103は電源部切替
部で、アダプタ10側から電源が供給されている場合
は、電源をアダプタ10側から供給し、電池20のみし
かついていない場合のときは、電池20から電源が供給
される機能をもった部分である。
In the electronic device 1, reference numeral 103 denotes a power supply switching unit, which supplies power from the adapter 10 when power is supplied from the adapter 10, and supplies a battery when only the battery 20 is used. It has a function of supplying power from the power supply 20.

【0021】41は電池電圧検出部であり、電池10の
出力電圧を監視するための検出手段を備えたものとなっ
ている。この部分においては、入力された電池電圧を、
分圧等の手段を利用して、CPU105に対して入力出
来る電圧に変更しているものとする。
Reference numeral 41 denotes a battery voltage detecting section, which has a detecting means for monitoring the output voltage of the battery 10. In this part, the input battery voltage is
It is assumed that the voltage has been changed to a voltage that can be input to the CPU 105 by using means such as partial pressure.

【0022】42はアダプタ出力電圧検出部であり、電
池電圧検出部41と同様にして、アダプタ10の出力電
圧をCPU105に対して入力出来る電圧に変更してい
るものとする。なお、CPU105はこの電子機器1の
動作を総括的に制御する。また、CPU105は、A/
D変換機能を備え、入力ポート51、52を介して入力
されるアナログ信号をデジタル信号に変換する。
Reference numeral 42 denotes an adapter output voltage detecting unit, which changes the output voltage of the adapter 10 to a voltage that can be input to the CPU 105, similarly to the battery voltage detecting unit 41. Note that the CPU 105 controls the operation of the electronic device 1 as a whole. In addition, the CPU 105
It has a D conversion function and converts an analog signal input through the input ports 51 and 52 into a digital signal.

【0023】入力ポート51は、電池20の出力電圧が
入力され、CPU105は、その電池電圧から電池の残
容量を判断する。
The output voltage of the battery 20 is input to the input port 51, and the CPU 105 determines the remaining capacity of the battery from the battery voltage.

【0024】本実施形態においては、電池20としてリ
チウムイオン電池を使用しており、リチウムイオン電池
においては、ある一定の負荷においては、出力電圧と電
池容量については1対1の関連がある。
In the present embodiment, a lithium ion battery is used as the battery 20. In a lithium ion battery, there is a one-to-one relationship between the output voltage and the battery capacity under a certain load.

【0025】この場合、装置の駆動は外部電源により動
作しているので、電池20に対しての負荷はほとんどか
からない状態となり、電池電圧を検知する際に、ほぼ一
定の条件で検知することができる。
In this case, since the device is driven by an external power supply, the load on the battery 20 is hardly applied, and the battery voltage can be detected under almost constant conditions. .

【0026】したがって、ほぼ無負荷の状態においての
電池電圧と電源容量の相関があらかじめわかるので、そ
の関係から、書き換えに必要な電源容量のスレショルド
以上の電圧がある場合にのみ容量が十分あると判断する
ことにする。
Therefore, since the correlation between the battery voltage and the power supply capacity in a substantially no-load state can be known in advance, it is determined from the relation that the capacity is sufficient only when there is a voltage higher than the threshold of the power supply capacity required for rewriting. I will do it.

【0027】また、入力ポート52は、アダプタ出力電
圧検出部42からの出力が入力され、CPU105は当
該入力ポート52を介してアダプタ出力の電圧を検出
し、アダプタ10の装着の有無を判断したり、また、ア
ダプタ10の出力電圧が装置が動作するための正しい範
囲かどうかを判断する。
The input port 52 receives an output from the adapter output voltage detector 42. The CPU 105 detects the voltage of the adapter output via the input port 52 to determine whether or not the adapter 10 is attached. Also, it is determined whether the output voltage of the adapter 10 is in the correct range for the operation of the device.

【0028】106はI/F部であり、通常この部分に
おいてはこの電子機器1と図示しないホストコンピュー
タとの通信データの送受信を行う部分である。また、不
揮発性メモリの書き換えに関しても、書き換えのための
データは、ホストコンピュータ等で構成される書換えデ
ータ送信部30からデータが送られる。
Reference numeral 106 denotes an I / F unit, which normally transmits and receives communication data between the electronic device 1 and a host computer (not shown). As for the rewriting of the non-volatile memory, data for rewriting is transmitted from the rewriting data transmission unit 30 including a host computer or the like.

【0029】107はRAM等で構成される揮発性メモ
リであり、通常、この電子機器1がホストコンピュータ
等からの通信データのバッファや、CPU105のワー
クエリア等に使用しているものである。通常、この電子
機器1の制御は、この揮発性メモリ107内に内蔵され
ているデータにより司っている。
Reference numeral 107 denotes a volatile memory constituted by a RAM or the like, which is usually used by the electronic device 1 as a buffer for communication data from a host computer or the like, a work area of the CPU 105, or the like. Normally, control of the electronic device 1 is governed by data stored in the volatile memory 107.

【0030】108は不揮発性メモリであり、この不揮
発性メモリ108の内容としては主に、通常の電子機器
の制御方式および不揮発性メモリ自身の書き換えのため
の制御方式が内蔵されている。
Reference numeral 108 denotes a non-volatile memory, and the contents of the non-volatile memory 108 mainly include a control method for a normal electronic device and a control method for rewriting the non-volatile memory itself.

【0031】また、不揮発性メモリ108の書き換え
は、不揮発性メモリ書き換えの制御方法を、発揮性メモ
リ107に展開し、その展開されたプログラムに基づい
て不揮発性メモリ108の書き換えを行うものとする。
The rewriting of the non-volatile memory 108 is performed by developing a control method for rewriting the non-volatile memory into the volatile memory 107 and rewriting the non-volatile memory 108 based on the developed program.

【0032】109は操作部であり、ユーザが電源O
N、あるいは電源OFF、また、不揮発性メモリ書き換
えモードを選択、また、ユーザが書き換えスタートさせ
るための操作を行える機能を有するものとする。110
は状態表示部であり、ユーザに対して、装置の状態を表
示により知らせる機能を有するものである。
Reference numeral 109 denotes an operation unit.
N or power off, a function to select a nonvolatile memory rewriting mode, and a user operation to start rewriting. 110
Denotes a status display unit, which has a function of notifying a user of the status of the apparatus by display.

【0033】上記のように構成された、すなわち電池2
0の取り外しが任意であり、なおかつ外部電源により駆
動可能な電子機器において、フラッシュメモリ等の不揮
発性メモリ108の内容を書き換える作業を行う場合、
後述する手順に従いCPU105が内蔵の電池が装着し
てあり、なおかつ電池容量がバックアップするに十分な
容量が残っている場合にのみ充電を行うことにより、通
常の書き換え動作の場合については、アダプタ10の出
力からの電源から行うので、内蔵されている電池容量が
削減されることはなく、書き換え終了後、すぐに電池駆
動したい場合などには有効である。
The battery 2 constructed as described above, that is, the battery 2
When the operation of rewriting the contents of the non-volatile memory 108 such as a flash memory is performed in an electronic device which is optional to remove and which can be driven by an external power supply,
According to the procedure described later, the CPU 105 performs charging only when the built-in battery is installed and the battery has sufficient capacity to back up the battery. Since the power is supplied from the output, the capacity of the built-in battery is not reduced, and this is effective when the user wants to drive the battery immediately after rewriting is completed.

【0034】また、十分に電池容量がある場合でしか書
き換え作業を行わないようにしているので、万一のアダ
プタ電源供給がなくなった場合についても、必ず電池2
0がバックアップ電源として働くことになるので、装置
に対して、電源供給が途絶えることは発生しないので、
書き換え作業中電源供給不良によるデータ欠損等は発生
しなくなる。
Since the rewriting operation is performed only when there is sufficient battery capacity, even if the power supply to the adapter is lost, the battery 2 must be recharged.
Since 0 operates as a backup power supply, the power supply to the device will not be interrupted.
During the rewriting operation, data loss or the like due to power supply failure does not occur.

【0035】図2は、本発明に係る電子機器におけるデ
ータ処理手順の一例を示すフローチャートであり、不揮
発性メモリ108に対するデータ書き換え制御手順に対
応する。なお、(1)〜(12)は各ステップを示す。
FIG. 2 is a flowchart showing an example of a data processing procedure in the electronic apparatus according to the present invention, and corresponds to a data rewriting control procedure for the nonvolatile memory 108. In addition, (1) to (12) indicate each step.

【0036】まず、ステップ(1)において、電源がO
Nされると、操作部109において、不揮発性メモリ書
き換えモードで電源オン作業を行うと、不揮発性メモリ
108に内蔵されたプログラムが稼動し、ステップ
(2)において、不揮発性メモリ108のモードが設定
されているかどうかを判定して、ユーザのミス等により
書き換えモードに入らなかった場合については、ステッ
プ(10)へ進み、通常の装置の動作モードとなる。
First, in step (1), the power is turned off.
N, when the power is turned on in the non-volatile memory rewriting mode in the operation unit 109, a program built in the non-volatile memory 108 is operated, and in step (2), the mode of the non-volatile memory 108 is set. It is determined whether or not the operation has been performed, and if the rewrite mode has not been entered due to a user error or the like, the process proceeds to step (10), and the operation mode is set to the normal operation mode of the apparatus.

【0037】一方、ステップ(2)で、書き換えモード
が設定されたと確認された場合は、ステップ(3)で、
アダプタ入力かどうかをアダプタ出力電圧検出部42の
出力結果からCPU105が判定して、アダプタ駆動で
ないと判定した場合は、ステップ(11)へ進み、フラ
ッシュROM書き込みプログラムをプロテクトし、その
内容をユーザに知らせるために、ステップ(12)で、
状態表示部110によりその旨を知らせて、ステップ
(9)へ進み、電源をOFFする。
On the other hand, if it is confirmed in step (2) that the rewrite mode has been set, then in step (3)
The CPU 105 determines whether or not the adapter is an input from the output result of the adapter output voltage detection unit 42. If the CPU 105 determines that the adapter is not driven, the process proceeds to step (11) to protect the flash ROM writing program and provide the contents to the user. To inform, in step (12)
The state is displayed on the status display unit 110, the process proceeds to step (9), and the power is turned off.

【0038】一方、ステップ(3)で、アダプタ駆動で
あると判定した場合には、ステップ(4)で、電池電圧
検出部41により電池電源の電圧の検知を行い、ステッ
プ(5)で、検知した電圧値が正常動作可能な電圧範囲
にあるかどうかを判定し、検知した電圧値が正常動作可
能な電圧範囲にないと判定した場合には、ステップ(1
1)へ進み、フラッシュROM書き込みプログラムをプ
ロテクトし、その内容をユーザに知らせるために、ステ
ップ(12)で、状態表示部110によりその旨を知ら
せて、ステップ(9)へ進み、電源をOFFする。
On the other hand, when it is determined in step (3) that the adapter is driven, in step (4), the voltage of the battery power supply is detected by the battery voltage detection unit 41, and in step (5), the detection is performed. It is determined whether or not the detected voltage value is within a voltage range where normal operation is possible. If it is determined that the detected voltage value is not within a voltage range where normal operation is possible, step (1) is performed.
Proceeding to 1), in order to protect the flash ROM writing program, and to inform the user of the content, in step (12), the status is displayed by the status display section 110, and proceed to step (9) to turn off the power. .

【0039】一方、ステップ(5)で、検知した電圧値
が正常動作可能な電圧範囲にあると判定した場合には、
ステップ(6)で、不揮発性メモリ108内に内蔵され
ている書き換えのプログラムを揮発性メモリ107内に
展開する。
On the other hand, if it is determined in step (5) that the detected voltage value is within the voltage range in which normal operation is possible,
In step (6), the rewriting program built in the nonvolatile memory 108 is developed in the volatile memory 107.

【0040】そして、ステップ(7)で、揮発性メモリ
107内に展開されたプログラムにしたがって、ホスト
コンピュータ等の書き換えデータ送信部30から送られ
てくる書き換えデータをインタフェース106を介して
受信することにより、不揮発性メモリ108の内容を書
き換えていく作業を行い、該書き換えが終わると、次
に、ステップ(8)で、書き換え終了を状態表示部11
0に表示し、ステップ(9)で、ユーザは電源OFF作
業を行うことで、次回電源を通常モードで入れた場合に
は、不揮発性メモリ108には書き換えた後のデータが
有効となっている。
In step (7), the rewrite data transmitted from the rewrite data transmission unit 30 of the host computer or the like is received via the interface 106 according to the program developed in the volatile memory 107. Then, the contents of the nonvolatile memory 108 are rewritten, and when the rewriting is completed, next, in step (8), the completion of the rewriting is notified to the state display section 11.
When the power is turned on in the normal mode next time by performing a power-off operation in step (9), the rewritten data is valid in the nonvolatile memory 108. .

【0041】なお、電池20が未装着の場合、あるいは
電池20の電圧値が所定の電圧値に到達していない場合
については、先に書いた、アダプタ駆動でない場合と同
様に、フラッシュROM書き込みプログラムをプロテク
トし、その内容をユーザに知らせるために、状態表示部
110により知らせる。
When the battery 20 is not mounted or when the voltage value of the battery 20 has not reached the predetermined voltage value, the flash ROM writing program is executed in the same manner as in the case where the adapter is not driven. Is protected, and the status display unit 110 notifies the user of the contents.

【0042】以上の動作を行うことにより、アダプタ等
の外部電源と装脱着可能な内蔵電源の双方で駆動が可能
な電子機器で、不揮発性メモリ108の書き換えに際し
て、アダプタ10側の電源の遮断に対して、内蔵型の電
池20による書き換え処理を実行させることができ、プ
ールセーフなデータ書き換えを保証することができる。
By performing the above operations, an electronic device that can be driven by both an external power supply such as an adapter and a detachable built-in power supply can be used to shut off the power supply of the adapter 10 when rewriting the nonvolatile memory 108. On the other hand, the rewriting process by the built-in battery 20 can be executed, and pool-safe data rewriting can be guaranteed.

【0043】従って、上記実施形態によれば、不揮発性
メモリ108の書き換えの際、外部電源からの電源供給
で装置を駆動し、書き換え作業を行う場合、電池電源容
量が必ず装着されていることを検知し、さらに書き換え
にあたっての十分な電池容量があるかどうかを検出した
上でのみ書き換え作業を行うことにすれば、通常の書き
換え作業においては、電池の容量が損なわれることな
く、さらに、停電などによる電源のストップなどの外的
要因による書き換え失敗などの事態においては、電池電
源が必ずバックアップ機能を果たせるだけの容量を持っ
ているので、書き換え作業中の電源遮断を避けることが
出来る。
Therefore, according to the above embodiment, when the nonvolatile memory 108 is rewritten, the device is driven by the power supply from the external power supply, and when the rewriting operation is performed, the battery power supply capacity must be installed. If rewriting is performed only after detecting and detecting whether there is sufficient battery capacity for rewriting, in normal rewriting work, the capacity of the battery is not impaired, In a situation such as rewriting failure due to an external factor such as a power supply stop, the battery power supply always has a capacity sufficient to perform the backup function, so that power interruption during rewriting work can be avoided.

【0044】以下、図3に示すメモリマップを参照して
本発明に係る電子機器で読み出し可能なデータ処理プロ
グラムの構成について説明する。
Hereinafter, the configuration of a data processing program readable by the electronic device according to the present invention will be described with reference to a memory map shown in FIG.

【0045】図3は、本発明に係る電子機器で読み出し
可能な各種データ処理プログラムを格納する記憶媒体の
メモリマップを説明する図である。
FIG. 3 is a view for explaining a memory map of a storage medium for storing various data processing programs readable by the electronic device according to the present invention.

【0046】なお、特に図示しないが、記憶媒体に記憶
されるプログラム群を管理する情報、例えばバージョン
情報,作成者等も記憶され、かつ、プログラム読み出し
側のOS等に依存する情報、例えばプログラムを識別表
示するアイコン等も記憶される場合もある。
Although not shown, information for managing a group of programs stored in the storage medium, for example, version information, a creator, etc. are also stored, and information dependent on the OS or the like on the program reading side, for example, a program is stored in the storage medium. An icon or the like for identification display may also be stored.

【0047】さらに、各種プログラムに従属するデータ
も上記ディレクトリに管理されている。また、各種プロ
グラムをコンピュータにインストールするためのプログ
ラムや、インストールするプログラムが圧縮されている
場合に、解凍するプログラム等も記憶される場合もあ
る。
Further, data dependent on various programs is also managed in the directory. Also, a program for installing various programs on a computer, and a program for decompressing a program to be installed when the program to be installed is compressed, may be stored in some cases.

【0048】本実施形態における図2に示す機能が外部
からインストールされるプログラムによって、ホストコ
ンピュータにより遂行されていてもよい。そして、その
場合、CD−ROMやフラッシュメモリやFD等の記憶
媒体により、あるいはネットワークを介して外部の記憶
媒体から、プログラムを含む情報群を出力装置に供給さ
れる場合でも本発明は適用されるものである。
The functions shown in FIG. 2 in this embodiment may be executed by a host computer by a program installed from the outside. In this case, the present invention is applied even when a group of information including a program is supplied to the output device from a storage medium such as a CD-ROM, a flash memory, or an FD, or from an external storage medium via a network. Things.

【0049】以上のように、前述した実施形態の機能を
実現するソフトウエアのプログラムコードを記録した記
憶媒体を、システムあるいは装置に供給し、そのシステ
ムあるいは装置のコンピュータ(またはCPUやMP
U)が記憶媒体に格納されたプログラムコードを読出し
実行することによっても、本発明の目的が達成されるこ
とは言うまでもない。
As described above, the storage medium storing the program codes of the software for realizing the functions of the above-described embodiments is supplied to the system or the apparatus, and the computer (or CPU or MP) of the system or the apparatus is provided.
It goes without saying that the object of the present invention is also achieved when U) reads and executes the program code stored in the storage medium.

【0050】この場合、記憶媒体から読み出されたプロ
グラムコード自体が本発明の新規な機能を実現すること
になり、そのプログラムコードを記憶した記憶媒体は本
発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium storing the program code constitutes the present invention.

【0051】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピー(登録商標)ディス
ク,ハードディスク,光ディスク,光磁気ディスク,C
D−ROM,CD−R,磁気テープ,不揮発性のメモリ
カード,ROM,EEPROM等を用いることができ
る。
As a storage medium for supplying the program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, C
D-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, EEPROM, etc. can be used.

【0052】また、コンピュータが読み出したプログラ
ムコードを実行することにより、前述した実施形態の機
能が実現されるだけでなく、そのプログラムコードの指
示に基づき、コンピュータ上で稼働しているOS(オペ
レーティングシステム)等が実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) And the like perform part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0053】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張ボー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書き込まれた後、そのプログラムコードの指
示に基づき、その機能拡張ボードや機能拡張ユニットに
備わるCPU等が実際の処理の一部または全部を行い、
その処理によって前述した実施形態の機能が実現される
場合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, The CPU provided in the function expansion board or function expansion unit performs part or all of the actual processing,
It goes without saying that a case where the function of the above-described embodiment is realized by the processing is also included.

【0054】[0054]

【発明の効果】以上説明したように、本発明に係る第1
の発明によれば、装着可能な内蔵電池からの電源供給あ
るいは外部電源からの電源供給のいずれかにより所定の
動作を実行する電子機器であって、所定の書き換えデー
タを外部から受信するための受信手段と、前記所定の動
作を実行させるための制御情報を記憶する書き換え可能
な不揮発性メモリと、前記外部電源からの電源供給中
に、前記不揮発性メモリの書き換え要求を行う要求手段
と、前記要求手段による書き換え要求時に、前記内蔵電
池の電圧を検出する検出手段と、前記検出手段により検
出された前記内蔵電池の電圧が正常動作範囲電圧レベル
かどうかを判定する判定手段と、前記判定手段による判
定結果に基づいて前記不揮発性メモリに対するデータ書
き換えを制御する制御手段とを有するので、外部電源か
らの電源供給が遮断される事態が発生しても、内蔵電池
から電源を供給可能かどうかにより、不揮発性メモリに
対する書き換えを制御して、外部電源からの電源供給が
遮断による不揮発性メモリ内のデータ破壊を確実に防止
することができる。
As described above, the first embodiment according to the present invention is described.
According to the invention, there is provided an electronic device which executes a predetermined operation by either a power supply from a built-in battery that can be mounted or a power supply from an external power supply, and a reception device for receiving predetermined rewrite data from outside. Means, a rewritable nonvolatile memory for storing control information for executing the predetermined operation, request means for making a request for rewriting the nonvolatile memory while power is supplied from the external power supply, Detecting means for detecting the voltage of the internal battery when a rewriting request is issued by the means; determining means for determining whether the voltage of the internal battery detected by the detecting means is within a normal operating range voltage level; and determining by the determining means. Control means for controlling data rewriting to the nonvolatile memory based on the result, so that power supply from an external power supply is cut off. Even if a situation occurs, rewriting of the non-volatile memory is controlled depending on whether power can be supplied from the built-in battery, and data corruption in the non-volatile memory due to interruption of power supply from an external power source is reliably prevented. be able to.

【0055】第2の発明によれば、前記制御手段は、前
記内蔵電池の電圧が正常動作範囲電圧レベルであると判
定した場合に、前記不揮発性メモリの内容を前記受信手
段が外部から受信した書き換えデータに書き換えるの
で、外部電源供給が遮断される事態が発生しても内蔵電
池により十分な電源を供給できない場合には、不揮発性
メモリに対するデータ書き換えを確実に阻止し、不用意
な外部電源の遮断に伴う不揮発性メモリの内容が破壊さ
れてしまう事態を回避することができる。
According to the second invention, when the control means determines that the voltage of the internal battery is in the normal operation range voltage level, the reception means receives the contents of the nonvolatile memory from outside. If the internal power supply cannot supply enough power even if the external power supply is cut off, the data rewriting to the non-volatile memory is reliably prevented, and careless external power supply is performed. A situation in which the contents of the nonvolatile memory are destroyed due to the interruption can be avoided.

【0056】第3の発明によれば、前記所定の動作は、
プリント動作またはスキャナ動作とするので、外部電源
供給が遮断される事態が発生しても内蔵電池により十分
な電源を供給できない場合には、不揮発性メモリに対す
るプリント制御あるいはスキャナ制御に伴うデータ書き
換えを確実に阻止し、不用意な外部電源の遮断に伴う不
揮発性メモリ内のプリント制御プログラム,プリント制
御データあるいはスキャナ制御プログラム,スキャナ制
御データが破壊されてしまう事態を回避することができ
る。
According to the third invention, the predetermined operation is:
Since print operation or scanner operation is performed, if sufficient power cannot be supplied by the built-in battery even if the external power supply is interrupted, the data rewrite associated with print control or scanner control of the nonvolatile memory must be performed reliably. This can prevent a situation in which the print control program, print control data, scanner control program, or scanner control data in the non-volatile memory is destroyed due to careless shutdown of the external power supply.

【0057】第4,第7の発明によれば、装着可能な内
蔵電池からの電源供給あるいは外部電源からの電源供給
のいずれかにより所定の動作を実行する電子機器のデー
タ書換え制御方法であって、あるいは装着可能な内蔵電
池からの電源供給あるいは外部電源からの電源供給のい
ずれかにより所定の動作を実行する電子機器を制御する
コンピュータが読み出し可能なプログラムを格納した記
憶媒体であって、所定の書き換えデータを外部から受信
するための受信工程と、前記外部電源からの電源供給中
に、前記所定の動作を実行させるための制御情報を記憶
する書き換え可能な不揮発性メモリの書き換え要求を行
う要求工程と、前記要求工程による書き換え要求時に、
前記内蔵電池の電圧を検出する検出工程と、前記検出工
程により検出された前記内蔵電池の電圧が正常動作範囲
電圧レベルかどうかを判定する判定工程と、前記判定工
程による判定結果に基づいて前記不揮発性メモリに対す
るデータ書き換え実行する書換え工程とを有するので、
外部電源からの電源供給が遮断される事態が発生して
も、内蔵電池から電源を供給可能かどうかにより、不揮
発性メモリに対する書き換えを制御して、外部電源から
の電源供給が遮断による不揮発性メモリ内のデータ破壊
を確実に防止することができる。
According to the fourth and seventh aspects of the present invention, there is provided a data rewriting control method for an electronic device which executes a predetermined operation by either power supply from a built-in battery that can be mounted or power supply from an external power supply. A storage medium storing a computer-readable program for controlling an electronic device that performs a predetermined operation by either a power supply from a built-in battery that can be mounted or a power supply from an external power supply; A receiving step for receiving rewrite data from outside, and a request step for making a rewrite request for a rewritable nonvolatile memory for storing control information for executing the predetermined operation during power supply from the external power supply And at the time of a rewrite request in the request step,
A detecting step of detecting a voltage of the internal battery; a determining step of determining whether or not the voltage of the internal battery detected in the detecting step is a normal operating range voltage level; and the non-volatile memory based on a determination result of the determining step. And a rewriting process for executing data rewriting on the non-volatile memory.
Even if the power supply from the external power supply is interrupted, the rewriting of the non-volatile memory is controlled depending on whether the power can be supplied from the built-in battery. Data can be reliably prevented from being destroyed.

【0058】第5,第8の発明によれば、前記書換え工
程は、前記判定工程により前記内蔵電池の電圧が正常動
作範囲電圧レベルであると判定した場合に、前記不揮発
性メモリの内容を前記受信工程により外部から受信した
書き換えデータに書き換えるので、外部電源供給が遮断
される事態が発生しても内蔵電池により十分な電源を供
給できない場合には、不揮発性メモリに対するデータ書
き換えを確実に阻止し、不用意な外部電源の遮断に伴う
不揮発性メモリの内容が破壊されてしまう事態を回避す
ることができる。
According to the fifth and eighth aspects of the present invention, the rewriting step includes the step of, when the judging step judges that the voltage of the internal battery is in the normal operation range voltage level, the contents of the nonvolatile memory being changed to the normal operation range. Rewriting to externally received rewrite data in the receiving process ensures that even if the external power supply is interrupted, if sufficient power cannot be supplied by the built-in battery, data rewrite to the nonvolatile memory is reliably prevented. Further, it is possible to avoid a situation in which the contents of the non-volatile memory are destroyed due to careless shutdown of the external power supply.

【0059】第6,第9の発明によれば、前記所定の動
作は、プリント動作またはスキャナ動作とするので、外
部電源供給が遮断される事態が発生しても内蔵電池によ
り十分な電源を供給できない場合には、不揮発性メモリ
に対するプリント制御あるいはスキャナ制御に伴うデー
タ書き換えを確実に阻止し、不用意な外部電源の遮断に
伴う不揮発性メモリ内のプリント制御プログラム,プリ
ント制御データあるいはスキャナ制御プログラム,スキ
ャナ制御データが破壊されてしまう事態を回避すること
ができる。
According to the sixth and ninth aspects of the invention, the predetermined operation is a printing operation or a scanning operation. Therefore, even when the external power supply is interrupted, sufficient power is supplied from the built-in battery. If it is not possible, it is necessary to reliably prevent data rewriting associated with print control or scanner control with respect to the non-volatile memory, and to provide a print control program, print control data or scanner control program in the non-volatile memory upon inadvertent shutdown of an external power supply. The situation where the scanner control data is destroyed can be avoided.

【0060】従って、外部電源供給が遮断されても、内
蔵電池からの電源供給を確保して、不揮発性メモリの内
容を破壊することなく正常にデータ書き換えを完了し
て、不揮発性メモリの内容が破壊されてしまう不測の事
態を回避することができる等の効果を奏する。
Therefore, even if the external power supply is cut off, the power supply from the built-in battery is secured, the data rewriting is completed normally without destroying the contents of the nonvolatile memory, and the contents of the nonvolatile memory are restored. It is possible to avoid such an unexpected situation as being destroyed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本実施形態を示す電子機器の構成を説明する制
御ブロック図である。
FIG. 1 is a control block diagram illustrating a configuration of an electronic device according to an exemplary embodiment.

【図2】本発明に係る電子機器におけるデータ処理手順
の一例を示すフローチャートである。
FIG. 2 is a flowchart illustrating an example of a data processing procedure in the electronic device according to the present invention.

【図3】本発明に係る電子機器で読み出し可能な各種デ
ータ処理プログラムを格納する記憶媒体のメモリマップ
を説明する図である。
FIG. 3 is a diagram illustrating a memory map of a storage medium that stores various data processing programs that can be read by the electronic device according to the present invention.

【符号の説明】[Explanation of symbols]

1 電子機器 10 アダプタ 20 電池 30 書き換えデータ送信部 41 電池電圧検出部 42 アダプタ出力電圧検出部 103 電源切り替え部 105 CPU 106 インタフェース 107 揮発性メモリ 108 不揮発性メモリ 109 操作部 110 状態表示部 DESCRIPTION OF SYMBOLS 1 Electronic device 10 Adapter 20 Battery 30 Rewrite data transmission part 41 Battery voltage detection part 42 Adapter output voltage detection part 103 Power supply switching part 105 CPU 106 Interface 107 Volatile memory 108 Nonvolatile memory 109 Operation part 110 Status display part

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 装着可能な内蔵電池からの電源供給ある
いは外部電源からの電源供給のいずれかにより所定の動
作を実行する電子機器であって、 所定の書き換えデータを外部から受信するための受信手
段と、 前記所定の動作を実行させるための制御情報を記憶する
書き換え可能な不揮発性メモリと、 前記外部電源からの電源供給中に、前記不揮発性メモリ
の書き換え要求を行う要求手段と、 前記要求手段による書き換え要求時に、前記内蔵電池の
電圧を検出する検出手段と、 前記検出手段により検出された前記内蔵電池の電圧が正
常動作範囲電圧レベルかどうかを判定する判定手段と、 前記判定手段による判定結果に基づいて前記不揮発性メ
モリに対するデータ書き換えを制御する制御手段と、を
有することを特徴とする電子機器。
1. An electronic device that executes a predetermined operation by either a power supply from a built-in battery that can be mounted or a power supply from an external power supply, and a receiving unit that receives predetermined rewrite data from outside. A rewritable nonvolatile memory for storing control information for executing the predetermined operation; a request unit for requesting a rewrite of the nonvolatile memory while power is supplied from the external power supply; Detecting means for detecting the voltage of the built-in battery at the time of a rewrite request by the following; determining means for determining whether or not the voltage of the built-in battery detected by the detecting means is within a normal operating range voltage level; Control means for controlling rewriting of data in the non-volatile memory based on the electronic device.
【請求項2】 前記制御手段は、前記内蔵電池の電圧が
正常動作範囲電圧レベルであると判定した場合に、前記
不揮発性メモリの内容を前記受信手段が外部から受信し
た書き換えデータに書き換えることを特徴とする請求項
1記載の電子機器。
2. The control means according to claim 1, wherein, when determining that the voltage of said internal battery is within a normal operation range voltage level, said control means rewrites the contents of said non-volatile memory to rewrite data received externally by said reception means. The electronic device according to claim 1, wherein:
【請求項3】 前記所定の動作は、プリント動作または
スキャナ動作とすることを特徴とする請求項1記載の電
子機器。
3. The electronic device according to claim 1, wherein the predetermined operation is a print operation or a scanner operation.
【請求項4】 装着可能な内蔵電池からの電源供給ある
いは外部電源からの電源供給のいずれかにより所定の動
作を実行する電子機器のデータ書換え制御方法であっ
て、 所定の書き換えデータを外部から受信するための受信工
程と、 前記外部電源からの電源供給中に、前記所定の動作を実
行させるための制御情報を記憶する書き換え可能な不揮
発性メモリの書き換え要求を行う要求工程と、 前記要求工程による書き換え要求時に、前記内蔵電池の
電圧を検出する検出工程と、 前記検出工程により検出された前記内蔵電池の電圧が正
常動作範囲電圧レベルかどうかを判定する判定工程と、 前記判定工程による判定結果に基づいて前記不揮発性メ
モリに対するデータ書き換え実行する書換え工程と、を
有することを特徴とする電子機器のデータ書換え制御方
法。
4. A data rewriting control method for an electronic device that executes a predetermined operation by either a power supply from a built-in battery that can be mounted or a power supply from an external power supply, and receives predetermined rewrite data from outside. A requesting step of performing a rewriting request for a rewritable nonvolatile memory that stores control information for executing the predetermined operation while power is supplied from the external power supply. At the time of a rewrite request, a detecting step of detecting the voltage of the internal battery, a determining step of determining whether the voltage of the internal battery detected by the detecting step is at a normal operating range voltage level, and Rewriting the nonvolatile memory based on the data based on the data. Changeover control method.
【請求項5】 前記書換え工程は、前記判定工程により
前記内蔵電池の電圧が正常動作範囲電圧レベルであると
判定した場合に、前記不揮発性メモリの内容を前記受信
工程が外部から受信した書き換えデータに書き換えるこ
とを特徴とする請求項4記載の電子機器のデータ書換え
制御方法。
5. The rewriting step, wherein when the voltage of the internal battery is determined to be in a normal operation range voltage level in the determining step, the rewriting data received from the outside by the receiving step from the outside of the nonvolatile memory is received. 5. The method according to claim 4, wherein the data is rewritten.
【請求項6】 前記所定の動作は、プリント動作または
スキャナ動作とすることを特徴とする請求項4記載の電
子機器のデータ書換え制御方法。
6. The method according to claim 4, wherein the predetermined operation is a printing operation or a scanning operation.
【請求項7】 装着可能な内蔵電池からの電源供給ある
いは外部電源からの電源供給のいずれかにより所定の動
作を実行する電子機器を制御するコンピュータが読み出
し可能なプログラムを格納した記憶媒体であって、 所定の書き換えデータを外部から受信するための受信工
程と、 前記外部電源からの電源供給中に、前記所定の動作を実
行させるための制御情報を記憶する書き換え可能な不揮
発性メモリの書き換え要求を行う要求工程と、 前記要求工程による書き換え要求時に、前記内蔵電池の
電圧を検出する検出工程と、 前記検出工程により検出された前記内蔵電池の電圧が正
常動作範囲電圧レベルかどうかを判定する判定工程と、 前記判定工程による判定結果に基づいて前記不揮発性メ
モリに対するデータ書き換えを実行する書換え工程と、
を有することを特徴とするコンピュータが読み出し可能
なプログラムを格納した記憶媒体。
7. A storage medium storing a computer-readable program for controlling an electronic device that executes a predetermined operation by either power supply from a built-in battery that can be mounted or power supply from an external power supply. A receiving step for externally receiving predetermined rewrite data; and, while supplying power from the external power supply, a request for rewriting a rewritable nonvolatile memory storing control information for executing the predetermined operation. A requesting step to be performed, a detecting step of detecting a voltage of the internal battery when a rewriting request is made in the requesting step, and a determining step of determining whether or not the voltage of the internal battery detected in the detecting step is a normal operating range voltage level. A rewriting step for rewriting data in the nonvolatile memory based on a result of the determination in the determining step. And,
A storage medium storing a computer-readable program, comprising:
【請求項8】 前記書換え工程は、前記判定工程により
前記内蔵電池の電圧が正常動作範囲電圧レベルであると
判定した場合に、前記不揮発性メモリの内容を前記受信
工程により外部から受信した書き換えデータに書き換え
ることを特徴とする請求項7記載のコンピュータが読み
出し可能なプログラムを格納した記憶媒体。
8. The rewriting step is a step of, when the judging step judges that the voltage of the internal battery is in a normal operation range voltage level, rewriting the contents of the nonvolatile memory externally received by the receiving step. 8. A storage medium storing a computer-readable program according to claim 7, wherein the program is rewritten.
【請求項9】 前記所定の動作は、プリント動作または
スキャナ動作とすることを特徴とする請求項7記載のコ
ンピュータが読み出し可能なプログラムを格納した記憶
媒体。
9. The storage medium according to claim 7, wherein the predetermined operation is a print operation or a scanner operation.
JP10340244A 1998-11-30 1998-11-30 Electronic equipment and method for controlling data rewriting of electronic equipment and storage medium for storing computer readable program Pending JP2000163167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10340244A JP2000163167A (en) 1998-11-30 1998-11-30 Electronic equipment and method for controlling data rewriting of electronic equipment and storage medium for storing computer readable program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10340244A JP2000163167A (en) 1998-11-30 1998-11-30 Electronic equipment and method for controlling data rewriting of electronic equipment and storage medium for storing computer readable program

Publications (1)

Publication Number Publication Date
JP2000163167A true JP2000163167A (en) 2000-06-16

Family

ID=18335086

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10340244A Pending JP2000163167A (en) 1998-11-30 1998-11-30 Electronic equipment and method for controlling data rewriting of electronic equipment and storage medium for storing computer readable program

Country Status (1)

Country Link
JP (1) JP2000163167A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301093A (en) * 2008-06-10 2009-12-24 Ricoh Co Ltd Image forming device, control method for image forming device, control program for image forming device and storage medium
JP2014191354A (en) * 2013-03-26 2014-10-06 Aichi Electric Co Ltd Power distribution equipment and update method of monitoring control software

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301093A (en) * 2008-06-10 2009-12-24 Ricoh Co Ltd Image forming device, control method for image forming device, control program for image forming device and storage medium
JP2014191354A (en) * 2013-03-26 2014-10-06 Aichi Electric Co Ltd Power distribution equipment and update method of monitoring control software

Similar Documents

Publication Publication Date Title
KR101767963B1 (en) Image forming apparatus and power control method thereof
US5485623A (en) Information processor having high speed and safety resume system
US7028220B2 (en) Methods for saving data on the basis of the remaining capacity of a battery in a suspend mode and resuming operations using the saved data
US7929706B2 (en) Encryption key restoring method, information processing apparatus, and encryption key restoring program
KR100188132B1 (en) Digital computer and its control method
US20070260763A1 (en) Installation method, program, peripheral device and system
KR100610354B1 (en) Controlling apparatus and method for information process system of mobile terminal apparatus using flash memory
US6473569B1 (en) Camera and information processing apparatus
US5469565A (en) Personal computer for disabling resume mode upon replacement of HDD
US5832285A (en) Battery powered computer capable of switching to a suspend mode based on the connection status of an external device
JP4421704B2 (en) Computer power-on method and computer
US7615886B2 (en) Electronic apparatus and computer-executable program
JP2000163167A (en) Electronic equipment and method for controlling data rewriting of electronic equipment and storage medium for storing computer readable program
US7116432B2 (en) Power control for a printing unit with a maintenance function
JP2836600B2 (en) Mobile terminal device
US20050177768A1 (en) Update detection device and update detection program
JP3376331B2 (en) Storage method using flash memory and storage medium storing storage control program
US5343436A (en) Electronic apparatus having backup power source
US8203727B2 (en) Image processing apparatus provided with an image memory used by a plurality of boards performing expanded data processings, backup processing method, and storage medium storing program readable by computer
JP3133492B2 (en) Information processing device
JP4147249B2 (en) Image recording device
JP2001232906A (en) Image output unit and its control method, and image output system
JPH11190962A (en) Data processing device, method for controlling power source of data processing device, storage medium storing computer-readable program
CN218332578U (en) Firmware management device for FPGA chip, FPGA accelerator card and electronic equipment
JP3861616B2 (en) Power management device for portable terminal