JP2011210117A - Pos terminal device and pos terminal control method - Google Patents
Pos terminal device and pos terminal control method Download PDFInfo
- 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
Links
Images
Landscapes
- Storage Device Security (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Debugging And Monitoring (AREA)
Abstract
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).
前述のように、フラッシュメモリ等、本体の耐用期間に比べて寿命の短いストレージを使用し、かつ、ストレージの二重化等が行われていない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.
以下、この発明の好ましい態様について説明する。 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
一時記憶部107は、DRAMで構成された記憶装置であって、制御部101の作業記憶領域として使用される。一時記憶部107は、この発明に係る前記ストレージには該当しない。一時記憶部107は、第1エラーイベント記憶領域112および、第2エラーイベント記憶領域113を含む。
第1エラーイベント記憶領域112は、後述するエラーイベント監視プロセスの管理下にあるデータ記憶領域であって、POS端末100が起動する際に発生したエラーの個数を保持する記憶領域である。
通信部115は、POS端末100が外部のホスト(図示せず)と通信を行うためのインターフェイス回路である。POS端末100側での前記ホストとの通信は、制御部101が制御する。
The
The first error
The
ブートプログラム記憶部105はフラッシュメモリを用いて提供される記憶領域である。ブートプログラム記憶部105は、本体の耐用期間よりも寿命が短く、前記耐用期間中の交換が想定される前記ストレージの一つである。ブートプログラム記憶部105は、書き込み可能な領域に通常ブートプログラムを保持する。ブートプログラムのバージョンアップを可能にするためである。さらに、ブートプログラム記憶部105は、記憶領域の一部にCPU制御による書込みが不可能なように回路的な構成がなされた書込禁止領域111を含んでおり、その書込禁止領域111に予めプレブート・プログラムを保持する。
The boot
通常ブートプログラムは、前記ストレージが正常に動作している場合であって、全機能が動作するように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
第1メモリ制御部104は、ブートプログラム記憶部105に対するデータの読み書きを制御部101が制御できるようにするインターフェイス回路である。さらに、フラッシュメモリのリードライトエラーの発生状態を検出する論理回路を含む。図1では、ブートプログラム記憶部105と第1メモリ制御部104とを異なるブロックとして示しているが、一態様としては第1メモリ制御部104とブートプログラム記憶部105とが同一のフラッシュメモリに実装されてもよい。即ち、フラッシュメモリのオンチップ制御回路が第1メモリ制御部104の機能を担ってもよい。異なる一態様によれば、第1メモリ制御部104はフラッシュメモリの外部に実装される。
The first
記憶部106は、ハードディスク・ドライブ装置(HDD)により提供される記憶領域であって、OSやシステムアプリケーション用プログラムを格納する。さらに、POSシステムが扱う在庫、発注、販売に係るデータを格納してもよい。前記データは、外部のホストとの通信によって更新される。記憶部106は、本体の耐用期間経過前の交換が想定される前記ストレージである。
The
第2メモリ制御部114は、記憶部106のデータの読み書きを制御する回路である。さらに、HDDのリードライトエラーの発生状態を検出する論理回路を含む。図1では、記憶部106と第2メモリ制御部114を異なるブロックとして示しているが、HDDと一体に実装されてもよい。即ち、ハードディスク・ドライブ装置の制御回路が第2メモリ制御部114の機能を担ってもよい。
The second
異常起動フラグ記憶部110は、制御部101がOSを実行することにより実現されるエラーイベント監視プロセスが管理する記憶領域であって、第1メモリ制御部104によって検出されたエラーに係るデータを格納し管理するための作業記憶領域を提供する。エラーイベント監視プロセスについては、後に詳述する。異常起動フラグ記憶部110は、不揮発性のかつ書き換え可能な記憶領域であって、記憶領域として少なくとも異常起動フラグ記憶部110を含む。異常起動フラグ記憶部110は、ブートプログラム記憶部105や記憶部106とは別の、十分長い耐用期間を有する不揮発性記憶素子に実装されるか、または、多重化されることが好ましい。
The abnormal activation
異常起動フラグ記憶部110は、システムが起動する毎に、その起動が通常システムの起動を行うべきか、「プレブート」環境の起動を行うべきかを示すフラグを保持する。
POS端末100は、前記ストレージであるブートプログラム記憶部105及び記憶部106が正常な状態のとき、システムの立ち上げ時に前述の通常ブートプログラムを実行する。その詳細な手順は、次の通りである。
システムの電源が投入された後、制御部101はブートプログラム記憶部105の書き込み可能な領域に保持された通常ブートプログラムを、第1メモリ制御部104を用いて一時記憶部107にロードする。
The abnormal start
When the boot
After the system power is turned on, the
制御部101は、一時記憶部107にロードされた通常ブートプログラムを実行する。その実行に伴って、まずブート時に必要なハードウェアや記憶領域の初期化処理が行われる。続いて、第2メモリ制御部114を用い、記憶部106に保持されているOSやシステムアプリケーション用プログラムを一時記憶部107にロードする処理が行われる。
The
その後、通常ブートプログラムは、制御部101の実行をOSやシステムアプリケーション用プログラムの処理の実行に移行させる。それによって、制御部101は、POS端末100の動作を開始する。POS端末100の動作開始の段階で、制御部101は、前述のエラーイベント監視プロセスを起動する。エラーイベント監視プロセスは、制御部101が実行するOS又はアプリケーションの処理の一つである。
Thereafter, the normal boot program shifts execution of the
起動されたエラーイベント監視プロセスは、その後、システム起動時に発生するエラーイベントを監視する。ここで、検出されるエラーイベントは、第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
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
第1メモリ制御部104によってエラーが検出されたことは、第1メモリ制御部104内に設けられた所定のレジスタ(図示せず)がインクリメントされるか又は所定のフラグ(図示せず)がセットされたことによって外部に通知される。それがエラーイベント監視プロセスによってエラーイベントとして捕捉されるためには、前記レジスタのインクリメントあるいは前記フラグのセットされたことをトリガとして、割り込みあるいはポーリング等の処理でエラーイベント監視プロセスへの通知がされなければならない。この通知に、OSおよびシステムアプリケーションが具備するエラー通知機構が使用できる場合は、それを使用すればよい。そうでなければ、エラーイベント監視プロセスの下位層に、前記レジスタあるいはフラグの変化に応答して前記通知を行うエラー通知ルーチンを準備しておき、エラーイベント監視プロセスによってエラーイベントが捕捉されるようにする。
When an error is detected by the first
エラーイベント監視プロセスは、例えばOSの起動処理中にブートプログラム記憶部105のエラーが発生すると、発生したエラーをエラーイベントとして捕捉する。そして、第1エラーイベント記憶領域112のデータをインクリメントする。
なお、第1エラーイベント記憶領域112のデータは、ブート時の初期化処理で毎回リセットされる。
For example, when an error in the boot
Note that the data in the first error
記憶部106から一時記憶部107にロードされたOSやシステムアプリケーション用プログラムがロードされるときや、ロードされたOSやシステムアプリケーション用プログラムが通常システムの運用中に発生するエラーは、第2メモリ制御部114によって検出される。エラーの詳細な内容は、(1)リードエラー、(2)書き込み毎のライトエラー、(3)所定回数ライトエラー、即ち、書き込みエラー発生により別の位置に書き込み場所を変えて何度か書き込んだが書き込めなかった場合のエラーである。
When an OS or system application program loaded from the
記憶部106のエラーが検出されると、第2メモリ制御部114内に設けられた所定のレジスタ(図示せず)がインクリメントされるか又は所定のフラグ(図示せず)がセットされる。前記レジスタあるいは前記フラグの変化に応答してエラーイベント監視プロセスに通知する処理は、前述したブートプログラム記憶部105のエラーの場合と同様の仕組みで実現される。
When an error in the
エラーイベント監視プロセスは、例えば、OSの起動処理中に記憶部106のエラーが発生すると、発生したエラーをエラーイベントとして捕捉する。そして、第2エラーイベント記憶領域113のデータをインクリメントする。
なお、第2エラーイベント記憶領域113のデータは、ブート時の初期化処理で毎回リセットされる。
For example, when an error in the
Note that the data in the second error
第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
Since the abnormal activation
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
次に制御部101は、異常起動フラグ記憶部110のフラグの状態を確認する。即ち、今回の起動が正常起動時のものか、直前に異常起動したものかを確認する(ステップS203)。
異常起動フラグ記憶部110にフラグが立っておらず正常起動である場合(ステップS205の判定がNo)、制御部101はブートプログラム記憶部105から一時記憶部107へ、通常ブートプログラムをダウンロードしてそれを実行する(ステップS207)。
制御部101は、通常ブートプログラムの指令に従い、記憶部106から一時記憶部107へOSとシステムアプリケーション用プログラムをロードし(ステップS209)、その後、ロードされたOSの実行を開始する。
Next, the
If the abnormal start
The
OSの実行開始の初めに、制御部101は、エラーイベント監視プロセスを起動する(ステップS211)。エラーイベント監視プロセスは、その後のOS起動とシステムアプリケーションの起動(ステップS213)とにおいて発生するエラーイベントを監視する。エラーイベント監視プロセスがブートプログラム記憶部105に係るエラーイベントを捕捉した場合は、第1エラーイベント記憶領域112の値に1を加え、記憶部106に係るエラーイベントを捕捉した場合は、第2エラーイベント記憶領域113の値に1を加えて(ステップS241)、起動を続行する(ステップS213)。
At the beginning of OS execution, the
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
ブートプログラム記憶部105および/または記憶部106が寿命に到達するとエラーが発生する。例えば、記憶部106にエラーが発生すると、OSやシステムアプリケーション用プログラムが一時記憶部107に正しくロードできず、不正にロードされたプログラムを制御部101が実行するとシステムクラッシュを招くおそれがある。あるいは、記憶部106に在庫、発注、販売に係るデータが格納されている場合、それらのデータが誤った値として読み書きされるおそれがある。前述の再起動はこのような状態に陥る前に、POS端末100をプレブート環境へ移行させるための処理である。
An error occurs when the boot
再起動された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
なお、記憶部106のエラーが検出され、記憶部106に在庫、発注、販売に係るデータが格納されている場合、それらのデータの読み書きはもはや正常に行われることが保障できない。そのため、プレブート環境において、制御部101は、中央のコンピュータと通信して在庫、発注、販売に係る必要最小限のデータを取得し、一時記憶部107にダウンロードしてそのデータを用いて処理を行う。
When an error in the
再びステップ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
なお、通常運用を開始した後も、エラーイベント監視プロセスは、エラーイベントの監視を続行する(ステップ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
そして、第1エラーイベント記憶領域112および第2エラーイベント記憶領域113内の値を検査する(ステップS259)。その検査の結果、何れか一方あるいは両方が予め定められた閾値を超えている場合には(判定がYes)、ルーチンは前記ステップS219へ進み、異常起動フラグ記憶部110に異常起動フラグを立てた後、POS端末100を再起動する(ステップS221)。
前記ステップS259の判定で、何れも予め定められた閾値を超えていない場合にはシステムの通常運用を継続する(ステップS253)。
Then, the values in the first error
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格納部に対する読み書きの異常を検出する異常検出部から異常の通知を受ける工程と、
前記通知に基づいてプログラム選択用データを設定し、それによって第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.
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)
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 |
-
2010
- 2010-03-30 JP JP2010078876A patent/JP2011210117A/en active Pending
Cited By (3)
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 |