JP2010026789A - Sales data processor and program - Google Patents

Sales data processor and program Download PDF

Info

Publication number
JP2010026789A
JP2010026789A JP2008187361A JP2008187361A JP2010026789A JP 2010026789 A JP2010026789 A JP 2010026789A JP 2008187361 A JP2008187361 A JP 2008187361A JP 2008187361 A JP2008187361 A JP 2008187361A JP 2010026789 A JP2010026789 A JP 2010026789A
Authority
JP
Japan
Prior art keywords
data
power supply
hibernation
processing
saving
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
JP2008187361A
Other languages
Japanese (ja)
Other versions
JP2010026789A5 (en
Inventor
Tomoyuki Yamashita
智之 山下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2008187361A priority Critical patent/JP2010026789A/en
Publication of JP2010026789A publication Critical patent/JP2010026789A/en
Publication of JP2010026789A5 publication Critical patent/JP2010026789A5/ja
Pending legal-status Critical Current

Links

Images

Landscapes

  • Cash Registers Or Receiving Machines (AREA)
  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To immediately restore a state before the interruption of a main power source when the main power source is supplied during hibernation processing in a sales data processor. <P>SOLUTION: When an AC power source is interrupted, a CPU saves data showing the operating state of a system in a main memory by suspend processing, and saves the data stored in the main memory by hibernation processing in a memory 14 for hibernation, and turns off a backup power source. During hibernation processing, the CPU monitors the state of the AC power source, and when it is detected that the AC power source is put in a supply state during the hibernation processing, the CPU interrupts the hibernation processing, and restores the system to the state just before the interruption of the power source based on data showing the operating state of the system stored in the main memory. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、売上データ処理装置及びプログラムに関する。   The present invention relates to a sales data processing apparatus and a program.

従来、ECR(電子レジスタ)等の売上データ処理装置では、主電源遮断時のシステムの動作状態を示すデータを電池でバックアップされた揮発性メモリに保存しておくことで、停電時や誤操作による主電源の遮断時でもすぐに電源遮断前の動作状態で起動できるようにしている。しかし、近年、売上データ処理装置の高機能化が進み、それに伴いメモリも大容量となっている。そのため、店舗の夏季休業等により主電源の遮断状態が長時間続いた場合に備えて大容量のバックアップ電池が必要となっている。   Conventionally, in sales data processing devices such as ECR (electronic registers), data indicating the operating state of the system when the main power supply is shut down is stored in a volatile memory backed up by a battery, which can be used mainly when a power failure occurs. Even when the power is cut off, it can be started immediately in the operating state before the power is cut off. In recent years, however, sales data processing devices have become more sophisticated, and the memory has also increased in capacity. Therefore, a large-capacity backup battery is required in case the main power supply is shut off for a long time due to a summer holiday of the store.

一方、パーソナルコンピュータにおいては、上述のように主電源遮断時におけるシステムの動作状態を示すデータを電池でバックアップされた揮発性メモリに退避させるサスペンド機能と、揮発性メモリに退避されたデータをハードディスク等の不揮発性記憶手段に退避するハイバネーション処理を行うハイバネーション機能が知られている。ハイバネーション機能によれば、主電源の遮断状態が長い時間続いてもデータのバックアップに大容量の電池を必要とせずに済む。   On the other hand, in the personal computer, as described above, a suspend function that saves data indicating the operation state of the system when the main power supply is shut down to a volatile memory backed up by a battery, and a data saved in the volatile memory to a hard disk or the like A hibernation function for performing a hibernation process for saving in the nonvolatile storage means is known. The hibernation function eliminates the need for a large-capacity battery for data backup even when the main power supply is shut off for a long time.

例えば、特許文献1には、電源OFF時にシステムをサスペンド状態に移行させた後、そのまま所定時間が経過したらサスペンド状態からハイバネーション状態へ移行させる技術が記載されている。ここで、サスペンド状態とは、コンピュータの動作を停止させる際、主メモリへの電力供給を継続することでシステム状態を保持している状態をいい、ハイバネーション状態とは、ハードディスク等の不揮発性記憶手段に主メモリの内容を書き込むことでシステム状態を保持している状態をいう。   For example, Patent Document 1 describes a technique for shifting a system from a suspend state to a hibernation state after a predetermined time has elapsed after the system is shifted to a suspend state when the power is turned off. Here, the suspended state refers to a state in which the system state is maintained by continuing to supply power to the main memory when the computer operation is stopped. The hibernation state refers to a nonvolatile storage means such as a hard disk. In this state, the system state is maintained by writing the contents of the main memory.

また、例えば、特許文献2には、サスペンド状態で装置本体が移動した場合にサスペンド状態からハイバネーション状態に直ちに移行させる技術が記載されている。
特開平9−237128号公報 特開2008−33436号公報
Further, for example, Patent Literature 2 describes a technique for immediately shifting from a suspended state to a hibernation state when the apparatus main body moves in a suspended state.
JP-A-9-237128 JP 2008-33436 A

ところで、従来の技術では、主メモリの内容を不揮発性記憶手段に退避させるハイバネーション処理が開始されるとハイバネーション処理が完了するまで次の起動ができない。しかし、ECR等の売上データ処理装置において意図しない停電が発生したり主電源コネクタを誤って抜いてしまったりした場合、顧客を待たせている状態であることが多いため、主電源の供給再開後に迅速に主電源遮断前の動作状態に復帰できなければならない。   By the way, in the conventional technique, when the hibernation process for saving the contents of the main memory to the nonvolatile storage means is started, the next activation cannot be performed until the hibernation process is completed. However, if an unintentional power failure occurs in a sales data processing device such as ECR or if the main power connector is accidentally disconnected, it is often the case that the customer is waiting. It must be possible to quickly return to the operating state before the main power supply was shut off.

本発明の課題は、売上データ処理装置において、ハイバネーション処理中に主電源が供給された場合に、直ちに主電源遮断前の動作状態に復帰できるようにすることである。   SUMMARY OF THE INVENTION An object of the present invention is to enable a sales data processing apparatus to immediately return to an operation state before shutting down the main power supply when main power is supplied during hibernation processing.

上記課題を解決するため、請求項1に記載の発明の売上データ処理装置は、
主電源が遮断された際に、システムの動作状態を示すデータを揮発性記憶手段に退避させる第1の退避処理手段と、
前記第1の退避処理手段により前記揮発性記憶手段に退避された前記システムの動作状態を示すデータを不揮発性記憶手段に退避させる第2の退避処理手段と、
前記主電源の電源状態を監視する電源監視手段と、
前記第2の退避処理手段による退避処理中に前記電源監視手段により前記主電源が供給状態となったことが検出された際に、前記第2の退避処理手段による退避処理を中断させ、前記揮発性記憶手段に退避されている前記システムの動作状態を示すデータに基づいて前記主電源の遮断前の状態にシステムを復帰させる制御手段と、
を備える。
In order to solve the above-mentioned problem, the sales data processing device of the invention described in claim 1
First saving processing means for saving data indicating an operating state of the system to the volatile storage means when the main power supply is shut off;
Second save processing means for saving data indicating the operating state of the system saved in the volatile storage means by the first save processing means to the nonvolatile storage means;
Power monitoring means for monitoring the power state of the main power supply;
When the power supply monitoring unit detects that the main power supply is being supplied during the saving process by the second saving processing unit, the saving process by the second saving processing unit is interrupted, and the volatile Control means for returning the system to the state before the main power supply is shut off based on data indicating the operating state of the system saved in the storage device;
Is provided.

請求項2に記載の発明は、請求項1に記載の発明において、
前記第2の退避処理手段による退避処理は、前記不揮発性記憶手段に記憶されているデータの消去処理を含む。
The invention according to claim 2 is the invention according to claim 1,
The saving process by the second saving processing unit includes an erasing process of data stored in the non-volatile storage unit.

請求項3に記載の発明は、請求項1に記載の発明において、
前記第2の退避処理手段による退避処理は、前記不揮発性記憶手段へ前記システムの動作状態を示すデータを書込む書込み処理を含む。
The invention according to claim 3 is the invention according to claim 1,
The saving process by the second saving processing unit includes a writing process for writing data indicating an operation state of the system to the nonvolatile storage unit.

請求項4に記載の発明は、請求項1に記載の発明において、
前記第2の退避処理手段による退避処理は、前記揮発性記憶手段における前記不揮発性記憶手段への退避対象となったデータと前記不揮発性記憶手段に退避されたデータとの整合性を確認するための処理を含む。
The invention according to claim 4 is the invention according to claim 1,
The evacuation process by the second evacuation processing unit is for confirming the consistency between the data to be evacuated to the nonvolatile storage unit in the volatile storage unit and the data evacuated to the nonvolatile storage unit. Including processing.

請求項5に記載の発明は、請求項1〜4の何れか一項に記載の発明において、
前記不揮発性記憶手段は、システムを動作させるプログラムを格納するための記憶手段とは別個に設けられている。
The invention according to claim 5 is the invention according to any one of claims 1 to 4,
The nonvolatile storage means is provided separately from storage means for storing a program for operating the system.

請求項6に記載の発明は、請求項1〜5の何れか一項に記載の発明において、
前記第2の退避処理手段の処理中であることを通知する通知手段を備える。
The invention according to claim 6 is the invention according to any one of claims 1 to 5,
Notifying means for notifying that the second saving processing means is in process.

請求項7に記載の発明は、請求項1〜6の何れか一項に記載の発明において、
前記不揮発性記憶手段は複数備えられている。
The invention according to claim 7 is the invention according to any one of claims 1 to 6,
A plurality of the nonvolatile storage means are provided.

請求項8に記載の発明は、請求項1に記載の発明において、
外部記憶手段を接続するための接続手段と、
前記揮発性記憶手段に退避された前記システムの動作状態を示すデータの退避先を前記不揮発性記憶手段とするか前記接続手段により接続された外部記憶手段とするかを選択するための選択手段を備え、
前記第2の退避処理手段は、前記選択手段により選択された退避先に前記システムの動作状態を示すデータを退避させる。
The invention according to claim 8 is the invention according to claim 1,
Connection means for connecting external storage means;
Selection means for selecting whether to save the data indicating the operating state of the system saved in the volatile storage means as the nonvolatile storage means or the external storage means connected by the connection means Prepared,
The second save processing means saves data indicating the operating state of the system to the save destination selected by the selection means.

請求項9に記載の発明のプログラムは、
売上データ処理装置に用いられるコンピュータを、
主電源が遮断された際に、システムの動作状態を示すデータを揮発性記憶手段に退避させる第1の退避処理手段、
前記第1の退避処理手段により前記揮発性記憶手段に退避された前記システムの動作状態を示すデータを不揮発性記憶手段に退避させる第2の退避処理手段、
電源監視手段により前記第2の退避処理手段による退避処理中に前記主電源が供給状態となったことが検出された際に、前記第2の退避処理手段による退避処理を中断させ、前記揮発性記憶手段に退避されている前記システムの動作状態を示すデータに基づいて前記主電源の遮断前の状態にシステムを復帰させる制御手段、
として機能させる。
The program of the invention according to claim 9 is:
A computer used in a sales data processing device
First evacuation processing means for evacuating data indicating the operating state of the system to the volatile storage means when the main power supply is shut off;
Second save processing means for saving data indicating the operating state of the system saved in the volatile storage means by the first save processing means to the nonvolatile storage means;
When it is detected by the power supply monitoring means that the main power supply has been supplied during the saving process by the second saving processing means, the saving process by the second saving processing means is interrupted, and the volatility Control means for returning the system to a state before the main power supply is shut off based on data indicating the operating state of the system saved in the storage means;
To function as.

本発明によれば、売上データ処理装置において、ハイバネーション処理中に主電源が供給された場合に、直ちに主電源遮断前の動作状態に復帰することが可能となる。   According to the present invention, in the sales data processing apparatus, when the main power is supplied during the hibernation process, it is possible to immediately return to the operation state before the main power is shut off.

(実施形態1)
まず、本発明の実施形態1について説明する。
図1に、実施形態1におけるECR1の機能構成例を示す。
ECR1は、店舗に設けられ、オペレータの操作に基づいて商品取引の登録処理(取引された日時、商品名、商品の売上個数、売上金額等の売上データ、担当者等の登録処理)、点検処理、精算処理、店舗内の売上集計等を行う売上データ処理装置である。ECR1としては、例えば、電子レジスタ等が適用可能である。
(Embodiment 1)
First, Embodiment 1 of the present invention will be described.
FIG. 1 shows a functional configuration example of the ECR 1 in the first embodiment.
ECR1 is provided in the store, and a product transaction registration process (transaction date and time, product name, sales number of products, sales data such as sales amount, registration process of a person in charge, etc.) and an inspection process based on an operator's operation This is a sales data processing device that performs checkout processing, total sales in a store, and the like. As ECR1, for example, an electronic register or the like is applicable.

図1に示すように、ECR1は、CPU10と、RTC11と、プログラム格納メモリ12と、メインメモリ13と、ハイバネーション用メモリ14と、メイン表示装置151と、サブ表示装置152と、LED16と、印字装置17と、入力装置18と、ストレージI/F19と、通信部20と、を備えて構成され、各部はバス21を介して接続されて構成されている。   As shown in FIG. 1, the ECR 1 includes a CPU 10, an RTC 11, a program storage memory 12, a main memory 13, a hibernation memory 14, a main display device 151, a sub display device 152, an LED 16, and a printing device. 17, an input device 18, a storage I / F 19, and a communication unit 20, and each unit is configured to be connected via a bus 21.

CPU(Central Processing Unit)10は、ECR1の各部を集中制御する制御手段である。また、CPU10は、プログラム格納メモリ12に記憶されている各種プログラムをメインメモリ13に展開し、メインメモリ13に展開されたプログラムとの協働で、各種処理を実行する。   A CPU (Central Processing Unit) 10 is control means for centrally controlling each part of the ECR 1. Further, the CPU 10 expands various programs stored in the program storage memory 12 in the main memory 13 and executes various processes in cooperation with the programs expanded in the main memory 13.

例えば、CPU10は、AC電源状態監視回路34(図3参照)からAC電源供給を通知する信号が入力されると、プログラム格納メモリ12に記憶されている起動処理プログラム及び終了処理プログラムをメインメモリ13の起動処理・終了処理用ワークエリア131(図2参照)に読み出して、読み出した起動処理プログラムとの協働により後述する起動処理を実行する。また、CPU10は、動作中にAC電源状態監視回路34からAC電源遮断を通知する信号が入力されると、メインメモリ13に記憶されている終了処理プログラムとの協働により、サスペンド処理(第1の退避処理)、ハイバネーション処理(第2の退避処理)を含む終了処理を実行する。   For example, when a signal for notifying AC power supply is input from the AC power supply state monitoring circuit 34 (see FIG. 3), the CPU 10 stores the start processing program and the end processing program stored in the program storage memory 12 into the main memory 13. The startup process / end process work area 131 (see FIG. 2) is read and the startup process described later is executed in cooperation with the read startup process program. Further, when a signal for notifying AC power supply interruption is input from the AC power supply state monitoring circuit 34 during the operation, the CPU 10 performs a suspend process (first process) in cooperation with the termination process program stored in the main memory 13. Ending process) and a hibernation process (second saving process) are executed.

ここで、本実施形態において、サスペンド処理とは、AC電源31の遮断時にCPU10のシステム動作状態を示すデータ(プログラムカウンタ(PC)、スタックポインタ(SP)、レジスタ、システムデータ等)を揮発性のメインメモリ13に退避する処理をいう。ハイバネーション処理とは、メインメモリ13に記憶されているシステム動作状態を示すデータ等を不揮発性のハイバネーション用メモリ14に退避する処理をいう。   Here, in the present embodiment, the suspend process refers to volatile data (program counter (PC), stack pointer (SP), register, system data, etc.) indicating the system operation state of the CPU 10 when the AC power supply 31 is shut off. This is a process of saving to the main memory 13. The hibernation process is a process of saving data indicating the system operation state stored in the main memory 13 to the nonvolatile hibernation memory 14.

ハイバネーション処理中にAC電源状態監視回路34からAC電源供給を通知する信号が入力されると、CPU10は、ハイバネーション処理を中断させて起動処理を実行し、メインメモリ13に退避されているシステム動作状態を示すデータに基づいてAC電源遮断前の状態にシステムを復帰させる。   When a signal for notifying the AC power supply is input from the AC power state monitoring circuit 34 during the hibernation process, the CPU 10 interrupts the hibernation process, executes the start process, and saves the system operation state saved in the main memory 13. The system is returned to the state before the AC power supply is cut off based on the data indicating.

また、CPU10は、オペレータによる入力装置18の操作に応じたプログラムを起動させ、商品取引の登録処理、点検処理、精算処理、店舗内の売上集計処理等を行う。   In addition, the CPU 10 activates a program according to the operation of the input device 18 by the operator, and performs merchandise transaction registration processing, inspection processing, settlement processing, in-store sales aggregation processing, and the like.

RTC(Real Time Clock)11は、計時回路を内蔵し、現在時刻及び現在日付を計時してCPU10に出力する。RTC11は、RTC用バックアップ電源111が備えられており(図3参照)、AC電源31及びバックアップ用電源32の何れからも電源が供給されない状態でも動作可能となっている。   An RTC (Real Time Clock) 11 has a built-in clock circuit, clocks the current time and the current date, and outputs them to the CPU 10. The RTC 11 includes an RTC backup power supply 111 (see FIG. 3), and can operate even when no power is supplied from either the AC power supply 31 or the backup power supply 32.

プログラム格納メモリ12は、不揮発性のROM(Read Only Memory)等により構成され、図2に示すように、ECR1で実行可能な各種プログラムやECR1の固有データ(例えば、ECR1のMACアドレス、タッチパネルキャリブレーションデータ等)を記憶する。   The program storage memory 12 is configured by a nonvolatile ROM (Read Only Memory) or the like, and as shown in FIG. 2, various programs that can be executed by the ECR1 and unique data of the ECR1 (for example, the MAC address of the ECR1, touch panel calibration) Data).

メインメモリ13は、CPU10によって実行される各種プログラム及びこれらプログラムに係る各種データ等を記憶する揮発性記憶手段である。
メインメモリ13は、図2に示すように、起動処理・終了処理用ワークエリア131、サスペンド用エリア132、コピー領域133、システムデータ領域134、設定データ領域135、ユーザデータ領域136を有している。
起動処理・終了処理用ワークエリア131は、AC電源投入時にCPU10によりプログラム格納メモリ12から読み出された起動処理プログラム、終了処理プログラム(サブルーチンの処理を含む)を記憶するとともに、これらのプログラムが動作するためのワークエリアである。
サスペンド用エリア132は、サスペンド処理において、CPU10のシステム動作状態を示すデータ(プログラムカウンタ(PC)、スタックポインタ(SP)、レジスタ、システムデータ等)を退避するための領域である。
コピー領域133は、プログラム格納メモリ12に記憶されているプログラムのコピーを書込むための領域である。
システムデータ領域134は、スタック、変数やOSのシステムデータを記憶する領域である。
設定データ領域135は、入力装置18を介して設定された周辺機器(メイン表示装置151、サブ表示装置152、印字装置17、入力装置18等)に関する各種設定データを記憶する領域である。
ユーザデータ領域136は、入力装置18を介して入力された売上データ、メイン表示装置151で表示中の表示データ、印字装置17に印字させる印字データ等のユーザデータを記憶する領域である。
The main memory 13 is volatile storage means for storing various programs executed by the CPU 10 and various data related to these programs.
As shown in FIG. 2, the main memory 13 has a work area 131 for start processing / end processing, a suspend area 132, a copy area 133, a system data area 134, a setting data area 135, and a user data area 136. .
The start process / end process work area 131 stores a start process program and an end process program (including subroutine processing) read from the program storage memory 12 by the CPU 10 when the AC power is turned on, and these programs operate. It is a work area to do.
The suspend area 132 is an area for saving data indicating the system operation state of the CPU 10 (program counter (PC), stack pointer (SP), register, system data, etc.) in the suspend process.
The copy area 133 is an area for writing a copy of the program stored in the program storage memory 12.
The system data area 134 is an area for storing stack, variables, and OS system data.
The setting data area 135 is an area for storing various setting data related to peripheral devices (main display device 151, sub display device 152, printing device 17, input device 18, etc.) set via the input device 18.
The user data area 136 is an area for storing user data such as sales data input via the input device 18, display data being displayed on the main display device 151, and print data to be printed on the printing device 17.

ハイバネーション用メモリ14は、フラッシュメモリ等の不揮発性メモリにより構成され、AC電源31の遮断時にメインメモリ13に記憶されているデータを退避するための不揮発性記憶手段である。本実施の形態において、ハイバネーション用メモリ14は、CPU10から書込み指示されたデータの上位Bitを格納するためのハイバネーション用メモリ14a、CPU10から書込み指示されたデータの下位Bitを格納するためのハイバネーション用メモリ14bを備えて構成されている。ハイバネーション処理におけるデータの書込み速度を向上させるためである。   The hibernation memory 14 is constituted by a nonvolatile memory such as a flash memory, and is a nonvolatile storage means for saving data stored in the main memory 13 when the AC power supply 31 is shut off. In the present embodiment, the hibernation memory 14 includes a hibernation memory 14a for storing the upper bit of data instructed to be written by the CPU 10, and a hibernation memory for storing the lower bit of data instructed to be written by the CPU 10. 14b. This is to improve the data writing speed in the hibernation process.

ハイバネーション用メモリ14は、図2に示すように、ヘッダ領域141、バックアップ領域142、チェックサム格納領域143を有している。ヘッダ領域141は、ハイバネーション処理が完了したことを示すハイバネーション完了フラグを設定するためのハイバネーション完了フラグ領域141aを有する領域である。バックアップ領域142は、ハイバネーション処理において、メインメモリ13の起動処理・終了処理用ワークエリア131以外の領域のデータを退避するための領域である。チェックサム格納領域143は、ハイバネーション処理において算出されたチェックサムを書込むための領域である。   As shown in FIG. 2, the hibernation memory 14 includes a header area 141, a backup area 142, and a checksum storage area 143. The header area 141 is an area having a hibernation completion flag area 141a for setting a hibernation completion flag indicating that the hibernation process has been completed. The backup area 142 is an area for saving data in an area other than the start / end process work area 131 of the main memory 13 in the hibernation process. The checksum storage area 143 is an area for writing the checksum calculated in the hibernation process.

メイン表示装置151、サブ表示装置152は、LCD(Liquid Crystal Display)や有機EL(Electro-Luminescence)ディスプレイ等により構成され、CPU10から入力される表示信号の指示に従って、各種画面を表示する。メイン表示装置151は、オペレータ側に向けて設けられた表示装置であり、サブ表示装置152は、顧客側に向けて設けられた表示装置である。   The main display device 151 and the sub display device 152 are configured by an LCD (Liquid Crystal Display), an organic EL (Electro-Luminescence) display, or the like, and display various screens according to instructions of a display signal input from the CPU 10. The main display device 151 is a display device provided toward the operator side, and the sub display device 152 is a display device provided toward the customer side.

LED(Light Emitting Diode)16は、CPU10から入力される指示信号に応じて駆動され、点灯、点滅する。   An LED (Light Emitting Diode) 16 is driven in response to an instruction signal input from the CPU 10 and is lit and blinks.

印字装置17は、例えば、サーマルプリンタ(感熱式プリンタ)であり、レシート用、ジャーナル用のロール紙(感熱紙)を有し、CPU10から入力される指示信号に従って、各ロール紙に対して金額等のデータをプリントアウトする。   The printing device 17 is, for example, a thermal printer (thermal printer), and has receipt and journal roll paper (thermal paper), and according to an instruction signal input from the CPU 10, the amount of money for each roll paper, etc. Print out the data.

入力装置18は、電源キー、カーソルキー、文字、数字入力キーや、INITキー、FCキー等の各種機能キー等を備えたレジ用のキーボードを含む構成とし、オペレータによる各キーの操作信号をCPU10に出力する。また、入力装置18は、メイン表示装置151の画面上に設けられたタッチパネルを含む。タッチパネルは、メイン表示装置151の上面を覆うように設置されており、オペレータの指などを用いた操作によって押圧入力された所望の入力位置を検出し、その検出信号をCPU10に出力する。また、入力装置18は、商品に設けられたバーコードを読み取るバーコードリーダやバーコードスキャナ等を備える。   The input device 18 includes a cash register keyboard having power keys, cursor keys, characters, numeric input keys, and various function keys such as an INIT key and an FC key. Output to. The input device 18 includes a touch panel provided on the screen of the main display device 151. The touch panel is installed so as to cover the upper surface of the main display device 151, detects a desired input position pressed by an operation using an operator's finger or the like, and outputs a detection signal to the CPU 10. The input device 18 includes a barcode reader, a barcode scanner, or the like that reads a barcode provided on a product.

ストレージI/F19は、CF(CompactFlash)カード、SDカード(Secure Digital Card)等の外部ストレージ19aを接続可能であり、外部ストレージ19aとのデータの入出力を行うための接続手段である。   The storage I / F 19 can be connected to an external storage 19a such as a CF (CompactFlash) card or an SD card (Secure Digital Card), and is a connection means for inputting / outputting data to / from the external storage 19a.

通信部20は、LAN(Local Area Network)アダプタやルータ等により構成され、LANやインターネット等の通信ネットワークを介してサーバ100等の外部機器とデータ送受信を行う。   The communication unit 20 includes a LAN (Local Area Network) adapter, a router, and the like, and performs data transmission / reception with an external device such as the server 100 via a communication network such as a LAN or the Internet.

図3に、ECR1における電源系の要部構成例を示す。
図3に示す電源生成回路33は、AC電源(主電源)31、及び、スイッチ35を介してバックアップ用電源(充電池)32に接続されている。電源生成回路33は、AC電源31から入力されたAC(交流)電源電力をDC(直流)電源電力に変換し、図1に示す各部にそれぞれ供給する。また、電源生成回路33は、スイッチ35を介してバックアップ用電源32から入力された電源電力をCPU10、RTC11、プログラム格納メモリ12、メインメモリ13及びハイバネーション用メモリ14a、14b、LED16に供給する。
AC電源状態監視回路34は、AC電源31の電源状態を監視する電源監視手段であり、AC電源31から電源が供給されている間は、AC電源供給を通知する信号(HIGH信号)をCPU10に出力し、AC電源31から電源が遮断されている間は、AC電源遮断を通知する信号(LOW信号)をCPU10に出力する。
スイッチ35は、CPU10からのバックアップ用電源ON/OFFスイッチ切替制御信号に基づいて、バックアップ電源32のON/OFFを切り替える。
FIG. 3 shows a configuration example of a main part of the power supply system in ECR1.
The power generation circuit 33 shown in FIG. 3 is connected to an AC power source (main power source) 31 and a backup power source (rechargeable battery) 32 via a switch 35. The power source generation circuit 33 converts AC (alternating current) power source power input from the AC power source 31 into DC (direct current) power source power and supplies it to each unit shown in FIG. The power supply generation circuit 33 supplies the power supply power input from the backup power supply 32 via the switch 35 to the CPU 10, RTC 11, program storage memory 12, main memory 13, and hibernation memories 14 a and 14 b and the LED 16.
The AC power supply state monitoring circuit 34 is a power supply monitoring unit that monitors the power supply state of the AC power supply 31. While power is supplied from the AC power supply 31, a signal (HIGH signal) for notifying the supply of AC power is sent to the CPU 10. While the power is being cut off from the AC power supply 31, a signal (LOW signal) for notifying the AC power cut is outputted to the CPU 10.
The switch 35 switches ON / OFF of the backup power source 32 based on the backup power ON / OFF switch switching control signal from the CPU 10.

このように、AC電源31からの電源が供給状態である場合、電源生成回路33によりECR1の各部にAC電源31からの電源が供給される。AC電源31が遮断されると、CPU10からの制御に基づいて、CPU10、RTC11、プログラム格納メモリ12、メインメモリ13及びハイバネーション用メモリ14a、14b、LED16のみにバックアップ用電源32からの電源が供給される。このように構成することで、バックアップ用電源32の消費量を必要最低限に抑えることができる。なお、AC電源31遮断後一定時間T内は回路的に電源が保持されている。この一定時間内にCPU10はバックアップ用電源32をONに切り替え、CPU動作電源、メモリ動作電源を維持する。   As described above, when the power supply from the AC power supply 31 is in the supply state, the power supply generation circuit 33 supplies the power supply from the AC power supply 31 to each part of the ECR1. When the AC power supply 31 is shut off, the power from the backup power supply 32 is supplied only to the CPU 10, RTC 11, program storage memory 12, main memory 13, hibernation memories 14 a and 14 b, and LED 16 based on the control from the CPU 10. The With this configuration, the consumption of the backup power supply 32 can be minimized. Note that the power supply is held in a circuit for a certain time T after the AC power supply 31 is cut off. Within this predetermined time, the CPU 10 switches on the backup power source 32 and maintains the CPU operating power source and the memory operating power source.

次に、実施形態1におけるECR1の主要な動作についてフローチャートを参照して詳細に説明する。   Next, main operations of the ECR 1 in the first embodiment will be described in detail with reference to flowcharts.

図4に、AC電源監視回路34によりAC電源遮断を通知する信号が入力された際に、CPU10により実行される終了処理のフローを示す。当該処理は、CPU10と終了処理プログラムとの協働によるソフトウエア処理により実現される。   FIG. 4 shows a flow of end processing executed by the CPU 10 when a signal for notifying AC power supply interruption is input by the AC power supply monitoring circuit 34. This processing is realized by software processing by cooperation between the CPU 10 and the end processing program.

まず、サスペンド処理(第1の退避処理)が実行され、CPU10に記憶されているスタックポインタ、プログラムカウンタ、レジスタ、システムデータ等がメインメモリ13のサスペンド用エリア132に退避される(ステップS1)。   First, a suspend process (first save process) is executed, and the stack pointer, program counter, register, system data, etc. stored in the CPU 10 are saved in the suspend area 132 of the main memory 13 (step S1).

次いで、バックアップ用電源ON/OFFスイッチ切替制御信号によりスイッチ35がONに切り替えられることにより、バックアップ用電源32がONに切り替えられる(ステップS2)。   Next, the backup power supply 32 is turned on by the switch 35 being turned on by the backup power supply ON / OFF switch switching control signal (step S2).

次いで、ハイバネーション処理(第2の退避処理)が実行され、メインメモリ13における起動処理・終了処理用ワークエリア131以外の領域のデータがハイバネーション用メモリ14に退避(バックアップ)される(ステップS3)。なお、ハイバネーション処理実行中にAC電源監視回路34によりAC電源供給を通知する信号が入力されると、CPU10により本処理は中断され、図9a〜図9bに示す起動処理が実行される。   Next, hibernation processing (second saving processing) is executed, and data in an area other than the activation / termination processing work area 131 in the main memory 13 is saved (backed up) in the hibernation memory 14 (step S3). When a signal for notifying the AC power supply is input by the AC power supply monitoring circuit 34 during execution of the hibernation process, the process is interrupted by the CPU 10 and the startup process shown in FIGS. 9a to 9b is executed.

図5に、図4のステップS3においてCPU10により実行されるハイバネーション処理のフローを示す。当該処理は、CPU10とハイバネーション処理プログラムとの協働によるソフトウエア処理により実現される。   FIG. 5 shows a flow of hibernation processing executed by the CPU 10 in step S3 of FIG. This processing is realized by software processing by cooperation between the CPU 10 and the hibernation processing program.

ハイバネーション処理においては、まず、ハイバネーション処理中であることを示す通知手段としてのLED16の点滅が開始される(ステップS201)。次いで、書込みエリア消去処理が実行される(ステップS202)。
図6に、書込みエリア消去処理のフローを示す。
図6に示すように、書込みエリア消去処理においては、まず、ハイバネーション用メモリ14a、14bの全領域のデータが消去済みであるか否かが判断される(ステップS1001)。全領域のデータが消去済みであると判断されると(ステップS1001;YES)、処理は図5のステップS203に移行する。
In the hibernation process, first, the blinking of the LED 16 as a notification means indicating that the hibernation process is being performed is started (step S201). Next, a write area erasing process is executed (step S202).
FIG. 6 shows a flow of the write area erasing process.
As shown in FIG. 6, in the write area erasing process, first, it is determined whether or not the data in all areas of the hibernation memories 14a and 14b has been erased (step S1001). If it is determined that the data in all areas has been erased (step S1001; YES), the process proceeds to step S203 in FIG.

ハイバネーション用メモリ14a、14bの全領域のデータが消去済みではないと判断されると(ステップS1001;NO)、1ブロック分のデータ消去がハイバネーション用メモリ14a、14bに指示される(ステップS1002)。ここで、1ブロックとは、一度に消去可能なデータサイズを示す。   If it is determined that the data in all the areas of the hibernation memories 14a and 14b has not been erased (step S1001; NO), one block of data erase is instructed to the hibernation memories 14a and 14b (step S1002). Here, one block indicates a data size that can be erased at one time.

次いで、AC電源状態監視回路34から入力される信号が監視され、AC電源31の電源状態が判断される(ステップS1003)。AC電源31が遮断状態であると判断されると(ステップS1003;AC電源遮断状態)、 ハイバネーション用メモリ14a、14bにおいて、1ブロックの消去が完了したか否かが判断される。ここで、ハイバネーション用メモリ14a、14bにおいては、1ブロック分のデータ消去が終了すると、CPU10にブロック消去完了が通知される。1ブロックの消去が完了していないと判断されると(ステップS1004;NO)、処理はステップS1003に戻る。   Next, the signal input from the AC power supply state monitoring circuit 34 is monitored to determine the power supply state of the AC power supply 31 (step S1003). If it is determined that the AC power supply 31 is in the cut-off state (step S1003; AC power supply cut-off state), it is determined whether or not erasure of one block is completed in the hibernation memories 14a and 14b. Here, in the hibernation memories 14a and 14b, when the data erase for one block is completed, the CPU 10 is notified of the completion of the block erase. If it is determined that erasure of one block has not been completed (step S1004; NO), the process returns to step S1003.

1ブロックの消去が完了したと判断されると(ステップS1004;YES)、ハイバネーション用メモリ14a、14bの全領域の消去が完了したか否かが判断され、完了していないと判断されると(ステップS1005;NO)、処理はステップS1002に戻り、次のブロックについての消去が実行される。ハイバネーション用メモリ14a、14bの全領域の消去が完了したと判断されると(ステップS1005;YES)、処理は図5のステップS203に移行する。   If it is determined that the erasure of one block has been completed (step S1004; YES), it is determined whether or not the erasure of all areas of the hibernation memories 14a and 14b has been completed, and if it is determined that the erasure has not been completed ( In step S1005; NO), the process returns to step S1002, and the next block is erased. If it is determined that all the areas in the hibernation memories 14a and 14b have been erased (step S1005; YES), the process proceeds to step S203 in FIG.

一方、ステップS1003において、AC電源31が供給状態であると判断されると(ステップS1003;AC電源供給状態)、スイッチ35によりバックアップ用電源32がOFFに切り替えられ(ステップS1006)、本処理は中断され、図9a〜図9bに示す起動処理(ハイバネーション中断リスタート)に移行する。   On the other hand, when it is determined in step S1003 that the AC power supply 31 is in the supply state (step S1003; AC power supply state), the backup power supply 32 is switched off by the switch 35 (step S1006), and this process is interrupted. Then, the process proceeds to the startup process (hibernation interruption restart) shown in FIGS. 9a to 9b.

図5のステップS203においては、書込み処理が実行される。
図7に、書込み処理のフローを示す。
図7に示すように、書込み処理においては、まず、退避対象のデータ、即ち、メインメモリ13の起動処理・終了処理用ワークエリア131以外の領域に記憶されているデータがハイバネーション用メモリ14a、14bに1ブロック分ずつ転送され、1ブロック分のデータ書込みが指示される。ここで、1ブロックとは、ハイバネーション用メモリ14a、14bにおいて一度に書込み可能なデータサイズを示す。また、ハイバネーション用メモリ14aには、データの上位Bit(例えば、8Bitデータであれば上位4Bit)が1ブロック分転送され、ハイバネーション用メモリ14bには、データの下位Bit(例えば、8Bitデータであれば下位4Bit)が1ブロック分転送される。
In step S203 of FIG. 5, a writing process is executed.
FIG. 7 shows a flow of the writing process.
As shown in FIG. 7, in the writing process, first, data to be saved, that is, data stored in an area other than the start / end process work area 131 of the main memory 13 is stored in the hibernation memories 14a and 14b. Are transferred one block at a time, and data writing for one block is instructed. Here, one block indicates a data size that can be written at a time in the hibernation memories 14a and 14b. Further, the upper bit of data (for example, the upper 4 bits for 8 bit data) is transferred to the hibernation memory 14a by one block, and the lower bit of the data (for example, 8 bit data for example) is transferred to the hibernation memory 14b. Lower 4 bits) are transferred for one block.

次いで、AC電源状態監視回路34から入力される信号が監視され、AC電源31の電源状態が判断される(ステップS2002)。AC電源31が遮断状態であると判断されると(ステップS2002;AC電源遮断状態)、 ハイバネーション用メモリ14a、14bにおいて、1ブロックの書込みが完了したか否かが判断される(ステップS2003)。ここで、ハイバネーション用メモリ14a、14bにおいては、1ブロック分のデータ書込みが終了すると、CPU10にブロック書込み完了が通知される。1ブロックの書込みが完了していないと判断されると(ステップS2003;NO)、処理はステップS2002に戻る。   Next, the signal input from the AC power supply state monitoring circuit 34 is monitored, and the power supply state of the AC power supply 31 is determined (step S2002). When it is determined that the AC power supply 31 is in the cut-off state (step S2002; AC power supply cut-off state), it is determined whether or not writing of one block is completed in the hibernation memories 14a and 14b (step S2003). Here, in the hibernation memories 14a and 14b, when the data writing for one block is completed, the CPU 10 is notified of the completion of the block writing. If it is determined that writing of one block has not been completed (step S2003; NO), the process returns to step S2002.

1ブロックの書込みが完了したと判断されると(ステップS2003;YES)、メインメモリ13の起動処理・終了処理用ワークエリア131以外の全領域のデータの書込みが完了したか否かが判断され、完了していないと判断されると(ステップS2004;NO)、処理はステップS2001に戻り、次のブロックについての書込みが実行される。メインメモリ13の起動処理・終了処理用ワークエリア131以外の全領域のデータの書込みが完了したと判断されると(ステップS2004;YES)、処理は図5のステップS204に移行する。上記書込み処理によりハイバネーション用メモリ14a、14bに書込まれたデータをバックアップデータとよぶ。   If it is determined that writing of one block is completed (step S2003; YES), it is determined whether writing of data in all areas other than the activation / end processing work area 131 of the main memory 13 is completed, If it is determined that it has not been completed (step S2004; NO), the process returns to step S2001, and writing for the next block is executed. If it is determined that the writing of data in all the areas other than the work area 131 for start processing / end processing in the main memory 13 has been completed (step S2004; YES), the process proceeds to step S204 in FIG. The data written to the hibernation memories 14a and 14b by the above writing process is called backup data.

一方、ステップS2002において、AC電源31が供給状態であると判断されると(ステップS2002;AC電源供給状態)、スイッチ35によりバックアップ用電源32がOFFに切り替えられ(ステップS2005)、本処理は中断され、図9a〜図9bに示す起動処理(ハイバネーション中断リスタート)に移行する。   On the other hand, when it is determined in step S2002 that the AC power supply 31 is in the supply state (step S2002; AC power supply state), the backup power supply 32 is turned off by the switch 35 (step S2005), and this process is interrupted. Then, the process proceeds to the startup process (hibernation interruption restart) shown in FIGS. 9a to 9b.

図5のステップS204においては、書込み内容保証処理が実行される。
書込み内容保証処理は、メインメモリ13における退避対象となったデータとハイバネーション用メモリ14に退避されたデータの整合性を確認するための処理である。
In step S204 of FIG. 5, a write content guarantee process is executed.
The written content guarantee process is a process for confirming the consistency between the data to be saved in the main memory 13 and the data saved in the hibernation memory 14.

図8に、書込み内容保証処理のフローを示す。
図8に示すように、書込み内容保証処理においては、まず、メインメモリ13に記憶されているハイバネーション用メモリ14a、14bへの退避対象となったデータ、具体的には、起動処理・終了処理用ワークエリア131以外の領域に書込まれたデータと、ハイバネーション用メモリ14a、14bに退避されたデータのベリファイ処理(誤り検査)が実行される(ステップS3001)。なお、ベリファイ処理により誤りがあった場合は、ハイバネーション処理を再実行することが好ましい。
FIG. 8 shows a flow of the write content guarantee process.
As shown in FIG. 8, in the write content guarantee process, first, the data to be saved in the hibernation memories 14a and 14b stored in the main memory 13, specifically, the start process / end process A verification process (error check) is performed on the data written in the area other than the work area 131 and the data saved in the hibernation memories 14a and 14b (step S3001). If there is an error in the verify process, it is preferable to re-execute the hibernation process.

次いで、メインメモリ13上における退避対象となったデータのチェックサム(合計値)が算出され(ステップS3002)、算出されたチェックサムがハイバネーション用メモリ14a、14bのチェックサム格納領域143に書込まれる(ステップS3003)。そして、ハイバネーション用メモリ14a、14bのハイバネーション完了フラグ領域141aにハイバネーション完了フラグONが設定され(ステップS3004)、処理は図5のステップS205に移行する。   Next, a checksum (total value) of data to be saved on the main memory 13 is calculated (step S3002), and the calculated checksum is written to the checksum storage area 143 of the hibernation memories 14a and 14b. (Step S3003). Then, the hibernation completion flag ON is set in the hibernation completion flag area 141a of the hibernation memories 14a and 14b (step S3004), and the process proceeds to step S205 in FIG.

図5のステップS205においては、LED16の点滅が停止され(ステップS205)、ハイバネーション処理は終了し、処理は図4のステップS4に移行する。   In step S205 of FIG. 5, the blinking of the LED 16 is stopped (step S205), the hibernation process ends, and the process proceeds to step S4 of FIG.

図4のステップS4においては、スイッチ35によりバックアップ用電源32がOFFに切り替えられ、終了処理は終了する。   In step S4 of FIG. 4, the backup power source 32 is switched off by the switch 35, and the end process ends.

バックアップ用電源32がOFFに切り替えられた後、AC電源31が遮断状態から供給状態となると、CPU10により、プログラム格納メモリ12の起動処理プログラム及び終了処理プログラムがメインメモリ13の起動処理・終了処理用ワークエリア131に読み出される。そして、図9a〜図9bに示す起動処理が実行される。   After the backup power supply 32 is switched off, when the AC power supply 31 is switched from the shut-off state to the supply state, the CPU 10 starts the start processing program and the end processing program in the program storage memory 12 for the start processing and end processing in the main memory 13. Read to work area 131. And the starting process shown to FIG. 9 a-FIG. 9 b is performed.

図9a〜図9bに、起動処理のフローを示す。当該処理は、CPU10と起動処理プログラムとの協働によるソフトウエア処理により実現される。ここで、起動処理は図9a〜図9bに示す「リセットスタート」の位置から開始されるが、ハイバネーション処理中断時においては、ハイバネーション処理プログラムによって図9aに示す「ハイバネーション中断リスタート」の位置への移行が指示されているため、「ハイバネーション中断リスタート」の位置から処理が開始される。   9a to 9b show a flow of activation processing. This processing is realized by software processing through cooperation between the CPU 10 and the activation processing program. Here, the starting process is started from the position of “reset start” shown in FIGS. 9A to 9B. When the hibernation process is interrupted, the hibernation process program moves to the position of “hibernation interruption restart” shown in FIG. 9A. Since the shift is instructed, the processing is started from the position of “hibernation interruption restart”.

「リセットスタート」から処理が開始された場合、まず、システム初期化処理が実行される(ステップS10)。システム初期化処理とは、CPU10がこれから使用するシステム環境を認識し、システムを確立させるための処理である。例えば、どのようなメモリが接続されているかをCPU10が認識する処理等が挙げられる。
次いで、リセットスタートであることを示すスタート情報がメインメモリ13の起動処理・終了処理用ワークエリア131に設定され(ステップS11)、処理はステップS14に移行する。
When the process is started from “reset start”, first, a system initialization process is executed (step S10). The system initialization process is a process for the CPU 10 to recognize a system environment to be used and establish a system. For example, a process in which the CPU 10 recognizes what kind of memory is connected can be cited.
Next, start information indicating a reset start is set in the work area 131 for start processing / end processing of the main memory 13 (step S11), and the process proceeds to step S14.

「ハイバネーション中断リスタート」から処理が開始された場合、まず、ハイバネーション用システム初期化処理が実行される(ステップS12)。ハイバネーション処理を中断して起動処理が開始された場合にはCPU10は動作中であるので、システム初期化処理の全てを行う必要はない。そこで、ステップS12においては、例えば、CPU10内のキャッシュ情報の初期化等、一部の初期化処理が行われる。
次いで、ハイバネーション中断リスタートであることを示すスタート情報がメインメモリ13の起動処理・終了処理用ワークエリア131に設定され(ステップS13)、処理はステップS14に移行する。
When the process is started from “hibernation interruption restart”, a hibernation system initialization process is first executed (step S12). When the hibernation process is interrupted and the startup process is started, the CPU 10 is operating, and therefore it is not necessary to perform all the system initialization processes. Therefore, in step S12, for example, a part of initialization processing such as initialization of cache information in the CPU 10 is performed.
Next, start information indicating that the hibernation interruption restart is set in the work area 131 for start processing / end processing of the main memory 13 (step S13), and the processing proceeds to step S14.

ステップS14においては、メイン表示装置151、サブ表示装置152、印字装置17、入力装置18等の周辺機器のドライバが初期化される(ステップS14)。   In step S14, drivers for peripheral devices such as the main display device 151, the sub display device 152, the printing device 17, and the input device 18 are initialized (step S14).

次いで、入力装置18のINITキーが押下されたか否かが判断される(ステップS15)。ここで、INITキー(イニシャルキー)は、ECR1の設置の際にディーラーが使用するキーであり、メインメモリ13上の起動処理・終了処理用ワークエリア131以外の領域のデータ、即ち、設定データやユーザデータを含む全てのデータを初期化することを指示するためのキーである。入力装置18の電源キーがOFFされた後、INITキーを押しながら電源キーがONに切り替えられると、INITキーが有効となる。即ち、INITキーが押下されるタイミングでは、ほとんどの場合、ハイバネーション処理中断後のリスタートとなる。   Next, it is determined whether or not the INIT key of the input device 18 has been pressed (step S15). Here, the INIT key (initial key) is a key used by the dealer when the ECR 1 is installed, and data in an area other than the start / end processing work area 131 on the main memory 13, that is, setting data, This is a key for instructing to initialize all data including user data. After the power key of the input device 18 is turned off, the INIT key becomes valid when the power key is switched on while pressing the INIT key. That is, at the timing when the INIT key is pressed, in most cases, the restart occurs after the hibernation process is interrupted.

INITキーが押下された場合(ステップS15;YES)、処理は図9bのステップS35に移行し、プログラム格納メモリ12のプログラムに誤りがないかチェックが行われる。チェック結果がOKである場合(ステップS35;OK)、プログラム格納メモリ12のプログラムがメインメモリ13のコピー領域133にコピーされ(ステップS36)、ECR1がINIT状態にて起動され(ステップS37)、本処理は終了する。INIT状態にて起動とは、メインメモリ13から起動処理・終了処理用ワークエリア131以外の領域のデータ、即ち、サスペンド用エリア132、システムデータ領域134、設定データ領域135、ユーザデータ領域136のデータが消去された後に起動されることを意味する。チェック結果がNGである場合(ステップS35;NG)、システムエラーが発生したことを示すシステムエラーメッセージ、例えば「システムエラー」という文字列がメイン表示装置151に表示され(ステップS38)、本処理は終了する。   When the INIT key is pressed (step S15; YES), the process proceeds to step S35 in FIG. 9b, and a check is made to see if there is an error in the program in the program storage memory 12. If the check result is OK (step S35; OK), the program in the program storage memory 12 is copied to the copy area 133 of the main memory 13 (step S36), and ECR1 is started in the INIT state (step S37). The process ends. Activation in the INIT state means that data in the area other than the activation / end process work area 131 from the main memory 13, that is, data in the suspend area 132, the system data area 134, the setting data area 135, and the user data area 136. Means that it will be activated after it is erased. When the check result is NG (step S35; NG), a system error message indicating that a system error has occurred, for example, a character string “system error” is displayed on the main display device 151 (step S38). finish.

INITキーが押下されていない場合(ステップS15;NO)、FCキーが押下されたか否かが判断される(ステップS16)。ここで、FCキー(フラグクリアキー)は、メインメモリ13上の起動処理・終了処理用ワークエリア131以外のデータのうち設定データを残して初期化することを指示するためのキーである。入力装置18の電源キーがOFFされた後、FCキーを押しながら電源キーがONに切り替えられると、FCキーが有効となる。即ち、FCキーが押下されるタイミングでは、ほとんどの場合、ハイバネーション処理中断後のリスタートとなる。FCキーが押下されていない場合(ステップS16;NO)、処理はステップS18に移行する。FCキーが押下されている場合(ステップS16;YES)、FCキー検知済みを示すフラグがメインメモリ13上の起動処理・終了処理用ワークエリア131に設定され(ステップS17)、処理はステップS18に移行する。   If the INIT key has not been pressed (step S15; NO), it is determined whether or not the FC key has been pressed (step S16). Here, the FC key (flag clear key) is a key for instructing to leave the setting data among the data other than the work area 131 for start processing / end processing on the main memory 13 to initialize. After the power key of the input device 18 is turned off, when the power key is switched on while pressing the FC key, the FC key becomes valid. That is, in most cases, the timing at which the FC key is pressed is a restart after the hibernation process is interrupted. If the FC key has not been pressed (step S16; NO), the process proceeds to step S18. If the FC key has been pressed (step S16; YES), a flag indicating that the FC key has been detected is set in the work area 131 for start processing / end processing on the main memory 13 (step S17), and the processing proceeds to step S18. Transition.

ステップS18においては、ハイバネーション処理中断後のリスタートであるか否かが判断される。具体的に、起動処理・終了処理用ワークエリア131に設定されているスタート情報が参照され、設定されているスタート情報がハイバネーション中断リスタートであることを示す情報である場合は、ハイバネーション中断リスタートであると判断される。設定されているスタート情報がリセットスタートであることを示す情報である場合は、ハイバネーション中断リスタートではないと判断される。ハイバネーション処理中断後のリスタートであると判断されると(ステップS18;YES)、処理は図9bのステップS23に移行する。即ち、ステップS19〜S22の処理がスキップされる。ハイバネーション処理中断後のリスタートである場合、メインメモリ13にAC電源31遮断前のメインメモリ13上のデータがそのまま残されているので、ハイバネーション用メモリ14からデータを復帰させる必要はない。   In step S18, it is determined whether or not the restart is after the hibernation process is interrupted. Specifically, when the start information set in the work area 131 for start processing / end processing is referred to and the set start information is information indicating that the hibernation interruption restart is performed, the hibernation interruption restart is performed. It is judged that. If the set start information is information indicating a reset start, it is determined that the hibernation interrupted restart is not performed. If it is determined that the restart is after the hibernation process is interrupted (step S18; YES), the process proceeds to step S23 in FIG. 9b. That is, the processes in steps S19 to S22 are skipped. In the case of restart after interruption of the hibernation process, the data on the main memory 13 before the AC power supply 31 is cut off remains in the main memory 13, so that it is not necessary to restore the data from the hibernation memory 14.

ハイバネーション処理中断後のリスタートではないと判断されると(ステップS18;NO)、ハイバネーション用メモリ14のハイバネーション完了フラグ領域141aが参照される。ハイバネーション完了フラグがONに設定されている場合(ステップS19;YES)、チェックサムの検証が行われる(ステップS20)。即ち、チェックサム格納領域143に記憶されているチェックサムとバックアップ領域142に記憶されているデータの合計値とが一致するか否かの検証が行われる。チェックサムの検証結果がOKである場合(ステップS20;OK)、ハイバネーション用メモリ14のバックアップ領域142に記憶されているバックアップデータがメインメモリ13に書き戻される(ステップS21)。   If it is determined that the restart is not after the hibernation process is interrupted (step S18; NO), the hibernation completion flag area 141a of the hibernation memory 14 is referred to. If the hibernation completion flag is set to ON (step S19; YES), checksum verification is performed (step S20). That is, it is verified whether or not the checksum stored in the checksum storage area 143 matches the total value of the data stored in the backup area 142. If the checksum verification result is OK (step S20; OK), the backup data stored in the backup area 142 of the hibernation memory 14 is written back to the main memory 13 (step S21).

次いで、メインメモリ13に書き戻されたプログラムに誤りがないかチェックが行われる(ステップS22)。チェック結果がOKである場合(ステップS22;OK)、FCキーが検知済みであるか否かが判断される(図9bのステップS23)。FCキーが検知済みではないと判断されると(ステップS23;NO)、サスペンド用エリア132上のプログラムカウンタ、スタックポインタ、レジスタ、システムデータ等がCPU10に書き戻される(ステップS24)。また、周辺機器がAC電源遮断前の状態へ復帰される(ステップS25)。例えば、メイン表示装置151にメインメモリ13のユーザデータに含まれる表示データが送信され、AC電源遮断前の表示状態に戻される。そして、AC電源遮断前の状態でシステムが復帰され(ステップS26)、本処理は終了する。   Next, it is checked whether or not there is an error in the program written back to the main memory 13 (step S22). If the check result is OK (step S22; OK), it is determined whether or not the FC key has been detected (step S23 in FIG. 9b). If it is determined that the FC key has not been detected (step S23; NO), the program counter, stack pointer, register, system data, etc. on the suspend area 132 are written back to the CPU 10 (step S24). Further, the peripheral device is returned to the state before the AC power supply is cut off (step S25). For example, the display data included in the user data in the main memory 13 is transmitted to the main display device 151, and the display state before the AC power cut-off is restored. Then, the system is restored in a state before the AC power supply is shut off (step S26), and this process ends.

一方、FCキーが検知済みであると判断されると(ステップS23;YES)、処理は図9bのステップS27に移行し、プログラム格納メモリ12のプログラムに誤りがないかチェックが行われる。チェック結果がOKである場合(ステップS27;OK)、プログラム格納メモリ12のプログラムがメインメモリ13のコピー領域133にコピーされ(ステップS28)、ECR1がFC状態にて起動され(ステップS29)、本処理は終了する。FC状態にて起動とは、メインメモリ13のサスペンド用エリア132、システムデータ領域134、ユーザデータ領域136のデータが消去された後に起動されることを意味する。チェック結果がNGである場合(ステップS27;NG)、システムエラーが発生したことを示すシステムエラーメッセージ、例えば「システムエラー」という文字列がメイン表示装置151に表示され(ステップS30)、本処理は終了する。   On the other hand, if it is determined that the FC key has been detected (step S23; YES), the process proceeds to step S27 in FIG. 9b, and a check is made as to whether there is an error in the program in the program storage memory 12. If the check result is OK (step S27; OK), the program in the program storage memory 12 is copied to the copy area 133 of the main memory 13 (step S28), and ECR1 is activated in the FC state (step S29). The process ends. Activation in the FC state means activation after data in the suspend area 132, the system data area 134, and the user data area 136 of the main memory 13 are erased. If the check result is NG (step S27; NG), a system error message indicating that a system error has occurred, for example, a character string “system error” is displayed on the main display device 151 (step S30). finish.

一方、ステップS19でハイバネーション完了フラグがONでないと判断された場合(ステップS19;NO)、ステップS20でチェックサムの検証がNGであると判断された場合(ステップS20;NG)、又は、ステップS22でメインメモリ13のプログラムチェック結果がNGである場合(ステップS22;NG)、処理は図9bのステップS31に移行し、プログラム格納メモリ12のプログラムに誤りがないかチェックが行われる。チェック結果がOKである場合(ステップS31;OK)、プログラム格納メモリ12のプログラムがメインメモリ13のコピー領域133にコピーされ(ステップS32)、ECR1がバックアップエラー状態にて起動され(ステップS33)、本処理は終了する。バックアップエラー状態にて起動とは、メイン表示装置151に「バックアップエラーが発生しました」等のメッセージが表示され、メインメモリ13から起動処理・終了処理用ワークエリア131以外の領域のデータ、即ち、サスペンド用エリア132、システムデータ領域134、設定データ領域135、ユーザデータ領域136のデータが消去された後、起動されることを意味する。プログラムのチェック結果がNGである場合(ステップS31;NG)、システムエラーが発生したことを示すシステムエラーメッセージ、例えば「システムエラー」という文字列がメイン表示装置151に表示され(ステップS34)、本処理は終了する。   On the other hand, if it is determined in step S19 that the hibernation completion flag is not ON (step S19; NO), if it is determined in step S20 that checksum verification is NG (step S20; NG), or step S22. If the result of the program check in the main memory 13 is NG (step S22; NG), the process proceeds to step S31 in FIG. 9b to check whether there is an error in the program in the program storage memory 12. If the check result is OK (step S31; OK), the program in the program storage memory 12 is copied to the copy area 133 of the main memory 13 (step S32), and ECR1 is activated in a backup error state (step S33). This process ends. Starting in the backup error state means that a message such as “A backup error has occurred” is displayed on the main display device 151, and data in an area other than the work area 131 for start processing / end processing from the main memory 13, that is, This means that after the data in the suspend area 132, the system data area 134, the setting data area 135, and the user data area 136 are deleted, the data is activated. When the check result of the program is NG (step S31; NG), a system error message indicating that a system error has occurred, for example, a character string “system error” is displayed on the main display device 151 (step S34). The process ends.

なお、起動後は、ハイバネーション用メモリ14に記憶されているデータの消去を行っておくことが好ましい。ハイバネーション用メモリ14は、プログラム格納メモリ12とは別個の異なる不揮発性メモリにより構成されているので、消去時にデータを選り分ける必要なくハイバネーション用メモリ14の全領域のデータを消去することが可能となる。そのため、システムに負荷をかけることなく、他の処理の実行と並行してハイバネーション用メモリ14のデータ消去を行うことが可能となる。   Note that it is preferable to erase the data stored in the hibernation memory 14 after activation. Since the hibernation memory 14 is composed of a different non-volatile memory different from the program storage memory 12, it is possible to erase the data in the entire area of the hibernation memory 14 without having to select data at the time of erasure. . Therefore, it is possible to erase data in the hibernation memory 14 in parallel with the execution of other processes without imposing a load on the system.

図10に、AC電源31の電源遮断前のメイン表示装置151及びAC電源31の電源供給後のメイン表示装置151の画面表示例を示す。図10では、売上データの登録処理中に停電等によりAC電源31が遮断された場合を示している。上述のように、終了処理では、CPU10のプログラムカウンタ、スタックポインタ、レジスタ、システムデータ等のシステムの動作状態を示すデータがメインメモリ13に退避され、バックアップ電源32のOFF前に更に不揮発性メモリであるハイバネーション用メモリ14に退避される。再度AC電源31が供給状態になった場合には、メインメモリ13上(又はハイバネーション用メモリ14)からプログラムカウンタ、スタックポインタ、レジスタ、システムデータ等がCPU10に読み出される。そのため、中断された登録処理プログラムの処理の実行位置をAC電源遮断前の状態に戻すことができ、図10に示すように、AC電源遮断前と同じ画面がメイン表示装置151に表示される。ユーザは、AC電源遮断前に行った登録をやり直すことなく、登録処理を継続して実行することが可能となる。   FIG. 10 shows screen display examples of the main display device 151 before the AC power supply 31 is turned off and the main display device 151 after the AC power supply 31 is supplied with power. FIG. 10 shows a case where the AC power supply 31 is shut off due to a power failure or the like during the sales data registration process. As described above, in the termination process, data indicating the operating state of the system such as the program counter, stack pointer, register, and system data of the CPU 10 is saved in the main memory 13 and further stored in the nonvolatile memory before the backup power source 32 is turned off. It is saved in a certain hibernation memory 14. When the AC power supply 31 is turned on again, the program counter, stack pointer, register, system data, etc. are read out from the main memory 13 (or the hibernation memory 14) to the CPU 10. Therefore, the execution position of the interrupted processing of the registration processing program can be returned to the state before the AC power supply is cut off, and the same screen as before the AC power supply is cut off is displayed on the main display device 151 as shown in FIG. The user can continue the registration process without redoing the registration performed before the AC power supply is shut off.

また、バックアップ電源32のOFF前にメインメモリ13上のデータが不揮発メモリであるハイバネーション用メモリ14に退避されるので、大容量のバックアップ電源を搭載することなく、長期のAC電源遮断後に電源遮断前の状態にシステムを復帰させることが可能となる。   In addition, since the data on the main memory 13 is saved in the hibernation memory 14 which is a nonvolatile memory before the backup power source 32 is turned off, the power source is not shut off after the AC power source is shut down for a long time without mounting a large-capacity backup power source. It becomes possible to return the system to the state.

また、ハイバネーション処理が終了するまではAC電源遮断時におけるメインメモリ13の状態が保持され、ハイバネーション処理中には、CPU10によりAC電源31の電源状態が監視され、AC電源31が供給状態となった場合には、ハイバネーション処理を中断して起動処理に移行し、メインメモリ13に記憶されているシステム動作状態を示すデータをCPU10に書き戻してAC電源遮断前の状態で動作を復帰させる制御が行われる。具体的に、ハイバネーション処理は、書込みエリアの消去処理、書込み処理、書込み内容保証処理を含んで構成されるが、CPU10により、ハイバネーション用メモリ14における1ブロック毎のデータ消去中、書込み中にAC電源状態が監視されており、AC電源31が供給状態となった場合は、ハイバネーション処理を中断して起動処理のハイバネーション中断リスタート位置に移行する制御が行われる。従って、ハイバネーション処理中にAC電源31が供給状態となった場合、ハイバネーション処理の完了を待つことなく直ちにAC電源遮断前のシステム状態に復帰することが可能となる。   Further, the state of the main memory 13 at the time of AC power interruption is maintained until the hibernation process is completed. During the hibernation process, the power state of the AC power supply 31 is monitored by the CPU 10 and the AC power supply 31 is in the supply state. In such a case, the hibernation process is interrupted and the process proceeds to the start-up process, and data indicating the system operation state stored in the main memory 13 is written back to the CPU 10 so that the operation is returned to the state before the AC power supply is shut off. Is called. Specifically, the hibernation process includes a write area erasure process, a write process, and a write content guarantee process. The CPU 10 uses the AC power supply during data erasure and writing for each block in the hibernation memory 14. When the state is monitored and the AC power supply 31 is in the supply state, control is performed to interrupt the hibernation process and shift to the hibernation interruption restart position of the activation process. Therefore, when the AC power supply 31 is in a supply state during the hibernation process, it is possible to immediately return to the system state before the AC power supply cut-off without waiting for the completion of the hibernation process.

また、書込み内容保証処理では、メインメモリ13の退避対象データとハイバネーション用メモリ14に退避されたデータとの整合性をチェックするデータベリファイ処理の実施、書込んだバックアップデータのチェックサムの書込み、ハイバネーション完了フラグONの設定が行われるので、ハイバネーション用メモリ14に退避されたデータとハイバネーション用メモリ14からメインメモリ13に書き戻されるデータの整合性を保証することが可能となる。   In the write content guarantee process, a data verify process for checking the consistency between the save target data in the main memory 13 and the data saved in the hibernation memory 14 is performed, the checksum of the written backup data is written, and hibernation is performed. Since the completion flag ON is set, it is possible to guarantee the consistency between the data saved in the hibernation memory 14 and the data written back to the main memory 13 from the hibernation memory 14.

また、ハイバネーション用メモリ14は、プログラム格納メモリ12とは別個に設けられているので、消去時にデータを選り分ける必要なくハイバネーション用メモリ14の全領域のデータを消去することが可能となる。そのため、システムに負荷をかけることなく、他の処理の実行と並行してハイバネーション用メモリ14のデータ消去を行うことが可能となる。   Further, since the hibernation memory 14 is provided separately from the program storage memory 12, it is possible to erase the data in the entire area of the hibernation memory 14 without having to select data at the time of erasure. Therefore, it is possible to erase data in the hibernation memory 14 in parallel with the execution of other processes without imposing a load on the system.

また、ハイバネーション処理中にはLED16が点滅されるので、ユーザはハイバネーション処理の終了を認識することが可能となり、修理時等にハイバネーション用メモリ14へ確実にデータを退避してから作業を開始することが可能となる。   Further, since the LED 16 blinks during the hibernation process, the user can recognize the end of the hibernation process, and the work should be started after the data is surely saved to the hibernation memory 14 at the time of repair or the like. Is possible.

(実施形態2)
次に、本発明の実施形態2について説明する。
実施形態2において、ECR1は、1日に1回所定時刻到来時にメインメモリ13に記憶されている売上データを始めとする各種データをサーバ100に送信しバックアップを行うスケジューラ機能を備えている。スケジューラ機能を実行すべき所定時刻は、ユーザが入力装置18の操作により設定可能であり、設定された時刻はメインメモリ13のユーザデータエリア136に格納されている。スケジューラ機能では、前日のスケジューラ機能実行後から当日のスケジューラ機能実行までの期間の売上データ等を送信対象としている。従来、このスケジューラ機能は、AC電源遮断期間中に所定時刻が到来した場合は、次にAC電源供給が再開された際に、AC電源遮断中の実行分がまとめて実行されていた。しかし、停電中や夏季休業のような長期休暇があった場合にはその間の取引(売上)は有り得ない。そこで、実施形態2においては、AC電源供給再開後のスケジューラ機能実行時において、AC電源遮断期間中のデータ送信をスキップする、即ち、起動期間中のデータのみを送信する動作を行う。
(Embodiment 2)
Next, Embodiment 2 of the present invention will be described.
In the second embodiment, the ECR 1 includes a scheduler function that transmits various data including sales data stored in the main memory 13 to the server 100 and backs up once a day at a predetermined time. The predetermined time at which the scheduler function should be executed can be set by the user by operating the input device 18, and the set time is stored in the user data area 136 of the main memory 13. In the scheduler function, sales data and the like during the period from the execution of the previous day's scheduler function to the execution of the current day's scheduler function are targeted for transmission. Conventionally, when a predetermined time arrives during the AC power supply cut-off period, this scheduler function is executed in a batch when the AC power supply is resumed. However, if there is a long vacation such as a blackout or summer vacation, there is no possibility of transactions (sales) during that period. Therefore, in the second embodiment, when the scheduler function is executed after the AC power supply is resumed, the data transmission during the AC power supply cutoff period is skipped, that is, only the data during the startup period is transmitted.

実施形態2において、プログラム格納メモリ12には、上述の起動処理プログラムの他、図11に示す終了処理(終了処理Bとする)を実行するための終了処理Bプログラム、図12に示すスケジューラ機能実行処理を実行するためのスケジューラ機能実行処理プログラムが記憶されている。また、売上データには、売上のあった日付・時刻の情報が含まれるものとする。
その他のECR1の構成については、図1〜3を用いて実施形態1で説明したものと同様であるので説明を援用し、以下実施形態2の動作について説明する。
In the second embodiment, in the program storage memory 12, in addition to the above-described startup process program, an end process B program for executing the end process (referred to as end process B) shown in FIG. 11 and the scheduler function execution shown in FIG. A scheduler function execution processing program for executing processing is stored. The sales data includes information on the date and time when the sales were made.
Other configurations of the ECR 1 are the same as those described in the first embodiment with reference to FIGS. 1 to 3, so that the description is used and the operation of the second embodiment will be described below.

図11に、実施形態2における終了処理Bのフローを示す。当該処理は、CPU10と終了処理Bプログラムとの協働によるソフトウエア処理により実現される。   FIG. 11 shows a flow of end processing B in the second embodiment. This process is realized by a software process in cooperation with the CPU 10 and the end process B program.

終了処理Bにおいては、まず、RTC11から現在の日付及び時刻が取得され、システムデータ領域134に現在日付・時刻として書込まれる(ステップS41)。
ステップS42〜ステップS45の処理は、実施形態1において説明した図4のステップS1〜S4と同様であるので説明を省略する。
即ち、ステップS41でメインメモリ13のシステムデータ領域134に書込まれた現在日付・時刻は、ハイバネーション処理中にAC電源31の供給が再開されなければハイバネーション用メモリ14に書込まれる。
In the termination process B, first, the current date and time are acquired from the RTC 11 and written as the current date and time in the system data area 134 (step S41).
The processing in steps S42 to S45 is the same as that in steps S1 to S4 in FIG.
That is, the current date / time written in the system data area 134 of the main memory 13 in step S41 is written in the hibernation memory 14 unless the supply of the AC power supply 31 is resumed during the hibernation process.

終了処理Bが実行されAC電源31及びバックアップ用電源32の双方が遮断状態となった後、再度AC電源31が供給されると、CPU10により起動処理が実行される。起動処理は、実施形態1で図9a〜図9bを用いて説明したものと同様である。起動処理の実行によりハイバネーション用メモリ14に退避されていたデータはメインメモリ13に書き戻される。ハイバネーション用メモリ14には、AC電源遮断時に退避されたメインメモリ13のデータがそのまま保持される。   After the end process B is executed and both the AC power supply 31 and the backup power supply 32 are cut off, when the AC power supply 31 is supplied again, the CPU 10 executes a start-up process. The activation process is the same as that described with reference to FIGS. 9A to 9B in the first embodiment. The data saved in the hibernation memory 14 by the execution of the start process is written back to the main memory 13. The hibernation memory 14 retains the data in the main memory 13 saved when the AC power supply is shut off.

起動処理によりECR1が起動されると、図12に示すスケジューラ機能実行処理が行われる。当該処理は、CPU10とスケジューラ機能実行処理プログラムとの協働によるソフトウエア処理により実現される。   When ECR1 is activated by the activation process, a scheduler function execution process shown in FIG. 12 is performed. This processing is realized by software processing by cooperation between the CPU 10 and the scheduler function execution processing program.

まず、RTC11より現在の日付及び時刻が取得され、メインメモリ13のシステムデータ領域134に現在日付・時刻が記憶される(ステップS51)。次いで、スケジューラ機能を実行すべき時刻の到来が待機される(ステップS52)。ステップS52では、RTC11から取得した現在時刻とユーザデータエリア136に格納されているスケジューラ機能を実行すべき時刻とが比較され、両者が一致したときにスケジューラ機能を実行すべき時刻が到来したと判断される。   First, the current date and time are acquired from the RTC 11, and the current date and time are stored in the system data area 134 of the main memory 13 (step S51). Next, the arrival of the time to execute the scheduler function is waited (step S52). In step S52, the current time acquired from the RTC 11 is compared with the time at which the scheduler function stored in the user data area 136 is to be executed, and it is determined that the time at which the scheduler function is to be executed has come when they match. Is done.

スケジューラ機能を実行すべき時刻が到来したと判断されると(ステップS52;YES)、前回のスケジューラ機能実行日時がメインメモリ13のシステムデータ領域134から取得されるとともに(ステップS53)、前回のAC電源遮断時の日付・時刻、即ち、ハイバネーション用メモリ14に記憶されている現在日付・時刻が取得される(ステップS54)。そして、前回のスケジューラ機能実行日時以降の起動期間が算出される(ステップS55)。具体的には、前回のスケジューラ機能実行日時からハイバネーション用メモリ14に記憶されている現在日付・時刻までの期間、及びステップS51で取得された日付・時刻から現在日付・時刻までの期間が起動期間として算出される。   If it is determined that the time to execute the scheduler function has come (step S52; YES), the previous scheduler function execution date and time is acquired from the system data area 134 of the main memory 13 (step S53), and the previous AC The date / time when the power is shut off, that is, the current date / time stored in the hibernation memory 14 is acquired (step S54). Then, the activation period after the previous scheduler function execution date and time is calculated (step S55). Specifically, the period from the previous scheduler function execution date and time to the current date and time stored in the hibernation memory 14, and the period from the date and time acquired in step S51 to the current date and time are the startup period. Is calculated as

次いで、メインメモリ13が参照され、起動期間内の売上データ等であって、今回のスケジューラ機能による送信対象外の期間の未送信データが存在するか否かが判断され、存在すると判断されると(ステップS56;YES)、該当するデータ及び今回の送信対象のデータが通信部20を介してサーバ100に送信され(ステップS57)、処理はステップS59に移行する。一方、起動期間内の売上データ等であって今回のスケジューラ機能による送信対象外の期間の未送信データが存在しないと判断されると(ステップS56;NO)、今回のスケジューラ機能による送信対象のデータが通信部20を介してサーバ100に送信され(ステップS58)、処理はステップS59に移行する。   Next, the main memory 13 is referred to, and it is determined whether or not there is sales data or the like within the startup period and there is untransmitted data in a period not to be transmitted by the current scheduler function. (Step S56; YES), the corresponding data and the current transmission target data are transmitted to the server 100 via the communication unit 20 (Step S57), and the process proceeds to Step S59. On the other hand, if it is determined that there is no unsent data in the period not covered by the current scheduler function, such as sales data within the startup period (step S56; NO), the data to be transmitted by the current scheduler function Is transmitted to the server 100 via the communication unit 20 (step S58), and the process proceeds to step S59.

ステップS59では、通信部20を介してAC電源遮断期間がサーバ100に通知される(ステップS59)。そして、RTC11から現在日付及び時刻が取得され、今回のスケジューラ機能実行日時としてメインメモリ13のシステムデータ領域134に記憶され(ステップS60)、本処理は終了する。   In step S59, the AC power supply cutoff period is notified to the server 100 via the communication unit 20 (step S59). Then, the current date and time are acquired from the RTC 11 and stored in the system data area 134 of the main memory 13 as the current scheduler function execution date and time (step S60), and this process ends.

以上説明したように、実施形態2において、ECR1は、AC電源供給再開後のスケジューラ機能実行時において、起動期間中のデータのみを送信する動作を行うとともに、AC電源遮断期間をサーバに通知するので、無駄なスケジューラ機能の実行を行わず、かつ、サーバ100側でのデータ管理に支障をきたさないようにすることが可能となる。   As described above, in the second embodiment, the ECR 1 performs the operation of transmitting only the data during the startup period and notifies the server of the AC power cut-off period when executing the scheduler function after restarting the AC power supply. Thus, it is possible to prevent unnecessary execution of the scheduler function and prevent trouble in data management on the server 100 side.

(実施形態3)
次に、本発明の実施形態3について説明する。
実施形態1、2においては、ハイバネーション処理におけるデータの退避先はハイバネーション用メモリ14としたが、実施形態3では、バックアップ先(退避先)をハイバネーション用メモリ14とするか外部ストレージ19aとするかをユーザが選択可能である。
(Embodiment 3)
Next, a third embodiment of the present invention will be described.
In the first and second embodiments, the data save destination in the hibernation process is the hibernation memory 14, but in the third embodiment, whether the backup destination (save destination) is the hibernation memory 14 or the external storage 19a. User selectable.

実施形態3において、プログラム格納メモリ12には、図13に示すバックアップ先設定処理を実行するためのバックアップ先設定プログラム、図14に示す終了処理Cを実行するための終了処理Cプログラム、図15a〜図15bに示す起動処理Bを実行するための起動処理Bプログラムが記憶されている。また、特に図示はしないが、プログラム格納メモリ12は、後述するバックアップ先設定情報を格納するためのバックアップ先設定情報格納領域を有する。
その他のECR1の構成については、図1、2を用いて実施形態1で説明したものと同様であるので説明を援用し、以下実施形態2の動作について説明する。
In the third embodiment, the program storage memory 12 includes a backup destination setting program for executing the backup destination setting process shown in FIG. 13, an end process C program for executing the end process C shown in FIG. 14, and FIGS. A startup process B program for executing the startup process B shown in FIG. 15B is stored. Although not shown in particular, the program storage memory 12 has a backup destination setting information storage area for storing backup destination setting information to be described later.
Other configurations of the ECR 1 are the same as those described in the first embodiment with reference to FIGS. 1 and 2, so that the description is used and the operation of the second embodiment will be described below.

図13を参照してバックアップ先設定処理について説明する。当該処理は、入力装置18によりバックアップ先設定の指示が入力された際にCPU10とバックアップ先設定プログラムとの協働によるソフトウエア処理により実現される。   The backup destination setting process will be described with reference to FIG. This processing is realized by software processing by the cooperation of the CPU 10 and the backup destination setting program when a backup destination setting instruction is input from the input device 18.

まず、メイン表示装置151に、AC電源遮断時のデータのバックアップ先をハイバネーション用メモリ14のみとするか(通常型)、ハイバネーション用メモリ14又は外部ストレージ19aから選択するか(選択型)を選択するための画面(選択手段)がメイン表示装置151に表示され、入力装置18により通常型が選択されると(ステップS71;NO)、「通常型」が選択されたことを示すバックアップ先設定情報がプログラム格納メモリ12のバックアップ先設定情報格納領域に格納され(ステップS76)、本処理は終了する。   First, the main display device 151 selects whether the backup destination of data when the AC power is cut off is only the hibernation memory 14 (normal type), or is selected from the hibernation memory 14 or the external storage 19a (selection type). Is displayed on the main display device 151, and when the normal type is selected by the input device 18 (step S71; NO), backup destination setting information indicating that “normal type” has been selected is displayed. It is stored in the backup destination setting information storage area of the program storage memory 12 (step S76), and this process ends.

一方、選択型が選択されると(ステップS71;YES)、「選択型」が選択されたことを示すバックアップ先設定情報がプログラム格納メモリ12のバックアップ先設定情報格納領域に格納される(ステップS72)。また、メイン表示装置151にバックアップ先候補の一覧が表示される(ステップS73)。ここでは、バックアップ先としてハイバネーション用メモリ14又はストレージI/F19を介して接続されている外部ストレージ19aがバックアップ先候補として表示される。   On the other hand, when the selection type is selected (step S71; YES), the backup destination setting information indicating that the “selection type” is selected is stored in the backup destination setting information storage area of the program storage memory 12 (step S72). ). In addition, a list of backup destination candidates is displayed on the main display device 151 (step S73). Here, the external storage 19a connected via the hibernation memory 14 or the storage I / F 19 as a backup destination is displayed as a backup destination candidate.

次いで、入力装置18によるバックアップ先の選択が待機され、バックアップ先が選択されると(ステップS74;YES)、選択されたバックアップ先の情報がバックアップ先設定情報格納領域に格納されているバックアップ先設定情報に追加され(ステップS75)、本処理は終了する。   Next, the selection of the backup destination by the input device 18 is awaited, and when the backup destination is selected (step S74; YES), the backup destination setting in which the information of the selected backup destination is stored in the backup destination setting information storage area The information is added (step S75), and the process ends.

次に、図14を参照して終了処理Cについて説明する。当該処理は、AC電源31の電源が遮断された際にCPU10と終了処理Cプログラムとの協働によるソフトウエア処理により実現される。   Next, the termination process C will be described with reference to FIG. This processing is realized by software processing by cooperation between the CPU 10 and the termination processing C program when the power supply of the AC power supply 31 is shut off.

まず、サスペンド処理が実行され、CPU10に記憶されているプログラムカウンタ、スタックポインタ、レジスタ、システムデータ等がメインメモリ13のサスペンド用エリア132に退避(記憶)される(ステップS81)。   First, the suspend process is executed, and the program counter, stack pointer, register, system data, etc. stored in the CPU 10 are saved (stored) in the suspend area 132 of the main memory 13 (step S81).

次いで、バックアップ用電源ON/OFFスイッチ切替制御信号によりスイッチ35がONに切り替えられることにより、バックアップ用電源32がONに切り替えられる(ステップS82)。   Next, the switch 35 is turned on by the backup power ON / OFF switch switching control signal, whereby the backup power supply 32 is turned on (step S82).

次いで、RTC11により現在日付・時刻が取得され、メインメモリ13のシステムデータ領域134に記憶される(ステップS83)。次いで、プログラム格納メモリ12のバックアップ設定情報格納領域からバックアップ先設定情報が読み出され、(ステップS84)、読み出されたバックアップ先設定情報に基づいてバックアップ先が判断される(ステップS85)。バックアップ先がハイバネーション用メモリ14である場合(ステップS85;ハイバネーション用メモリ)、ハイバネーション用メモリ14へのハイバネーション処理が実行される(ステップS86)。ステップS86におけるハイバネーション処理は、実施形態1において図5〜図8で説明したものと同様であるので説明を省略する。   Next, the current date / time is acquired by the RTC 11, and stored in the system data area 134 of the main memory 13 (step S83). Next, the backup destination setting information is read from the backup setting information storage area of the program storage memory 12 (step S84), and the backup destination is determined based on the read backup destination setting information (step S85). When the backup destination is the hibernation memory 14 (step S85; hibernation memory), the hibernation process to the hibernation memory 14 is executed (step S86). The hibernation process in step S86 is the same as that described in the first embodiment with reference to FIGS.

バックアップ先が外部ストレージ19aである場合(ステップS85;外部ストレージ)、外部ストレージ19aへのハイバネーション処理が実行される(ステップS87)。ステップS87の処理は、実施形態1において図5〜図8で説明したものと略同様であり、ハイバネーション用メモリ14に対して行われる処理が外部ストレージ19aに対して行われる点のみが異なる。外部ストレージ19aに書込まれたバックアップデータは、バックアップデータであることを示す識別子とステップS83で取得された日付及び時刻を示すファイル名が付されたファイルで保存される。以下、バックアップデータのファイルをバックアップファイルという。   When the backup destination is the external storage 19a (step S85; external storage), hibernation processing to the external storage 19a is executed (step S87). The process of step S87 is substantially the same as that described in the first embodiment with reference to FIGS. 5 to 8 except that the process performed on the hibernation memory 14 is performed on the external storage 19a. The backup data written in the external storage 19a is saved as a file with an identifier indicating that it is backup data and a file name indicating the date and time acquired in step S83. Hereinafter, the backup data file is referred to as a backup file.

ハイバネーション処理が終了すると、スイッチ35によりバックアップ用電源32がOFFに切替られ(ステップS88)、終了処理Cは終了する。なお、ハイバネーション処理中にAC電源31が供給状態となった場合は、図15aに示す起動処理B(ハイバネーション中断リスタート)へ移行する。   When the hibernation process is completed, the backup power supply 32 is switched off by the switch 35 (step S88), and the termination process C is terminated. If the AC power supply 31 is in a supply state during the hibernation process, the process proceeds to a start process B (hibernation interruption restart) shown in FIG. 15a.

次に、図15a〜図15bを参照して起動処理Bについて説明する。当該処理は、終了処理C後、AC電源31が電源供給状態となったときにCPU10と起動処理Bプログラムとの協働によるソフトウエア処理により実現される。   Next, the activation process B will be described with reference to FIGS. 15a to 15b. This process is realized by a software process in cooperation with the CPU 10 and the startup process B program when the AC power supply 31 is in a power supply state after the end process C.

まず、ステップS90〜S98の処理が実行される。ステップS90〜S98の処理は、図9aのステップS10〜18の処理と同様であるので説明を省略する。   First, steps S90 to S98 are executed. The processing in steps S90 to S98 is the same as the processing in steps S10 to S18 in FIG.

ステップS99においては、図16に示す復帰データ選択処理が実行される。
復帰データ選択処理においては、まず、プログラム格納メモリ12のバックアップ設定情報格納領域からバックアップ先設定情報が読み出され、読み出されたバックアップ先設定情報に基づいて、バックアップ先の選択型設定がなされているか否かが判断される(ステップS401)。選択型設定がなされていないと判断されると(ステップS401;NO)、処理は図15aのステップS100に移行する。選択型設定がなされていると判断されると(ステップS401;YES)、バックアップデータの検索が行われる(ステップS402)。具体的には、ハイバネーション用メモリ14のバックアップデータと、外部ストレージ19aに記憶されているバックアップファイルが検索される。
In step S99, the return data selection process shown in FIG. 16 is executed.
In the return data selection process, first, the backup destination setting information is read from the backup setting information storage area of the program storage memory 12, and the selection type setting of the backup destination is made based on the read backup destination setting information. It is determined whether or not there is (step S401). If it is determined that the selection type setting has not been made (step S401; NO), the process proceeds to step S100 in FIG. 15a. If it is determined that the selection type setting has been made (step S401; YES), the backup data is searched (step S402). Specifically, the backup data stored in the hibernation memory 14 and the backup file stored in the external storage 19a are searched.

検索の結果、一つ以上のバックアップデータが検索された場合(ステップS403;YES)、メイン表示装置151にバックアップデータの日付一覧が表示される(ステップS404)。表示された一覧の中からユーザにより入力装置18を介してシステムの復帰に用いるバックアップデータが選択されると(ステップS405)、処理は図15aのステップS100に移行する。   If one or more backup data is searched as a result of the search (step S403; YES), a list of backup data dates is displayed on the main display device 151 (step S404). When the user selects backup data to be used for system restoration from the displayed list via the input device 18 (step S405), the process proceeds to step S100 in FIG. 15a.

図15a〜図15bにおいて、ステップS100〜S119の処理は、復帰データ選択処理でバックアップデータが選択された場合に選択されたバックアップデータでメインメモリ13への書き戻しが行われるほかは、図9a〜図9bのステップS19〜S38と同様であるので説明を援用する。
一方、ステップS403においてバックアップデータが検索されなかった場合は(ステップS403;NO)、処理は図15bのステップS117に移行し、INIT状態にて起動され、本処理は終了する。
15a to 15b, the processes in steps S100 to S119 are the same as those in steps S100 to S119 except that the backup data selected when the backup data is selected in the return data selection process is written back to the main memory 13. Since it is the same as steps S19 to S38 in FIG.
On the other hand, when backup data is not searched in step S403 (step S403; NO), the process proceeds to step S117 in FIG. 15b, is started in the INIT state, and the process ends.

以上説明したように、実施形態3におけるECR1によれば、AC電源遮断時のデータのバックアップ先(退避先)をハイバネーション用メモリ14又は外部ストレージ19aの中からユーザが選択し設定しておくことができ、選択されたバックアップ先に対しハイバネーション処理が実行されるので、ECR1から取り外し可能な外部ストレージ19aにバックアップデータを書込むことが可能となる。また、データを復帰する際に、バックアップデータの一覧が表示され、復帰に使用するバックアップデータをユーザが選択することができるので、前回のAC電源遮断の直前の状態のみならず、ユーザが所望する時点のAC電源遮断前の状態にシステム動作状態を復帰させることが可能となる。   As described above, according to the ECR 1 in the third embodiment, the user can select and set the data backup destination (save destination) when the AC power is shut down from the hibernation memory 14 or the external storage 19a. Since the hibernation process is executed for the selected backup destination, the backup data can be written to the external storage 19a removable from the ECR1. In addition, when restoring data, a list of backup data is displayed, and the user can select backup data to be used for restoration, so that the user desires not only the state immediately before the previous AC power shutdown. It becomes possible to restore the system operation state to the state before the AC power supply cutoff at the time.

なお、上記実施形態1〜3における記述内容は、本発明に係るECR1の好適な一例であり、これに限定されるものではない。
例えば、メインメモリ13に記憶されるデータは一例であり、これに限定されない。
その他、ECR1を構成する各装置の細部構成及び細部動作に関しても、発明の趣旨を逸脱することのない範囲で適宜変更可能である。
In addition, the description content in the said Embodiment 1-3 is a suitable example of ECR1 which concerns on this invention, and is not limited to this.
For example, the data stored in the main memory 13 is an example and is not limited to this.
In addition, the detailed configuration and detailed operation of each device constituting the ECR 1 can be appropriately changed without departing from the spirit of the invention.

本発明の実施形態におけるECRの機能構成例を示すブロック図である。It is a block diagram which shows the function structural example of ECR in embodiment of this invention. 図1のCPU、プログラム格納メモリ、メインメモリ、ハイバネーション用メモリのデータ格納例及びデータの流れを示す図である。FIG. 2 is a diagram illustrating a data storage example and a data flow of the CPU, program storage memory, main memory, and hibernation memory of FIG. 1. 図1のECRの電源系の要部構成例を示す図である。It is a figure which shows the principal part structural example of the power supply system of ECR of FIG. 図1のCPUにより実行される終了処理を示すフローチャートである。It is a flowchart which shows the completion | finish process performed by CPU of FIG. 図1のCPUにより実行されるハイバネーション処理を示すフローチャートである。It is a flowchart which shows the hibernation process performed by CPU of FIG. 図1のCPUにより実行される書込みエリア消去処理を示すフローチャートである。3 is a flowchart showing a write area erasing process executed by a CPU of FIG. 1. 図1のCPUにより実行される書込み処理を示すフローチャートである。It is a flowchart which shows the write-in process performed by CPU of FIG. 図1のCPUにより実行される書込み内容保証処理を示すフローチャートである。It is a flowchart which shows the written content guarantee process performed by CPU of FIG. 図1のCPUにより実行される起動処理を示すフローチャートである。It is a flowchart which shows the starting process performed by CPU of FIG. 図1のCPUにより実行される起動処理を示すフローチャートである。It is a flowchart which shows the starting process performed by CPU of FIG. 図1のメイン表示装置のAC電源遮断前後における表示例を示す図である。It is a figure which shows the example of a display before and after AC power supply interruption | blocking of the main display apparatus of FIG. 図1のCPUにより実行される終了処理Bを示すフローチャートである。It is a flowchart which shows the completion | finish process B performed by CPU of FIG. 図1のCPUにより実行されるスケジューラ機能実行処理を示すフローチャートである。It is a flowchart which shows the scheduler function execution process performed by CPU of FIG. 図1のCPUにより実行されるバックアップ先設定処理を示すフローチャートである。It is a flowchart which shows the backup destination setting process performed by CPU of FIG. 図1のCPUにより実行される終了処理Cを示すフローチャートである。It is a flowchart which shows the completion | finish process C performed by CPU of FIG. 図1のCPUにより実行される起動処理Bを示すフローチャートである。It is a flowchart which shows the starting process B performed by CPU of FIG. 図1のCPUにより実行される起動処理Bを示すフローチャートである。It is a flowchart which shows the starting process B performed by CPU of FIG. 図1のCPUにより実行される復帰データ選択処理を示すフローチャートである。It is a flowchart which shows the return data selection process performed by CPU of FIG.

符号の説明Explanation of symbols

1 ECR
10 CPU
11 RTC
12 プログラム格納メモリ
13 メインメモリ
131 起動処理・終了処理用ワークエリア
132 サスペンド用エリア
133 コピー領域
134 システムデータ領域
135 設定データ領域
136 ユーザデータ領域
14 ハイバネーション用メモリ
141 ヘッダ領域
142 バックアップ領域
143 チェックサム格納領域
151 メイン表示装置
152 サブ表示装置
16 LED
17 印字装置
18 入力装置
19 ストレージI/F
19a 外部ストレージ
20 通信部
1 ECR
10 CPU
11 RTC
12 Program storage memory 13 Main memory 131 Work area for start / end processing 132 Suspend area 133 Copy area 134 System data area 135 Setting data area 136 User data area 14 Hibernation memory 141 Header area 142 Backup area 143 Checksum storage area 151 Main display device 152 Sub display device 16 LED
17 Printing device 18 Input device 19 Storage I / F
19a External storage 20 Communication unit

Claims (9)

主電源が遮断された際に、システムの動作状態を示すデータを揮発性記憶手段に退避させる第1の退避処理手段と、
前記第1の退避処理手段により前記揮発性記憶手段に退避された前記システムの動作状態を示すデータを不揮発性記憶手段に退避させる第2の退避処理手段と、
前記主電源の電源状態を監視する電源監視手段と、
前記第2の退避処理手段による退避処理中に前記電源監視手段により前記主電源が供給状態となったことが検出された際に、前記第2の退避処理手段による退避処理を中断させ、前記揮発性記憶手段に退避されている前記システムの動作状態を示すデータに基づいて前記主電源の遮断前の状態にシステムを復帰させる制御手段と、
を備える売上データ処理装置。
First saving processing means for saving data indicating an operating state of the system to the volatile storage means when the main power supply is shut off;
Second save processing means for saving data indicating the operating state of the system saved in the volatile storage means by the first save processing means to the nonvolatile storage means;
Power monitoring means for monitoring the power state of the main power supply;
When the power supply monitoring unit detects that the main power supply is being supplied during the saving process by the second saving processing unit, the saving process by the second saving processing unit is interrupted, and the volatile Control means for returning the system to the state before the main power supply is shut off based on data indicating the operating state of the system saved in the storage device;
A sales data processing apparatus.
前記第2の退避処理手段による退避処理は、前記不揮発性記憶手段に記憶されているデータの消去処理を含む請求項1に記載の売上データ処理装置。   The sales data processing apparatus according to claim 1, wherein the saving processing by the second saving processing unit includes an erasing process of data stored in the nonvolatile storage unit. 前記第2の退避処理手段による退避処理は、前記不揮発性記憶手段へ前記システムの動作状態を示すデータを書込む書込み処理を含む請求項1に記載の売上データ処理装置。   The sales data processing apparatus according to claim 1, wherein the saving process by the second saving processing unit includes a writing process for writing data indicating an operation state of the system to the nonvolatile storage unit. 前記第2の退避処理手段による退避処理は、前記揮発性記憶手段における前記不揮発性記憶手段への退避対象となったデータと前記不揮発性記憶手段に退避されたデータとの整合性を確認するための処理を含む請求項1に記載の売上データ処理装置。   The evacuation process by the second evacuation processing unit is for confirming the consistency between the data to be evacuated to the nonvolatile storage unit in the volatile storage unit and the data evacuated to the nonvolatile storage unit. The sales data processing apparatus according to claim 1, comprising: 前記不揮発性記憶手段は、システムを動作させるプログラムを格納するための記憶手段とは別個に設けられている請求項1〜4の何れか一項に記載の売上データ処理装置。   The sales data processing apparatus according to any one of claims 1 to 4, wherein the nonvolatile storage means is provided separately from a storage means for storing a program for operating the system. 前記第2の退避処理手段の処理中であることを通知する通知手段を備える請求項1〜5の何れか一項に記載の売上データ処理装置。   The sales data processing apparatus according to any one of claims 1 to 5, further comprising notification means for notifying that the second saving processing means is processing. 前記不揮発性記憶手段は複数備えられている請求項1〜6の何れか一項に記載の売上データ処理装置。   The sales data processing apparatus according to claim 1, wherein a plurality of the nonvolatile storage units are provided. 外部記憶手段を接続するための接続手段と、
前記揮発性記憶手段に退避された前記システムの動作状態を示すデータの退避先を前記不揮発性記憶手段とするか前記接続手段により接続された外部記憶手段とするかを選択するための選択手段を備え、
前記第2の退避処理手段は、前記選択手段により選択された退避先に前記システムの動作状態を示すデータを退避させる請求項1に記載の売上データ処理装置。
Connection means for connecting external storage means;
Selection means for selecting whether to save the data indicating the operating state of the system saved in the volatile storage means as the nonvolatile storage means or the external storage means connected by the connection means Prepared,
The sales data processing apparatus according to claim 1, wherein the second save processing unit saves data indicating an operation state of the system to a save destination selected by the selection unit.
売上データ処理装置に用いられるコンピュータを、
主電源が遮断された際に、システムの動作状態を示すデータを揮発性記憶手段に退避させる第1の退避処理手段、
前記第1の退避処理手段により前記揮発性記憶手段に退避された前記システムの動作状態を示すデータを不揮発性記憶手段に退避させる第2の退避処理手段、
電源監視手段により前記第2の退避処理手段による退避処理中に前記主電源が供給状態となったことが検出された際に、前記第2の退避処理手段による退避処理を中断させ、前記揮発性記憶手段に退避されている前記システムの動作状態を示すデータに基づいて前記主電源の遮断前の状態にシステムを復帰させる制御手段、
として機能させるためのプログラム。
A computer used in a sales data processing device
First evacuation processing means for evacuating data indicating the operating state of the system to the volatile storage means when the main power supply is shut off;
Second save processing means for saving data indicating the operating state of the system saved in the volatile storage means by the first save processing means to the nonvolatile storage means;
When it is detected by the power supply monitoring means that the main power supply has been supplied during the saving process by the second saving processing means, the saving process by the second saving processing means is interrupted, and the volatility Control means for returning the system to a state before the main power supply is shut off based on data indicating the operating state of the system saved in the storage means;
Program to function as.
JP2008187361A 2008-07-18 2008-07-18 Sales data processor and program Pending JP2010026789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008187361A JP2010026789A (en) 2008-07-18 2008-07-18 Sales data processor and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008187361A JP2010026789A (en) 2008-07-18 2008-07-18 Sales data processor and program

Publications (2)

Publication Number Publication Date
JP2010026789A true JP2010026789A (en) 2010-02-04
JP2010026789A5 JP2010026789A5 (en) 2011-06-30

Family

ID=41732569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008187361A Pending JP2010026789A (en) 2008-07-18 2008-07-18 Sales data processor and program

Country Status (1)

Country Link
JP (1) JP2010026789A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128537A (en) * 2008-11-25 2010-06-10 Casio Computer Co Ltd Sales data processor and program
JP2013088911A (en) * 2011-10-14 2013-05-13 Lenovo Singapore Pte Ltd Computing device, synchronization method, and program executable by computer

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0651858A (en) * 1992-07-30 1994-02-25 Hitachi Ltd Program interrupting/restarting system
JPH06266478A (en) * 1993-03-11 1994-09-22 Hitachi Ltd Computer system
JPH09152918A (en) * 1995-11-29 1997-06-10 Nec Corp Flash memory protecting mechanism and flash memory controller using same and flash memory protecting method
JPH1185332A (en) * 1997-09-04 1999-03-30 Toshiba Corp Information processor, automatic backup method for generated data, and recording medium programming and storing the method
JP2004070678A (en) * 2002-08-07 2004-03-04 Toshiba Corp Information processor and resume error detection method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0651858A (en) * 1992-07-30 1994-02-25 Hitachi Ltd Program interrupting/restarting system
JPH06266478A (en) * 1993-03-11 1994-09-22 Hitachi Ltd Computer system
JPH09152918A (en) * 1995-11-29 1997-06-10 Nec Corp Flash memory protecting mechanism and flash memory controller using same and flash memory protecting method
JPH1185332A (en) * 1997-09-04 1999-03-30 Toshiba Corp Information processor, automatic backup method for generated data, and recording medium programming and storing the method
JP2004070678A (en) * 2002-08-07 2004-03-04 Toshiba Corp Information processor and resume error detection method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128537A (en) * 2008-11-25 2010-06-10 Casio Computer Co Ltd Sales data processor and program
JP2013088911A (en) * 2011-10-14 2013-05-13 Lenovo Singapore Pte Ltd Computing device, synchronization method, and program executable by computer

Similar Documents

Publication Publication Date Title
JP4768237B2 (en) Portable electronic device and method for controlling portable electronic device
JP5460167B2 (en) Information processing apparatus, control method for information processing apparatus, and control program
US8528815B2 (en) Image forming apparatus and control method of image forming apparatus
JP4820271B2 (en) Image processing apparatus and image processing method
CN101615162A (en) Memory Management Unit, image forming apparatus, storage management method and program
JP2010026791A (en) Sales data processor and program
JP2012216014A (en) Information processor and data protection method
JP2010026789A (en) Sales data processor and program
US20160062838A1 (en) Information processing apparatus, method of controlling the same, and storage medium
JP5349104B2 (en) Electronic device and program update method
JP5444698B2 (en) Data processing apparatus and program
JP2009009323A (en) Setting device, electronic equipment, and setting program
JP4648097B2 (en) Registry information repair method and information processing apparatus
JP2023068538A (en) Information processing apparatus, method for controlling the same, and program
JP6000655B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP2012088780A (en) Information processor, information processor control method and program
JP2008009494A (en) Image forming device
TW200919173A (en) Computer system and firmware recovery method for computer system
JP5341947B2 (en) IC card, control method of IC card, and control method of portable electronic device
JP2011079138A (en) Image forming apparatus and method for restoring data
JP4741390B2 (en) Image processing device
JP2012113382A (en) Image forming device
JP2011203778A (en) Electronic apparatus, and program for the same
JP2008287585A (en) Data processing equipment and method for handling power failure
JP3812281B2 (en) Printing device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110512

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110512

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20110512

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120618

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120626

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20121106