JPS6247722A - Starting method for terminal equipment - Google Patents

Starting method for terminal equipment

Info

Publication number
JPS6247722A
JPS6247722A JP60187943A JP18794385A JPS6247722A JP S6247722 A JPS6247722 A JP S6247722A JP 60187943 A JP60187943 A JP 60187943A JP 18794385 A JP18794385 A JP 18794385A JP S6247722 A JPS6247722 A JP S6247722A
Authority
JP
Japan
Prior art keywords
memory
flag
battery
pattern
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP60187943A
Other languages
Japanese (ja)
Inventor
Takuo Toba
鳥羽 拓夫
Jiro Kubo
二郎 久保
Tatsuya Nakamura
達哉 中村
Nobuhiko Fujii
信彦 藤井
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP60187943A priority Critical patent/JPS6247722A/en
Publication of JPS6247722A publication Critical patent/JPS6247722A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PURPOSE:To prevent the abnormal operations by setting a flag into a memory and writing a specific pattern in response to said flag when a service interruption occurs. CONSTITUTION:A terminal equipment is constituted of a CPU 1, the 1st and 2nd memories 2 and 3, a battery 4, a floppy disk 5, an input port 6, a switch 7 and a display device 10. Here a flag is set to the memory 2 and the memory 3 includes the 1st and 2nd areas 8 and 9. When the terminal equipment has a service interruption, a CPU 1 detects this interruption and writes the patterns III and II to the area 8 of the memory 3 backed up by the battery 4 when the value of the flag in the memory 2 is equal to '0' and '1' respectively. The flag of the memory 2 is kept at '1' in a working mode. Furthermore the ON/OFF state of a switch 7 is detected when the application of the power supply is started. Then a pattern I is written to the area 8 when the switch 7 is kept off. If these patterns I-III are not detected, the voltage drop of the battery 4 is displayed 10.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は一般小売店4どで用いるPO8端末機等の端末
機の起動方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a method for activating terminals such as PO8 terminals used in general retail stores 4 and the like.

従来の技術 一般的にpos端末機等で電源を投入して動作させる場
合、どう動かせばよいかは一義的に決められない。即ち
、前回がデータ処理中停電があったための起動か、或い
は前日の業務がすべて終了したあとの翌日の起動か、或
いは端末機設置時の起動か、等種々の条件を考慮しなけ
ればならない。
BACKGROUND OF THE INVENTION Generally, when a POS terminal or the like is turned on and operated, it is not possible to unambiguously decide how to operate the terminal. That is, various conditions must be considered, such as whether the startup was due to a power outage during data processing last time, whether it was started the next day after all the previous day's work was completed, or whether it was started when the terminal was installed.

従来上記に対応する手段として、電池でバックアップし
たメモリを有し、その中に1ビツトの停電フラグを設け
、データ処理中に停電があった場合のみ、そのフラグに
1″を書き込むようにし、また別にスイッチを設は電源
投入時、そのスイッチがオンであれば前記フラグをクリ
ヤして0”を書込むようにしていた。このようにして端
末機設置時の起動時スイッチを押して電源投入すれば、
フラグを強制的に0”として、通常動作を行うようにし
、以後電源オン時、前記フラグの内容を参照して、′″
0”であれば通常動作を、1″であれば停電処理を行っ
ていた。停電処理としては、処理中のデータを電池でバ
ックアップしたメモリの中の領域Aに格納しておき、電
源投入時前記フラグが“1″であれば、前記領域Aの内
容を不揮発性メモリ、例えばフロッピーディスクに書き
込むことを行う0このような処理が従来性われていた。
Conventionally, as a means of dealing with the above, a memory backed up by a battery is provided, a 1-bit power failure flag is provided in the memory, and 1'' is written to the flag only when there is a power failure during data processing. A separate switch was provided so that when the power was turned on, if the switch was on, the flag was cleared and 0'' was written. In this way, if you press the startup switch when installing the terminal and turn on the power,
The flag is forcibly set to 0'' to perform normal operation, and from then on, when the power is turned on, the content of the flag is referenced and the
If it was 0'', normal operation was performed, and if it was 1'', power outage processing was performed. As a power outage process, the data being processed is stored in area A in a battery-backed memory, and if the flag is "1" when the power is turned on, the contents of area A are stored in a non-volatile memory, e.g. Such a process of writing to a floppy disk has been conventionally used.

発明が解決しようとする問題点 しかし、フラグの内容が何らかの事情、例えば電池の消
耗があれば停電ではないのにフラグに“1′が立つこと
もある。この場合、停電処理が行われる。つまり無条件
に前記領域Aの内容をフロッピーディスクに書込むが、
この場合領域Aにも正しいデータがあるとの保証はない
というより、むしろ電池が消耗したのだから、正しくな
い誤ったデータをフロッピーに書くことになり、正しい
動作が保証できなくなる。
Problems to be Solved by the Invention However, if the content of the flag is for some reason, for example, the battery is exhausted, the flag may be set to "1" even though there is no power outage.In this case, power outage processing is performed. The contents of the area A are unconditionally written to the floppy disk, but
In this case, there is no guarantee that there will be correct data in area A; rather, since the battery has run out, incorrect and erroneous data will be written to the floppy disk, and correct operation cannot be guaranteed.

また、停電以外のすべて正常に業務終了した以後の立上
がりか、端末機設置時の起動なのか、判断ができない。
Also, it is not possible to determine whether the startup occurred after all operations were completed normally except for a power outage, or whether it started when the terminal was installed.

問題点を解決するための手段 本発明は電池でバックアップするメモリと、マイクロプ
ロセッサを含む回路部と、スイッチと、停電検出手段を
具備するとともに、メモリ内にフラグを有し、停電発生
時、前記フラグが“1″であれば前記メモリ内の所定領
域■に特定パターン■を書き込み、フラグが“0#であ
れば前記所定領域にパターン■を書き込むよう構成し、
電源投入での動作開始時、前記スイッチのオンオフ状態
を検知し、オンであれば前記所定領域にパターン■を書
き込み、オフであれば所定領域のパターンチェックを行
うことによって、端末機の初期動作状態を決めるように
するものである。
Means for Solving the Problems The present invention includes a memory backed up by a battery, a circuit section including a microprocessor, a switch, and a power failure detection means, and also has a flag in the memory, so that when a power failure occurs, the above-mentioned If the flag is “1”, a specific pattern ■ is written in the predetermined area ■ in the memory, and if the flag is “0#”, the pattern ■ is written in the predetermined area,
When the power is turned on and the operation starts, the on/off state of the switch is detected, and if it is on, a pattern ■ is written in the predetermined area, and if it is off, the pattern is checked in the predetermined area, thereby determining the initial operating state of the terminal. It is intended to help determine the

作  用 端末機での停電の状態を考えると、−日の業務が終了し
たあと翌日の操作に備えて、操作者が電源を切る場合と
、業務中に停電が発生する場合との大きく2種類がある
。そこでメモリ内にフラグを有して、そのフラグの値が
0”であれば業務終了、”1#であれば業務中とし、停
電発生時、フラグの値をみて“0#であれば、バッテリ
バックアップされたメモリの所定領域にパターン■を書
き込む。“1″であればパターンIと異るパターン■を
書き込む。次に電源投入直後の動作開始時、端末機の動
作としては、その端末機を設置した直後の初動作なのか
、停電後の立上シなのかにより、2つの動きがある、こ
の判別を行うため、端末機に設けたスイッチが電源投入
直後オンであれば、設置後の動作であるとして、前記所
定領域に特定パターンIを書き込む。スイッチがオンで
なければ、所定領域の内容を調ベパターン■であれば前
回業務中に停電があった後の立上りと判別し必要な処置
をする。パターン■であれば前回の業務は完全に終了し
ていると判定でき、それに応じた動作を行う。それ以外
のパターンである場合は、端末機に何らかの異常が発生
した場合である。
There are two main types of power outage situations at operating terminals: cases in which the operator turns off the power after finishing work on -day in preparation for the next day's operations, and cases in which a power outage occurs during work. There is. Therefore, we have a flag in the memory, and if the value of the flag is 0, then the work is finished, if it is 1#, the work is in progress, and when a power outage occurs, we look at the flag value and if it is 0#, it means that the work is in progress. Write the pattern ■ into the specified area of the backed up memory. If it is "1", write the pattern ■ which is different from pattern I.Next, when the operation starts immediately after the power is turned on, the operation of the terminal is as follows. There are two actions depending on whether it is the first operation immediately after installation or startup after a power outage.To make this determination, if the switch installed on the terminal is on immediately after power is turned on, the operation after installation is , write specific pattern I in the predetermined area.If the switch is not on, check the contents of the predetermined area.If pattern ①, it is determined that the power has started up after a previous power outage during work, and necessary measures are taken. If it is pattern ■, it can be determined that the previous work has been completed completely, and the operation will be performed accordingly.If it is any other pattern, it means that some abnormality has occurred in the terminal.

このようにして、立上り時の制御を行う。In this way, control at the time of startup is performed.

実施例 以下、本発明の具体的な実施例について説明する。第1
図において、端末機で停電が発生した場合、停電検出回
路が動作してCPU1は停電発生を知る。なお停電検出
回路そのものはよく知られ停電を検出すると、第1メモ
リ2内のフラグの値を参照して、10″であれば、電池
4でバックアップされた第2メモリ3のなかの第1領域
8(この場合8バイトとする)に、第4図で示すパター
ン■を書き込む。もしフラグの値が“1″であれば、第
4図で示すパターン■を書き込む。この書き込むための
時間は第3図に示すように停電発生後、停電検出出力が
でてからCPU、メモリ等が動作する直流電源が降下す
るまでの時間T(一般的には1o〜2omsec)で充
分に処理できる。またフラグの値は、前項の手段でも述
べたように業務中であれば′1″、終了していれば“0
″となっている。また、前記でパターン■を書く場合、
業務途中の停電発生であるから、フロッピーディスク6
にデータを書き込む途中での停電発生もあり得る。従っ
てこの場合、フロッピーディスク5に書き込むデータの
書き込み前に第2メモリ3内の第1領域8と異る第2領
域9に書き込んでおく。
Examples Specific examples of the present invention will be described below. 1st
In the figure, when a power outage occurs in the terminal, a power outage detection circuit operates and the CPU 1 knows that a power outage has occurred. The power failure detection circuit itself is well known, and when a power failure is detected, it refers to the value of the flag in the first memory 2, and if it is 10'', the first area in the second memory 3 backed up by the battery 4 is detected. 8 (8 bytes in this case), write the pattern ■ shown in Figure 4. If the value of the flag is "1", write the pattern ■ shown in Figure 4. The time for this writing is As shown in Figure 3, after a power outage occurs, the time T (generally 10 to 2 ohms) from when the power outage detection output is output until the DC power supply that operates the CPU, memory, etc. drops is sufficient to process the flag. As mentioned in the previous section, the value is '1' if the work is in progress, and '0' if the work is finished.
″.Also, when writing the pattern ■ above,
Due to a power outage during work, I have 6 floppy disks.
A power outage may occur during data writing. Therefore, in this case, before writing data to the floppy disk 5, the data is written to a second area 9 in the second memory 3, which is different from the first area 8.

次に電源投入をして動作を開始する場合、動作開もしオ
ンであれば、端末機設置後の最初の動作であると判定し
て第2メモリ3の第1領域8にパターンIを書き込む。
Next, when the power is turned on to start operation, if the operation is on, it is determined that this is the first operation after installation of the terminal, and pattern I is written in the first area 8 of the second memory 3.

その後、通常の動作に移行する。スイッチ7がオフと判
断された場合はCPU1は前記第1領域8のパターンを
チェックする。
After that, it transitions to normal operation. If it is determined that the switch 7 is off, the CPU 1 checks the pattern in the first area 8.

パターン■であれば、前回停電は業務全完了していると
判断でき所定の定められた動作へ制御は移行していく。
If it is pattern 2, it can be determined that the work in the previous power outage has been completely completed, and control will shift to a predetermined operation.

パターン■であれば、前回停電は業務中、停電であった
ことになる。この時は第2メモリ3の第2領域9の中の
値をフロッピーディスク5に書き込んでから通常動作に
移行していく。
If it is pattern ■, the last power outage was during business hours. At this time, the value in the second area 9 of the second memory 3 is written to the floppy disk 5, and then normal operation is started.

パターン■であれば、停電検出回路が不良と判定しその
表示を行う。パターンI、II、IIIのいずれでもな
い時は、バッテリ4の電圧低下による誤動作が推定され
る。このため表示部10に例えば「バッテリチェック」
七表示して端末機の操作を止める。以上の動作は第1メ
モリ2内にプログラムとして格納されており、第2図に
示すように制御は移行する。
If it is pattern (■), the power failure detection circuit determines that it is defective and displays it. If the pattern is not one of patterns I, II, and III, it is presumed that the malfunction is due to a voltage drop in the battery 4. For this reason, the display section 10 displays, for example, a "battery check" message.
7 display and stop operating the terminal. The above operations are stored as a program in the first memory 2, and control is transferred as shown in FIG.

発明の効果 以上の説明により明らかなように、本発明によれば以下
の効果が奏される。
Effects of the Invention As is clear from the above explanation, the present invention provides the following effects.

1 端末機の未使用期間、例えば夜間等にバッテリ電圧
が異常低下しても、電源投入での立上時、そのことを検
出できるので異常動作を防ぐことができる。
1. Even if the battery voltage drops abnormally during periods when the terminal is not in use, for example at night, this can be detected when the terminal is turned on, so abnormal operation can be prevented.

2 簡単な手段で、より完全な停電処理方式を実現でき
る。
2 A more complete power outage handling system can be realized with simple means.

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

第1図は本発明の一実施例を示す端末機のプロ′ツク構
成図、第2図は同端末機の動作を示すフローチャート、
第3図は同端末機の要部信号波形図、第4図は同端末機
のメモリに書き込まれるパターンを示す図である。 1・・・・・・CPU、2・・・・・・第1メモリ、3
・・・・・・第2メモリ、4・・・・・・電池、5・・
・・・・フロッピーディスク、7°゛゛°°スイツチ、
8・・・・・・第1領域、9・・・・・・第2領域Q 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 第2図
FIG. 1 is a program configuration diagram of a terminal device showing an embodiment of the present invention, and FIG. 2 is a flowchart showing the operation of the terminal device.
FIG. 3 is a diagram showing main signal waveforms of the terminal, and FIG. 4 is a diagram showing patterns written in the memory of the terminal. 1... CPU, 2... First memory, 3
...Second memory, 4...Battery, 5...
...Floppy disk, 7°゛゛°° switch,
8...First area, 9...Second area Q Name of agent Patent attorney Toshio Nakao and 1 other person 1st
Figure 2

Claims (1)

【特許請求の範囲】[Claims] 電池と、前記電池でバックアップするメモリと、マイク
ロプロセッサを含む回路部と、スイッチと、停電検出手
段を具備するとともに前記メモリ内にフラグを有し、停
電発生時、前記電池でバックアップするメモリ内の所定
領域に前記フラグの値に応じた特定パターンを書き込む
よう構成し、動作開始時、前記スイッチのオンオフ状態
を検知し、オンであれば前記特定パターンとは異るパタ
ーンを前記所定領域に書き込み、オフであれば前記所定
領域のパターンチェックを行いその結果により端末機の
動作を決める端末機の起動方法。
A battery, a memory backed up by the battery, a circuit section including a microprocessor, a switch, a power outage detection means, and a flag in the memory, so that when a power outage occurs, a memory in the memory backed up by the battery is provided. It is configured to write a specific pattern in a predetermined area according to the value of the flag, and when the operation starts, detects the on/off state of the switch, and if it is on, writes a pattern different from the specific pattern in the predetermined area; If it is off, a pattern check is performed in the predetermined area and the operation of the terminal is determined based on the result.
JP60187943A 1985-08-27 1985-08-27 Starting method for terminal equipment Pending JPS6247722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60187943A JPS6247722A (en) 1985-08-27 1985-08-27 Starting method for terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60187943A JPS6247722A (en) 1985-08-27 1985-08-27 Starting method for terminal equipment

Publications (1)

Publication Number Publication Date
JPS6247722A true JPS6247722A (en) 1987-03-02

Family

ID=16214888

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60187943A Pending JPS6247722A (en) 1985-08-27 1985-08-27 Starting method for terminal equipment

Country Status (1)

Country Link
JP (1) JPS6247722A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0212561A (en) * 1988-06-30 1990-01-17 Fujitsu Ltd Pos terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0212561A (en) * 1988-06-30 1990-01-17 Fujitsu Ltd Pos terminal

Similar Documents

Publication Publication Date Title
JP2002062956A (en) Service interruption processing method and service interruption processing device
JPS6247722A (en) Starting method for terminal equipment
JPH0728572A (en) Automatic data preserving device at power interruption
JPH06348535A (en) Abnormality generation history storage device
JPS58175198A (en) Data processing device
JPS6339013A (en) Electronic computer
JPH0373015B2 (en)
JPS6310463B2 (en)
JPS62284440A (en) Software resource maintenance system for terminal equipment
JP3250898B2 (en) Numerical controller with data recovery function
JP3087650B2 (en) Automatic power recovery method
JPH0120775B2 (en)
JPH01108634A (en) System for preventing erroneous usage of external recording medium
JPS62281781A (en) Monitoring method for accident information
JPH1125007A (en) Method for storing/recovering backup data
JPH0395634A (en) Restart control system for computer system
JPH02196341A (en) Fault restoring system for information processor
JPH01102658A (en) File write back-up system
JP2635777B2 (en) Programmable controller
JPH01147649A (en) Method for discriminating propriety of back-up memory
JPS6326748A (en) Method for deciding abnormality of memory
JPS59133620A (en) Automatic operating system for power restoration
CN118051358A (en) Embedded system fault recovery method and device
JPS61133443A (en) Fault processing system of electronic computer system
JPH0394352A (en) Data destruction area detecting processing system