JPH1124803A - Detection method for suspend processing abnormality - Google Patents

Detection method for suspend processing abnormality

Info

Publication number
JPH1124803A
JPH1124803A JP9195161A JP19516197A JPH1124803A JP H1124803 A JPH1124803 A JP H1124803A JP 9195161 A JP9195161 A JP 9195161A JP 19516197 A JP19516197 A JP 19516197A JP H1124803 A JPH1124803 A JP H1124803A
Authority
JP
Japan
Prior art keywords
battery
suspend
cpu
lever
power switch
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
JP9195161A
Other languages
Japanese (ja)
Inventor
Kenichi Takita
健一 滝田
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP9195161A priority Critical patent/JPH1124803A/en
Publication of JPH1124803A publication Critical patent/JPH1124803A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a detection method of the suspend processing abnormality for a battery-driven information processor to detect that a battery of the information processor is pulled out in a suspend processing mode and to display this fact to a user when the next reboot is started. SOLUTION: A battery-driven information processor which uses a secondary battery 207 when a primary battery 206 is replaced is provided at least with a lock lever which closes the cover of a store part of the battery 206, a detection means which detects the lock release of the lever and a means which detects the ON OFF states of a power switch 212. In such a constitution, a CPU 20 turns on a flag that holds the storage contents even when a power supply is turned off to start the suspend processing and then turns off the flag when the suspend processing is over based on detection of the OFF state of the switch 212 or the lock release. Then the CPU 20 shows the abnormal end of the suspend processing in the next reboot mode when the suspend processing does not end in a normal state due to a fact that the battery 206 is pulled out before the end of the suspend processing and the above flag is kept in its ON state.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、バッテリ駆動型の
情報処理装置に関し、特に、携帯端末、ポータブルター
ミナル、ノート型パソコン、デジタルカメラ等、乾電池
や充電池パック等、交換可能な電池を電源供給源として
いる情報処理装置におけるサスペンド処理異常の検出方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a battery-powered information processing apparatus, and more particularly to a portable terminal, a portable terminal, a notebook computer, a digital camera, and the like, which supplies a replaceable battery such as a dry battery or a rechargeable battery pack. The present invention relates to a method for detecting a suspend processing abnormality in an information processing apparatus serving as a source.

【0002】[0002]

【従来の技術】電源電池を取り外すことのできる携帯型
データ処理装置として、例えば特開平1−219915
号公報には、電源電池が本体装置の正規位置にロックさ
れた状態から解除され始めた時点でこれまで実行してい
たデータ処理を終了させ、データ処理中断後に、電源電
池が本体装置の正規位置にロックされた場合、中断され
たデータ処理を継続実行するようにした構成が提案され
ている。
2. Description of the Related Art As a portable data processing device from which a power supply battery can be removed, for example, Japanese Patent Application Laid-Open No. 1-219915 is disclosed.
Japanese Patent Application Laid-Open Publication No. H11-163556 states that when the power battery begins to be released from a state where the power battery is locked at the proper position of the main device, the data processing that has been performed so far is terminated, and after the data processing is interrupted, the power battery is returned to the proper position of the main device. A configuration has been proposed in which, when locked, the interrupted data processing is continuously executed.

【0003】従来、この種の情報処理装置においては、
電池交換時に、データやサスペンド状態を保持する目的
で、運用のための主電池の他に、主電池が交換のために
装置本体から抜き取られている間、データやサスペンド
状態をバックアップするための副電池を搭載する方式が
採用されている。
Conventionally, in this type of information processing apparatus,
When the battery is replaced, in addition to the main battery for operation, a secondary battery for backing up the data and the suspended state while the main battery is removed from the main unit for replacement in order to maintain the data and the suspended state. A method of mounting a battery is adopted.

【0004】搭載される副電池は、主電池交換に要する
時間だけ、システムの状態をバックアップするものであ
るため、主電池のように、装置の完全な駆動が可能な電
力供給が行えるだけの容量は必要ではなく、装置がサス
ペンド装置になっていることを前提として、メモリ上の
データとCPUが周辺回路のサスペンド、すなわち実行
中断時の状態の継続保持が行える程度の電源供給が可能
な容量のものが選択される。このため、主電池から副電
池への電源供給の切り替えは、装置が通常の動作状態か
らサスペンド状態へ確実に移行完了後に行わなければな
らない。
[0004] The sub-battery mounted is for backing up the state of the system only for the time required for replacement of the main battery, so that the sub-battery has a capacity sufficient to supply power capable of completely driving the device, like the main battery. Is not necessary, and assuming that the device is a suspend device, the capacity of the memory and the capacity of the power supply enough to allow the CPU to suspend the peripheral circuits, that is, maintain the state when the execution is interrupted, is maintained. Things are selected. For this reason, the switching of the power supply from the main battery to the sub-battery must be performed after the device is completely shifted from the normal operation state to the suspend state.

【0005】このサスペンド状態への移行が確実に完了
してから主電池の交換が行われるようにするための機構
として、電源スイッチのOFFにより即座に主電池から
副電池への電源供給の切替えを行うのではなく、電源ス
イッチのOFF操作は、利用者がCPUに対して電源O
FFする旨を通知するための手段として機能し、CPU
は、電源スイッチOFFの認識後、サスペンド状態への
移行処理を開始した後、電源供給源を副電池に切り替え
るという方法がある。
[0005] As a mechanism for replacing the main battery after the transition to the suspend state is surely completed, the power supply from the main battery to the sub-battery is immediately switched by turning off the power switch. Rather than performing the operation, the user turns off the power switch with the CPU.
Function as means for notifying that FF
After recognizing that the power switch is OFF, there is a method in which the process of shifting to the suspended state is started, and then the power supply source is switched to the sub-battery.

【0006】この場合、サスペンド状態への移行処理に
要する時間は、利用者が電源スイッチをOFF状態にし
てから、装置の主電池格納部の蓋を開け、主電池を抜き
去るまでの時間よりも十分短いことを想定している。
In this case, the time required for the transition process to the suspend state is longer than the time from when the user turns off the power switch to when the lid of the main battery storage of the apparatus is opened and the main battery is removed. It is assumed to be short enough.

【0007】また、利用者が装置運用中に、電源スイッ
チをOFFすることなく、誤って電池を抜き取った場合
への対策として、主電池格納部のフタが開いたことを、
前記電源スイッチと同じようにCPUが検知する機構を
備えることにより、フタが開かれたことを検知した時点
で、自動的にサスペンド状態への移行処理を開始し、利
用者がフタを開いてから主電池を抜き取る動作を行うま
での操作に要する時間以内に、サスペンド状態への移行
を完了させておく、という方法が採用されている。
As a measure against the case where a user accidentally removes the battery without turning off the power switch during operation of the apparatus, the lid of the main battery storage is opened.
By providing a mechanism for the CPU to detect as in the case of the power switch, when detecting that the lid has been opened, the process of automatically shifting to the suspend state is started, and after the user opens the lid, A method is adopted in which the transition to the suspended state is completed within the time required for the operation until the operation of removing the main battery is performed.

【0008】[0008]

【発明が解決しようとする課題】上記した従来の2つの
方法は、この種の電池駆動の情報処理装置において、利
用者が、電源スイッチをOFFにしてから、または、O
FFすることなく、主電池格納部のフタを開いてから主
電池を抜き取る動作を行うまでの操作に要する時間以内
に、装置のサスペンド状態への移行が終了できない場合
が発生している、という問題点を有している。
The above two conventional methods use the above-described battery-powered information processing apparatus after the user turns off the power switch or turns off the power.
The problem that the transition to the suspend state of the device cannot be completed within the time required for the operation from opening the lid of the main battery storage unit to removing the main battery without performing FF occurs. Have a point.

【0009】その理由は、電池駆動型の情報処理装置に
おいても、近時、GUI(グラフィカルユーザインタフ
ェース)やマルチタスク処理等が行われるようになった
こと等の要因により、サスペンド状態へ移行するため
に、保持すべき入出力に関する情報量が増大し、サスペ
ンド状態への移行処理時間が長くなってきているためで
ある。
The reason for this is that even in a battery-driven information processing apparatus, a transition to a suspend state has recently occurred due to factors such as the fact that a GUI (graphical user interface) and multitask processing have been performed. This is because the amount of input / output information to be held increases, and the processing time for shifting to the suspend state has become longer.

【0010】このような問題点に対する対策としては、
画面表示によるガイド及びマニュアルの注意書き等で、
ユーザに電池を抜いてはいけない状態を通知することも
行なわれるが、ユーザの誤操作を完全に防止することは
できない。
[0010] As a measure against such a problem,
In guides and manual notes on the screen display,
Although the user is notified of a state in which the battery must not be removed, erroneous operation of the user cannot be completely prevented.

【0011】そして、利用者が主電池格納部の蓋を開け
て主電池を抜き取る動作を行うまでの操作に要する時間
以内に、装置のサスペンド状態への移行が終了しない場
合、装置が通常の動作状態からサスペンド状態へ確実に
移行完了後に行われないまま、主電池から副電池への供
給の切替えが行われることになり、メモリ上のデータ
と、CPUが周辺回路のサスペンド、すなわち実行中断
の状態がきちんと保持できないため、電源スイッチON
時のレジュームが不可能となる。
If the transition to the suspend state of the apparatus is not completed within the time required for the user to open the lid of the main battery storage unit and perform the operation of removing the main battery, the apparatus operates normally. The supply from the main battery to the sub-battery is switched without being reliably performed after the transition from the state to the suspend state is completed, and the data on the memory and the CPU are suspended in the peripheral circuit, that is, the state in which the execution is suspended. Power switch ON because
Resume of time becomes impossible.

【0012】このような場合には、運用を継続させるた
めに、自動的にリブートする等の対策が行われるが、リ
ブートすると、データの保証ができず、その後の作業等
に影響がでることも考えられるため、ユーザに警告表示
する必要がある。なお、システムの暴走及びストール等
が発生した場合にはリセットにより、正常なシャットダ
ウンが行われずに、リブートが発生することもあり、こ
の場合もファイルシステム等に異常が発生して、正常な
動作ができなくなる可能性があるため、ユーザへの警告
が必要であるが、この警告はシステムの障害及び故障に
よるものなので、前記したユーザの誤操作によるリブー
ト発生時の警告メッセージとは区別する必要がある。
In such a case, measures such as automatic rebooting are taken in order to continue the operation. However, if the reboot is performed, the data cannot be guaranteed, and the subsequent work may be affected. It is necessary to display a warning to the user. If the system goes out of control or stalls occur, a reset may cause a reboot without performing a normal shutdown.In this case as well, an error will occur in the file system, etc., and normal operation will occur. A warning to the user is necessary because it may not be possible. However, since this warning is caused by a failure or a failure of the system, it is necessary to distinguish the warning message from the above-described warning message at the time of the reboot due to the erroneous operation of the user.

【0013】したがって、本発明は、上記問題点に鑑み
てなされたものであって、その目的は、サスペンド処理
中の電池抜きがおきた場合、これを検出して、次回リブ
ート起動時に、ユーザにその旨を表示する情報処理装置
のサスペンド処理異常の検出方法を提供することにあ
る。
Accordingly, the present invention has been made in view of the above problems, and has as its object to detect when a battery is drained during a suspend process and to notify the user at the next reboot start. An object of the present invention is to provide a method of detecting an abnormality in a suspend process of an information processing apparatus that indicates the fact.

【0014】[0014]

【課題を解決するための手段】前記目的を達成するた
め、本発明は、装置を駆動する主電池の交換時には副電
池が用いられる電池駆動型の情報処理装置において、前
記主電池を格納する主電池格納部の蓋を閉状態にロック
するレバーと、前記レバーのロック解除を検出する検出
手段と、電源スイッチのオン・オフを検出する手段と、
を少なくとも備え、電源スイッチのオフもしくはロック
解除の検出に基づき、CPUが、サスペンド処理を開始
するに当たり、電源オフ時にも記憶内容を保持するフラ
グをオンとし、サスペンド処理終了時には前記フラグを
オフとし、サスペンド処理が終了する前に前記主電池が
抜き取られる等によりサスペンド処理が正常に終了せず
前記フラグがオン状態のままである時、次にリブート時
に、サスペンド処理異常終了の旨を表示する、ことを特
徴とする。
In order to achieve the above object, the present invention provides a battery-driven information processing apparatus in which a sub-battery is used when a main battery for driving the apparatus is replaced. A lever for locking the lid of the battery storage unit in a closed state, detection means for detecting unlocking of the lever, and means for detecting on / off of a power switch;
At least, based on the detection of the power switch is turned off or unlocked, the CPU, when starting the suspend process, turns on the flag that retains the stored content even when the power is off, and turns off the flag when the suspend process ends, When the suspend process does not end normally due to the main battery being removed before the suspend process ends, and the flag remains in the on state, and at the time of the next reboot, a message indicating that the suspend process has ended abnormally is displayed. It is characterized by.

【0015】[0015]

【発明の実施の形態】本発明の実施の形態について以下
に説明する。本発明の実施の形態においては、装置の筐
体の電池蓋が不用意に開くことを防止するためのロック
解除レバーと、ロック解除レバーによりロックが解除さ
れたことを検出するレバー解除検出手段と、CPUに前
記電池蓋のロックが解除されたことを通知するためのレ
バー解除検出割込発生回路と、電源スイッチの開閉状態
を前記CPUに通知するための電源スイッチ検出割込発
生回路と、を備え、電源スイッチOFF時、及び、前記
電池蓋のロック解除時には、前記CPUがこれらの状態
を検出し、バックアップメモリに、サスペンド処理中を
表すフラグを書き込んだ後、サスペンド処理を開始し、
正常にサスペンド完了した場合に前記フラグを消去し、
次回起動時には、前記フラグの値を検査することによ
り、サスペンド処理の異常中断か否かを判定し、サスペ
ンド処理の異常中断を検出した際には、表示装置に警告
を表示することを特徴としたものである。
Embodiments of the present invention will be described below. In the embodiment of the present invention, a lock release lever for preventing the battery lid of the housing of the device from being opened carelessly, and a lever release detecting means for detecting that the lock is released by the lock release lever. A lever release detection interrupt generation circuit for notifying the CPU that the lock of the battery lid has been released, and a power switch detection interrupt generation circuit for notifying the CPU of the open / close state of the power switch. When the power switch is OFF and when the battery cover is unlocked, the CPU detects these states, writes a flag indicating that the suspend process is being performed to the backup memory, and then starts the suspend process.
When the suspend is completed normally, the flag is deleted,
At the next start-up, by checking the value of the flag, it is determined whether or not the suspend process is abnormally interrupted, and when an abnormal suspend of the suspend process is detected, a warning is displayed on the display device. Things.

【0016】利用者がサスペンド処理完了までの間に主
電池を抜き取ってしまった場合、サスペンド処理が正常
に完了しないままで処理が中断されるのでフラグは書き
込まれたままとなる。この状態で、主電池が交換され再
起動された場合、CPUは、フラグを検査して、該フラ
グがオンであれば、サスペンド処理の異常終了の旨を表
示装置に警告表示する。このため、利用者または保守員
は、システムの運用に先立ち、ファイルシステムの検査
等の保守業務を行うことができる。
If the user removes the main battery before the completion of the suspending process, the flag remains written because the suspending process is interrupted without the normal completion of the suspending process. In this state, when the main battery is replaced and restarted, the CPU checks the flag, and if the flag is on, warns and displays on the display device that the suspend process has ended abnormally. Therefore, the user or the maintenance staff can perform maintenance work such as inspection of the file system before operating the system.

【0017】[0017]

【実施例】上記した本発明の実施の形態について更に詳
細に説明すべく、本発明の実施例を図面を参照して以下
に説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention;

【0018】図1は、本発明の一実施例の情報処理装置
の外観を示す斜視図である。図1を参照すると、この装
置1において、出力情報は、表示装置2に出力され、サ
スペンドが異常終了した時もこの表示装置2の画面にメ
ッセージが表示される。図1において、3はイヤホンジ
ャック等の各種インタフェースであり、このインタフェ
ースを介して各種機器が接続される。4は、電池格納部
であり、中に電池が格納される。41は電池格納部4の
蓋を外すためのロック解除レバーである。5は電源スイ
ッチであり、その押下により、起動状態から電池交換が
できるサスペンド状態、又は、サスペンド状態から復帰
するレジューム処理が行われる。
FIG. 1 is a perspective view showing the appearance of an information processing apparatus according to one embodiment of the present invention. Referring to FIG. 1, in the device 1, output information is output to a display device 2, and a message is displayed on the screen of the display device 2 even when the suspend is abnormally terminated. In FIG. 1, reference numeral 3 denotes various interfaces such as an earphone jack, and various devices are connected via this interface. Reference numeral 4 denotes a battery storage unit in which a battery is stored. Reference numeral 41 denotes a lock release lever for removing the lid of the battery storage unit 4. Reference numeral 5 denotes a power switch, which, when pressed, performs a suspend state in which the battery can be replaced from a start state or a resume process for returning from the suspend state.

【0019】図2(a)は、図1に示した電池格納部4
の要部を示す上面図、図2(b)は主電池格納部の蓋の
X−X′側よりみた側面図、図2(c)は主電池格納部
の蓋のY−Y′側よりみた側面図である。
FIG. 2A shows the battery storage unit 4 shown in FIG.
2 (b) is a side view as seen from the XX 'side of the lid of the main battery storage unit, and FIG. 2 (c) is a view from the YY' side of the lid of the main battery storage unit. It is the side view seen.

【0020】ロック解除レバー41によりロックが外さ
れると、レバー解除検出機構42により検出される。ロ
ック解除レバー41が解除されると、主電池格納蓋43
が外れ、電池44が外部に取り出される。なお、主電池
格納部蓋43には、ロック溝47が設けられている。図
で、右方向にロック解除レバー41を移動すると、レバ
ー41のロック溝47内にあった部材が溝47から外れ
レバー41は解除状態とされ、レバー解除検出機構42
はレバー解除を検出し、レバー41を左側に移動すると
蓋43のロック溝47に位置し蓋43はロック状態とな
る。
When the lock is released by the lock release lever 41, it is detected by the lever release detection mechanism 42. When the lock release lever 41 is released, the main battery storage lid 43 is released.
Is removed, and the battery 44 is taken out. The main battery housing cover 43 is provided with a lock groove 47. In the figure, when the lock release lever 41 is moved rightward, the member in the lock groove 47 of the lever 41 comes off the groove 47 and the lever 41 is released, and the lever release detection mechanism 42
Detects that the lever is released, and moves the lever 41 to the left to position the lid 43 in the lock groove 47 of the lid 43, and the lid 43 is locked.

【0021】図3は、本実施例の装置の内部構成を示し
たブロック図である。
FIG. 3 is a block diagram showing the internal configuration of the apparatus of this embodiment.

【0022】図3を参照すると本装置は、CPU20
1、主メモリ202、バックアップメモリ203、バッ
クアップ電池204、電源供給装置205、レバー検出
機構209に接続されレバー解除検出時CPU201に
割り込みを発生するレバー解除検出割込発生回路20
8、表示装置210、電源スイッチ212に接続されオ
ン・オフ検出時CPU201に割り込みを発生する電源
スイッチ検出割込発生回路208を備えている。電源供
給装置205には、通常電源を供給する主電池206と
副電池207がある。通常は主電池206で装置を動作
させるが、主電池206がない場合又は抜かれている場
合は副電池207で動作する。但し、副電池207は容
量は小とされており、サスペンド時のみ利用が可能であ
る。図3の表示装置210は、図1の表示装置2に対応
し、図3の電源スイッチ212は図1の電源スイッチ5
に対応している。
Referring to FIG. 3, the apparatus comprises a CPU 20
1. Lever release detection interrupt generation circuit 20 that is connected to main memory 202, backup memory 203, backup battery 204, power supply device 205, and lever detection mechanism 209 and generates an interrupt to CPU 201 upon detection of lever release.
8, a power switch detection interrupt generation circuit 208 which is connected to the display device 210 and the power switch 212 and generates an interrupt to the CPU 201 upon detection of ON / OFF. The power supply device 205 includes a main battery 206 and a sub-battery 207 that supply normal power. Normally, the device is operated by the main battery 206. However, when the main battery 206 is not provided or is removed, the device is operated by the sub-battery 207. However, the capacity of the sub-battery 207 is small and can be used only at the time of suspending. The display device 210 of FIG. 3 corresponds to the display device 2 of FIG. 1, and the power switch 212 of FIG.
It corresponds to.

【0023】レバー解除検出機構209において、ロッ
ク解除レバーの解除状態を検出するとレバー解除検出割
込発生回路208を介して割り込みによりCPU201
に通知される。
When the release state of the lock release lever is detected by the lever release detection mechanism 209, the CPU 201 is interrupted via the lever release detection interrupt generation circuit 208 by the CPU 201.
Will be notified.

【0024】この割り込みを受けて、CPU201はサ
スペンド処理を開始し、バックアップメモリ203にお
いてフラグをオンとする。なお、バックアップメモリ2
03の内容はバックアップ電池204にて保持される。
In response to this interrupt, the CPU 201 starts the suspend process and turns on the flag in the backup memory 203. The backup memory 2
03 is stored in the backup battery 204.

【0025】ユーザによるサスペンド及びレジュームは
電源スイッチ212の押下で行ない、電源スイッチ検出
割込発生回路211にてCPU201に割り込みで通知
され、この割り込みを受けてCPU201は該当する処
理(例えば電源スイッチオン時にはレジューム処理等)
を行う。なお、バックアップメモリ203にサスペンド
失敗を意味するフラグがオンに設定されている場合に
は、表示装置210にその旨のエラー表示を行なう。
The user suspends and resumes when the power switch 212 is pressed, and the power switch detection interrupt generation circuit 211 notifies the CPU 201 of the interruption by an interrupt. Upon receiving the interrupt, the CPU 201 performs the corresponding processing (for example, when the power switch is turned on). Resume processing etc.)
I do. If a flag indicating that the suspend has failed is set to ON in the backup memory 203, an error message to that effect is displayed on the display device 210.

【0026】装置においては、起動時(電源オン状態の
時)、下記の場合に、サスペンド処理を行なう。
When the apparatus is started (when the power is on), the suspend processing is performed in the following cases.

【0027】(1)電源スイッチ5が押された場合。(1) When the power switch 5 is pressed.

【0028】(2)電池残量が少なくなった場合。(2) When the remaining battery power is low.

【0029】(3)ロック解除レバー41が解除された
場合。
(3) When the lock release lever 41 is released.

【0030】このうち、上記(3)のロック解除レバー
41が解除された時にサスペンド処理を行なうのは、通
常突然の電池抜きが起きるとファイルの破壊等何が起こ
るかわからないので、突然に主電池の抜き取りが行われ
た際に、サスペンドを行ない障害の発生を回避するため
である。
Of these, the suspending process is performed when the lock release lever 41 of the above (3) is released. Usually, when the battery is suddenly removed, it is not known what will happen, such as file destruction. This is to prevent the occurrence of a failure by suspending when the data is extracted.

【0031】サスペンド状態でない時に電池が抜かれる
場合、電池格納蓋43を取り外すため、必ずロック解除
レバー41が解除されることになる。
When the battery is removed when the battery is not in the suspend state, the battery release cover 43 is removed, so that the lock release lever 41 is always released.

【0032】本実施例においては、このレバー解除をレ
バー検出機構で検出しレバー解除検出割込発生回路20
8がCPU201に割り込みを通知することにより、サ
スペンド処理が開始される。実際に、主電池格納部蓋4
3を外すまでに、多少の時間があるため、レバー解除検
出から蓋43を外して電池を抜き取るまでの時間の間
に、サスペンド処理が行われれば、主電池を突然抜くこ
とが行われても障害の発生は確実に回避される。
In this embodiment, this lever release is detected by the lever detection mechanism, and the lever release detection interrupt generation circuit 20 is used.
8 notifies the CPU 201 of the interruption, whereby the suspend process is started. Actually, the main battery storage unit cover 4
Since there is some time before the main battery 3 is removed, if the suspending process is performed between the time when the lever 43 is released and the time when the lid 43 is removed and the battery is removed, even if the main battery is suddenly removed. Failures are reliably avoided.

【0033】また上記(1)の電源スイッチが押された
場合には、電源スイッチ検出割込発生回路211による
割り込みによりCPU201に通知され、サスペンド処
理の準備を始める。また上記(2)の電池残量が少なく
なった場合には、主電池206より電源供給装置205
に電池残量情報が伝わり、電源供給装置205はこの電
池残量情報をCPU201に伝え、CPU201は電池
残量が少ないと判断したらサスペンド処理の準備を始め
る。
When the power switch of (1) is pressed, the CPU 201 is notified by an interrupt from the power switch detection interrupt generation circuit 211, and preparation for the suspend process is started. When the remaining battery power in (2) is low, the power supply device 205 is supplied from the main battery 206.
The battery supply information is transmitted to the CPU 201, and the power supply device 205 transmits the battery remaining information to the CPU 201. When the CPU 201 determines that the remaining battery power is low, the CPU 201 starts preparing for a suspend process.

【0034】図4は、本発明の一実施例の動作を説明す
るためのフローチャートである。図4を参照して、電源
スイッチのオフまたはロック解除を検出した際に(ステ
ップS1のYES分岐)、CPU201がサスペンド処
理の準備を始め、サスペンド処理に移る前に、バックア
ップメモリ203にサスペンドフラグをオンにセットす
る(ステップS2)。
FIG. 4 is a flow chart for explaining the operation of one embodiment of the present invention. Referring to FIG. 4, when detecting that the power switch is turned off or unlocked (YES branch of step S1), CPU 201 starts preparing for the suspend process, and sets a suspend flag in backup memory 203 before shifting to the suspend process. It is set to ON (step S2).

【0035】CPU201は、環境の保存等を行なうた
め、サスペンド処理を始め(ステップS3)、サスペン
ド処理が終了間近になる(例えばCPU201自身のサ
スペンド処理のみ残っている状態)になると、バックア
ップメモリ203のサスペンドフラグをオフする(ステ
ップS4)。
The CPU 201 starts the suspending process to save the environment (step S3), and when the suspending process is about to end (for example, when only the suspending process of the CPU 201 itself remains), the backup memory 203 is restored. The suspend flag is turned off (step S4).

【0036】電源スイッチがオンとされ、リブート時に
バックアップメモリ203にフラグが立っていると、サ
スペンド完了前に電池が抜かれたことを表示装置210
にメッセージで表示される。なお、バックアップメモリ
203の記憶内容は電源オフ時にはバックアップ電池2
04より供給され、記憶を保持する。
When the power switch is turned on and a flag is set in the backup memory 203 at the time of reboot, the display device 210 indicates that the battery has been removed before the completion of the suspend.
Will be displayed as a message. The contents of the backup memory 203 are stored in the backup battery 2 when the power is turned off.
04, and retains the memory.

【0037】本実施例においては、サスペンド処理中、
及び突然の電池拭きでサスペンド処理が完了しない時に
電池が抜かれた時には、バックアップメモリ203にフ
ラグをセットし、次回のリブート時に、表示装置210
に、サスペンド処理異常終了の旨のメッセージが表示さ
れる。
In this embodiment, during the suspend process,
If the battery is removed when the suspend process is not completed due to sudden battery wiping, a flag is set in the backup memory 203, and the display device 210 is restarted at the next reboot.
A message indicating that the suspend processing has been abnormally terminated is displayed.

【0038】一方、システムの暴走及びストール等の障
害時のシャットダウンがおきた時、バックアップメモリ
203にフラグがセットさせないため、リブートをかけ
ても、サスペンド異常終了等の旨のメッセージは表示さ
れない。
On the other hand, when the system is shut down due to a failure such as a runaway or a stall, a flag is not set in the backup memory 203. Therefore, even if the system is rebooted, a message indicating abnormal termination of the suspend operation is not displayed.

【0039】[0039]

【発明の効果】以上説明したように、本発明によれば、
サスペンド処理中に電池抜きがおきた場合、次回リブー
ト時にユーザに、サスペンド処理異常終了の旨を表示す
ることができるという効果を有する。そして、本発明に
おいて、サスペンド処理異常終了メッセージは、システ
ムの暴走及びストール等の障害時のシャットダウンによ
るリブートとも判別でき、ユーザに正確な情報を提供す
ることができ、結果として装置の利便性、及び信頼性を
向上する。
As described above, according to the present invention,
When the battery is drained during the suspend process, an effect that the suspend process is abnormally terminated can be displayed to the user at the next reboot. Then, in the present invention, the suspend processing abnormal end message can also be determined as a reboot due to shutdown at the time of failure such as system runaway and stall, so that accurate information can be provided to the user, and as a result, convenience of the apparatus and Improve reliability.

【0040】その理由は、本発明においては、サスペン
ド処理が正常終了しないと、バックアップメモリのフラ
グがオフとされないためである。
The reason is that, in the present invention, the flag of the backup memory is not turned off unless the suspend processing is normally completed.

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

【図1】本発明の一実施例の装置の外観を示す斜視図で
ある。
FIG. 1 is a perspective view showing the appearance of an apparatus according to an embodiment of the present invention.

【図2】本発明の一実施例の電池格納部を示す図であ
る。
FIG. 2 is a diagram showing a battery storage unit according to one embodiment of the present invention.

【図3】本発明の一実施例の装置の内部構成を示す図で
ある。
FIG. 3 is a diagram showing an internal configuration of an apparatus according to an embodiment of the present invention.

【図4】本発明の一実施例の動作を説明するためのフロ
ーチャート図である。
FIG. 4 is a flowchart for explaining the operation of one embodiment of the present invention.

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

1 装置本体 2 表示装置 3 各種I/F(インタフェース) 4 電池格納部 5 電源スイッチ 41 ロック解除レバー 42 レバー解除検出機構 43 主電池格納蓋(上面図) 44 電池 45 主電池格納蓋(側面図1) 46 主電池格納蓋(側面図2) 47 ロック溝 201 CPU 202 主メモリ 202 バックアップメモリ 204 バックアップ電池 205 電源供給装置 206 主電池 207 副電池 208 レバー解除検出割込発生回路 209 レバー解除検出機構 210 表示装置 211 電源スイッチ検出割込発生回路 212 電源スイッチ DESCRIPTION OF SYMBOLS 1 Device main body 2 Display device 3 Various I / F (Interface) 4 Battery storage part 5 Power switch 41 Lock release lever 42 Lever release detection mechanism 43 Main battery storage lid (top view) 44 Battery 45 Main battery storage lid (side view 1) 46) Main battery storage lid (side view 2) 47 Lock groove 201 CPU 202 Main memory 202 Backup memory 204 Backup battery 205 Power supply device 206 Main battery 207 Secondary battery 208 Lever release detection interrupt generation circuit 209 Lever release detection mechanism 210 Display Device 211 Power switch detection interrupt generation circuit 212 Power switch

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】装置を駆動する主電池の交換時には副電池
が用いられる電池駆動型の情報処理装置において、 前記主電池を格納する主電池格納部の蓋を閉状態にロッ
クするレバーと、前記レバーのロック解除を検出する検
出手段と、 電源スイッチのオン・オフを検出する手段と、を少なく
とも備え、 電源スイッチのオフもしくはロック解除の検出に基づ
き、CPUが、サスペンド処理を開始するに当たり、電
源オフ時にも記憶内容を保持するフラグをオンとし、サ
スペンド処理終了時には前記フラグをオフとし、 サスペンド処理が終了する前に前記主電池が抜き取られ
る等によりサスペンド処理が正常に終了せず前記フラグ
がオン状態のままである時、次にリブートする時に、サ
スペンド処理異常終了の旨を表示する、ことを特徴とす
るサスペンド処理異常の検出方法。
1. A battery-driven information processing apparatus using a sub-battery when replacing a main battery for driving the apparatus, wherein a lever for locking a lid of a main battery storage unit for storing the main battery in a closed state; A detection unit that detects unlocking of the lever; and a unit that detects on / off of a power switch. When the CPU starts a suspend process based on the detection of the turning off or unlocking of the power switch, the CPU turns off the power. The flag for retaining the stored contents is turned on even when the power is off, and the flag is turned off when the suspend process is completed. The suspend process is not completed normally because the main battery is removed before the suspend process is completed. Displaying a message indicating that the suspend processing has been abnormally terminated when the state is maintained or when the next reboot is performed. How to detect pending processing abnormalities.
【請求項2】CPUと、 主メモリと、 表示装置と、 主電池及び副電池と、 バックアップメモリと、 前記バックアップメモリ用のバックアップ電池と、 前記主電池または前記副電池のいずれかの電池電力に供
給する電源供給装置と、 電源スイッチと、 前記電源スイッチの開閉状態を前記CPUに通知するた
めの電源スイッチ検出割込発生回路と、 装置筐体の主電池及び副電池格納部にはそれぞれの電池
を交換するための蓋を備えた情報処理装置において、 前記蓋が不用意に開くことを防止するためのロック解除
レバーと、 前記ロック解除レバーによりロックが解除されたことを
検出するレバー解除検出手段と、 前記CPUに前記蓋のロックが解除されたことを通知す
るためのレバー解除検出割込発生回路と、 を備え、 電源スイッチOFF時、及び、前記蓋のロック解除時に
は、前記CPUがこれらの状態を検出し、前記バックア
ップメモリに、サスペンド処理中を表すフラグを書き込
んだ後、サスペンド処理を開始し、正常にサスペンド完
了した場合に前記フラグを消去し、 次回起動時には、前記フラグの値を検査することによ
り、サスペンド処理の異常中断か否かを判定し、サスペ
ンド処理の異常中断を検出した際には、前記表示装置に
警告を表示する、ことを特徴とするサスペンド処理異常
の検出方法。
2. A CPU, a main memory, a display device, a main battery and a sub-battery, a backup memory, a backup battery for the backup memory, and a battery power of one of the main battery and the sub-battery. A power supply device to be supplied; a power switch; a power switch detection interrupt generation circuit for notifying the CPU of the open / closed state of the power switch; and respective batteries in a main battery and a sub-battery storage section of the device housing. An information processing device having a lid for replacing the lock, a lock release lever for preventing the lid from being opened carelessly, and a lever release detecting means for detecting that the lock is released by the lock release lever. And a lever release detection interrupt generation circuit for notifying the CPU that the lock of the lid has been released. At the time of F, and at the time of unlocking the lid, the CPU detects these states, writes a flag indicating that a suspend process is being performed to the backup memory, starts the suspend process, and completes the suspend normally. At the next start-up, the value of the flag is checked to determine whether or not the suspend processing has been abnormally interrupted. When an abnormal suspend of the suspend processing is detected, a warning is issued to the display device. Is displayed, and a method for detecting an abnormality in a suspend process is provided.
JP9195161A 1997-07-04 1997-07-04 Detection method for suspend processing abnormality Pending JPH1124803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9195161A JPH1124803A (en) 1997-07-04 1997-07-04 Detection method for suspend processing abnormality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9195161A JPH1124803A (en) 1997-07-04 1997-07-04 Detection method for suspend processing abnormality

Publications (1)

Publication Number Publication Date
JPH1124803A true JPH1124803A (en) 1999-01-29

Family

ID=16336451

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9195161A Pending JPH1124803A (en) 1997-07-04 1997-07-04 Detection method for suspend processing abnormality

Country Status (1)

Country Link
JP (1) JPH1124803A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005038405A (en) * 2003-07-17 2005-02-10 High Tech Computer Corp Method and computer system for reducing occurrence of cold reset
KR100471056B1 (en) * 2000-11-18 2005-03-07 삼성전자주식회사 Computer system and Control method of Waiting mode for Computer system
JP2008187860A (en) * 2007-01-31 2008-08-14 Hioki Ee Corp Electronic apparatus
JP2009054366A (en) * 2007-08-24 2009-03-12 Canon Inc Electronic equipment and charging device
JP2015168060A (en) * 2014-03-04 2015-09-28 キヤノン株式会社 Image processing device and image processing method
US10424344B2 (en) 2016-11-15 2019-09-24 Fujitsu Limited Method of controlling information processing apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0428333U (en) * 1990-06-25 1992-03-06
JPH05197459A (en) * 1991-08-02 1993-08-06 Nippon Steel Corp Battery driven computer
JPH05334159A (en) * 1992-05-29 1993-12-17 Tokyo Electric Co Ltd Method for automatically diagnosing file destruction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0428333U (en) * 1990-06-25 1992-03-06
JPH05197459A (en) * 1991-08-02 1993-08-06 Nippon Steel Corp Battery driven computer
JPH05334159A (en) * 1992-05-29 1993-12-17 Tokyo Electric Co Ltd Method for automatically diagnosing file destruction

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100471056B1 (en) * 2000-11-18 2005-03-07 삼성전자주식회사 Computer system and Control method of Waiting mode for Computer system
JP2005038405A (en) * 2003-07-17 2005-02-10 High Tech Computer Corp Method and computer system for reducing occurrence of cold reset
JP2008187860A (en) * 2007-01-31 2008-08-14 Hioki Ee Corp Electronic apparatus
JP2009054366A (en) * 2007-08-24 2009-03-12 Canon Inc Electronic equipment and charging device
JP2015168060A (en) * 2014-03-04 2015-09-28 キヤノン株式会社 Image processing device and image processing method
US10424344B2 (en) 2016-11-15 2019-09-24 Fujitsu Limited Method of controlling information processing apparatus
US10482926B2 (en) 2016-11-15 2019-11-19 Fujitsu Limited Information processing apparatus

Similar Documents

Publication Publication Date Title
KR930012128B1 (en) Personal computer
US6236226B1 (en) Test method and system for uninterruptible power supply
KR100471056B1 (en) Computer system and Control method of Waiting mode for Computer system
JPS63184124A (en) Job rescue system during suspension of power supply
US20170149925A1 (en) Processing cache data
CN111427722A (en) Data storage method and system for abnormal power failure of computer
KR100262924B1 (en) Informaton processing system having power management function
CN1584847B (en) Operational state preservation in the absence of AC power
KR100899582B1 (en) Information processing apparatus, control apparatus therefor, control method therefor and control program
JPH1124803A (en) Detection method for suspend processing abnormality
US5557739A (en) Computer system with component removal and replacement control scheme
JPH05241622A (en) Programmable controller
JP2870590B2 (en) Information processing device with data protection mechanism
JPH11191026A (en) Device and method for discriminating power source and hardware faults
US6868510B1 (en) Terminal with corrective maintenance in accordance with selected mode
JP2001014069A (en) Method for automatically stopping power supply and information processor equipped with automatic power, supply stopping device
US8959255B2 (en) Computer protection system and method
JP4060664B2 (en) Information processing apparatus and resume error detection method
JP3231561B2 (en) Backup memory control method
JP3087650B2 (en) Automatic power recovery method
JPH0612154A (en) Battery backup system
JP2000125484A (en) Electronic equipment
JPH10207742A (en) Information processor
JP2956618B2 (en) Information terminal equipment
JP4235047B2 (en) Memory device with improved safety of stored data and data processing device using the same

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990622