JP2008287585A - Data processing equipment and method for handling power failure - Google Patents

Data processing equipment and method for handling power failure Download PDF

Info

Publication number
JP2008287585A
JP2008287585A JP2007133022A JP2007133022A JP2008287585A JP 2008287585 A JP2008287585 A JP 2008287585A JP 2007133022 A JP2007133022 A JP 2007133022A JP 2007133022 A JP2007133022 A JP 2007133022A JP 2008287585 A JP2008287585 A JP 2008287585A
Authority
JP
Japan
Prior art keywords
power failure
data file
data
business
file
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.)
Granted
Application number
JP2007133022A
Other languages
Japanese (ja)
Other versions
JP4825727B2 (en
Inventor
Noriyuki Marumo
宣之 丸茂
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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2007133022A priority Critical patent/JP4825727B2/en
Publication of JP2008287585A publication Critical patent/JP2008287585A/en
Application granted granted Critical
Publication of JP4825727B2 publication Critical patent/JP4825727B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To certainly restore an intial state when power failure is recovered, even if data of a data file is destroyed by unexpected power failure. <P>SOLUTION: The data processing equipment provides a non-volatile memory part with a back-up area while storing a plurality of data files corresponding to each application respectively in a data file area. When either of application is selected from among application menus, the data processing equipment copies a data file corresponding to the application to the back-up area before starting data processing of the application. The data file corresponding to the application is deleted from the back-up area whenever data processing of the application is completed. The data processing equipment determines whether a data file is stored in the back-up file or not at the start-up. When determined that a data file is stored, the data file is restored in the data file area as a data file corresponding to the application using the data file. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、事務用コンピュータ等として利用されるデータ処理装置及びこの装置の停電対策方法に関する。   The present invention relates to a data processing apparatus used as an office computer or the like and a power failure countermeasure method for the apparatus.

納品書の作成や請求書の発行等の事務処理に対応した計算機、いわゆる事務用コンピュータにおいて、バッテリを内蔵し、商用電源等の主電源に停電が発生した際にはバッテリからの電源供給に切り換えて、予期しない電源断にも処理中のデータが消失してしまうのを防ぐ技術は既に実施されている。この場合、バッテリが持続する時間(3〜5分程度)内は処理中のデータを保護できるので、停電発生の警告メッセージを確認したオペレータは、区切のよいタイミングで業務を終了させる等の処置を取ればよい。   Computers that support paperwork such as invoice creation and invoicing, so-called office computers, have a built-in battery, and switch to power supply from the battery when a main power supply such as a commercial power supply fails. Therefore, a technique for preventing the data being processed from being lost even in the event of an unexpected power interruption has already been implemented. In this case, since the data being processed can be protected during the battery lasting time (about 3 to 5 minutes), the operator who has confirmed the warning message of the occurrence of a power failure should take measures such as ending the work at a good timing. Take it.

また、このような電源バックアップ機能を有するデータ処理装置において、主電源の停電を検知したならばメモリ内の各種データを自動的に外部記憶装置に書き込んで保存し、その後の主電源立上げ時には外部記憶装置内のデータをメモリ上にロードすることで、停電前のデータを復元することは一般的に行われている。ただし、停電の発生によってメモリ内のデータが破壊される場合があり、このような場合には、破壊されたデータが外部記憶装置に保存されるので、停電復帰後は破壊されたデータがロードされてしまう不具合がある。そこで従来、主電源の停電検知に応じてメモリ内のデータをチェックし、正当なデータである場合に限りそのデータを外部記憶装置で保存する停電対策方法が知られていた(例えば、特許文献1参照)。
特開平8−69420号公報
Also, in such a data processing device having a power backup function, if a power failure of the main power supply is detected, various data in the memory are automatically written and stored in the external storage device, and when the main power supply is subsequently turned on, Generally, data before a power failure is restored by loading data in a storage device onto a memory. However, the data in the memory may be destroyed due to the occurrence of a power failure.In such a case, the destroyed data is stored in the external storage device, so the destroyed data is loaded after the power failure is restored. There is a bug that ends up. Therefore, conventionally, there has been known a power failure countermeasure method in which data in a memory is checked in response to detection of a power failure of the main power source and the data is stored in an external storage device only when the data is valid (for example, Patent Document 1) reference).
Japanese Patent Laid-Open No. 8-69420

しかしながら、上述した従来の停電対策方法では、停電発生時に正当なデータは復元できるものの、停電の発生によって破壊されたデータを破壊前の状態に戻すことはできなかった。   However, in the conventional power failure countermeasure method described above, although legitimate data can be restored when a power failure occurs, the data destroyed due to the occurrence of a power failure cannot be restored to the state before destruction.

本発明はこのような事情に基づいてなされたもので、その目的とするところは、予期しない停電によりデータファイルのデータが破壊されても、停電復旧時には破壊前の状態に確実に戻すことができ、信頼性に優れたデータ処理装置及びその停電対策方法を提供しようとするものである。   The present invention has been made based on such circumstances. The purpose of the present invention is to ensure that even if the data file data is destroyed due to an unexpected power failure, the data file can be reliably restored to its original state when the power failure is restored. An object of the present invention is to provide a highly reliable data processing apparatus and a power failure countermeasure method thereof.

本発明は、種々の業務メニューの中から選択された業務のデータ処理を実行し、その業務に対応したデータファイルを更新するデータ処理装置において、各業務にそれぞれ対応した複数のデータファイルをデータファイル領域で記憶するとともにバックアップ領域を備えてなる不揮発性記憶部を設け、業務メニューの中からいずれかの業務が選択されると、その業務のデータ処理を開始する前にその業務に対応したデータファイルをバックアップ領域に複写し、業務のデータ処理が終了する毎にバックアップ領域からその業務に対応したデータファイルを削除し、電源立上げ時、バックアップファイルにデータファイルが記憶されているか否かを判断し、データファイルが記憶されていると判断されると、そのデータファイルを当該データファイルを使用する業務に対応したデータファイルとしてデータファイル領域に復元するようにしたものである。   The present invention relates to a data processing apparatus that executes data processing of a business selected from various business menus and updates a data file corresponding to the business, and a plurality of data files corresponding to each business are data files. If a non-volatile storage unit that stores data in an area and has a backup area is provided, and a job is selected from the job menu, the data file corresponding to the job is processed before data processing for that job is started. Is copied to the backup area, the data file corresponding to the job is deleted from the backup area each time business data processing is completed, and it is determined whether the data file is stored in the backup file when the power is turned on. If it is determined that the data file is stored, the data file is Yl is obtained so as to restore the data file area as a data file corresponding to the business to use.

かかる手段を講じた本発明によれば、予期しない停電によりデータファイルのデータが破壊されても、停電復旧時には破壊前の状態に確実に戻すことができ、信頼性の向上を図ることができる効果を奏する。   According to the present invention in which such measures are taken, even if the data in the data file is destroyed due to an unexpected power failure, it is possible to reliably return to the state before the destruction at the time of power failure recovery, and to improve the reliability Play.

以下、本発明を実施するための最良の形態について、図面を用いて説明する。
なお、この実施の形態は、データ処理装置の一態様である事務用コンピュータに本発明を適用した場合である。
The best mode for carrying out the present invention will be described below with reference to the drawings.
This embodiment is a case where the present invention is applied to an office computer which is an aspect of a data processing apparatus.

図1は、本実施の形態における事務用コンピュータの要部構成を示すブロック図である。事務用コンピュータは、不揮発性記憶部であるHDD(Hard Disk Drive)装置1を内蔵した本体部2と、この本体部2の駆動源である電源部3と、本体部2に搭載されたキーボード4、ディスプレイ5及びプリンタ6の各種入出力機器とで構成されている。   FIG. 1 is a block diagram showing a main configuration of an office computer according to the present embodiment. The office computer includes a main body 2 having a built-in HDD (Hard Disk Drive) device 1 as a non-volatile storage, a power source 3 as a drive source of the main body 2, and a keyboard 4 mounted on the main body 2. The display 5 and the various input / output devices of the printer 6 are configured.

本体部2は、主制御部を構成するCPU(Central Processing Unit)20、プログラム等の固定的データが格納されたROM(Read Only Memory)21、CPU20によるデータの書込み及び読出しが自在なデータエリアが形成されたRAM(Random Access Memory)22、前記HDD装置1をアクセスしてデータの書込み及び読出しを制御するHDDコントローラ23、光ディスク,光磁気ディスク等の補助記憶装置を駆動する補助記憶装置ドライバ24、ネットワークを介して接続される外部装置とのデータ通信を司る通信インターフェイス25、前記キーボード4の通電を制御し、操作キーに対応したキー信号を取込むキーボードコントローラ26、前記ディスプレイ5の通電を制御し、画面を表示させる表示コントローラ27、前記プリンタ6の通電を制御し、印字動作させるプリンタコントローラ28等で構成されている。CPU20と、ROM21,RAM22,HDDコントローラ23,補助記憶装置ドライバ24,通信インターフェイス25,キーボードコントローラ26,表示コントローラ27及びプリンタコントローラ28とは、アドレスバス,データバス等のバスライン29で電気的に接続されている。   The main unit 2 has a CPU (Central Processing Unit) 20 constituting a main control unit, a ROM (Read Only Memory) 21 in which fixed data such as a program is stored, and a data area in which the CPU 20 can freely write and read data. A formed RAM (Random Access Memory) 22, an HDD controller 23 that accesses the HDD device 1 to control writing and reading of data, an auxiliary storage device driver 24 that drives an auxiliary storage device such as an optical disk and a magneto-optical disk, A communication interface 25 that controls data communication with an external device connected via a network, a keyboard controller 26 that controls the energization of the keyboard 4 and captures key signals corresponding to operation keys, and an energization of the display 5 The display controller 27 for displaying the screen and the energization of the printer 6 Gyoshi, and a printer controller 28 or the like for printing operation. The CPU 20, ROM 21, RAM 22, HDD controller 23, auxiliary storage device driver 24, communication interface 25, keyboard controller 26, display controller 27, and printer controller 28 are electrically connected by a bus line 29 such as an address bus or a data bus. Has been.

電源部3は、電源回路30、停電検出回路31及びバッテリ32で構成されている。電源回路30は、図示しない電源スイッチの投入により商用電源7からの電源供給を受け、所定の駆動電圧Vを生成して本体部2に供給するとともに、前記バッテリ32の充電を行う。停電検出回路31は、前記電源回路30から供給される駆動電圧Vを監視し、一定電圧以下に低下すると停電発生とみなして、前記本体部2のCPU20に停電信号Sを出力するとともに(停電検知手段)、バッテリ32を放電させる。バッテリ32は、満充電の状態において放電が開始された場合に、3分程度であれば本体部2の動作を保障し得る容量を備えたものである。   The power supply unit 3 includes a power supply circuit 30, a power failure detection circuit 31, and a battery 32. The power supply circuit 30 is supplied with power from the commercial power supply 7 by turning on a power switch (not shown), generates a predetermined drive voltage V and supplies it to the main body 2, and charges the battery 32. The power failure detection circuit 31 monitors the drive voltage V supplied from the power supply circuit 30 and considers that a power failure has occurred when the drive voltage V drops below a certain voltage and outputs a power failure signal S to the CPU 20 of the main body 2 (power failure detection). Means), the battery 32 is discharged. The battery 32 has a capacity that can guarantee the operation of the main body 2 for about 3 minutes when discharging is started in a fully charged state.

かかる構成の事務用コンピュータは、納品書、請求書、売上帳等の経営に関わる伝票,帳票の作成作業を支援するのに特化したデータ処理装置であり、納品書作成業務、請求書作成業務、月次集計業務、月次更新業務、締日集計業務、締日更新業務等の種々の業務を実行可能となっている。   An office computer with such a configuration is a data processing device specialized in supporting the creation of slips and forms related to management of invoices, invoices, sales books, etc. It is possible to perform various tasks such as a monthly tabulation task, a monthly update task, a closing date counting task, and a closing date updating task.

そして、そのHDD装置1には、図2に示すように、業務別に作成された種々の業務プログラムを記憶するプログラム領域11と、各業務に対してそれぞれ形成された複数のデータファイルを記憶するデータファイル領域12とを形成している。   As shown in FIG. 2, the HDD device 1 stores a program area 11 for storing various business programs created for each business, and data for storing a plurality of data files respectively formed for each business. The file area 12 is formed.

例えば納品書作成業務に対しては、作成された納品書の得意先名,得意先識別コード,商品名,数量,単価,金額,合計金額等の明細レコードを蓄積記憶するためのデータファイルがデータファイル領域12に形成されている。また、月次集計業務に対しては、上記納品書作成業務に対応するデータファイルに蓄積された明細レコードのうち指定された月のレコードから得意先識別コード別に金額を集計して、月間売上帳を作成するためのデータファイルがデータファイル領域12に形成されている。   For example, for a delivery note creation job, the data file for storing and storing detailed records such as customer name, customer identification code, product name, quantity, unit price, amount of money, total amount of the created delivery note is the data. It is formed in the file area 12. In addition, for monthly tabulation work, the monthly sales book is calculated by summing up the amount by customer identification code from the records for the specified month among the detail records stored in the data file corresponding to the above delivery document creation work. Is formed in the data file area 12.

また、HDD装置1には、ファイルバックアップ領域13、業務管理テーブル領域14及び停電フラグ領域15も形成している。業務管理テーブル領域14には、図3に示すように、当該事務用コンピュータで実行可能な種々の業務の業務名に対応して、その業務で使用するデータファイルのファイル名と、停電対策の対象であるか否かを識別する停電保存フラグ(1:対象、0:対象外)とが記録された業務管理テーブル8を格納している。   The HDD device 1 also has a file backup area 13, a business management table area 14, and a power failure flag area 15. In the business management table area 14, as shown in FIG. 3, the file name of the data file used in the business, the target of power failure countermeasures, corresponding to the business name of various business that can be executed by the office computer. Is stored in the business management table 8 in which a power failure storage flag (1: target, 0: not target) is recorded.

ここで、本実施の形態における事務用コンピュータの停電対策の概要について説明する。
本実施の形態では、種々の業務メニューの中からいずれかの業務が選択されると、その業務が停電対策対象の場合、すなわち停電保存フラグが“1”にセットされている場合に限り、その業務のデータ処理を開始する前にその業務に対応したデータファイルをHDD装置1のバックアップ領域13に複写する(複写ステップ)。そして、その業務のデータ処理を終了する毎に、バックアップ領域13からその業務に対応したデータファイルを削除する(削除ステップ)。
Here, an outline of the power failure countermeasure of the office computer in this embodiment will be described.
In the present embodiment, when any business is selected from various business menus, only when the business is a power failure countermeasure target, that is, when the power failure storage flag is set to “1”. Before starting business data processing, a data file corresponding to the business is copied to the backup area 13 of the HDD device 1 (copying step). Each time data processing for the business is completed, the data file corresponding to the business is deleted from the backup area 13 (deletion step).

また、電源回路30から動作電圧が本体部2に印加されて本体部2が立ち上げると、バックアップ領域13にデータファイルが記憶されているか否かを判断する(判断ステップ)。そして、データファイルが記憶されていた場合には、そのデータファイルを、当該データファイルを使用する業務に対応したデータファイルとして、データファイル領域12に復元する(復元ステップ)。   Further, when the operating voltage is applied from the power supply circuit 30 to the main body 2 and the main body 2 is started, it is determined whether or not a data file is stored in the backup area 13 (determination step). If the data file is stored, the data file is restored to the data file area 12 as a data file corresponding to a job that uses the data file (restoration step).

したがって、業務のデータ処理中に停電が発生してデータファイルが異常となっても、その業務が停電対策対象の業務に指定されていた場合には、その後の電源再立上げ時において、そのデータファイルは前回の業務開始前の状態、つまりは正常な状態に復元される。   Therefore, even if a power failure occurs during data processing of a business and the data file becomes abnormal, if that business is designated as a business that is subject to power failure countermeasures, the data will be lost when the power is restarted after that. The file is restored to the state before the start of the previous operation, that is, the normal state.

このような停電対策を実現するために、本実施の形態の事務用コンピュータは、CPU20が図4〜図7の流れ図に示す手順の処理を実行するようにプログラム構成されている。   In order to realize such a power failure countermeasure, the office computer according to the present embodiment is configured such that the CPU 20 executes the processing of the procedure shown in the flowcharts of FIGS.

図4は、前記業務管理テーブル8の停電保存フラグを設定する停電設定業務の処理手順を示す流れ図である。CPU20は、キーボード4のキー操作により停電設定業務の実行が指令されると、この処理を開始する。先ず、ST(ステップ)1として業務管理テーブル領域14の業務管理テーブル8をオープンする。すなわち、業務管理テーブル8をアクセス可能とする。そして、ST2としてこの業務管理テーブル8のデータに基づきディスプレイ5に停電設定画面50を表示させる。   FIG. 4 is a flowchart showing a processing procedure of a power failure setting job for setting the power failure storage flag of the job management table 8. CPU20 will start this process, if execution of the power failure setting work is commanded by the key operation of the keyboard 4. First, the business management table 8 in the business management table area 14 is opened as ST (step) 1. That is, the business management table 8 can be accessed. Then, as ST2, the power failure setting screen 50 is displayed on the display 5 based on the data of the business management table 8.

上記停電設定画面50の表示例を図8に示す。図示するように停電設定画面50には、業務管理テーブル8に記憶されている業務名とそれに対応するデータファイル名とのリスト51が、各業務名にそれぞれ対応して設けられたチェックボックス52とともに表示されている。また、「設定更新」ボタン53と「閉じる」ボタン54とが、画面上に表示されている。ここで、停電保存フラグが“1”、すなわち停電対策対象業務の業務名に対応したチェックボックス52には予めチェックが入っており、停電保存フラグが“0”、すなわち停電対策対象外業務の業務名に対応したチェックボックス52にはチェックが入っていない。したがって、オペレータは、チェックの有無により停電対策対象であるのか対象外であるのかを判別することができる。   A display example of the power failure setting screen 50 is shown in FIG. As shown in the figure, the power failure setting screen 50 includes a list 51 of business names stored in the business management table 8 and data file names corresponding to the business names, together with check boxes 52 provided corresponding to the respective business names. It is displayed. In addition, a “setting update” button 53 and a “close” button 54 are displayed on the screen. Here, the check box 52 corresponding to the business name of the business that is subject to the power failure countermeasure is “1”, that is, the business name that is not subject to the power failure countermeasure. The check box 52 corresponding to the name is not checked. Therefore, the operator can determine whether it is a power failure countermeasure target or not based on the presence or absence of a check.

さて、停電設定画面50が表示された事務用コンピュータのCPU20は、ST3として「閉じる」ボタン54が入力されるか、ST4として「設定更新」ボタン53が入力されるのを待機する。また、この間、チェックが入っていないチェックボックス52がチェックされた場合にはそのボックス52にチェックを付し、チェックが入っているチェックボックス52がチェックされた場合にはそのボックス52からチェックを外す。   The CPU 20 of the office computer on which the power failure setting screen 50 is displayed waits for the “close” button 54 to be input as ST3 or the “setting update” button 53 to be input as ST4. During this time, if a check box 52 that is not checked is checked, the check box 52 is checked. If a check box 52 that is checked is checked, the check box 52 is unchecked. .

キーボード4のキー操作により「閉じる」ボタン54が入力された場合には(ST3のYES)、CPU20は、ST10の処理に進む。すなわち、業務管理テーブル8をクローズする。すなわち、業務管理テーブル8をアクセス不能とする。かくして、この停電設定業務の処理を終了する。   When the “close” button 54 is input by the key operation of the keyboard 4 (YES in ST3), the CPU 20 proceeds to the process of ST10. That is, the business management table 8 is closed. That is, the business management table 8 is made inaccessible. Thus, the power outage setting process is completed.

一方、「閉じる」ボタン54でなく、「設定更新」ボタン53が入力された場合には(ST4のYES)、CPU20は、ST5として業務管理テーブル8から順番に業務名を選択する。そして、1業務名を選択する毎に、ST6として停電設定画面50において、その業務名に対応するチェックボックス52にチェックが入っているか否かを判断し、チェックが入っている場合には、ST7として業務管理テーブル8の当該業務名に対応する停電保存フラグを“1”にセットし、チェックが入っていない場合には、ST8として業務管理テーブル8の当該業務名に対応する停電保存フラグを“0”にリセットする(設定手段)。   On the other hand, when the “update setting” button 53 is input instead of the “close” button 54 (YES in ST4), the CPU 20 selects business names in order from the business management table 8 as ST5. Each time a business name is selected, it is determined whether or not the check box 52 corresponding to the business name is checked on the power failure setting screen 50 as ST6. Is set to “1”, and if the check is not checked, the power failure storage flag corresponding to the business name in the business management table 8 is set to “8”. Reset to 0 "(setting means).

CPU20は、業務管理テーブル8から業務名を選択する毎に、上記ST6,7またはST6,8の処理を繰返し実行する。そして、ST9として最終の業務名について上記処理を実行したならば、CPU20は、ST10として業務管理テーブル8をクローズして、この停電設定業務の処理を終了する。   The CPU 20 repeatedly executes the processing of ST6, 7 or ST6, 8 every time a business name is selected from the business management table 8. If the above-described processing is executed for the final business name in ST9, the CPU 20 closes the business management table 8 in ST10, and ends this power failure setting business processing.

したがってオペレータは、上記停電設定業務を実行することによって、業務毎に前述した停電対象とするか否かを容易に設定することができる。   Therefore, the operator can easily set whether or not the above-described power outage target is performed for each business by executing the power outage setting business.

図5は、電源立上げ後の通常処理手順を示す流れ図である。本実施の形態の事務用コンピュータは、電源回路30から動作電圧が本体部2に印加されて本体部2が立ち上げると、後述する電源立上げ処理を実行する。そして、この立上げ処理により正常に立ち上がると、この通常処理ルーチンに入る。   FIG. 5 is a flowchart showing a normal processing procedure after the power is turned on. When the operating voltage is applied from the power supply circuit 30 to the main body unit 2 to start up the main body unit 2, the office computer according to the present embodiment executes a power supply start-up process described later. Then, when the startup process is started normally, the normal process routine is entered.

通常処理が開始されると、先ず、CPU20は、ST11としてディスプレイ5に業務メニュー画面を表示させる。この状態で、CPU20は、ST12として「終了」が入力されるか、ST13としていずれかの業務が選択されるのを待機する。   When the normal process is started, first, the CPU 20 displays a business menu screen on the display 5 as ST11. In this state, the CPU 20 waits for “end” to be input as ST12 or to select any task as ST13.

キーボード4を介してメニュー画面が操作されて、種々の業務メニューのなかからいずれか1つの業務が選択されると(ST13のYES)、CPU20は、ST14として業務管理テーブル8を検索して、その選択された業務で使用するデータファイルのファイル名を取得する。ファイル名を取得したならば、CPU20は、ST15としてデータファイル領域12からそのファイル名のデータファイルをオープンする。すなわち、このデータファイルをアクセス可能とする。   When the menu screen is operated via the keyboard 4 and any one of the various business menus is selected (YES in ST13), the CPU 20 searches the business management table 8 as ST14, Acquires the file name of the data file used for the selected job. If the file name is acquired, the CPU 20 opens the data file having the file name from the data file area 12 as ST15. That is, this data file can be accessed.

次に、CPU20は、ST16として業務管理テーブル8をさらに検索して、その選択された業務に対応する停電保存フラグを調べる。そして、停電保存フラグが“1”、すなわち停電対策対象の業務が選択されたと判断した場合には、CPU20は、ST17としてオープンしたデータファイルをファイルバックアップ領域13に複写する(複写手段)。これに対し、停電保存フラグが“0”、すなわち停電対策対象外の業務が選択されたと判断した場合には、データファイルの複写を行わない。   Next, the CPU 20 further searches the business management table 8 at ST16 and checks the power failure storage flag corresponding to the selected business. When the power failure storage flag is “1”, that is, when it is determined that a business subject to power failure countermeasures has been selected, the CPU 20 copies the data file opened in ST17 to the file backup area 13 (copying means). On the other hand, when it is determined that the power failure storage flag is “0”, that is, a business that is not subject to power failure countermeasures is selected, the data file is not copied.

その後、CPU20は、選択された業務の業務プログラムに従い処理を実行する。この処理過程において、オープン状態にあるデータファイルのデータが適時読み出され、また書き換えられる。   Thereafter, the CPU 20 executes processing according to the selected business program. In this process, the data in the open data file is read out and rewritten as appropriate.

この業務処理の実行中、CPU20は、ST19として停電検出回路31から停電信号Sが入力されたかどうか監視する。停電信号Sが入力されることなく、実行中の業務処理が終了した場合には(ST20のYES)、CPU20は、ST21として前記停電保存フラグを参照して、この処理を終了した業務が停電対策対象の業務であったか否かを判断する。そして、停電対策対象の業務であった場合には、CPU20は、ST22としてファイルバックアップ領域13に複写されていたデータファイルを削除する(ファイル削除手段)。   During execution of this business process, the CPU 20 monitors whether or not the power failure signal S is input from the power failure detection circuit 31 as ST19. When the business process being executed is completed without input of the power failure signal S (YES in ST20), the CPU 20 refers to the power failure storage flag as ST21, and the business that has completed this process is a countermeasure for power failure. Determine whether it was the target job. If it is a business subject to power failure countermeasures, the CPU 20 deletes the data file copied to the file backup area 13 as ST22 (file deletion means).

その後、CPU20は、ST23としてオープン状態にあったデータファイルをクローズする。そして、ST11の処理に戻り、ディスプレイ5に業務メニュー画面を再表示させる。   Thereafter, the CPU 20 closes the data file that was in the open state in ST23. Then, returning to the processing of ST11, the business menu screen is displayed again on the display 5.

なお、業務メニュー画面を表示している状態において、キーボード4の操作により「終了」が入力された場合には、CPU20は、ST24として業務メニュー画面を消去する。そして、この通常処理ルーチンを終了する。   When “end” is input by operating the keyboard 4 while the business menu screen is displayed, the CPU 20 deletes the business menu screen as ST24. Then, this normal processing routine is terminated.

一方、選択された業務処理を実行中において、停電検出回路31から停電信号Sが入力されたことを検知した場合には、CPU20は、ST25として図6の流れ図で示す停電割込処理を実行する。   On the other hand, when it is detected that the power failure signal S is input from the power failure detection circuit 31 while the selected business process is being executed, the CPU 20 executes a power failure interruption process shown in the flowchart of FIG. 6 as ST25. .

すなわちCPU20は、ST31として停電フラグ領域15に停電情報である停電フラグを“1”にセットする(停電処理手段)。また、ST32として停電発生をオペレータに通知するメッセージ画面をディスプレイ5に表示させる。この画面には、オペレータ確認用として「閉じる」ボタンが設けられているので、CPU20は、ST33として「閉じる」ボタンが入力されるのを待機する。そして、キーボード4の操作により「閉じる」ボタンが入力された場合には、CPU20は、ST34として上記停電発生通知画面を消去する。   That is, the CPU 20 sets a power failure flag as power failure information to “1” in the power failure flag area 15 as ST31 (power failure processing means). In ST32, a message screen for notifying the operator of the occurrence of a power failure is displayed on the display 5. Since this screen is provided with a “close” button for operator confirmation, the CPU 20 waits for the input of the “close” button as ST33. When the “close” button is input by operating the keyboard 4, the CPU 20 deletes the power failure occurrence notification screen in ST34.

以上で、停電割込処理を終了する。その後、CPU20は、実行中の業務処理に戻る。このように、業務処理の実行途中で予期しない停電が発生した場合には、停電フラグ領域15に停電情報である停電フラグ“1”がセットされる。   This is the end of the power failure interrupt process. Thereafter, the CPU 20 returns to the business process being executed. In this way, when an unexpected power failure occurs during the execution of the business process, the power failure flag “1”, which is power failure information, is set in the power failure flag area 15.

図7は、電源オン時の処理手順を示す流れ図である。本実施の形態の事務用コンピュータは、電源回路30から動作電圧が本体部2に印加されて本体部2が立ち上げると、図示の電源オン処理を実行する。   FIG. 7 is a flowchart showing a processing procedure when the power is turned on. When the operating voltage is applied to the main body 2 from the power supply circuit 30 and the main body 2 starts up, the office computer according to the present embodiment executes the illustrated power-on process.

すなわちCPU20は、先ず、ST41としてRAMチェック,各コントローラの初期化等の立上げ処理を実行する。次に、CPU20は、ST42として停電フラグ領域15に停電フラグ“1”が保存されているか否かを判断する(停電判断手段)。停電フラグ“1”が保存されていない場合には、図6に示した通常処理ルーチンに移行する。   That is, the CPU 20 first executes startup processing such as RAM check and initialization of each controller in ST41. Next, the CPU 20 determines whether or not the power failure flag “1” is stored in the power failure flag area 15 in ST42 (power failure determination means). When the power failure flag “1” is not stored, the routine proceeds to the normal processing routine shown in FIG.

これに対し、停電フラグ“1”が保存されていた場合には、前回の通常処理ルーチンにおいて予期しない停電が発生していたので、CPU20は、ST43としてファイルバックアップ領域13にバックアップされたデータファイルが保存されているか否かを判断する(ファイル判断手段)。データファイルが保存されていない場合には、業務処理の途中で電源がダウンしてはいないので、ST50に進み、停電フラグ領域15から停電フラグをクリアした後、前記通常処理ルーチンに移行する。   On the other hand, if the power failure flag “1” is stored, an unexpected power failure has occurred in the previous normal processing routine, and therefore the CPU 20 stores the data file backed up in the file backup area 13 as ST43. It is determined whether or not the file is stored (file determination means). If the data file is not saved, the power is not down during the business process, so the process proceeds to ST50, and after the power failure flag is cleared from the power failure flag area 15, the process proceeds to the normal processing routine.

これに対し、ファイルバックアップ領域13にデータファイルが保存されていた場合には、前回は業務処理の途中で電源がダウンしたので、CPU20は、ST44としてディスプレイ5に復元処理画面60を表示させる。   On the other hand, when the data file is stored in the file backup area 13, since the power supply was down during the business process last time, the CPU 20 displays the restoration processing screen 60 on the display 5 as ST44.

上記復元処理画面60の一表示例を図9に示す。図示するように、復元処理画面60には、停電用データ復元処理の実行中であることを示すとともに、電源がダウンした時に実行していた業務の種類、及びその業務の再実行を促すメッセージを表示している(メッセージ出力手段)。なお、この時点では、画面60上のOKボタン61を入力することができない。   One display example of the restoration processing screen 60 is shown in FIG. As shown in the figure, on the restoration processing screen 60, a message indicating that the data restoration processing for power failure is being executed and the type of the business that was being executed when the power was shut down and a message prompting the re-execution of the business are displayed. Displayed (message output means). At this time, the OK button 61 on the screen 60 cannot be input.

復元処理画面60を表示すると、CPU20は、次に、データファイルの復元処理を実行する。すなわち、ファイルバックアップ領域13に保存されているデータファイルを読出し、データファイル領域12の同一ファイル名のデータファイルに上書きする。かくして、ファイルバックアップ領域13に保存されているデータファイルを、当該データファイルを使用する業務に対応したデータファイルとしてデータファイル領域12に復元する(ファイル復元手段)。   When the restoration process screen 60 is displayed, the CPU 20 next executes a restoration process of the data file. That is, the data file stored in the file backup area 13 is read and overwritten with the data file having the same file name in the data file area 12. Thus, the data file stored in the file backup area 13 is restored to the data file area 12 as a data file corresponding to a job that uses the data file (file restoring means).

ST46としてデータファイルの復元を終了したならば、CPU20は、ST47としてファイルバックアップ領域13からデータファイルを削除する。また、ST48としてディスプレイの画面を復元処理完了画面に切り換える。この復元処理完了画面は、図9の復元処理画面60において、「OK」ボタン61を入力可能な状態としたものである。   When the restoration of the data file is completed in ST46, the CPU 20 deletes the data file from the file backup area 13 in ST47. In ST48, the display screen is switched to the restoration process completion screen. This restoration processing completion screen is a state in which the “OK” button 61 can be input on the restoration processing screen 60 of FIG. 9.

そこでCPU20は、ST49として「OK」ボタン61が入力されるのを待機する。キーボード4の操作により「OK」ボタン61が入力されたことを検知したならば、CPU20は、ST50として停電フラグ領域15から停電フラグをクリアした後、前記通常処理ルーチンに移行する。   Therefore, the CPU 20 waits for an “OK” button 61 to be input in ST49. If it is detected that the “OK” button 61 has been input by operating the keyboard 4, the CPU 20 clears the power failure flag from the power failure flag area 15 in ST50, and then proceeds to the normal processing routine.

このように本実施の形態の業務用コンピュータにおいては、業務メニューの中からいずれか1つの業務を選択すると、その業務に対応したデータファイルがオープンされる。また、この業務が停電対策対象であるとき、すなわち当該業務に対応した停電保存フラグが”1”にセットされていたときには、当該データファイルがバックアップ領域13に複写される。すなわち、当該業務開始前の当該データファイルの内容がバックアップされる。   As described above, in the business computer according to the present embodiment, when any one business is selected from the business menu, a data file corresponding to the business is opened. Further, when this business is a power failure countermeasure target, that is, when the power failure storage flag corresponding to the business is set to “1”, the data file is copied to the backup area 13. That is, the contents of the data file before starting the business are backed up.

その後、選択した業務の処理が実行される。この処理実行により、オープン状態にあるデータファイルが更新される。ただし、バックアップ領域13のデータファイルは更新されない。   Thereafter, the selected job process is executed. By executing this processing, the data file in the open state is updated. However, the data file in the backup area 13 is not updated.

業務処理が終了すると、オープン状態にあったデータファイルがクローズされる。また、バックアップ領域13にバックアップされていたデータファイルが削除される。   When the business process ends, the data file that was in the open state is closed. Further, the data file backed up in the backup area 13 is deleted.

業務処理の途中で停電が発生すると、停電フラグ領域15に停電フラグがセットされる。また、ディスプレイ5にて停電発生通知画面が表示される。なお、停電が発生しても、数分間はバッテリ32によって動作電源がバックアップされるので、オープン状態にあるデータファイルのデータは保護される。   When a power failure occurs during business processing, a power failure flag is set in the power failure flag area 15. In addition, a power failure occurrence notification screen is displayed on the display 5. Even if a power failure occurs, the operating power supply is backed up by the battery 32 for several minutes, so that the data in the open data file is protected.

そこで停電発生通知画面を確認したオペレータは、「OK」ボタンを入力後、速やかにその業務を終了させる。そうすることにより、オープン状態にあったデータファイルのデータを保護できる。   Therefore, the operator who confirms the power failure occurrence notification screen inputs the “OK” button and immediately ends the operation. By doing so, it is possible to protect the data of the data file in the open state.

しかしながら、何らかの理由で業務を終了させることができなかった場合、次第にバッテリ32が放電されて動作電圧を維持できなくなる。そうなると、強制的に電源断となり、オープン状態にあったデータファイルのデータが保障されなくなる。   However, if the business cannot be terminated for some reason, the battery 32 is gradually discharged and the operating voltage cannot be maintained. If this happens, the power is forcibly cut off, and data in the data file that is in the open state cannot be guaranteed.

このような場合、本実施の形態では、その後の電源オン時に停電フラグがチェックされ、セットされていることから、ファイルバックアップ領域13がチェックされ、データファイルが記憶されていることから、このファイルバックアップ領域13のデータファイルが、データファイル領域12の同一ファイル名のデータファイルに上書きされる。すなわち、ファイルバックアップ領域13に保存されていたデータファイルが、当該データファイルを使用する業務に対応したデータファイルとしてデータファイル領域12に復元される。   In such a case, in this embodiment, since the power failure flag is checked and set when the power is turned on thereafter, the file backup area 13 is checked and the data file is stored. The data file in the area 13 is overwritten with the data file having the same file name in the data file area 12. In other words, the data file stored in the file backup area 13 is restored to the data file area 12 as a data file corresponding to a job that uses the data file.

かくして、予期しない停電の発生によりオープン状態にあったデータファイルのデータを保障できない事象に至っても、その後の電源オンにより、このデータファイルは、停電発生時に実行していた業務の開始前の状態に復元されるので、正常なデータに復元することができる。   Thus, even if an event that cannot guarantee the data of the data file that was open due to an unexpected power failure occurs, the data file is restored to the state before the start of the work that was being performed when the power failure occurred. Since it is restored, it can be restored to normal data.

ところで、本実施の形態では、業務毎に停電対策対象とするか否かを選択できるようにしている。停電対策対象とした場合は、業務開始毎に対応するデータファイルをファイルバックアップ領域13に複写し、業務終了毎にこのファイルバックアップ領域13のデータファイルを削除する処理ステップが必要となるが、停電対策対象外とした場合は、このような処理ステップが不要となり、効率がよい。   By the way, in this embodiment, it is possible to select whether or not to make a power failure countermeasure target for each business. In the case of a power failure countermeasure target, a processing step is required to copy the corresponding data file to the file backup area 13 every time the business starts and to delete the data file in the file backup area 13 every time the business is finished. When excluded from the target, such a processing step becomes unnecessary and efficiency is high.

そこで、オペレータがキーボードを操作してデータを入力しながら行う業務例えば納品書作成業務等は、停電が発生してもバッテリ32で電源がバックアップされている間に終了操作できるので停電対策対象外とし、オペレータが不在で自動的に実行される業務、例えば月次集計業務等は、停電が発生すると即座に対応できない場合があるので停電対策対象とする運用を容易に取ることができる。   Therefore, operations that the operator performs while inputting data by operating the keyboard, such as invoice creation operations, can be terminated while the power is backed up by the battery 32 even if a power failure occurs. Since operations that are automatically executed without an operator, such as monthly tabulation operations, may not be immediately available when a power failure occurs, operations that are targeted for power failure countermeasures can be easily taken.

また本実施の形態では、ファイル復元手段によるデータファイルの復元の際にディスプレイ5に表示される復元処理画面60において、そのデータファイルに関連した業務の再実行を促すメッセージを出力するようにしている。したがって、オペレータは、復元完了後に実行が促された業務を実行すればよいので簡便である。   In the present embodiment, a message prompting the re-execution of the business related to the data file is output on the restoration processing screen 60 displayed on the display 5 when the file restoration unit restores the data file. . Therefore, the operator can simply execute the work whose execution is prompted after the restoration is completed.

なお、この発明は前記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。   The present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage.

例えば前記実施の形態では、図7に示す電源オン処理において、ST42として停電フラグがセットされているか否かを判断したが、この判断処理ステップを省略し、立上げ処理後にファイルバックアップ領域13にデータファイルがバックアップされているか否かを判断し、バックアップされている場合には、そのデータファイルを、当該データファイルを使用する業務に対応したデータファイルとしてデータファイル領域12に復元するようにしてもよい。ただし、前記実施の形態のように停電フラグを用いることによって、停電が発生していた場合のみ、ファイルバックアップ領域13にデータファイルがバックアップされているか否かが判断されるので、仮に、業務が正常に終了していたにも拘らずファイルバックアップ領域13からデータファイルが削除されずに残っていた場合に、このデータファイルがデータファイル領域12に復元されて、当該データファイルが業務開始前の状態に戻ってしまうのを防ぐことができる。   For example, in the above embodiment, in the power-on process shown in FIG. 7, it is determined whether or not the power failure flag is set as ST42, but this determination process step is omitted, and the data is stored in the file backup area 13 after the startup process. It is determined whether or not the file is backed up. If the file is backed up, the data file may be restored to the data file area 12 as a data file corresponding to a job that uses the data file. . However, by using the power failure flag as in the above-described embodiment, it is determined whether or not the data file is backed up in the file backup area 13 only when a power failure has occurred. If the data file remains undeleted from the file backup area 13 in spite of the completion of the process, the data file is restored to the data file area 12 and the data file is returned to the state before starting the work. It can be prevented from returning.

また、前記実施の形態では、業務毎に停電対策対象か否かを設定したが、すべての業務を停電対策対象としてもよい。この場合、図4に示した停電設定業務を省略することができる。また、図5の流れ図で示した処理ステップのST16及びST21の判断処理も省略することができる。   Moreover, in the said embodiment, although it was set for every business whether it was a power failure countermeasure object, it is good also considering all the business as a power failure countermeasure object. In this case, the power failure setting work shown in FIG. 4 can be omitted. Further, the determination processing of ST16 and ST21 of the processing steps shown in the flowchart of FIG. 5 can be omitted.

また、前記実施の形態では、選択された業務に対応し、ファイルバックアップ領域13に複写されるデータファイルを1つとしたが、複数であってもよい。選択された業務に対応するデータファイルが複数あった場合には、それらすべてのデータファイルを一括して複写し、停電後の電源再立上げ時には一括して復元することで、同様な停電対策を講じることができる。   In the above embodiment, one data file is copied to the file backup area 13 corresponding to the selected job, but a plurality of data files may be used. If there are multiple data files corresponding to the selected job, copy all the data files at once and restore them at the same time when the power supply is restarted after a power failure. Can be taken.

また、前記実施の形態では本発明を事務用コンピュータに適用した場合を示したが、本発明は、種々の業務メニューの中から選択された業務のデータ処理を実行し、その業務に対応したデータファイルを更新するデータ処理装置全般に適用できるものである。   In the above embodiment, the present invention is applied to an office computer. However, the present invention executes data processing of a job selected from various job menus and data corresponding to the job. The present invention can be applied to all data processing devices that update files.

この他、前記実施形態に開示されている複数の構成要素の適宜な組合せにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態に亘る構成要素を組合わせてもよい。   In addition, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, the constituent elements over different embodiments may be combined.

本発明の一実施の形態である事務用コンピュータの要部構成を示すブロック図。The block diagram which shows the principal part structure of the office computer which is one embodiment of this invention. 同実施の形態における事務用コンピュータのHDD装置に形成される主要な記憶領域を示す模式図。The schematic diagram which shows the main memory areas formed in the HDD apparatus of the office computer in the embodiment. 図2の業務管理テーブル領域に記憶される業務管理テーブルのデータ構造例を示す模式図。FIG. 3 is a schematic diagram showing an example of a data structure of a business management table stored in a business management table area in FIG. 2. 同実施の形態における事務用コンピュータのCPUが実行する停電設定業務の要部処理手順を示す流れ図。The flowchart which shows the principal process procedure of the power failure setting work which CPU of the office computer in the embodiment performs. 同実施の形態における事務用コンピュータのCPUが実行する通常処理ルーチンの要部処理手順を示す流れ図。The flowchart which shows the principal part process sequence of the normal process routine which CPU of the office computer in the embodiment performs. 同実施の形態における事務用コンピュータのCPUが実行する停電割込処理ルーチンの要部処理手順を示す流れ図。The flowchart which shows the principal part process sequence of the power failure interruption process routine which CPU of the office computer in the embodiment performs. 同実施の形態における事務用コンピュータのCPUが実行する電源オン処理の要部処理手順を示す流れ図。The flowchart which shows the principal process procedure of the power-on process which CPU of the office computer in the embodiment performs. 同実施の形態において事務用コンピュータのディスプレイに表示される停電設定画面の一表示例を示す模式図。The schematic diagram which shows one display example of the power failure setting screen displayed on the display of an office computer in the embodiment. 同実施の形態において事務用コンピュータのディスプレイに表示される停電処理画面の一表示例を示す模式図。The schematic diagram which shows one display example of the power failure processing screen displayed on the display of an office computer in the embodiment.

符号の説明Explanation of symbols

1…HDD装置、2…本体部、3…電源部、4…キーボード、5…ディスプレイ、6…プリンタ、8…業務管理テーブル、11…プログラム領域、12…データファイル領域、13…ファイルバックアップ領域、14…業務管理テーブル領域、15…停電フラグ領域、20…CPU、30…電源回路、31…停電検出回路、32…バッテリ。   DESCRIPTION OF SYMBOLS 1 ... HDD apparatus, 2 ... Main-body part, 3 ... Power supply part, 4 ... Keyboard, 5 ... Display, 6 ... Printer, 8 ... Business management table, 11 ... Program area, 12 ... Data file area, 13 ... File backup area, DESCRIPTION OF SYMBOLS 14 ... Business management table area | region, 15 ... Power failure flag area | region, 20 ... CPU, 30 ... Power supply circuit, 31 ... Power failure detection circuit, 32 ... Battery.

Claims (5)

種々の業務メニューの中から選択された業務のデータ処理を実行し、その業務に対応したデータファイルを更新するデータ処理装置において、
各業務にそれぞれ対応した複数のデータファイルをデータファイル領域で記憶するとともにバックアップ領域を備えてなる不揮発性記憶部と、
前記業務メニューの中からいずれかの業務が選択されると、その業務のデータ処理を開始する前にその業務に対応したデータファイルを前記バックアップ領域に複写するファイル複写手段と、
業務のデータ処理が終了する毎に前記バックアップ領域からその業務に対応したデータファイルを削除するファイル削除手段と、
電源立上げ時、前記バックアップファイルにデータファイルが記憶されているか否かを判断するファイル判断手段と、
このファイル判断手段によりデータファイルが記憶されていると判断されると、そのデータファイルを当該データファイルを使用する業務に対応したデータファイルとして前記データファイル領域に復元するファイル復元手段と、
を具備したことを特徴とするデータ処理装置。
In a data processing device that executes data processing of a business selected from various business menus and updates a data file corresponding to the business,
A non-volatile storage unit that stores a plurality of data files corresponding to each business in a data file area and includes a backup area;
When any job is selected from the job menu, a file copying unit that copies a data file corresponding to the job to the backup area before starting data processing for the job;
File deletion means for deleting a data file corresponding to the job from the backup area every time the data processing of the job is completed,
File determination means for determining whether or not a data file is stored in the backup file at power-up;
When it is determined by the file determining means that the data file is stored, a file restoring means for restoring the data file to the data file area as a data file corresponding to a job that uses the data file;
A data processing apparatus comprising:
前記不揮発性記憶部に停電情報領域を設けるとともに、
主電源の停電を検知する停電検知手段と、
この停電検知手段による停電検知に応じて前記停電情報領域に停電情報を書き込む停電処理手段と、
電源立上げ時、前記停電情報領域に停電情報が記憶されているか否かを判断する停電判断手段と、をさらに具備し、
前記停電判断手段により前記停電情報が記憶されていると判断されると、この停電情報をクリアするとともに、前記ファイル復元手段を実行することを特徴とする請求項1記載のデータ処理装置。
While providing a power failure information area in the nonvolatile storage unit,
A power failure detection means for detecting a main power failure,
A power failure processing means for writing power failure information in the power failure information area according to the power failure detection by the power failure detection means,
A power failure determination means for determining whether or not power failure information is stored in the power failure information area when the power is turned on;
2. The data processing apparatus according to claim 1, wherein when the power failure determination means determines that the power failure information is stored, the power failure information is cleared and the file restoration means is executed.
前記業務メニューの業務毎にバックアップ処理を実行するか否かを設定する設定手段、をさらに具備し、
前記ファイル複写手段は、前記業務メニューの中からいずれかの業務が選択されると、その業務に対してバックアップ処理の実行が設定されているか否かを判断し、設定されている場合のみその業務に対応したデータファイルを前記バックアップ領域に複写することを特徴とする請求項1または2記載のデータ処理装置。
Setting means for setting whether to execute backup processing for each job of the job menu;
When any job is selected from the job menu, the file copying unit determines whether or not backup processing is set for the job, and only when the job is set. The data processing apparatus according to claim 1 or 2, wherein a data file corresponding to is copied to the backup area.
前記ファイル復元手段によるデータファイルの復元の際に、そのデータファイルに関連した業務の再実行を促すメッセージを出力するメッセージ出力手段、をさらに具備したことを特徴とする請求項1または2記載のデータ処理装置。   3. The data according to claim 1, further comprising message output means for outputting a message prompting re-execution of a business related to the data file when the file restoring means restores the data file. Processing equipment. 種々の業務メニューの中から選択された業務のデータ処理を実行し、その業務に対応したデータファイルを更新するデータ処理装置の停電対策方法であって、
前記業務メニューの中からいずれかの業務が選択されると、その業務のデータ処理を開始する前にその業務に対応したデータファイルを不揮発性記憶部のバックアップ領域に複写する複写ステップと、
業務のデータ処理が終了する毎に前記バックアップ領域からその業務に対応したデータファイルを削除する削除ステップと、
電源立上げ時、前記バックアップ領域にデータファイルが記憶されているか否かを判断する判断ステップと、
この判断ステップにより前記データファイルが記憶されていると判断されると、そのデータファイルを当該データファイルを使用する業務に対応したデータファイルとして復元する復元ステップと、
を備えたことを特徴とするデータ処理装置の停電対策方法。
A power failure countermeasure method for a data processing device that executes data processing of a business selected from various business menus and updates a data file corresponding to the business,
When one of the tasks is selected from the task menu, a copy step of copying a data file corresponding to the task to the backup area of the nonvolatile storage unit before starting the data processing of the task;
A deletion step of deleting a data file corresponding to the business from the backup area each time the business data processing is completed;
A determination step of determining whether or not a data file is stored in the backup area when the power is turned on;
When it is determined that the data file is stored by this determination step, a restoration step of restoring the data file as a data file corresponding to a job that uses the data file;
A power failure countermeasure method for a data processing device.
JP2007133022A 2007-05-18 2007-05-18 Data processing apparatus and power failure countermeasure method thereof Active JP4825727B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007133022A JP4825727B2 (en) 2007-05-18 2007-05-18 Data processing apparatus and power failure countermeasure method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007133022A JP4825727B2 (en) 2007-05-18 2007-05-18 Data processing apparatus and power failure countermeasure method thereof

Publications (2)

Publication Number Publication Date
JP2008287585A true JP2008287585A (en) 2008-11-27
JP4825727B2 JP4825727B2 (en) 2011-11-30

Family

ID=40147234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007133022A Active JP4825727B2 (en) 2007-05-18 2007-05-18 Data processing apparatus and power failure countermeasure method thereof

Country Status (1)

Country Link
JP (1) JP4825727B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010039988A (en) * 2008-08-08 2010-02-18 Hitachi Electronics Service Co Ltd Method, device and program for managing file
CN114242125A (en) * 2021-11-15 2022-03-25 珠海妙存科技有限公司 NAND FLASH data power failure protection method, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002244905A (en) * 2001-02-14 2002-08-30 Fujitsu Ltd File back-up method, file back-up program, and recording medium
JP2002318732A (en) * 2001-04-20 2002-10-31 Fujitsu General Ltd Device and method for processing file in case of recovery
JP2006137005A (en) * 2004-11-10 2006-06-01 Sony Corp Printer, data backup method, data file generation method and program
JP2006270514A (en) * 2005-03-24 2006-10-05 Fuji Xerox Co Ltd Image processor and client device
JP2007094600A (en) * 2005-09-27 2007-04-12 Ihot Ltd Information management system, information management apparatus used by the same and information management method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002244905A (en) * 2001-02-14 2002-08-30 Fujitsu Ltd File back-up method, file back-up program, and recording medium
JP2002318732A (en) * 2001-04-20 2002-10-31 Fujitsu General Ltd Device and method for processing file in case of recovery
JP2006137005A (en) * 2004-11-10 2006-06-01 Sony Corp Printer, data backup method, data file generation method and program
JP2006270514A (en) * 2005-03-24 2006-10-05 Fuji Xerox Co Ltd Image processor and client device
JP2007094600A (en) * 2005-09-27 2007-04-12 Ihot Ltd Information management system, information management apparatus used by the same and information management method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010039988A (en) * 2008-08-08 2010-02-18 Hitachi Electronics Service Co Ltd Method, device and program for managing file
CN114242125A (en) * 2021-11-15 2022-03-25 珠海妙存科技有限公司 NAND FLASH data power failure protection method, device and medium

Also Published As

Publication number Publication date
JP4825727B2 (en) 2011-11-30

Similar Documents

Publication Publication Date Title
KR100750132B1 (en) Method and system for booting, updating software automatically and recovering update error, and computer readable medium recording the method
JP5077726B1 (en) Computer, control method thereof and program
JP4346659B2 (en) Information processing apparatus, backup storage apparatus, and information processing method
JP2004520651A (en) Computer operating system protection method and device
JP4940599B2 (en) Information processing apparatus, information processing apparatus control program, and information processing apparatus control method
JP2009151603A (en) Information processing apparatus and data recovering method
JP2017027244A (en) Information processor, initialization method of non-volatile storage device by the information processor and program
CN101196839A (en) Data renovation and synchronization process of double-flash read-only memory
JP4789958B2 (en) Component information restoration method, component information management method, and electronic apparatus
JP4825727B2 (en) Data processing apparatus and power failure countermeasure method thereof
US8131958B2 (en) Storage system, storage device, and data updating method using a journal volume
JP4723534B2 (en) Data processing device
KR20100009025A (en) External input output device for computer system recovery and use method
JP4648097B2 (en) Registry information repair method and information processing apparatus
JP2006134123A (en) Data recording device and merchandise handling apparatus having same
JP2010097560A (en) Data processor and program for handling interruption
JP6160688B2 (en) Information processing apparatus, information processing method, and information processing program
JP2010004293A (en) Image forming apparatus, and method for detecting write error of image forming apparatus
JP5112531B2 (en) Data processing apparatus, power failure processing method thereof, and power failure processing program
JP2005313568A (en) Printer, erasing method of data in printer, program and recording medium
JPH11149332A (en) Portable information equipment and data management method
JP2005327003A (en) Disk recovery method
WO2006087695A2 (en) Protection and recovery system for automatic disk drive recovery
JP2019207699A (en) Information processing device and control method therefor
JP2005099902A (en) Computer maintenance system and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080821

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110510

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110704

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110823

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110912

R150 Certificate of patent or registration of utility model

Ref document number: 4825727

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140916

Year of fee payment: 3