JPH10124405A - Data processor - Google Patents

Data processor

Info

Publication number
JPH10124405A
JPH10124405A JP29594696A JP29594696A JPH10124405A JP H10124405 A JPH10124405 A JP H10124405A JP 29594696 A JP29594696 A JP 29594696A JP 29594696 A JP29594696 A JP 29594696A JP H10124405 A JPH10124405 A JP H10124405A
Authority
JP
Japan
Prior art keywords
data
power supply
storage means
power failure
data storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP29594696A
Other languages
Japanese (ja)
Other versions
JP3718926B2 (en
Inventor
Katsuhiko Motoike
克彦 本池
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 JP29594696A priority Critical patent/JP3718926B2/en
Publication of JPH10124405A publication Critical patent/JPH10124405A/en
Application granted granted Critical
Publication of JP3718926B2 publication Critical patent/JP3718926B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)
  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To surely protect the necessary data despite the use of an auxiliary battery having small capacity without protecting the contents, of a volatile memory by a backup battery when a main power supply is interrupted by saving immediately only an optional type of data among those stored in the volatile memory against occurrence of a power interruption. SOLUTION: A POS master device and the terminal equipments operate by the power supplied from an auxiliary battery 15. The POS master device gives a data transmission request to every terminal equipment via an in-line control part 10. Then every terminal equipment sends the contents of only an optional sales totalizer that is previously designated among various sales totalizers contained in a RAM 2 to the POS master device. The POS master device collects the received data and sends them to a host computer for saving via a modem 11.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、主電源が停電し
た際に補助電源に切り換えて所定のデータ処理を行うデ
ータ処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device which performs predetermined data processing by switching to an auxiliary power supply when a main power supply fails.

【0002】[0002]

【従来の技術】一般に、デパートやスーパーマーケット
等の大型店舗で構築されているPOS(ポイント・オブ
・セールス)システムにおいては、例えば、一日の業務
終了時に、各ターミナル装置から手動操作によってデー
タ伝送を指示すると、各種の売上データをデータ収集装
置(ストアコントローラやホストコンピュータ)へ伝送
し、データ収集装置側のハードディスク等に記憶保持さ
せるようにしている。この場合、ターミナル装置側にお
いて、AC電源の停電時には、バックアップ電池に電源
供給を切り換えて揮発性メモリの内容を保持し、AC電
源の復帰後に揮発性メモリ内の各種売上データをデータ
収集装置へ伝送するようにしている。
2. Description of the Related Art In general, in a POS (Point of Sales) system constructed in a large store such as a department store or a supermarket, for example, at the end of a business day, data transmission is manually performed from each terminal device. When instructed, various kinds of sales data are transmitted to a data collection device (store controller or host computer) and stored and held in a hard disk or the like of the data collection device. In this case, when the AC power supply fails, the power supply is switched to the backup battery to retain the contents of the volatile memory on the terminal device side, and after the AC power supply is restored, various sales data in the volatile memory are transmitted to the data collection device. I am trying to do it.

【0003】[0003]

【発明が解決しようとする課題】ところで、従来、バッ
クアップ電池によってターミナル装置全体をバックアッ
プするもの、あるいは揮発性メモリのみをバックアップ
するものが知られているが、装置全体をバックアップす
るためには非常に大容量の電池を必要としていた。ま
た、揮発性メモリは部門別売上データ、商品別売上デー
タ、担当者別売上データ等、各種のデータを多量に記憶
するDRAMによって構成されているが、DRAMは消
費電力が多いために、DRAMのみをバックアップする
電池であっても大容量の電池が必要となる。この発明の
課題は、主電源の停電時に揮発性メモリの内容をバック
アップ電池によって保護しておかず、停電が発生したら
直ちに揮発性メモリに記憶されているデータのうち任意
の種類のデータのみを退避することで、容量の少ない補
助電池を用いても必要データを確実に保護できるように
することである。また、この発明の課題は、端末装置側
において主電源の停電時に揮発性メモリの内容をバック
アップ電池によって保護しておかず、停電が発生したら
端末装置からデータ収集装置へデータを伝送するのに必
要なデバイスに対してのみ補助電源からの電源供給に切
り換えることで、容量の少ない補助電池を用いても停電
発生時に自動的に端末装置からデータ収集装置へデータ
を伝送できるようにすることである。
Conventionally, a backup battery for backing up the entire terminal device using a backup battery or a backup device for backing up only the volatile memory is known. However, it is very difficult to back up the entire device. Large capacity batteries were needed. Volatile memory is composed of a DRAM that stores a large amount of various data such as sales data by department, sales data by product, sales data by person in charge, etc. Even a battery that backs up a battery requires a large-capacity battery. SUMMARY OF THE INVENTION An object of the present invention is to prevent the contents of a volatile memory from being protected by a backup battery at the time of a power failure of a main power supply, and immediately save any type of data among data stored in the volatile memory immediately after a power failure occurs. Thus, even if an auxiliary battery having a small capacity is used, necessary data can be surely protected. Another object of the present invention is to prevent the contents of the volatile memory from being protected by a backup battery at the time of a power failure of the main power supply on the terminal device side. By switching the power supply from the auxiliary power supply to only the device, it is possible to automatically transmit data from the terminal device to the data collection device when a power failure occurs even if an auxiliary battery with a small capacity is used.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。請求項1記載の発明は、主電源の他に補助電
源を備えたデータ処理装置において、複数種類のデータ
を記憶する揮発性のデータ記憶手段と、この揮発性のデ
ータ記憶手段に記憶されているデータの種類のうち任意
の種類を記憶するデータ種記憶手段と、データを記憶保
持する不揮発性のデータ記憶手段と、主電源の停電発生
を検出する検出手段と、この検出手段によって停電の発
生が検出された際に、補助電源からの電源供給に切り換
える電源切換手段と、前記検出手段により停電の発生が
検出されて補助電源から電源供給されている状態で、前
記揮発性のデータ記憶手段に記憶されているデータのう
ち、前記データ種記憶手段に記憶されている種類に対応
するデータを前記不揮発性のデータ記憶手段へ転送して
記憶保持させる記憶制御手段とを具備するものである。
なお、前記記憶制御手段は、前記検出手段によって停電
の発生が検出されてから所定時間が経過するまで前記揮
発性のデータ記憶手段内のデータを前記不揮発性のデー
タ記憶手段へ転送して記憶保持させるようにしてもよ
い。請求項1記載の発明によれば、AC電源等の主電源
の停電が発生すると、電源切換手段によって補助電源か
らの電源供給に切り換えられる。すると、記憶制御手段
は前記検出手段により停電の発生が検出されて補助電源
から電源供給されている状態で、前記揮発性のデータ記
憶手段に記憶されているデータのうち、前記データ種記
憶手段に記憶されている種類に対応するデータを前記不
揮発性のデータ記憶手段へ転送して記憶保持させる。し
たがって、主電源の停電時に揮発性メモリの内容をバッ
クアップ電池によって保護しておかず、停電が発生した
ら直ちに揮発性メモリに記憶されているデータのうち任
意の種類のデータのみを退避することで、容量の少ない
補助電池を用いても必要データを確実に保護することが
できる。
The means of the present invention are as follows. According to a first aspect of the present invention, in a data processing device provided with an auxiliary power supply in addition to a main power supply, volatile data storage means for storing a plurality of types of data, and the volatile data storage means are stored in the volatile data storage means. A data type storage unit for storing an arbitrary type of data; a non-volatile data storage unit for storing and holding data; a detection unit for detecting occurrence of a power failure of a main power supply; Power supply switching means for switching to power supply from an auxiliary power supply when detected, and storing in the volatile data storage means in a state where power is supplied from the auxiliary power supply when the occurrence of a power failure is detected by the detection means. Storage control means for transferring data corresponding to the type stored in the data type storage means to the non-volatile data storage means and storing and holding the same It is intended to include a.
The storage control means transfers the data in the volatile data storage means to the non-volatile data storage means until a predetermined time elapses after the occurrence of the power failure is detected by the detection means, and stores and holds the data. You may make it do. According to the first aspect of the present invention, when a power failure of the main power supply such as the AC power supply occurs, the power supply is switched to the power supply from the auxiliary power supply by the power supply switching unit. Then, in a state where the occurrence of a power failure is detected by the detection means and the power is supplied from the auxiliary power supply, the storage control means, among the data stored in the volatile data storage means, The data corresponding to the stored type is transferred to the non-volatile data storage means and stored. Therefore, the content of the volatile memory is not protected by the backup battery at the time of the power failure of the main power supply, and immediately after a power failure occurs, only the arbitrary type of data stored in the volatile memory is evacuated, thereby reducing the capacity. Necessary data can be surely protected even by using an auxiliary battery having a small number of batteries.

【0005】請求項3記載の発明は、主電源の他に補助
電源を備えた複数台の端末装置と、各端末装置から伝送
されて来るデータを収集するデータ収集装置とを備えた
データ処理装置において、各端末装置は、揮発性のデー
タ記憶手段と、このデータ記憶手段内のデータをデータ
収集装置へ伝送する伝送手段と、主電源の停電発生を検
出する検出手段と、この検出手段によって停電発生が検
出された際に前記データ記憶手段およびデータ伝送手段
に対してのみ補助電源からの電力を供給する電源切換手
段とを具備し、前記検出手段により停電の発生が検出さ
れて補助電源から前記データ記憶手段およびデータ伝送
手段に対して電源が供給されている状態で、前記データ
伝送手段は前記データ記憶手段内のデータをデータ収集
装置へ伝送するものである。請求項3記載の発明によれ
ば、端末装置側において、主電源の停電が発生すると、
電源切換手段によって揮発性のデータ記憶手段およびデ
ータ記憶手段に対してのみ補助電源からの電源供給に切
り換えられる。すると、データ伝送手段はデータ記憶手
段内のデータをデータ収集装置へ伝送する。したがっ
て、端末装置側において主電源の停電時に揮発性メモリ
の内容をバックアップ電池によって保護しておかず、停
電が発生したら端末装置からデータ収集装置へデータを
伝送するのに必要なデバイスに対してのみ補助電源から
の電源供給に切り換えることで、容量の少ない補助電池
を用いても停電発生時に自動的に端末装置からデータ収
集装置へデータを伝送することができる。
According to a third aspect of the present invention, there is provided a data processing apparatus comprising: a plurality of terminal devices provided with an auxiliary power supply in addition to a main power supply; and a data collection device for collecting data transmitted from each terminal device. , Each terminal device is provided with volatile data storage means, transmission means for transmitting data in the data storage means to the data collection device, detection means for detecting occurrence of power failure of the main power supply, and power failure by the detection means. Power supply switching means for supplying power from an auxiliary power supply only to the data storage means and the data transmission means when the occurrence is detected, and the occurrence of a power failure is detected by the detection means and In a state where power is supplied to the data storage unit and the data transmission unit, the data transmission unit transmits data in the data storage unit to the data collection device. It is. According to the invention described in claim 3, when a power failure of the main power supply occurs on the terminal device side,
The power supply switching means switches the power supply from the auxiliary power supply to only the volatile data storage means and the data storage means. Then, the data transmission unit transmits the data in the data storage unit to the data collection device. Therefore, the terminal device does not protect the contents of the volatile memory with a backup battery at the time of the power failure of the main power supply, and if a power failure occurs, assists only the devices necessary for transmitting data from the terminal device to the data collection device By switching to the power supply from the power supply, data can be automatically transmitted from the terminal device to the data collection device when a power failure occurs even if an auxiliary battery with a small capacity is used.

【0006】[0006]

【発明の実施の形態】以下、図1〜図6を参照してこの
発明の第1実施形態を説明する。図1はPOSシステム
を示したシステム構成図である。このPOSシステムは
複数台のPOSターミナル装置T1、T2、T3……と
POSマスタ装置MTとが構内専用回線を介して接続し
て成ると共に、POSマスタ装置MTは本部のホストコ
ンピュータHTに公衆電話回線を介して接続されて成
る。ここで、一日の営業終了時点において、各POSタ
ーミナル装置T1、T2、T3……から売上データをP
OSマスタ装置MTへ伝送すると、POSマスタ装置M
Tはこれを収集し、この収集データ、ホストコンピュー
タHTに伝送する。ホストコンピュータHTは各店舗か
ら伝送されて来た売上データを収集して記憶管理する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a system configuration diagram showing a POS system. This POS system is composed of a plurality of POS terminal devices T1, T2, T3,... And a POS master device MT connected via a private line on the premises, and the POS master device MT is connected to a host computer HT at the headquarters via a public telephone line. That are connected via At the end of the business day, the sales data from each of the POS terminal devices T1, T2, T3,.
When transmitted to the OS master device MT, the POS master device M
T collects this and transmits the collected data to the host computer HT. The host computer HT collects and manages sales data transmitted from each store.

【0007】図2はPOSマスタ装置MTの主要構成を
示したブロック図である。CPU1はRAM2内のプロ
グラムメモリに格納されている各種プログラムにしたが
ってこのPOSマスタ装置の全体動作を制御する中央演
算処理である。記憶媒体3は着脱自在に装着可能なフロ
ッピーディスク、光ディスク、RAMカード等の磁気的
・光学的記憶媒体、半導体メモリによって構成され、プ
ログラムやデータが格納されている。この記憶媒体3が
記憶制御部4を介して装置本体に装着されている状態に
おいて、記憶媒体3内のプログラムやデータは、CPU
1に取り込まれ、ハードディスク5に格納される。ハー
ドディスク5はオペレーティングシステムや各種のアプ
リケーションプログラム、データファイル、文字フォン
トデータ等を記憶するもので、CPU1は通信回線等を
介して他の機器からプログラムやデータが送信されて来
た際には、それを取り込んでハードディスク5に格納す
る。また、CPU1にはその周辺デバイスとして入力部
6、表示部7、印字部8、ドロア9、インライン制御部
10、モデム11等が接続されており、CPU1はそれ
らの動作を制御する。
FIG. 2 is a block diagram showing a main configuration of the POS master device MT. The CPU 1 is a central processing unit that controls the overall operation of the POS master device according to various programs stored in a program memory in the RAM 2. The storage medium 3 includes a magnetic / optical storage medium such as a floppy disk, an optical disk, and a RAM card, which can be removably mounted, and a semiconductor memory, and stores programs and data. In a state where the storage medium 3 is mounted on the apparatus main body via the storage control unit 4, programs and data in the storage medium 3 are stored in the CPU.
1 and stored in the hard disk 5. The hard disk 5 stores an operating system, various application programs, data files, character font data, and the like. The CPU 1 receives programs and data from other devices via a communication line or the like. Is stored in the hard disk 5. Further, an input unit 6, a display unit 7, a printing unit 8, a drawer 9, an in-line control unit 10, a modem 11 and the like are connected to the CPU 1 as peripheral devices, and the CPU 1 controls the operations thereof.

【0008】入力部6はキーボードやポインティングデ
バイスを有し、キーボード上には通常備えられている各
種のキーが配列されている。すなわち、図示しないが、
金額データや個数等を入力するテンキー、部門キー、P
LU(プライス・ルック・アップ)キー、現金/預かり
金キー等の他、登録モード、設定モード、点検モード、
精算モード等を切り換えるモードスイッチが設けられて
いる。この入力部6から入力された売上データは、CP
U1に取り込まれて表示部7に表示出力されたり、2連
装式の印字部8にセットされているレシート/ジャーナ
ルに印字出力され、更にはRAM2内の売上合計器(図
1では図示せず)に登録される。
The input unit 6 has a keyboard and a pointing device, and various keys normally provided are arranged on the keyboard. That is, although not shown,
Numeric keypad, department key, P to input amount data, quantity, etc.
In addition to LU (price look up) key, cash / deposit key, etc., registration mode, setting mode, inspection mode,
A mode switch for switching between a settlement mode and the like is provided. The sales data input from the input unit 6 is CP
It is taken in by U1, displayed on the display unit 7, output on a receipt / journal set in the double printing unit 8, and further printed on the sales totalizer in the RAM 2 (not shown in FIG. 1). Registered in.

【0009】停電検出部12はAC電源部13からの出
力電圧を常時監視しており、停電発生時にその電圧が低
下すると、CPU1に停電発生を通知すると共に、電源
制御部14に電源切り換え信号を与える。電源制御部1
4はAC停電の発生時に停電検出部12からの切り換え
信号にしたがって補助電池(例えば、二次電池)15か
らの電源供給に切り換えるもので、重負荷回路への電力
供給を停止し、停電時の処理に必要とされる最低限のデ
バイスのみに補助電池15からの電力を供給するように
している。この場合、表示部7、印字部8の他に、記憶
制御部4、入力部6、ドロア9への電力供給を停止し、
その他のデバイスに補助電池15からの電力を供給す
る。ここで、CPU1は停電検出部12から停電の発生
通知を受けると、インライン制御部10を介して各PO
Sターミナル装置T1、T2……から伝送されて来る売
上データを収集したり、モデム11を介してホストコン
ピュータHTへ収集データを伝送する処理を実行する
が、この場合、ユーザによって予めその実行を指示する
設定が行われていることを条件にインライン通信による
端末データ収集処理やモデム通信によるホストへのデー
タ伝送処理が行われる。なお、上述の設定内容として、
インライン通信のみ、モデム通信のみあるいはインライ
ン通信とモデム通信の双方を実行すべきことをユーザが
任意に選択指定することができるようにしている。ま
た、CPU1は停電発生時に上述の端末データ収集処理
やホストへのデータ伝送処理を実行開始する際に、タイ
マ16を動作させ、それがタイムアップされるまでの所
定時間だけそれらの処理を実行する。ここで、処理が完
了する前にタイムアップとなると、各POSターミナル
装置T1、T2……から収集したデータやホストコンピ
ュータHTへ伝送すべきデータをハードディスク5ある
いはフラッシュメモリ17に書き込んで退避させる。な
お、図2はPOSマスタ装置MTの主要構成を示し、各
POSターミナル装置T1、T2……もPOSマスタ装
置MTと略同様に構成されているため、その構成を図示
省略してある。なお、POSターミナル装置T1、T2
……にはモデム11が設けられていない点が相違し、そ
の他は、基本的に同様であるため、POSマスタ装置M
T側の構成要素と同一符号を用いて以下、説明するもの
とする。
The power failure detection unit 12 constantly monitors the output voltage from the AC power supply unit 13. When the voltage drops when a power failure occurs, the power failure detection unit 12 notifies the CPU 1 of the power failure occurrence and sends a power supply switching signal to the power control unit 14. give. Power control unit 1
Reference numeral 4 denotes switching to power supply from an auxiliary battery (for example, a secondary battery) 15 in accordance with a switching signal from the power failure detection unit 12 when an AC power failure occurs. The power from the auxiliary battery 15 is supplied only to the minimum number of devices required for processing. In this case, in addition to the display unit 7 and the printing unit 8, the power supply to the storage control unit 4, the input unit 6, and the drawer 9 is stopped.
The power from the auxiliary battery 15 is supplied to other devices. Here, when the CPU 1 receives the notification of the occurrence of the power failure from the power failure detecting unit 12,
A process of collecting sales data transmitted from the S terminal devices T1, T2,... And transmitting the collected data to the host computer HT via the modem 11 is executed. In this case, the user instructs the execution in advance. The terminal data collection processing by in-line communication and the data transmission processing to the host by modem communication are performed on condition that the setting is performed. In addition, as the above setting contents,
The user can arbitrarily select and specify to execute only in-line communication, only modem communication, or both in-line communication and modem communication. Further, when starting the above-described terminal data collection processing and data transmission processing to the host when a power failure occurs, the CPU 1 operates the timer 16 and executes the processing for a predetermined time until the time is up. . If the time is up before the processing is completed, the data collected from each of the POS terminal devices T1, T2,... And the data to be transmitted to the host computer HT are written to the hard disk 5 or the flash memory 17 and saved. FIG. 2 shows the main configuration of the POS master device MT. Since each of the POS terminal devices T1, T2,... Has substantially the same configuration as the POS master device MT, the configuration is omitted. The POS terminal devices T1, T2
... Are different from each other in that the modem 11 is not provided.
The following description is made using the same reference numerals as those of the components on the T side.

【0010】図3はRAM2内に備えられている各種の
売上合計器を示したもので、PLU別売上合計器2−
1、部門別売上合計器2−2、責任者別売上合計器2−
3、時間帯別売上合計器2−4が設けられている。そし
て、各売上合計器は分類別に売上データを記憶すると共
に、AC電源の停電発生時における処理の実行を指示す
る指示フラグが設定されている。ここで、指示フラグは
各合計器に対応付けてそれぞれ2種類ずつ設定されてお
り、POSターミナル装置T1……において、「送る/
送らない」を示す指示フラグは、対応する種類の売上合
計器の内容をPOSマスタ装置MTへ送るか否かを示
し、POSマスタ装置MTにおいては収集データをホス
トコンピュータHTへ送るか否かを示している。また、
「書込む/書込まない」を示す指示フラグは、POSタ
ーミナル装置T1……、POSマスタ装置MTを問わ
ず、一定の条件下で自己のフラッシュメモリ17へデー
タを退避させるためにデータの書き込みを行うか否かを
示している。そして、これらの指示フラグはユーザによ
って任意に設定されたもので、この場合、部門別売上合
計器2−2の内容は他の売上合計器に比較して重要度が
高いので、それに対応する指示フラグに「送る」、「書
込む」が設定されており、その他の売上合計器に対応す
る指示フラグにはそれぞれ「送らない」、「書込まな
い」が設定されている。
FIG. 3 shows various sales totalizers provided in the RAM 2.
1. Total sales unit by section 2-2, Sales total unit by responsible person 2-
3. A time-based sales totalizer 2-4 is provided. Each sales totalizer stores sales data for each category, and sets an instruction flag for instructing execution of processing when an AC power failure occurs. Here, two types of instruction flags are set in association with the respective totalizers, and the POS terminal devices T1.
The instruction flag indicating “do not send” indicates whether or not to send the contents of the corresponding type of sales totalizer to the POS master device MT, and indicates whether or not the POS master device MT sends the collected data to the host computer HT. ing. Also,
The instruction flag indicating "write / not write" is used to write data in order to save data to its own flash memory 17 under certain conditions regardless of the POS terminal device T1... And the POS master device MT. Indicates whether to perform. These instruction flags are arbitrarily set by the user. In this case, since the content of the divisional total sales unit 2-2 is higher in importance than other sales total units, the instruction flag corresponding thereto is set. “Send” and “write” are set in the flags, and “do not send” and “do not write” are set in the instruction flags corresponding to the other sales totalizers, respectively.

【0011】図4はPOSマスタ装置MT側のRAM2
内に備えられた処理時間テーブル2−5を示している。
この処理時間テーブル2−5はモデム通信、インライン
通信によってデータを送るか否かの組み合せに対応して
「処理時間」、「処理残時間」、「現在の選択状態フラ
グ」を記憶する構成となっている。ここで、「処理時
間」はモデム通信やインライン通信を行う場合、図3に
示すように「送る」の指示フラグが設定されている売上
合計器のデータ量に応じた伝送所要時間であり、モデム
通信とインライン通信の双方を行うときにはそれに対応
する伝送所要時間を加算した値となる。また「処理残時
間」は補助電池15の定格容量に応じた最大動作可能時
間(標準的な動作を実行した時の最大動作可能時間)か
ら「処理時間」を減算した値である。なお、最大動作可
能時間を越えても補助電池15は即座に電池切れとはな
らず、電池切れとなるまでにはある程度、時間的余裕を
持たせてある。また「現在の選択状態フラグ」はモデム
通信、インライン通信によってデータを送るか否かの組
み合せのうち、どの組み合せが選択されたかを示す状態
フラグで、フラグ“1”が現在、選択されている状態を
示している。なお、「処理時間」、「処理残時間」、
「現在の選択状態フラグ」はユーザによって任意に設定
可能となっている。一方、各POSターミナル装置T1
……にも処理時間テーブル2−5は備えられているが、
この場合、モデム通信は存在しないため、処理時間テー
ブル2−5の内容はインライン通信によってデータを送
る場合の「処理時間」、「処理残時間」を記憶する構成
となっている。
FIG. 4 shows the RAM 2 on the POS master device MT side.
5 shows a processing time table 2-5 provided in the table.
The processing time table 2-5 is configured to store "processing time", "remaining processing time", and "current selection state flag" corresponding to a combination of whether data is transmitted by modem communication or inline communication. ing. Here, the “processing time” is a transmission time required for the data amount of the sales totalizer in which the “send” instruction flag is set as shown in FIG. When both communication and in-line communication are performed, the value is a value obtained by adding the required transmission time. The “remaining processing time” is a value obtained by subtracting the “processing time” from the maximum operable time (the maximum operable time when a standard operation is performed) according to the rated capacity of the auxiliary battery 15. It should be noted that the auxiliary battery 15 does not run out of battery immediately after the maximum operable time is exceeded, and a certain amount of time is allowed before the battery runs out. The “current selection state flag” is a state flag indicating which combination is selected from among combinations of whether data is transmitted by modem communication or inline communication, and a state in which the flag “1” is currently selected. Is shown. In addition, "processing time", "remaining processing time",
The “current selection state flag” can be arbitrarily set by the user. On the other hand, each POS terminal device T1
... also has a processing time table 2-5,
In this case, since there is no modem communication, the contents of the processing time table 2-5 are configured to store "processing time" and "remaining processing time" when data is transmitted by in-line communication.

【0012】次に、このPOSシステムの動作を図5お
よび図6に示すフローチャートにしたがって説明する。
なお、これらのフローチャートに記述されている各機能
を実現するためのプログラムは、CPU1が読み取り可
能なプログラムコードの形態で記憶媒体3やハードディ
スク5に記憶されており、その内容がRAM2内のプロ
グラムメモリにロードされている。図5はPOSマスタ
装置MT側、また図6はPOSターミナル装置T1、T
2……側において、AC電源停電時における動作を示し
たフローチャートであり、所定時間毎のインタラプトに
よって実行開始される。この場合、AC停電の発生時に
通常の処理プログラムは処理途中のデータ等を退避する
毎の処理を行ったのち強制終了となるが、図5、図6に
示した停電処理プログラムは補助電池15が電池切れと
なるまでの間に動作する。なお、POSマスタ装置MT
側の動作とPOSターミナル装置T1、T2……側の動
作とは、その一部が基本的に共通するため、以下、PO
Sマスタ装置MT側の動作を中心に説明し、共通するP
OSターミナル装置T1、T2……側の動作については
その説明を省略するものとする。
Next, the operation of the POS system will be described with reference to the flowcharts shown in FIGS.
A program for realizing each function described in these flowcharts is stored in the storage medium 3 or the hard disk 5 in the form of a program code readable by the CPU 1, and its contents are stored in a program memory in the RAM 2. Has been loaded. 5 shows the POS master device MT, and FIG. 6 shows the POS terminal devices T1 and T.
2 is a flowchart showing an operation at the time of AC power failure on the side, and execution is started by interruption every predetermined time. In this case, when an AC power failure occurs, the normal processing program forcibly terminates after performing a process each time data or the like in the middle of processing is saved, but the power failure processing program shown in FIGS. It operates until the battery runs out. The POS master device MT
.. And the POS terminal devices T1, T2,...
The operation of the S master device MT will be mainly described, and the common P
The description of the operation of the OS terminal devices T1, T2,...

【0013】先ず、POSマスタ装置MT側およびPO
Sターミナル装置T1、T2……側の何れにおいても、
停電検出部12はAC電源の停電を検出すると、入力部
6、表示部7、印字部8、ドロア9等を除き、RAM
2、ハードディスク5、インライン制御部10、モデム
11、停電検出部12、電源制御部14、タイマ16へ
補助電池15からの電力供給に切り換えると共に、CP
U1に対して停電発生を通知する。すると、CPU1は
停電検出部12から停電発生の通知を受け取ると(ステ
ップA1/B1)、処理時間テーブル2−5を参照し、
「現在の選択状態フラグ」に“1”がセットされている
「処理時間」を読み出して、これをタイマ16にセット
して時間計測動作を開始させる(ステップA2/B
2)。ここで、POSマスタ装置MT側において、CP
U1は処理時間テーブル2−5を参照し、インライン通
信の実行が指示されているかを調べるが(ステップA
3)、いま、図4の例ではインライン通信に対応して
「送る」が設定されているので、各POSターミナル装
置T1、T2……に対してデータを伝送すべき伝送開始
を指示する(ステップA4)。
First, the POS master device MT and the PO
In any of the S terminal devices T1, T2,.
When detecting a power failure of the AC power supply, the power failure detection unit 12 removes the RAM except for the input unit 6, the display unit 7, the printing unit 8, the drawer 9, and the like.
2. Switching to the power supply from the auxiliary battery 15 to the hard disk 5, the in-line control unit 10, the modem 11, the power failure detection unit 12, the power supply control unit 14, and the timer 16,
Notify U1 of the occurrence of a power failure. Then, when receiving the notification of the occurrence of the power failure from the power failure detection unit 12 (step A1 / B1), the CPU 1 refers to the processing time table 2-5,
The "processing time" in which "1" is set in the "current selection state flag" is read out, set to the timer 16, and the time measurement operation is started (step A2 / B).
2). Here, on the POS master device MT side, CP
U1 refers to the processing time table 2-5 and checks whether execution of inline communication is instructed (step A).
3) Now, in the example of FIG. 4, "send" is set corresponding to the in-line communication, so that each POS terminal device T1, T2,... A4).

【0014】すると、各POSターミナル装置T1、T
2……側において、POSマスタ装置MTから伝送開始
の指示が有るかを調べ(ステップB3)、無ければ、タ
イマ16がタイムアップするまで(ステップB4)、伝
送開始の指示待ちとなる(ステップB3)。いま、タイ
ムアップする前にPOSマスタ装置MTから伝送開始が
指示された場合には、RAM2内のPLU別売上合計器
2−1、部門別売上合計器2−2、責任者別売上合計器
2−3、時間帯別売上合計器2−4を参照し、その指示
フラグに「送る」が設定されている売上合計器を選択
し、当該合計器の内容を順次読み出して伝送データを生
成し、この伝送データをPOSマスタ装置MT側へ送信
する(ステップB5)。そして、選択した合計器の内容
を全て伝送し終るまで(ステップB6)、伝送動作を繰
り返すが、この場合、送信動作中にタイマ16がタイム
アップにならないことを条件とする(ステップB4)。
ここで、タイマ16がタイムアップになる前に、選択し
た合計器の内容を全て正常に伝送することができた場
合、CPU1は電源制御部14に対して処理終了を通知
する。すると、電源制御部14によって補助電池15の
電力供給が遮断される(ステップB7)。このように各
POSターミナル装置T1、T2……はPOSマスタ装
置MTからデータの伝送開始が指示されると、それに応
答し、各種売上合計器のうち、予め任意に選択されてい
る種類の売上合計器の内容のみをPOSマスタ装置MT
側に送信する。
Then, each of the POS terminal devices T1, T
At the side 2 ..., it is checked whether or not there is a transmission start instruction from the POS master device MT (step B3). If there is no transmission start instruction, the transmission start instruction is waited until the timer 16 times out (step B4) (step B3). ). If the transmission start is instructed from the POS master device MT before the time is up, the sales totalizer 2-1 for each PLU, the sales totalizer 2-2 for each department, and the sales totalizer 2 for the responsible person in the RAM 2 will be described. -3, referring to the time-based sales totalizer 2-4, selecting a sales totalizer whose instruction flag is set to "send", sequentially reading the contents of the totalizer, and generating transmission data; This transmission data is transmitted to the POS master device MT (step B5). The transmission operation is repeated until all the contents of the selected summer have been transmitted (step B6). In this case, the condition is that the timer 16 does not time out during the transmission operation (step B4).
Here, if all the contents of the selected totalizer can be transmitted normally before the timer 16 times out, the CPU 1 notifies the power control unit 14 of the end of the process. Then, the power supply to the auxiliary battery 15 is cut off by the power supply control unit 14 (step B7). When the POS master device MT instructs the start of data transmission, each of the POS terminal devices T1, T2,. POS master device MT
Send to the side.

【0015】一方、各POSターミナル装置T1、T2
……から送信されて来たデータを受信すると、POSマ
スタ装置MT側においては、各POSターミナル装置T
1、T2……側からのデータを順次収集する収集動作を
行う(ステップA5)。この場合、POSマスタ装置M
Tは単なるストアコントローラとしての機能ではなく、
ターミナル装置として機能するため、データ収集時には
自己の売上合計器の内容も収集する。そして、自己も含
めて全てのターミナル装置からのデータを全て収集し終
ったかを調べ(ステップA6)、収集途中であれば、タ
イマ16がタイムアップされるまて(ステップA7)、
データ収集動作を繰り返す(ステップA5)。ここで、
タイムアップする前に全てのターミナルからのデータを
正常に収集することができた場合には(ステップA
6)、処理時間テーブル2−5を参照し、モデム通信に
対応して「送る」が設定されているかを調べる(ステッ
プA9)。この場合、「送る」が設定されているので、
ステップA10に進み、ホストコンピュータHTへモデ
ム11を介して収集データを送信し始める。そして、全
ての収集データを伝送し終ったかを調べ(ステップA1
1)、伝送途中であれば、タイマ16がタイムアップと
なるまで(ステップA12)、収集データをホストコン
ピュータHTへ伝送する動作を繰り返す。ここで、全て
の収集データを正常に伝送し終った場合には、CPU1
は電源制御部14に処理終了を通知し、補助電池15の
電力供給を遮断させる(ステップA13)。このように
AC停電が発生してから図4に示す165秒が経過する
前に、POSターミナル装置T1、T2……との間での
インライン通信と共に、ホストコンピュータHTとの間
でのモデム通信を正常に実行することができた場合に
は、そのまま処理終了となり、補助電池15をオフさせ
る。
On the other hand, each POS terminal device T1, T2
When the data transmitted from the POS master device MT is received, each POS terminal device T
A collection operation for sequentially collecting data from the 1, T2... Side is performed (step A5). In this case, the POS master device M
T is not just a function as a store controller,
Since it functions as a terminal device, it also collects the contents of its own sales totalizer when collecting data. Then, it is checked whether or not all the data from all the terminal devices including itself have been collected (step A6). If the data is being collected, the timer 16 is counted up (step A7).
The data collection operation is repeated (Step A5). here,
If data from all terminals can be collected normally before the time is up (step A
6) With reference to the processing time table 2-5, it is checked whether "send" is set corresponding to the modem communication (step A9). In this case, since "Send" is set,
Proceeding to step A10, transmission of the collected data to the host computer HT via the modem 11 is started. Then, it is checked whether all collected data has been transmitted (step A1).
1) During transmission, the operation of transmitting the collected data to the host computer HT is repeated until the timer 16 times out (step A12). Here, if all collected data has been transmitted normally, the CPU 1
Notifies the power control unit 14 of the end of the process, and shuts off the power supply of the auxiliary battery 15 (step A13). Before the 165 seconds shown in FIG. 4 elapse after the occurrence of the AC power failure, the in-line communication with the POS terminal devices T1, T2,... And the modem communication with the host computer HT are performed. If the processing can be executed normally, the processing is terminated and the auxiliary battery 15 is turned off.

【0016】一方、各POSターミナル装置T1、T2
……側において、データをPOSマスタ装置MTへ伝送
している伝送途中において、タイマ16がタイムアップ
となった場合(ステップB3、B5、B6、B4)、あ
るいはPOSマスタ装置MTからデータ伝送の指示が送
信されて来ないのままタイムアップとなった場合には
(ステップB3、B4)、伝送未処理の状態であること
を示す状態フラグを記憶保持したのち(ステップB
8)、以下、データ退避処理(ステップB9〜B14)
の実行に移る。すなわち、処理時間テーブル2−5を参
照し、処理残時間(この場合、75秒)をタイマ16に
セットしてその計測動作を開始させる(ステップB
9)。そして、ハードディスク5へ伝送すべきデータ
(予め任意に選択されている種類の売上合計器の内容)
を書き込んで退避させる(ステップB10)。そして、
書き込み終了かを調べ(ステップB11)、終了してい
なければ、タイマ16にセットした残時間がタイムアッ
プするまで(ステップB12)、ハードディスク5への
書き込み動作を継続する(ステップB10)。これによ
って書き込み終了が検出されると、ステップB7に進
み、補助電池15をオフさせるが、書き込みが終了する
前に残時間がタイムアップすると、補助電池15への電
源供給を停止させると共に(ステップB13)、伝送す
べき最低限のデータをフラッシュメモリ17へ書き込む
(ステップB14)。つまり、ハードディスク5への書
き込みもディスクエラー等で処理残時間内に行うことが
できなかった場合に限り、フラッシュメモリ17への書
き込みを行うが、フラッシュメモリ17は一般に消費電
力がハードディスク5の1/30程度と少なく、しかも
必要最小限のデータのみをフラッシュメモリ17へ書き
込むようにすれば、確実なデータ退避が可能となる。こ
のようにしてフラッシュメモリ17への書き込みが終っ
たらステップB7へ進み、補助電池15をオフさせる。
On the other hand, each POS terminal device T1, T2
When the timer 16 times out (steps B3, B5, B6, and B4) during transmission of data to the POS master device MT on the side, or a data transmission instruction is issued from the POS master device MT. If the time-up has occurred without transmission of the data (steps B3 and B4), a state flag indicating that the transmission is not yet processed is stored (step B3).
8) Hereinafter, data saving processing (steps B9 to B14)
Move on to execution. That is, referring to the processing time table 2-5, the remaining processing time (75 seconds in this case) is set in the timer 16 and the measurement operation is started (step B).
9). Then, data to be transmitted to the hard disk 5 (contents of a sales totalizer of a type arbitrarily selected in advance)
Is written and saved (step B10). And
It is checked whether the writing has been completed (step B11). If the writing has not been completed, the writing operation to the hard disk 5 is continued (step B10) until the remaining time set in the timer 16 times out (step B12). When the end of writing is detected, the process proceeds to step B7 to turn off the auxiliary battery 15. However, if the remaining time expires before the end of writing, the power supply to the auxiliary battery 15 is stopped (step B13). ), Write the minimum data to be transmitted to the flash memory 17 (step B14). That is, the writing to the flash memory 17 is performed only when the writing to the hard disk 5 cannot be performed within the remaining processing time due to a disk error or the like. By writing only the minimum required data to the flash memory 17 as small as about 30, data can be reliably saved. When the writing to the flash memory 17 is completed in this way, the process proceeds to step B7, and the auxiliary battery 15 is turned off.

【0017】他方、POSマスタ装置MT側において、
データ収集時に処理時間がタイムアップとなった場合に
は(ステップA5〜A7)、収集未処理の状態であるこ
とを示す状態フラグを記憶保持し(ステップA8)、あ
るいは、ホストコンピュータHTへの収集データ送信時
に処理時間がタイムアップとなった場合には(ステップ
A10〜A12)、伝送未処理の状態であることを示す
状態フラグを記憶保持したのち(ステップA14)、上
述した図6のステップB9〜B14に対応するデータ退
避処理(ステップA15〜A20)の実行に移る。この
場合においても残処理時間をタイマ16にセットして動
作させて(ステップA15)、ハードディスク5へ収集
データあるいはホストコンピュータHTへの伝送データ
を書き込む(ステップA16)。ここで、書き込みが終
了すれば(ステップA17)、補助電池15をオフさせ
るが(ステップA13)、書き込みが終了する前に残時
間がタイムアップすると(ステップA14)、ハードデ
ィスク5への電源供給を停止させ(ステップA15)、
フラッシュメモリ17へ最小限のデータを書き込み(ス
テップA16)、補助電池15をオフさせる(ステップ
A13)。
On the other hand, on the POS master device MT side,
If the processing time has expired during data collection (steps A5 to A7), a state flag indicating that the data has not been collected is stored and stored (step A8), or the data is collected in the host computer HT. If the processing time is up at the time of data transmission (steps A10 to A12), after storing and holding a state flag indicating that transmission is not yet processed (step A14), the above-described step B9 of FIG. Move to the execution of the data saving process (steps A15 to A20) corresponding to .about.B14. Also in this case, the remaining processing time is set in the timer 16 to operate (step A15), and the collected data or the transmission data to the host computer HT is written to the hard disk 5 (step A16). Here, when the writing is completed (step A17), the auxiliary battery 15 is turned off (step A13), but when the remaining time is up before the writing is completed (step A14), the power supply to the hard disk 5 is stopped. (Step A15)
The minimum data is written to the flash memory 17 (step A16), and the auxiliary battery 15 is turned off (step A13).

【0018】このようにしてAC停電時の処理を行った
のち、AC電源が復帰した場合、POSマスタ装置MT
および各POSターミナル装置T1、T2……は次のよ
うに動作する。すなわち、停電検出部12からAC電源
の復帰信号が入力されると、CPU1は復帰直後かを判
断し(ステップA21/A15)、復帰直後でなけれ
ば、このフローから抜けるが、直後であればハードディ
スク5内に収集データあるいはホストコンピュータHT
へ伝送すべきデータが退避されているかを調べる(ステ
ップA22/B16)。ここで、データ有りが検出され
ると、ハードディスク5内の該当データをRAM2に転
送して復帰させると共にハードディスク5内のデータを
クリアし、しかも停電があったこと、RAM2にデータ
を復帰させたことを示す状態フラグを記憶保持する(ス
テップA23/B17)。また、ハードディスク5内に
該当データが退避されていなければ、フラッシュメモリ
17にデータが退避されているかを調べ(ステップA2
4/B18)、有れば、フラッシュメモリ17内の該当
データをRAM2に転送して復帰させると共に、フラッ
シュメモリ17内のデータをクリアし、しかも停電があ
ったこと、RAM2にデータを復帰させたことを示す状
態フラグを記憶保持させる(ステップA25/B1
9)。
After the process at the time of the AC power failure is performed, when the AC power is restored, the POS master device MT
And each POS terminal device T1, T2,... Operates as follows. That is, when the AC power return signal is input from the power failure detection unit 12, the CPU 1 determines whether the power has just returned (step A21 / A15). 5. Collected data or host computer HT in 5
It is checked whether data to be transmitted to the server has been saved (step A22 / B16). Here, when the presence of data is detected, the corresponding data in the hard disk 5 is transferred to the RAM 2 and restored, and the data in the hard disk 5 is cleared, and there is a power failure, and the data is restored to the RAM 2. Is stored (step A23 / B17). If the data is not saved in the hard disk 5, it is checked whether the data is saved in the flash memory 17 (step A2).
4 / B18), if there is, the corresponding data in the flash memory 17 is transferred to the RAM 2 and restored, and the data in the flash memory 17 is cleared, and there is a power failure, and the data is restored to the RAM 2 Is stored (step A25 / B1).
9).

【0019】以上のようにこのPOSシステムにおいて
は、AC電源が停電すると、POSマスタ装置MTは自
己を含めて各POSターミナル装置T1、T2……はこ
れに応答し、予め任意に選択しておいた売上合計器を呼
び出して当該合計器の内容をPOSマスタ装置MTへ伝
送するようにしたので、POSマスタ装置MTはこれを
収集して収集データを退避することができる。この場
合、POSマスタ装置MT側で停電していないときに
は、一定の条件下で当該売上合計器の内容を自己のハー
ドディスク5に書き込んで退避させることができる。ま
た、ハードディスク5への書き込みも行うことができな
ければ、それに代えて自己のフラッシュメモリ17へ書
き込んで退避させることができる。また、各種合計器の
うち予め任意に選択しておいた売上合計器の内容のみを
停電時にPOSマスタ装置MT側へ送信したり、あるい
は送信不能時には自己のハードディスク5に書き込むよ
うにしたから、データ退避を短時間で行うことが可能と
なり、容量が少ない補助電池15であっても重要なデー
タを確実に保護することが可能となる。更に、ハードデ
ィスク5への書き込みが不能の場合には、更に絞り込ん
だ必要最小限のデータをフラッシュメモリ17へ書き込
むようにしたから、安全性を高めることができる。一
方、POSマスタ装置MT側においては、AC電源の停
電時に各POSターミナル装置T1、T2……から送信
されて来たデータを上位のホストコンピュータHTへ送
信して退避させることができる。この場合、送信不能時
には自己のハードディスク5あるいはフラッシュメモリ
17へデータを退避させることができるのはPOSター
ミナル装置の場合と同様である。なお、AC電源の停電
中あるいはAC電源の復帰直後において記憶保持された
各種の状態フラグに基づいてその旨を通常処理の開始時
に報知するようにすれば、オペレータがどのような状態
にあるかを知ることができる。また、停電発生時には、
補助電池15への電力供給に切り換えるが、この場合、
重負荷である入力部6、表示部7、印字部8、ドロア9
等への電力供給を遮断し、データ伝送に必要なデバイス
や退避用のメモリのみに電力供給を行うようにしたか
ら、容量の少ない補助電池15であってもデータを確実
に保持することができる。
As described above, in this POS system, when the AC power supply is interrupted, the POS master device MT, including itself, responds to this and the POS terminal devices T1, T2,. Since the sales totalizer is called and the contents of the totalizer are transmitted to the POS master device MT, the POS master device MT can collect this and save the collected data. In this case, when there is no power failure on the POS master device MT side, the contents of the sales totalizer can be written to its own hard disk 5 and saved under certain conditions. Further, if writing to the hard disk 5 cannot be performed, it can be written to its own flash memory 17 and saved. In addition, only the contents of the sales totalizer arbitrarily selected from the various types of totalizers are transmitted to the POS master device MT at the time of power failure, or written to the hard disk 5 of the user when transmission is impossible. The evacuation can be performed in a short time, and even the auxiliary battery 15 having a small capacity can reliably protect important data. Further, when writing to the hard disk 5 is not possible, the minimum required data which is further narrowed down is written to the flash memory 17, so that the security can be improved. On the other hand, on the POS master device MT side, the data transmitted from each of the POS terminal devices T1, T2,... At the time of the AC power failure can be transmitted to the host computer HT and saved. In this case, when transmission is impossible, data can be saved to the hard disk 5 or the flash memory 17 in the same manner as in the POS terminal device. If the operator is notified at the start of the normal processing based on various state flags stored and held during the power failure of the AC power supply or immediately after the AC power supply is restored, it is possible to determine what state the operator is in. You can know. Also, when a power outage occurs,
Switching to the power supply to the auxiliary battery 15, in this case,
Input unit 6, display unit 7, printing unit 8, drawer 9 which is heavy load
And so on, and only the devices necessary for data transmission and the evacuation memory are supplied with power, so that even the auxiliary battery 15 with a small capacity can reliably hold data. .

【0020】なお、この発明は、POSトステムに限ら
ず、スタンド・アロンタイプのデータ処理装置やその他
のコンピュータ通信システム等にも適用可能である。
The present invention is applicable not only to the POS system but also to a stand-alone type data processing device and other computer communication systems.

【0021】[0021]

【発明の効果】この発明によれば、主電源の停電時に揮
発性メモリの内容をバックアップ電池によって保護して
おかず、停電が発生したら直ちに揮発性メモリに記憶さ
れているデータのうち任意の種類のデータのみを退避す
ることで、容量の少ない補助電池を用いても必要データ
を確実に保護することができる。また、端末装置側にお
いて主電源の停電時に揮発性メモリの内容をバックアッ
プ電池によって保護しておかず、停電が発生したら端末
装置からデータ収集装置へデータを伝送するのに必要な
デバイスに対してのみ補助電源からの電源供給に切り換
えることで、容量の少ない補助電池を用いても停電発生
時に自動的に端末装置からデータ収集装置へデータを伝
送することができる。
According to the present invention, the contents of the volatile memory are not protected by the backup battery at the time of the power failure of the main power supply, and any kind of data stored in the volatile memory is immediately stored after the power failure occurs. By saving only data, necessary data can be surely protected even if an auxiliary battery having a small capacity is used. In addition, the terminal device does not protect the contents of the volatile memory with a backup battery at the time of the power failure of the main power supply. By switching to the power supply from the power supply, data can be automatically transmitted from the terminal device to the data collection device when a power failure occurs even if an auxiliary battery with a small capacity is used.

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

【図1】POSシステムを示したシステム構成図。FIG. 1 is a system configuration diagram showing a POS system.

【図2】POSシステム装置MTのブロック構成図。FIG. 2 is a block diagram of a POS system device MT.

【図3】各種売上合計器の内容を示した図。FIG. 3 is a diagram showing the contents of various sales totalizers.

【図4】処理時間テーブル2−5の内容を示した図。FIG. 4 is a diagram showing the contents of a processing time table 2-5.

【図5】AC電源停電時におけるPOSシステム装置M
T側の動作を示したフローチャート。
FIG. 5 is a diagram illustrating a POS system device M when an AC power failure occurs.
9 is a flowchart showing the operation on the T side.

【図6】AC電源停電時における各POSターミナル装
置T1、T2……側の動作を示したフローチャート。
FIG. 6 is a flowchart showing the operation of each POS terminal device T1, T2,.

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

1 CPU 2 RAM 2−1 PLU別売上合計器 2−2 部門別売上合計器 2−3 責任者別売上合計器 2−4 時間帯別売上合計器 2−5 処理時間テーブル 3 記憶媒体 5 ハードディスク 10 インライン制御部 11 モデム 12 停電検出部 13 AC電源部 14 電源制御部 15 補助電池 16 タイマ 17 フラッシュメモリ T1〜T3 POSターミナル装置 MT POSマスタ装置 HT ホストコンピュータ DESCRIPTION OF SYMBOLS 1 CPU 2 RAM 2-1 Total sales unit by PLU 2-2 Total sales unit by section 2-3 Sales total unit by manager 2-4 Sales total unit by time zone 2-5 Processing time table 3 Storage medium 5 Hard disk 10 In-line control unit 11 Modem 12 Power failure detection unit 13 AC power supply unit 14 Power supply control unit 15 Auxiliary battery 16 Timer 17 Flash memory T1 to T3 POS terminal device MT POS master device HT Host computer

フロントページの続き (51)Int.Cl.6 識別記号 FI G07G 1/12 331 G06F 15/21 310Z Continued on the front page (51) Int.Cl. 6 Identification symbol FI G07G 1/12 331 G06F 15/21 310Z

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】主電源の他に補助電源を備えたデータ処理
装置において、 複数種類のデータを記憶する揮発性のデータ記憶手段
と、 この揮発性のデータ記憶手段に記憶されているデータの
種類のうち任意の種類を記憶するデータ種記憶手段と、 データを記憶保持する不揮発性のデータ記憶手段と、 主電源の停電発生を検出する検出手段と、 この検出手段によって停電の発生が検出された際に、補
助電源からの電源供給に切り換える電源切換手段と、 前記検出手段により停電の発生が検出されて補助電源か
ら電源供給されている状態で、前記揮発性のデータ記憶
手段に記憶されているデータのうち、前記データ種記憶
手段に記憶されている種類に対応するデータを前記不揮
発性のデータ記憶手段へ転送して記憶保持させる記憶制
御手段とを具備したことを特徴とするデータ処理装置。
1. A data processing apparatus having an auxiliary power supply in addition to a main power supply, a volatile data storage means for storing a plurality of types of data, and a type of data stored in the volatile data storage means. A data type storage means for storing an arbitrary type of data, a non-volatile data storage means for storing and holding data, a detection means for detecting the occurrence of a power failure of the main power supply, and the occurrence of a power failure being detected by the detection means. Power supply switching means for switching to power supply from an auxiliary power supply, and the volatile data storage means is stored in the volatile data storage means in a state where the occurrence of a power failure is detected by the detection means and power is supplied from the auxiliary power supply. Storage control means for transferring data corresponding to the type stored in the data type storage means to the non-volatile data storage means for storing and storing the data. The data processing apparatus characterized by the.
【請求項2】前記記憶制御手段は、前記検出手段によっ
て停電の発生が検出されてから所定時間が経過するまで
前記揮発性のデータ記憶手段内のデータを前記不揮発性
のデータ記憶手段へ転送して記憶保持させるようにした
ことを特徴とする請求項1記載のデータ処理装置。
2. The storage control means transfers data in the volatile data storage means to the nonvolatile data storage means until a predetermined time elapses after the occurrence of a power failure is detected by the detection means. 2. The data processing device according to claim 1, wherein the data processing device stores the data.
【請求項3】主電源の他に補助電源を備えた複数台の端
末装置と、各端末装置から伝送されて来るデータを収集
するデータ収集装置とを備えたデータ処理装置におい
て、 各端末装置は、揮発性のデータ記憶手段と、このデータ
記憶手段内のデータをデータ収集装置へ伝送する伝送手
段と、主電源の停電発生を検出する検出手段と、この検
出手段によって停電発生が検出された際に前記データ記
憶手段およびデータ伝送手段に対してのみ補助電源から
の電力を供給する電源切換手段とを具備し、 前記検出手段により停電の発生が検出されて補助電源か
ら前記データ記憶手段およびデータ伝送手段に対して電
源が供給されている状態で、前記データ伝送手段は前記
データ記憶手段内のデータをデータ収集装置へ伝送する
ようにしたことを特徴とするデータ処理装置。
3. A data processing device comprising a plurality of terminal devices provided with an auxiliary power source in addition to a main power source, and a data collection device for collecting data transmitted from each terminal device, wherein each terminal device is A volatile data storage means, a transmission means for transmitting the data in the data storage means to the data collection device, a detection means for detecting the occurrence of a power failure of the main power supply, and a power failure occurrence detected by the detection means. Power supply switching means for supplying power from an auxiliary power supply only to the data storage means and the data transmission means, and the detection means detects the occurrence of a power failure and the data storage means and the data transmission from the auxiliary power supply. In the state where power is supplied to the means, the data transmission means transmits data in the data storage means to a data collection device. That the data processing device.
JP29594696A 1996-10-18 1996-10-18 Data processing device Expired - Lifetime JP3718926B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29594696A JP3718926B2 (en) 1996-10-18 1996-10-18 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29594696A JP3718926B2 (en) 1996-10-18 1996-10-18 Data processing device

Publications (2)

Publication Number Publication Date
JPH10124405A true JPH10124405A (en) 1998-05-15
JP3718926B2 JP3718926B2 (en) 2005-11-24

Family

ID=17827159

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29594696A Expired - Lifetime JP3718926B2 (en) 1996-10-18 1996-10-18 Data processing device

Country Status (1)

Country Link
JP (1) JP3718926B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100308895B1 (en) * 1999-04-30 2001-09-26 윤종용 data protecting apparatus and methode of ECR
JP2006178858A (en) * 2004-12-24 2006-07-06 Denso Wave Inc Data processing terminal, and data management method and computer program of data processing terminal
JP2009301093A (en) * 2008-06-10 2009-12-24 Ricoh Co Ltd Image forming device, control method for image forming device, control program for image forming device and storage medium
JP2010277209A (en) * 2009-05-27 2010-12-09 Hitachi Omron Terminal Solutions Corp Financial transaction-processing device
JP2011159148A (en) * 2010-02-02 2011-08-18 Denso Wave Inc Mobile terminal
US9619348B2 (en) 2011-10-31 2017-04-11 Fujitsu Limited Method, medium, system, and apparatus for supplying power at the time of power outage

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100308895B1 (en) * 1999-04-30 2001-09-26 윤종용 data protecting apparatus and methode of ECR
JP2006178858A (en) * 2004-12-24 2006-07-06 Denso Wave Inc Data processing terminal, and data management method and computer program of data processing terminal
JP4513554B2 (en) * 2004-12-24 2010-07-28 株式会社デンソーウェーブ Data processing terminal, data management method for data processing terminal, and computer program
JP2009301093A (en) * 2008-06-10 2009-12-24 Ricoh Co Ltd Image forming device, control method for image forming device, control program for image forming device and storage medium
JP2010277209A (en) * 2009-05-27 2010-12-09 Hitachi Omron Terminal Solutions Corp Financial transaction-processing device
JP2011159148A (en) * 2010-02-02 2011-08-18 Denso Wave Inc Mobile terminal
US9619348B2 (en) 2011-10-31 2017-04-11 Fujitsu Limited Method, medium, system, and apparatus for supplying power at the time of power outage

Also Published As

Publication number Publication date
JP3718926B2 (en) 2005-11-24

Similar Documents

Publication Publication Date Title
EP1934746B1 (en) Saving system context in the event of power loss
US20050131996A1 (en) Autonomous storage for backup, restore, and file access
CN111427722A (en) Data storage method and system for abnormal power failure of computer
JP3301056B2 (en) Data processing device, system unit and disconnection method
JPH10124405A (en) Data processor
CN113608930B (en) System chip and electronic device
JPH07248858A (en) Electronic apparatus with power interruption function
EP0919915A2 (en) Information protection method for network system
JP2003242045A (en) Data backup method
JPS5991525A (en) Controlling method of backup power supply of volatile memory
JP2917381B2 (en) Power interruption processing device
JP4149712B2 (en) Information processing apparatus, information processing system, and program
JPH10225009A (en) Device for processing data with function protecting secondary cell and program for the device
JPH0511893A (en) Merchandise information terminal
JPH07225721A (en) Power failure processor for data processing system
JP2833969B2 (en) User fault monitoring control method
JP2002032866A (en) Control system for sales data
JPH09224336A (en) Network system with power distribution system control function
JPH11149332A (en) Portable information equipment and data management method
JP3628159B2 (en) Transaction data processing method of transaction system and transaction system
JP4066558B2 (en) Optical information reader
JPH1042487A (en) Information processor
JP2699291B2 (en) Power failure processing device
JPS63217455A (en) Ram back-up system
JP2792179B2 (en) Online system for cash transactions

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050617

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050621

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050721

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050816

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050829

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060202

A072 Dismissal of procedure [no reply to invitation to correct request for examination]

Free format text: JAPANESE INTERMEDIATE CODE: A072

Effective date: 20060523

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

Free format text: PAYMENT UNTIL: 20090916

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100916

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100916

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110916

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120916

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130916

Year of fee payment: 8

EXPY Cancellation because of completion of term