JP2011210117A - Pos terminal device and pos terminal control method - Google Patents

Pos terminal device and pos terminal control method Download PDF

Info

Publication number
JP2011210117A
JP2011210117A JP2010078876A JP2010078876A JP2011210117A JP 2011210117 A JP2011210117 A JP 2011210117A JP 2010078876 A JP2010078876 A JP 2010078876A JP 2010078876 A JP2010078876 A JP 2010078876A JP 2011210117 A JP2011210117 A JP 2011210117A
Authority
JP
Japan
Prior art keywords
program
storage unit
control unit
pos terminal
error
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
JP2010078876A
Other languages
Japanese (ja)
Inventor
Masakane Haga
正謙 芳賀
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2010078876A priority Critical patent/JP2011210117A/en
Publication of JP2011210117A publication Critical patent/JP2011210117A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a POS system that operates with minimum functions required for operation even if an error occurs in a storage due to the end of life or the like.SOLUTION: The POS terminal apparatus includes a control unit that selectively executes processing based on a normal program or processing based on an emergency program after start-up, a readable and writable first storing unit that stores the normal program, a second storing unit that stores in advance the emergency program, an error detecting unit that detects a read/write error with respect to the first storing unit. The control unit sequentially reads normal programs from the first storing unit to execute processing while accessing the first storing unit, and executes processing based on the emergency program by reboot when the read/write error with respect to the first storing unit is detected by the error detecting unit. The emergency program causes the control unit to process a part of the function of the normal program and execute the processing without accessing the first storing unit.

Description

この発明は、ストレージを用いたPOS端末装置およびPOS端末制御方法に関する。   The present invention relates to a POS terminal device using a storage and a POS terminal control method.

販売店等の在庫・発注管理、販売統計などを中央のコンピュータであるホストとそれに接続された一以上のPOS端末とで処理するPOSシステムが知られている。そのうち、ガソリンスタンドや喫茶店等、空気中に埃が多い環境で使用されるPOS端末においては、フラッシュメモリをシステムソフトウエアの記憶装置(ストレージ)とする場合が多い。フラッシュメモリは機械的な駆動部品がないので埃に起因する故障が低減できると期待されるためである。しかし、そのようなPOS端末の中には、同一データを複数の記憶領域に格納しておくストレージの多重化を行わないものも多い。システムの低価格化のためである。   There is known a POS system that processes inventory / order management, sales statistics, etc. of a store etc. by a central computer host and one or more POS terminals connected thereto. Among them, in a POS terminal used in an environment where there is a lot of dust in the air, such as a gas station or a coffee shop, a flash memory is often used as a storage device (storage) for system software. This is because flash memory is expected to be able to reduce the failure caused by dust because there are no mechanical driving parts. However, many of such POS terminals do not multiplex storage for storing the same data in a plurality of storage areas. This is to reduce the price of the system.

一方、電子データを格納するストレージにおいて、寿命に達するなどしたときに発生する記憶エラーやアクセスエラーを検出し、使用者や管理者に知らせて対処を促す手法が知られている。とくに、近年はハードディスク装置やフラッシュメモリ等、機器本体の耐用年数経過前に交換することを想定したストレージが種々の電子機器に多用されている。このような電子機器のクラッシュを事前に回避するための一手段として、ストレージの寿命をあらかじめ予測し、電子機器の動作に不具合が発生する前に使用者等に警告を発する手段が提案されている。   On the other hand, there is known a method for detecting a storage error or an access error that occurs when the life of a storage device for storing electronic data reaches the end of the life and informing the user or administrator to take a countermeasure. In particular, in recent years, storages such as hard disk drives and flash memories that are supposed to be replaced before the end of the useful life of the device body are frequently used in various electronic devices. As a means for avoiding such a crash of an electronic device in advance, a means for predicting the storage life in advance and issuing a warning to a user or the like before a malfunction occurs in the operation of the electronic device has been proposed. .

その一つは、フラッシュメモリのような寿命が比較的短い記憶媒体を用いるリムーバブルメディアにおいて、データをロードしてからアンロードするまでに処理したデータ数と、その際に発生したエラーの回数をカウントする手法である(例えば、特許文献1参照)。具体的には、カウントされたデータ数とエラーの回数をもとにエラーレートを計算し、あらかじめ設定したエラーレートの閾値と比較する。エラーレートが閾値を上回る場合はリムーバブルメディアが不良であると判断している。   One of them is the number of data processed between loading and unloading data and the number of errors that occurred at that time in removable media that use storage media with a relatively short life, such as flash memory. (See, for example, Patent Document 1). Specifically, an error rate is calculated based on the counted number of data and the number of errors, and is compared with a preset error rate threshold. If the error rate exceeds the threshold, it is determined that the removable medium is defective.

また、これとは別に、フラッシュメモリの書き込みターゲットとなっているブロックに正しく書き込むことができなかった場合の対処法が提案されている。通常フラッシュメモリでは、書き込みができなくなったブロックが発生すると、あらかじめ確保された「書換代替領域」に書き込みを行うことにより、結果的にフラッシュメモリへのデータの保存を行えるように設計されている。これに対して、前述の提案は、予め「書換代替領域」ブロックの残数を閾値として設定しておき、閾値よりも「書換代替領域」ブロックの残数を下回った場合、フラッシュメモリの寿命を警告するものである(例えば、特許文献2参照)。
問題がある箇所のコンポーネントを迂回してシステムを再起動するストレージシステムが提案されている(例えば、特許文献3参照)。
In addition to this, a countermeasure has been proposed in the case where data cannot be correctly written to the block that is the write target of the flash memory. Normally, the flash memory is designed so that when a block that cannot be written is generated, data is written to the “rewrite replacement area” secured in advance, and as a result, data can be stored in the flash memory. In contrast, the above proposal sets the remaining number of “rewrite replacement area” blocks as a threshold in advance, and if the remaining number of “rewrite replacement area” blocks falls below the threshold, the lifetime of the flash memory is reduced. This is a warning (see, for example, Patent Document 2).
There has been proposed a storage system that bypasses a component at a problem location and restarts the system (see, for example, Patent Document 3).

特開平4−268625号公報JP-A-4-268625 特開2003−85054号公報JP 2003-85054 A 特開2009−9200号公報JP 2009-9200 A

前述のように、フラッシュメモリ等、本体の耐用期間に比べて寿命の短いストレージを使用し、かつ、ストレージの二重化等が行われていないPOS端末では、ストレージが寿命を迎えるとPOS端末が正常動作しなくなり、POSシステムがダウンしてしまう。
POSシステムの使用者や管理者は、システムがダウンした時点でサポートセンターなどに連絡し、代替部品の到着を待ってPOSシステムの復旧を行っていた。
As mentioned above, POS terminals that use storage that has a shorter lifespan than the main unit's useful life, such as flash memory, and that do not have redundant storage, etc., operate normally when the storage reaches its end of life. The POS system goes down.
POS system users and administrators contacted the support center when the system went down, and the POS system was restored after the replacement parts arrived.

あるいは、従来のPOSシステムでは、POS端末のストレージの寿命を検知し、予め定められたエラーレートの閾値と比較してストレージの正常、異常を判断し、システム運用者や使用者に対してストレージの交換を促す警告を行っていた。これによって、システムがダウンする前にサポートセンターなどへ連絡することが可能になる。   Or, in a conventional POS system, the storage life of the POS terminal is detected and compared with a predetermined error rate threshold to determine whether the storage is normal or abnormal. A warning was issued to encourage replacement. This makes it possible to contact a support center before the system goes down.

しかし、警告を発してからシステムがダウンするまでの期間を正確に予測することは難しく、一方でシステムダウンが回避できるよう十分なマージンを確保して警告のタイミングを早めに設定すればストレージの寿命が短くなってしまい、使用者のコスト的な負担が大きくなり受け入れられない。また、警告を発しても使用者側が迅速に対処しなければ、やがてシステムがダウンしてしまう。
この発明は、以上のような事情を考慮してなされたものであって、ストレージに寿命等により読み出しおよび/または書き込みの異常(以下、リードライトエラー又は単にエラー)が生じても、運用上最小限必要な機能で動作できるPOS端末装置およびPOS端末制御方法を提供するものである。
However, it is difficult to accurately predict the period from when a warning is issued until the system goes down. On the other hand, if you set a sufficient margin to avoid system down and set the warning timing early, the life of storage Becomes shorter, which increases the cost burden on the user and is unacceptable. Also, even if a warning is issued, the system will eventually go down if the user does not deal with it quickly.
The present invention has been made in consideration of the above-described circumstances, and even if a read and / or write abnormality (hereinafter referred to as a read / write error or simply an error) occurs in the storage due to the lifetime or the like, the operation is minimal. It is intended to provide a POS terminal device and a POS terminal control method that can operate with limited functions.

この発明は、起動後に通常プログラムに基づく処理または非常プログラムに基づく処理を選択的に実行する制御部と、前記通常プログラムを格納し、読み書き可能な第1格納部と、前記非常プログラムを予め格納する第2格納部と、前記第1格納部に対する読み書きの異常を検出する異常検出部とを備え、前記制御部は、前記第1格納部から通常プログラムを逐次読み出して第1格納部へのアクセスを伴う処理を実行し、前記第1格納部に対する読み書きの異常が前記異常検出部により検出された場合、再起動により非常プログラムに基づく処理の実行に切換え、前記非常プログラムは、前記制御部が通常プログラムの機能の一部のみを処理しかつ第1格納部へのアクセスを伴わずにその処理を実行するプログラムであることを特徴とするPOS端末装置を提供する。   The present invention provides a control unit that selectively executes processing based on a normal program or processing based on an emergency program after startup, a first storage unit that stores the normal program and is readable and writable, and stores the emergency program in advance. A second storage unit; and an abnormality detection unit that detects an abnormality in reading and writing with respect to the first storage unit, wherein the control unit sequentially reads the normal program from the first storage unit and accesses the first storage unit. When an abnormality in reading and writing with respect to the first storage unit is detected by the abnormality detection unit, the process is switched to the execution of the process based on the emergency program by restarting, and the emergency program is POS characterized in that it is a program that processes only part of the functions and executes the processing without accessing the first storage unit To provide an end device.

また、異なる観点から、この発明は、起動後に通常プログラムに基づく処理または非常プログラムに基づく処理を選択的に実行し得る制御部が、第1の起動後に、第1格納部にアクセスして前記通常プログラムを逐次読み出し、その通常プログラムに基づいて第1格納部へのアクセスを伴う処理を実行する工程と、前記第1格納部に対する読み書きの異常を検出する異常検出部から異常の通知を受ける工程と、前記通知に基づいてプログラム選択用データを設定し、それによって第2の起動後は前記制御部が第2格納部にアクセスして非常プログラムを読み出しその非常プログラムに基づく処理を行うようにする工程と、第2の再起動を行った後、前記プログラム選択用データの設定に基づいて前記非常プログラムに基づく処理を実行する工程とを備え、前記非常プログラムは、前記制御部が通常プログラムの一部の機能のみを処理しかつ第1格納部へのアクセスを伴わずにその処理を実行するプログラムであることを特徴とするPOS端末制御方法を提供する。   Further, from a different point of view, the present invention provides that the control unit that can selectively execute the processing based on the normal program or the processing based on the emergency program after startup accesses the first storage unit after the first startup, and Sequentially reading a program, executing a process involving access to the first storage unit based on the normal program, and receiving a notification of an abnormality from an abnormality detection unit detecting a reading / writing abnormality with respect to the first storage unit; , Setting program selection data based on the notification, whereby the control unit accesses the second storage unit after the second activation, reads out the emergency program, and performs processing based on the emergency program And a process for executing processing based on the emergency program based on the setting of the program selection data after performing the second restart. And the emergency program is a program in which the control unit processes only a part of the functions of the normal program and executes the processing without accessing the first storage unit. A terminal control method is provided.

この発明のPOS端末装置において、前記非常プログラムは、前記制御部が通常プログラムの機能の一部のみを処理しかつ第1格納部へのアクセスを伴わずにその処理を実行するプログラムであるので、POSシステムの運用上最小限必要な機能は実行することができ、かつ、異常が検出された第1格納部を用いずにその処理を行うことができる。
この発明のPOS端末制御方法も、同様の作用効果を奏する。
In the POS terminal device according to the present invention, the emergency program is a program in which the control unit processes only a part of the function of the normal program and executes the process without accessing the first storage unit. Functions that are minimally necessary for the operation of the POS system can be executed, and the processing can be performed without using the first storage unit in which an abnormality is detected.
The POS terminal control method of the present invention also has the same effect.

即ち、本発明のPOS端末装置によれば、ストレージに通常プログラムとして通常ブートプログラム、OS、システムアプリケーション用プログラムが用意される。さらに、それらと別に、非常プログラムとしてのプレブート・プログラムを実装する。CPUがそのプレブート・プログラムを実行することにより、POS端末はシステム運用上最小限必要な機能を実行する。   That is, according to the POS terminal device of the present invention, a normal boot program, an OS, and a system application program are prepared in the storage as normal programs. In addition, a pre-boot program as an emergency program is implemented separately. When the CPU executes the pre-boot program, the POS terminal performs the minimum functions necessary for system operation.

この発明において、前記制御部は、POS端末の動作およびデータ処理を行うCPUである。
また、第1格納部は、通常プログラムを少なくとも格納する記憶装置であって、通常プログラムに基づく処理を実行する際に用いるデータを格納してもよい。第1格納部は、前記ストレージであって、ハードウェアとしては、例えばフラッシュメモリが用いられる。
第2格納部は、第1格納部に異常が検出されたときも正常に読み書きができる記憶装置であって、非常プログラムを格納する。第2格納部は、第1格納部とことなる記憶装置であってもよいが、同一の記憶装置の異なる領域に設けられてもよい。後述する実施形態において、第2格納部は、第1格納部と同じフラッシュメモリに設けられている。ただし、第2格納部は、CPUによる書き込みができないよう回路的にプロテクトされた書込禁止領域に予め格納されている。フラッシュメモリの寿命はメモリセルに高電圧が印加される書き込みの回数によって実質的に決まる。従って、書込禁止領域については、メモリセルの劣化に伴う異常は実質的に気にする必要がないといえる。
異常検出部は、第1格納部の書き込みの異常を検出する。例えば、フラッシュメモリの場合、オンチップの制御回路にリードライトエラーの数を記憶する機能が備わっているのが一般的である。ハードディスク・ドライブ装置についても同様の機能が通常内蔵されている。これらの機能を異常検出部として用いてもよい。
In the present invention, the control unit is a CPU that performs operation and data processing of the POS terminal.
The first storage unit is a storage device that stores at least a normal program, and may store data used when executing processing based on the normal program. The first storage unit is the storage, and as the hardware, for example, a flash memory is used.
The second storage unit is a storage device that can normally read and write even when an abnormality is detected in the first storage unit, and stores an emergency program. The second storage unit may be a storage device different from the first storage unit, but may be provided in different areas of the same storage device. In an embodiment described later, the second storage unit is provided in the same flash memory as the first storage unit. However, the second storage unit is stored in advance in a write-protected area protected in a circuit manner so that writing by the CPU is not possible. The lifetime of the flash memory is substantially determined by the number of times the high voltage is applied to the memory cell. Therefore, it can be said that the write-prohibited region does not need to be substantially concerned with the abnormality caused by the deterioration of the memory cell.
The abnormality detection unit detects a writing abnormality in the first storage unit. For example, in the case of a flash memory, the on-chip control circuit generally has a function of storing the number of read / write errors. The same function is usually built in the hard disk drive device. You may use these functions as an abnormality detection part.

本発明を実現するPOS端末のハードウェア構成の一形態を示すブロック図である。It is a block diagram which shows one form of the hardware constitutions of the POS terminal which implement | achieves this invention. この発明おいて、ストレージのエラーを検出しプレブート環境へ移行する処理の一例を示す第1の説明図である。In this invention, it is the 1st explanatory view showing an example of processing which detects a storage error and shifts to a preboot environment. この発明おいて、ストレージのエラーを検出しプレブート環境へ移行する処理の一例を示す第2の説明図である。In this invention, it is the 2nd explanatory view showing an example of processing which detects a storage error and shifts to a preboot environment.

以下、この発明の好ましい態様について説明する。   Hereinafter, preferred embodiments of the present invention will be described.

前記通常プログラムおよび前記非常プログラムは、前記制御部が起動時に実行すべきブートプログラム、オペレーティングシステムのプログラムおよびアプリケーションプログラムをそれぞれ含んでもよい。このようにすれば、非常プログラムは、通常プログラムとは別にブートプログラム、オペレーティングシステムのプログラムおよびアプリケーションプログラムを含むので、異常が検出された第1格納部にアクセスしなくてもPOS端末装置を必要最小限の機能(プレブート環境)で動作させることができる。   The normal program and the emergency program may each include a boot program, an operating system program, and an application program to be executed by the control unit at startup. In this way, the emergency program includes a boot program, an operating system program, and an application program in addition to the normal program. Therefore, even if the first storage unit in which an abnormality is detected is not accessed, the POS terminal device is minimized. It can be operated with limited functions (pre-boot environment).

また、前記制御部は、起動後、予め定められた回数を超える前記異常が検出されたときに再起動を行ってもよい。このようにすれば、第1格納部を構成するハードウェアの特性に応じた閾値を予め定めておき、第1格納部の異常が単発的なものか寿命劣化等に伴う傾向的なものかを適切に判断することができる。   Moreover, the said control part may perform a restart when the said abnormality exceeding a predetermined frequency | count is detected after starting. In this way, a threshold value corresponding to the characteristics of the hardware that constitutes the first storage unit is determined in advance, and whether the abnormality of the first storage unit is a single occurrence or a tendency that is associated with deterioration of the lifetime or the like. Judgment can be made appropriately.

さらにまた、前記第2格納部は、前記制御部がデータを書込むことのできない記憶領域であってもよい。このようにすれば、非常プログラムは前記制御部からの指令による書き込みができない書込禁止領域に予め格納されるので、仮にストレージのリードライトエラー等の原因でCPUが暴走しても、プレブート・プログラムが意図せずに書換えられてしまうといった不具合が発生しない。
前記第1格納部は、フラッシュメモリからなるものでもよい。あるいは、前記第1格納部は、ハードディスク装置からなるものでもよい。
ここで示した種々の好ましい態様は、それら複数を組み合わせることもできる。
Furthermore, the second storage unit may be a storage area into which the control unit cannot write data. In this way, the emergency program is stored in advance in a write-protected area that cannot be written by the command from the control unit, so even if the CPU runs out of control due to a storage read / write error, etc. Will not be rewritten unintentionally.
The first storage unit may be a flash memory. Alternatively, the first storage unit may be a hard disk device.
The various preferable aspects shown here can also be combined.

以下、図面を用いてこの発明をさらに詳述する。なお、以下の説明は、すべての点で例示であって、この発明を限定するものと解されるべきではない。   Hereinafter, the present invention will be described in more detail with reference to the drawings. In addition, the following description is an illustration in all the points, Comprising: It should not be interpreted as limiting this invention.

≪POSシステムのハードウェア構成≫
図1は、本発明を実現するPOS端末のハードウェア構成の一形態を示すブロック図である。POS端末100は、図1に示す以下に説明するブロックを備えている。
制御部101は、CPUからなり、POS端末100全体の動作の制御やデータ処理を行う。表示部102(ディスプレイ)は、POS端末及びPOSシステムに係る情報を表示する液晶表示装置からなる。操作部103は、POSシステムに対する入力を行うキーボードやタッチパネルである。
≪POS system hardware configuration≫
FIG. 1 is a block diagram showing an embodiment of a hardware configuration of a POS terminal that implements the present invention. The POS terminal 100 includes the following blocks shown in FIG.
The control unit 101 includes a CPU, and controls the operation of the entire POS terminal 100 and performs data processing. The display unit 102 (display) includes a POS terminal and a liquid crystal display device that displays information related to the POS system. The operation unit 103 is a keyboard or a touch panel for inputting to the POS system.

一時記憶部107は、DRAMで構成された記憶装置であって、制御部101の作業記憶領域として使用される。一時記憶部107は、この発明に係る前記ストレージには該当しない。一時記憶部107は、第1エラーイベント記憶領域112および、第2エラーイベント記憶領域113を含む。
第1エラーイベント記憶領域112は、後述するエラーイベント監視プロセスの管理下にあるデータ記憶領域であって、POS端末100が起動する際に発生したエラーの個数を保持する記憶領域である。
通信部115は、POS端末100が外部のホスト(図示せず)と通信を行うためのインターフェイス回路である。POS端末100側での前記ホストとの通信は、制御部101が制御する。
The temporary storage unit 107 is a storage device configured with DRAM, and is used as a working storage area of the control unit 101. The temporary storage unit 107 does not correspond to the storage according to the present invention. The temporary storage unit 107 includes a first error event storage area 112 and a second error event storage area 113.
The first error event storage area 112 is a data storage area under the management of an error event monitoring process, which will be described later, and is a storage area that holds the number of errors that occur when the POS terminal 100 is activated.
The communication unit 115 is an interface circuit for the POS terminal 100 to communicate with an external host (not shown). The control unit 101 controls communication with the host on the POS terminal 100 side.

ブートプログラム記憶部105はフラッシュメモリを用いて提供される記憶領域である。ブートプログラム記憶部105は、本体の耐用期間よりも寿命が短く、前記耐用期間中の交換が想定される前記ストレージの一つである。ブートプログラム記憶部105は、書き込み可能な領域に通常ブートプログラムを保持する。ブートプログラムのバージョンアップを可能にするためである。さらに、ブートプログラム記憶部105は、記憶領域の一部にCPU制御による書込みが不可能なように回路的な構成がなされた書込禁止領域111を含んでおり、その書込禁止領域111に予めプレブート・プログラムを保持する。   The boot program storage unit 105 is a storage area provided using a flash memory. The boot program storage unit 105 is one of the storages whose lifetime is shorter than the useful life of the main body and replacement during the useful life is assumed. The boot program storage unit 105 holds a normal boot program in a writable area. This is because the boot program can be upgraded. Further, the boot program storage unit 105 includes a write-protect area 111 that is configured in a circuit configuration so that writing by CPU control is impossible in a part of the storage area. Hold the preboot program.

通常ブートプログラムは、前記ストレージが正常に動作している場合であって、全機能が動作するようにPOS端末100を起動させるブートプログラムである。一方、プレブート・プログラムは、前記ストレージのエラーが検出されて制御部101がストレージのエラーがあると判断したとき、POS端末100を再起動(プレブート)して必要最小限の機能で動作させるためのプログラムである。即ち、前記再起動後に制御部101が実行すべきブートプログラム、OS、システムアプリケーション用プログラムが書込禁止領域111に保持されている。   The normal boot program is a boot program that activates the POS terminal 100 so that all the functions operate when the storage is operating normally. On the other hand, when the storage error is detected and the control unit 101 determines that there is a storage error, the preboot program restarts the POS terminal 100 (preboot) to operate with the minimum necessary functions. It is a program. That is, the boot program, OS, and system application program to be executed by the control unit 101 after the restart are held in the write protected area 111.

第1メモリ制御部104は、ブートプログラム記憶部105に対するデータの読み書きを制御部101が制御できるようにするインターフェイス回路である。さらに、フラッシュメモリのリードライトエラーの発生状態を検出する論理回路を含む。図1では、ブートプログラム記憶部105と第1メモリ制御部104とを異なるブロックとして示しているが、一態様としては第1メモリ制御部104とブートプログラム記憶部105とが同一のフラッシュメモリに実装されてもよい。即ち、フラッシュメモリのオンチップ制御回路が第1メモリ制御部104の機能を担ってもよい。異なる一態様によれば、第1メモリ制御部104はフラッシュメモリの外部に実装される。   The first memory control unit 104 is an interface circuit that enables the control unit 101 to control reading and writing of data with respect to the boot program storage unit 105. Further, a logic circuit for detecting a read / write error occurrence state of the flash memory is included. In FIG. 1, the boot program storage unit 105 and the first memory control unit 104 are shown as different blocks. However, as one aspect, the first memory control unit 104 and the boot program storage unit 105 are mounted on the same flash memory. May be. That is, the on-chip control circuit of the flash memory may function as the first memory control unit 104. According to a different aspect, the first memory control unit 104 is mounted outside the flash memory.

記憶部106は、ハードディスク・ドライブ装置(HDD)により提供される記憶領域であって、OSやシステムアプリケーション用プログラムを格納する。さらに、POSシステムが扱う在庫、発注、販売に係るデータを格納してもよい。前記データは、外部のホストとの通信によって更新される。記憶部106は、本体の耐用期間経過前の交換が想定される前記ストレージである。   The storage unit 106 is a storage area provided by a hard disk drive (HDD), and stores an OS and a program for system applications. Furthermore, data relating to inventory, ordering, and sales handled by the POS system may be stored. The data is updated by communication with an external host. The storage unit 106 is the storage that is assumed to be replaced before the main unit has expired.

第2メモリ制御部114は、記憶部106のデータの読み書きを制御する回路である。さらに、HDDのリードライトエラーの発生状態を検出する論理回路を含む。図1では、記憶部106と第2メモリ制御部114を異なるブロックとして示しているが、HDDと一体に実装されてもよい。即ち、ハードディスク・ドライブ装置の制御回路が第2メモリ制御部114の機能を担ってもよい。   The second memory control unit 114 is a circuit that controls reading and writing of data in the storage unit 106. Further, a logic circuit for detecting the occurrence state of the HDD read / write error is included. In FIG. 1, the storage unit 106 and the second memory control unit 114 are shown as different blocks, but may be mounted integrally with the HDD. That is, the control circuit of the hard disk drive device may serve as the function of the second memory control unit 114.

異常起動フラグ記憶部110は、制御部101がOSを実行することにより実現されるエラーイベント監視プロセスが管理する記憶領域であって、第1メモリ制御部104によって検出されたエラーに係るデータを格納し管理するための作業記憶領域を提供する。エラーイベント監視プロセスについては、後に詳述する。異常起動フラグ記憶部110は、不揮発性のかつ書き換え可能な記憶領域であって、記憶領域として少なくとも異常起動フラグ記憶部110を含む。異常起動フラグ記憶部110は、ブートプログラム記憶部105や記憶部106とは別の、十分長い耐用期間を有する不揮発性記憶素子に実装されるか、または、多重化されることが好ましい。   The abnormal activation flag storage unit 110 is a storage area managed by the error event monitoring process realized by the control unit 101 executing the OS, and stores data relating to errors detected by the first memory control unit 104 Provide a working storage area for management. The error event monitoring process will be described in detail later. The abnormal activation flag storage unit 110 is a nonvolatile and rewritable storage area, and includes at least the abnormal activation flag storage unit 110 as a storage area. The abnormal activation flag storage unit 110 is preferably mounted on or multiplexed with a non-volatile storage element having a sufficiently long lifetime other than the boot program storage unit 105 and the storage unit 106.

異常起動フラグ記憶部110は、システムが起動する毎に、その起動が通常システムの起動を行うべきか、「プレブート」環境の起動を行うべきかを示すフラグを保持する。
POS端末100は、前記ストレージであるブートプログラム記憶部105及び記憶部106が正常な状態のとき、システムの立ち上げ時に前述の通常ブートプログラムを実行する。その詳細な手順は、次の通りである。
システムの電源が投入された後、制御部101はブートプログラム記憶部105の書き込み可能な領域に保持された通常ブートプログラムを、第1メモリ制御部104を用いて一時記憶部107にロードする。
The abnormal start flag storage unit 110 holds a flag indicating whether the start should normally start the system or the “pre-boot” environment every time the system starts.
When the boot program storage unit 105 and the storage unit 106 that are the storages are in a normal state, the POS terminal 100 executes the above-described normal boot program when the system is started up. The detailed procedure is as follows.
After the system power is turned on, the control unit 101 loads the normal boot program held in the writable area of the boot program storage unit 105 into the temporary storage unit 107 using the first memory control unit 104.

制御部101は、一時記憶部107にロードされた通常ブートプログラムを実行する。その実行に伴って、まずブート時に必要なハードウェアや記憶領域の初期化処理が行われる。続いて、第2メモリ制御部114を用い、記憶部106に保持されているOSやシステムアプリケーション用プログラムを一時記憶部107にロードする処理が行われる。   The control unit 101 executes a normal boot program loaded in the temporary storage unit 107. Along with the execution, first, initialization processing of hardware and a storage area necessary for booting is performed. Subsequently, the second memory control unit 114 is used to perform processing for loading the OS and system application program stored in the storage unit 106 into the temporary storage unit 107.

その後、通常ブートプログラムは、制御部101の実行をOSやシステムアプリケーション用プログラムの処理の実行に移行させる。それによって、制御部101は、POS端末100の動作を開始する。POS端末100の動作開始の段階で、制御部101は、前述のエラーイベント監視プロセスを起動する。エラーイベント監視プロセスは、制御部101が実行するOS又はアプリケーションの処理の一つである。   Thereafter, the normal boot program shifts execution of the control unit 101 to execution of processing of the OS and system application program. Accordingly, the control unit 101 starts the operation of the POS terminal 100. At the stage of starting the operation of the POS terminal 100, the control unit 101 activates the error event monitoring process described above. The error event monitoring process is one of OS or application processing executed by the control unit 101.

起動されたエラーイベント監視プロセスは、その後、システム起動時に発生するエラーイベントを監視する。ここで、検出されるエラーイベントは、第1メモリ制御部104により検出されるブートプログラム記憶部105のエラー及び第2メモリ制御部114により検出される記憶部106のエラーである。エラーイベント監視プロセスは、ブートプログラム記憶部105のエラーを第1エラーイベント記憶領域112に保持する。また、記憶部106のエラーを第2エラーイベント記憶領域113に保持する。
エラーイベント監視プロセスは、起動時のみならず通常システムが起動した後もシステム内に常駐し、OSやシステムアプリケーション用プログラムの実行時に発生するエラーイベントを監視する。
The started error event monitoring process then monitors error events that occur when the system is started. Here, the detected error events are an error in the boot program storage unit 105 detected by the first memory control unit 104 and an error in the storage unit 106 detected by the second memory control unit 114. The error event monitoring process holds errors in the boot program storage unit 105 in the first error event storage area 112. Further, the error of the storage unit 106 is held in the second error event storage area 113.
The error event monitoring process resides in the system not only at the time of startup but also after the normal system startup, and monitors error events that occur when the OS and system application programs are executed.

ブートプログラム記憶部105のエラーは、第1メモリ制御部104により検出される。エラーの詳細な内容は、(1)メモリリードエラー、(2)書き込み毎のメモリライトエラー、(3)所定回数メモリライトエラー、即ち、書き込みエラー発生により別の位置に書き込み場所を変えて何度か書き込んだが書き込めなかった場合のエラーである。前記(2)はフラッシュメモリの部分的な寿命、前記(3)はフラッシュメモリの全体的な寿命に係るエラーである。   The error in the boot program storage unit 105 is detected by the first memory control unit 104. The detailed contents of the error are (1) memory read error, (2) memory write error for each write, and (3) memory write error for a predetermined number of times. It is an error when it was written but could not be written. (2) is an error relating to the partial lifetime of the flash memory, and (3) is an error relating to the overall lifetime of the flash memory.

第1メモリ制御部104によってエラーが検出されたことは、第1メモリ制御部104内に設けられた所定のレジスタ(図示せず)がインクリメントされるか又は所定のフラグ(図示せず)がセットされたことによって外部に通知される。それがエラーイベント監視プロセスによってエラーイベントとして捕捉されるためには、前記レジスタのインクリメントあるいは前記フラグのセットされたことをトリガとして、割り込みあるいはポーリング等の処理でエラーイベント監視プロセスへの通知がされなければならない。この通知に、OSおよびシステムアプリケーションが具備するエラー通知機構が使用できる場合は、それを使用すればよい。そうでなければ、エラーイベント監視プロセスの下位層に、前記レジスタあるいはフラグの変化に応答して前記通知を行うエラー通知ルーチンを準備しておき、エラーイベント監視プロセスによってエラーイベントが捕捉されるようにする。   When an error is detected by the first memory control unit 104, a predetermined register (not shown) provided in the first memory control unit 104 is incremented or a predetermined flag (not shown) is set. This is notified to the outside. In order for it to be captured as an error event by the error event monitoring process, the error event monitoring process must be notified by an interrupt or polling process triggered by the increment of the register or the setting of the flag. I must. If an error notification mechanism included in the OS and system application can be used for this notification, it can be used. Otherwise, an error notification routine for performing the notification in response to the change of the register or flag is prepared in a lower layer of the error event monitoring process so that the error event is captured by the error event monitoring process. To do.

エラーイベント監視プロセスは、例えばOSの起動処理中にブートプログラム記憶部105のエラーが発生すると、発生したエラーをエラーイベントとして捕捉する。そして、第1エラーイベント記憶領域112のデータをインクリメントする。
なお、第1エラーイベント記憶領域112のデータは、ブート時の初期化処理で毎回リセットされる。
For example, when an error in the boot program storage unit 105 occurs during the OS startup process, the error event monitoring process captures the generated error as an error event. Then, the data in the first error event storage area 112 is incremented.
Note that the data in the first error event storage area 112 is reset every time in the initialization process at the time of booting.

記憶部106から一時記憶部107にロードされたOSやシステムアプリケーション用プログラムがロードされるときや、ロードされたOSやシステムアプリケーション用プログラムが通常システムの運用中に発生するエラーは、第2メモリ制御部114によって検出される。エラーの詳細な内容は、(1)リードエラー、(2)書き込み毎のライトエラー、(3)所定回数ライトエラー、即ち、書き込みエラー発生により別の位置に書き込み場所を変えて何度か書き込んだが書き込めなかった場合のエラーである。   When an OS or system application program loaded from the storage unit 106 to the temporary storage unit 107 is loaded or when the loaded OS or system application program is normally operated, the second memory control Detected by the unit 114. The detailed contents of the error are (1) read error, (2) write error for each write, and (3) write error for a predetermined number of times, that is, the write location is changed to another position due to the occurrence of the write error, This is an error when writing is not possible.

記憶部106のエラーが検出されると、第2メモリ制御部114内に設けられた所定のレジスタ(図示せず)がインクリメントされるか又は所定のフラグ(図示せず)がセットされる。前記レジスタあるいは前記フラグの変化に応答してエラーイベント監視プロセスに通知する処理は、前述したブートプログラム記憶部105のエラーの場合と同様の仕組みで実現される。   When an error in the storage unit 106 is detected, a predetermined register (not shown) provided in the second memory control unit 114 is incremented or a predetermined flag (not shown) is set. The process of notifying the error event monitoring process in response to the change in the register or the flag is realized by the same mechanism as that in the case of the error in the boot program storage unit 105 described above.

エラーイベント監視プロセスは、例えば、OSの起動処理中に記憶部106のエラーが発生すると、発生したエラーをエラーイベントとして捕捉する。そして、第2エラーイベント記憶領域113のデータをインクリメントする。
なお、第2エラーイベント記憶領域113のデータは、ブート時の初期化処理で毎回リセットされる。
For example, when an error in the storage unit 106 occurs during the OS startup process, the error event monitoring process captures the generated error as an error event. Then, the data in the second error event storage area 113 is incremented.
Note that the data in the second error event storage area 113 is reset every time in the initialization process at the time of booting.

第1エラーイベント記憶領域112の値が予め定められた第1閾値を超えるか、または、第2エラーイベント記憶領域113の値が予め定められた第2閾値を超えた場合、制御部101は異常起動フラグ記憶部110のフラグを立てた後にシステムを再起動する。ここで、第1エラーイベント記憶領域112の値はブートプログラム記憶部105のエラーによって更新され、第2エラーイベント記憶領域113の値は記憶部106のエラーによって更新される。
異常起動フラグ記憶部110は不揮発性メモリであるので、再起動時にフラグは保持される。再起動後、異常起動フラグ記憶部110のフラグが立っている場合、制御部101は、第1メモリ制御部104に対し、ブートプログラム記憶部105の書込禁止領域111から、プレブート・プログラムをロードして実行する。プレブート・プログラムで起動が行われた場合、POS端末100は運用上最小限必要な機能で動作する。この動作環境をこの明細書ではプレブート環境と呼んでいる。
プレブート環境で実行可能な機能としては、例えば、特定の形式のバーコード読み取りや商品代金の加算機能がある。これによりPOS端末100の使用者は、在庫管理については十分な機能を実行はできなくなるが、商品の販売といった中核業務を停止する必要がなくなる。
If the value of the first error event storage area 112 exceeds a predetermined first threshold value or the value of the second error event storage area 113 exceeds a predetermined second threshold value, the control unit 101 is abnormal. The system is restarted after setting the flag of the startup flag storage unit 110. Here, the value in the first error event storage area 112 is updated by an error in the boot program storage unit 105, and the value in the second error event storage area 113 is updated by an error in the storage unit 106.
Since the abnormal activation flag storage unit 110 is a nonvolatile memory, the flag is retained at the time of restart. If the flag of the abnormal start flag storage unit 110 is set after the restart, the control unit 101 loads the preboot program from the write protected area 111 of the boot program storage unit 105 to the first memory control unit 104. And run. When activated by the pre-boot program, the POS terminal 100 operates with a minimum function necessary for operation. This operating environment is called a pre-boot environment in this specification.
As a function that can be executed in the pre-boot environment, for example, there is a function of reading a barcode in a specific format or adding a product price. As a result, the user of the POS terminal 100 cannot execute sufficient functions for inventory management, but does not need to stop the core business such as sales of products.

≪動作図(フローチャート)の説明≫
図2および図3は、この発明おいて、ストレージのエラーを検出しプレブート環境へ移行する処理の一例を示す説明図である。
以下、図2および図3に沿って処理を説明する。
≪Explanation of Operation Diagram (Flowchart) ≫
2 and 3 are explanatory diagrams showing an example of processing for detecting a storage error and shifting to a pre-boot environment in the present invention.
Hereinafter, the processing will be described with reference to FIGS. 2 and 3.

POS端末100のシステムの電源が投入された後、制御部101は、まずブート時に必要なハードウェアや記憶領域の初期化処理を行う。その初期化処理の一つとして、第1エラーイベント記憶領域112、第2エラーイベント記憶領域113の値をゼロにする(図2のステップS200)。   After the system of the POS terminal 100 is turned on, the control unit 101 first performs initialization processing of hardware and storage areas necessary at the time of booting. As one of the initialization processes, the values of the first error event storage area 112 and the second error event storage area 113 are set to zero (step S200 in FIG. 2).

次に制御部101は、異常起動フラグ記憶部110のフラグの状態を確認する。即ち、今回の起動が正常起動時のものか、直前に異常起動したものかを確認する(ステップS203)。
異常起動フラグ記憶部110にフラグが立っておらず正常起動である場合(ステップS205の判定がNo)、制御部101はブートプログラム記憶部105から一時記憶部107へ、通常ブートプログラムをダウンロードしてそれを実行する(ステップS207)。
制御部101は、通常ブートプログラムの指令に従い、記憶部106から一時記憶部107へOSとシステムアプリケーション用プログラムをロードし(ステップS209)、その後、ロードされたOSの実行を開始する。
Next, the control unit 101 confirms the state of the flag in the abnormal activation flag storage unit 110. That is, it is confirmed whether the current activation is a normal activation or an abnormal activation immediately before (step S203).
If the abnormal start flag storage unit 110 is not flagged and is a normal start (No in Step S205), the control unit 101 downloads the normal boot program from the boot program storage unit 105 to the temporary storage unit 107. This is executed (step S207).
The control unit 101 loads the OS and the system application program from the storage unit 106 to the temporary storage unit 107 in accordance with the normal boot program command (step S209), and then starts executing the loaded OS.

OSの実行開始の初めに、制御部101は、エラーイベント監視プロセスを起動する(ステップS211)。エラーイベント監視プロセスは、その後のOS起動とシステムアプリケーションの起動(ステップS213)とにおいて発生するエラーイベントを監視する。エラーイベント監視プロセスがブートプログラム記憶部105に係るエラーイベントを捕捉した場合は、第1エラーイベント記憶領域112の値に1を加え、記憶部106に係るエラーイベントを捕捉した場合は、第2エラーイベント記憶領域113の値に1を加えて(ステップS241)、起動を続行する(ステップS213)。   At the beginning of OS execution, the control unit 101 starts an error event monitoring process (step S211). The error event monitoring process monitors error events that occur in the subsequent OS startup and system application startup (step S213). When the error event monitoring process captures an error event related to the boot program storage unit 105, 1 is added to the value of the first error event storage area 112, and when the error event related to the storage unit 106 is captured, the second error 1 is added to the value of the event storage area 113 (step S241), and the activation is continued (step S213).

OS及びシステムアプリケーションの起動が完了後、エラーイベント監視プロセスは、ブートプログラム記憶部105および記憶部106に係るエラーイベントの監視を続ける。エラーイベントを捕捉したら、その発生箇所に応じて第1エラーイベント記憶領域112および/または第2エラーイベント記憶領域113を更新する。第1エラーイベント記憶領域112および第2エラーイベント記憶領域113の値を検査し(図3のステップS217)、何れか一方あるいは両方が予め定められた閾値を超えている場合には(判定がYes)、異常起動フラグ記憶部110のフラグを立てた後に(ステップS219)、POS端末100を再起動する(ステップS221)。   After the activation of the OS and the system application is completed, the error event monitoring process continues to monitor error events related to the boot program storage unit 105 and the storage unit 106. When the error event is captured, the first error event storage area 112 and / or the second error event storage area 113 is updated according to the occurrence location. The values of the first error event storage area 112 and the second error event storage area 113 are inspected (step S217 in FIG. 3), and if either one or both exceeds a predetermined threshold (determination is Yes) ) After raising the flag of the abnormal activation flag storage unit 110 (step S219), the POS terminal 100 is restarted (step S221).

ブートプログラム記憶部105および/または記憶部106が寿命に到達するとエラーが発生する。例えば、記憶部106にエラーが発生すると、OSやシステムアプリケーション用プログラムが一時記憶部107に正しくロードできず、不正にロードされたプログラムを制御部101が実行するとシステムクラッシュを招くおそれがある。あるいは、記憶部106に在庫、発注、販売に係るデータが格納されている場合、それらのデータが誤った値として読み書きされるおそれがある。前述の再起動はこのような状態に陥る前に、POS端末100をプレブート環境へ移行させるための処理である。   An error occurs when the boot program storage unit 105 and / or storage unit 106 reaches the end of its life. For example, if an error occurs in the storage unit 106, the OS or system application program cannot be correctly loaded into the temporary storage unit 107, and if the control unit 101 executes an illegally loaded program, a system crash may occur. Alternatively, when data relating to inventory, ordering, and sales is stored in the storage unit 106, the data may be read and written as erroneous values. The aforementioned restart is a process for shifting the POS terminal 100 to the pre-boot environment before falling into such a state.

再起動されたPOS端末100は、再び図2の先頭から処理を実行する。初期化処理(ステップS200)の後、異常起動フラグ記憶部110のフラグを確認すると(ステップS203)、フラグが立っているので(ステップS205のYes)、ルーチンはステップS231へ進み、書込禁止領域111からプレブート・プログラムを一時記憶部107にロードする(ステップS231)。その後、制御部101は、一時記憶部にロードされたプレブート・プログラムを実行し、最小限の機能でPOS端末100を動作させる(ステップS233)。   The restarted POS terminal 100 executes the process again from the top of FIG. After the initialization process (step S200), when the flag in the abnormal activation flag storage unit 110 is confirmed (step S203), the flag is set (Yes in step S205), so the routine proceeds to step S231 and the write protected area The preboot program is loaded from 111 into the temporary storage unit 107 (step S231). Thereafter, the control unit 101 executes the preboot program loaded in the temporary storage unit, and operates the POS terminal 100 with a minimum function (step S233).

なお、記憶部106のエラーが検出され、記憶部106に在庫、発注、販売に係るデータが格納されている場合、それらのデータの読み書きはもはや正常に行われることが保障できない。そのため、プレブート環境において、制御部101は、中央のコンピュータと通信して在庫、発注、販売に係る必要最小限のデータを取得し、一時記憶部107にダウンロードしてそのデータを用いて処理を行う。   When an error in the storage unit 106 is detected and data relating to inventory, ordering, and sales is stored in the storage unit 106, it cannot be guaranteed that the reading and writing of these data is normally performed. Therefore, in the pre-boot environment, the control unit 101 communicates with the central computer to acquire the minimum necessary data related to inventory, ordering, and sales, downloads it to the temporary storage unit 107, and performs processing using the data .

再びステップS217の処理に戻る。ステップS217の判定で、第1エラーイベント記憶領域112および第2エラーイベント記憶領域113の値を検査する。その検査の結果、その何れもが閾値を超えていない場合(ステップS217のNo)、制御部101は、POS端末100の起動が問題なく完了したものと判断する。このようにして起動処理は完了し(ステップS251)、その後、POSシステムは通常の状態で動作する(ステップS253)。通常の状態では、全てのOS、システムアプリケーションの全機能が動作する。   The process returns to step S217 again. In step S217, the values of the first error event storage area 112 and the second error event storage area 113 are inspected. As a result of the inspection, if none of them exceeds the threshold value (No in step S217), the control unit 101 determines that the activation of the POS terminal 100 has been completed without any problem. In this way, the startup process is completed (step S251), and then the POS system operates in a normal state (step S253). Under normal conditions, all functions of all OSs and system applications operate.

なお、通常運用を開始した後も、エラーイベント監視プロセスは、エラーイベントの監視を続行する(ステップS255)。もし通常運用中にエラーイベントが捕捉された場合には(ステップS255のYes)、その発生箇所に応じて第1エラーイベント記憶領域112および/または第2エラーイベント記憶領域113の値をインクリメントする(ステップS257)。   Even after starting normal operation, the error event monitoring process continues to monitor error events (step S255). If an error event is captured during normal operation (Yes in step S255), the value of the first error event storage area 112 and / or the second error event storage area 113 is incremented according to the occurrence location (step S255). Step S257).

そして、第1エラーイベント記憶領域112および第2エラーイベント記憶領域113内の値を検査する(ステップS259)。その検査の結果、何れか一方あるいは両方が予め定められた閾値を超えている場合には(判定がYes)、ルーチンは前記ステップS219へ進み、異常起動フラグ記憶部110に異常起動フラグを立てた後、POS端末100を再起動する(ステップS221)。
前記ステップS259の判定で、何れも予め定められた閾値を超えていない場合にはシステムの通常運用を継続する(ステップS253)。
Then, the values in the first error event storage area 112 and the second error event storage area 113 are inspected (step S259). As a result of the inspection, if either one or both exceed a predetermined threshold (determination is Yes), the routine proceeds to step S219 and sets an abnormal activation flag in the abnormal activation flag storage unit 110. Thereafter, the POS terminal 100 is restarted (step S221).
If none of the determinations in step S259 exceeds a predetermined threshold value, normal operation of the system is continued (step S253).

前述した実施の形態の他にも、この発明について種々の変形例があり得る。それらの変形例は、この発明の範囲に属さないと解されるべきものではない。この発明には、請求の範囲と均等の意味および前記範囲内でのすべての変形とが含まれるべきである。   In addition to the embodiments described above, there can be various modifications of the present invention. These modifications should not be construed as not belonging to the scope of the present invention. The present invention should include the meaning equivalent to the scope of the claims and all modifications within the scope.

100:POS端末
101:制御部
103:操作部
104:第1メモリ制御部
105:ブートプログラム記憶部
106:記憶部
107:一時記憶部
110:異常起動フラグ記憶部
111:書込禁止領域
112:第1エラーイベント記憶領域
113:第2エラーイベント記憶領域
114:第2メモリ制御部
100: POS terminal
101: Control unit
103: Operation unit
104: First memory control unit
105: Boot program storage
106: Memory
107: Temporary storage
110: Abnormal start flag storage
111: Write-protected area
112: First error event storage area
113: Second error event storage area
114: Second memory control unit

Claims (7)

起動後に通常プログラムに基づく処理または非常プログラムに基づく処理を選択的に実行する制御部と、
前記通常プログラムを格納し、読み書き可能な第1格納部と、
前記非常プログラムを予め格納する第2格納部と、
前記第1格納部に対する読み書きの異常を検出する異常検出部とを備え、
前記制御部は、前記第1格納部から通常プログラムを逐次読み出して第1格納部へのアクセスを伴う処理を実行し、前記第1格納部に対する読み書きの異常が前記異常検出部により検出された場合、再起動により非常プログラムに基づく処理の実行に切換え、
前記非常プログラムは、前記制御部が通常プログラムの機能の一部のみを処理しかつ第1格納部へのアクセスを伴わずにその処理を実行するプログラムであることを特徴とするPOS端末装置。
A control unit that selectively executes processing based on a normal program or processing based on an emergency program after startup;
A first storage unit that stores the normal program and is readable and writable;
A second storage unit for storing the emergency program in advance;
An abnormality detection unit that detects an abnormality in reading and writing with respect to the first storage unit,
The control unit sequentially reads a normal program from the first storage unit, executes a process involving access to the first storage unit, and a reading / writing abnormality with respect to the first storage unit is detected by the abnormality detection unit , Switch to execution of processing based on emergency program by restart,
The emergency program is a POS terminal device in which the control unit processes only a part of functions of a normal program and executes the processing without accessing the first storage unit.
前記通常プログラムおよび前記非常プログラムは、前記制御部が起動時に実行すべきブートプログラム、オペレーティングシステムのプログラムおよびアプリケーションプログラムをそれぞれ含む請求項1に記載のPOS端末装置。   2. The POS terminal device according to claim 1, wherein the normal program and the emergency program each include a boot program, an operating system program, and an application program to be executed by the control unit at startup. 前記制御部は、起動後、予め定められた回数を超える前記異常が検出されたときに再起動を行う請求項1または2に記載のPOS端末装置。   3. The POS terminal device according to claim 1, wherein the control unit restarts when the abnormality exceeding a predetermined number of times is detected after startup. 4. 前記第2格納部は、前記制御部がデータを書込むことのできない記憶領域である請求項1〜3のいずれか一つに記載のPOS端末装置。   The POS terminal device according to any one of claims 1 to 3, wherein the second storage unit is a storage area into which the control unit cannot write data. 前記第1格納部は、フラッシュメモリからなる請求項1〜4のいずれか一つに記載のPOS端末装置。   The POS terminal device according to any one of claims 1 to 4, wherein the first storage unit includes a flash memory. 前記第1格納部は、ハードディスク装置からなる請求項1〜4のいずれか一つに記載のPOS端末装置。   The POS terminal device according to any one of claims 1 to 4, wherein the first storage unit includes a hard disk device. 起動後に通常プログラムに基づく処理または非常プログラムに基づく処理を選択的に実行し得る制御部が、第1の起動後に、第1格納部にアクセスして前記通常プログラムを逐次読み出し、その通常プログラムに基づいて第1格納部へのアクセスを伴う処理を実行する工程と、
前記第1格納部に対する読み書きの異常を検出する異常検出部から異常の通知を受ける工程と、
前記通知に基づいてプログラム選択用データを設定し、それによって第2の起動後は前記制御部が第2格納部にアクセスして非常プログラムを読み出しその非常プログラムに基づく処理を行うようにする工程と、
第2の再起動を行った後、前記プログラム選択用データの設定に基づいて前記非常プログラムに基づく処理を実行する工程とを備え、
前記非常プログラムは、前記制御部が通常プログラムの一部の機能のみを処理しかつ第1格納部へのアクセスを伴わずにその処理を実行するプログラムであることを特徴とするPOS端末制御方法。
A control unit that can selectively execute processing based on a normal program or processing based on an emergency program after startup accesses the first storage unit after the first startup, sequentially reads the normal program, and based on the normal program Performing a process involving access to the first storage unit;
Receiving a notification of an abnormality from an abnormality detection unit that detects an abnormality in reading and writing with respect to the first storage unit;
Setting data for program selection based on the notification, whereby the control unit accesses the second storage unit after the second activation, reads out the emergency program, and performs processing based on the emergency program; ,
A step of performing a process based on the emergency program based on the setting of the program selection data after performing the second restart,
The POS terminal control method, wherein the emergency program is a program in which the control unit processes only a part of the functions of the normal program and executes the processing without accessing the first storage unit.
JP2010078876A 2010-03-30 2010-03-30 Pos terminal device and pos terminal control method Pending JP2011210117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010078876A JP2011210117A (en) 2010-03-30 2010-03-30 Pos terminal device and pos terminal control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010078876A JP2011210117A (en) 2010-03-30 2010-03-30 Pos terminal device and pos terminal control method

Publications (1)

Publication Number Publication Date
JP2011210117A true JP2011210117A (en) 2011-10-20

Family

ID=44941083

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010078876A Pending JP2011210117A (en) 2010-03-30 2010-03-30 Pos terminal device and pos terminal control method

Country Status (1)

Country Link
JP (1) JP2011210117A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015084241A (en) * 2014-12-09 2015-04-30 株式会社東芝 Information processing device
CN116366757A (en) * 2023-06-01 2023-06-30 深圳市冠群电子有限公司 Intelligent detection system for errors of mobile phone POS machine of off-line store

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015084241A (en) * 2014-12-09 2015-04-30 株式会社東芝 Information processing device
CN116366757A (en) * 2023-06-01 2023-06-30 深圳市冠群电子有限公司 Intelligent detection system for errors of mobile phone POS machine of off-line store
CN116366757B (en) * 2023-06-01 2023-09-22 深圳市冠群电子有限公司 Intelligent detection system for errors of mobile phone POS machine of off-line store

Similar Documents

Publication Publication Date Title
CN106933708B (en) Method and device for facilitating storage system recovery and storage system
US9152431B2 (en) Computer and computer control method
US9424022B2 (en) Method for updating firmware of an electronic device within a computer
US8402204B2 (en) Methods for measuring usable lifespan and replacing an in-system programming code of a memory device, and data storage system using the same
US20080046780A1 (en) Nonvolatile memory
JP4215746B2 (en) Information processing apparatus and life monitoring method
US20140365823A1 (en) Information processing device, information processing method, and computer program
JP5681689B2 (en) Method and computer for shortening recovery time from power saving state
US8086841B2 (en) BIOS switching system and a method thereof
TW201520895A (en) System and method for automatically recovering BIOS of a computer
JP6698467B2 (en) Electronic circuit system and method for starting control device
CN109614130A (en) A kind of cloud broadcast upgrade method and system with trial operation, self-check
JP2010186341A (en) Memory system
JP2010170197A (en) Firmware management program, storage device, and firmware management method
JP4886558B2 (en) Information processing device
CN113190256B (en) Upgrading method, device and equipment
JP6515462B2 (en) INFORMATION PROCESSING DEVICE, SETTING METHOD FOR INFORMATION PROCESSING DEVICE, AND SETTING PROGRAM
JP2011210117A (en) Pos terminal device and pos terminal control method
JP7182936B2 (en) Information processing equipment
US20070067668A1 (en) Information processing apparatus and information processing recovery method
CN111078469A (en) Data processing method and data processing equipment
US20190138407A1 (en) Systems and methods of deploying an operating system from a resilient virtual drive
JP2009211625A (en) Start log storage method for information processor
JP4648097B2 (en) Registry information repair method and information processing apparatus
JP4635993B2 (en) Startup diagnostic method, startup diagnostic method and program