JP2011081566A - Electronic apparatus and program - Google Patents
Electronic apparatus and program Download PDFInfo
- Publication number
- JP2011081566A JP2011081566A JP2009232758A JP2009232758A JP2011081566A JP 2011081566 A JP2011081566 A JP 2011081566A JP 2009232758 A JP2009232758 A JP 2009232758A JP 2009232758 A JP2009232758 A JP 2009232758A JP 2011081566 A JP2011081566 A JP 2011081566A
- Authority
- JP
- Japan
- Prior art keywords
- tests
- time
- test
- threshold value
- executed
- 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
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
本発明は、電子式キャッシュレジスタあるいはPOSターミナルなどの電子機器、およびプログラムに関する。 The present invention relates to an electronic device such as an electronic cash register or a POS terminal, and a program.
電子式キャッシュレジスタやPOS(Point Of Sales)ターミナルなどの電子機器は、起動に際し、予め定められている種々のテストを実行し、これらのテストの完了後に通常動作に入る。しかしながら、このような起動時のテストが何らかの原因で異常停止した場合、電子機器は、通常動作に入ることなく、ロック状態となってしまっていた。 Electronic devices such as an electronic cash register and a POS (Point Of Sales) terminal execute various predetermined tests when starting up, and enter normal operation after completion of these tests. However, when such a start-up test is abnormally stopped for some reason, the electronic device is locked without entering normal operation.
そこで、特許文献1では、テストの実行に要する時間より長い時間が異常検出用の閾値としてテストごとにセットされ、テストの実行に伴い動作してタイムカウントした値がセットされた閾値に達した場合に、ハードウェアをリセットして再起動させるウォッチドック・タイマを備えた電子機器が提案されている。 Therefore, in Patent Document 1, a time longer than the time required for test execution is set for each test as a threshold for detecting an abnormality, and a time counted value that has been operated in accordance with test execution reaches the set threshold value. In addition, electronic devices including a watchdog timer that resets and restarts hardware have been proposed.
しかしながら上記電子機器では、異常検出用の閾値がテストごとにセットされ、テストごとにウォッチドック・タイマによるタイムカウントの開始および停止が繰り返されるため、多大なテストによる処理時間のオーバーヘッドが大きくなる、という課題がある。 However, in the above electronic device, a threshold for abnormality detection is set for each test, and the start and stop of the time count by the watchdog timer is repeated for each test. There are challenges.
本発明は、上記に鑑みてなされたものであって、ハードウェアの起動時に実行されるテストによる処理時間のオーバーヘッドを低減することができる電子機器、およびプログラムを提供することを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to provide an electronic device and a program that can reduce the overhead of processing time due to a test executed when the hardware is started up.
上述した課題を解決し、目的を達成するために、本発明は、ハードウェアの起動に際して予め定められたテストを実行し、前記テストの完了後に通常動作に入る電子機器であって、複数の前記テストごとに、前記複数のテストの実行に要する時間より長い時間を異常検出用の閾値として設定する設定手段と、前記複数のテストの実行に伴い動作してタイムカウントし、タイムカウントした値が前記設定手段により設定された前記閾値に達した場合に、ハードウェアをリセットして再起動するカウント手段と、前記複数のテストが完了した際に前記カウント手段によるタイムカウントを停止する停止手段と、を備えたことを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention is an electronic device that executes a predetermined test at the time of starting up hardware and enters normal operation after the completion of the test. For each test, setting means for setting a time longer than the time required for the execution of the plurality of tests as a threshold for detecting an abnormality, and time counting by operating in accordance with the execution of the plurality of tests, Counting means for resetting and restarting hardware when the threshold set by the setting means is reached; and stopping means for stopping time counting by the counting means when the plurality of tests are completed. It is characterized by having.
また、本発明は、ハードウェアの起動に際して予め定められたテストを実行し、前記テストの完了後に通常動作に入る電子機器を制御するコンピュータを、複数の前記テストごとに、前記複数のテストの実行に要する時間より長い時間を異常検出用の閾値として設定する設定手段と、前記複数のテストの実行に伴い動作してタイムカウントし、タイムカウントした値が前記設定手段により設定された前記閾値に達した場合に、ハードウェアをリセットして再起動するカウント手段と、前記複数のテストが完了した際に前記カウント手段によるタイムカウントを停止する停止手段と、として機能させる。 In addition, the present invention executes a plurality of tests for each of the plurality of tests, by executing a predetermined test at the time of starting up the hardware and controlling an electronic device that enters normal operation after the completion of the test. Setting means for setting a time longer than the time required for the abnormality detection as a threshold for abnormality detection, and time counting is performed in accordance with execution of the plurality of tests, and the time counted value reaches the threshold set by the setting means In such a case, the counting means for resetting and restarting the hardware and the stopping means for stopping the time counting by the counting means when the plurality of tests are completed are functioned.
本発明にかかる電子機器、およびプログラムは、ハードウェアの起動時に実行されるテストによる処理時間のオーバーヘッドを低減することができる、という効果を奏する。 The electronic device and the program according to the present invention have an effect that it is possible to reduce the processing time overhead due to the test executed when the hardware is activated.
以下に添付図面を参照して、この発明にかかる電子機器、およびプログラムの実施の一形態を詳細に説明する。なお、本実施の形態では、この発明にかかる電子機器、およびプログラムをPOS(Point Of Sales)ターミナルに適用した例について説明するが、パーソナルコンピュータなど、ハードウェアの起動に際してテストを実行する電子機器であれば、この発明を適用することができる。 Exemplary embodiments of an electronic device and a program according to the present invention will be described below in detail with reference to the accompanying drawings. In the present embodiment, an example in which the electronic device according to the present invention and the program are applied to a POS (Point Of Sales) terminal will be described. However, in an electronic device such as a personal computer that executes a test when starting hardware. If present, the present invention can be applied.
図1は、POSターミナルの外観図である。POSターミナル1は、現金等を収容するためのドロワ2の上に載置されており、このドロワ2の引出し2aの開閉を制御する。
FIG. 1 is an external view of a POS terminal. The POS terminal 1 is placed on a
POSターミナル1は、現金等を収容するためのドロワ2の上に載置されており、このドロワ2の引出し2aの開閉を制御する。
The POS terminal 1 is placed on a
POSターミナル1の本体には、正面側にキーボード3、モードスイッチ4、カードリーダ5、およびオペレータ表示器(カラー液晶表示器)6が設けられ、背面側に顧客に面するように客面表示器(カラー液晶表示器)7が設けられている。また、POSターミナル1の本体には、ジャーナルを電子媒体に保存する電子ジャーナル8、およびレシート及びジャーナルをプリントするプリンタ9が設けられている。さらに、POSターミナル1から商品情報入力手段としてコードスキャナ10が導出されている。コードスキャナ10は、商品に付された商品ラベルに印刷された2次元コードやバーコードを読取る機能を有する。
The main body of the POS terminal 1 is provided with a
キーボード3は、預かり金額などを置数するための置数キー、1取引として販売登録された商品の合計出力を指示する小計キー、1取引の代金を現金決済することを宣言して当該取引の締めを指示する預/現計キー、置数データのクリアを指示するクリアキー等を備えている。
The
モードスイッチ4は、「登録」,「点検」,「精算」,「設定」などの各種業務モードを選択するためのスイッチで、専用の鍵で操作される。因みに、「登録」とは、商品情報入力手段により入力された商品情報に基づいて商品の価格を加算してその売上データを記憶部に販売登録処理(商品登録手段)し、商品販売登録の終了が宣言された1取引の代金を精算してレシートを発行(登録締め手段)する業務のモードである。「点検」とは、記憶部に登録処理された各商品の売上データを集計しレポート出力する業務のモードである。「精算」とは、「点検」と同様に記憶部に登録処理された各商品の売上データを集計してレポート出力した後、記憶部の売上データをクリアする業務のモードである。「設定」とは、各種業務を実行する上で必要なデータを予め記憶部に設定するための業務である。
The
カードリーダ5は、非現金決済に用いるカードが挿入されてスライド操作されることにより、そのカードに記録されているデータを読取る。 The card reader 5 reads data recorded on the card when a card used for non-cash payment is inserted and slid.
オペレータ表示器6は、商品登録手段により販売登録された商品の品名,価格や、商品販売登録の終了が宣言され登録締め手段により1取引の合計金額、預かり金額、釣り銭額などを表示する。
The
客面表示器7は、カラー写真やカラー動画によるコマーシャル情報、たとえば『いらっしゃいませ』などの顧客案内情報、取引明細(商品名、単価、個数)、取引結果(合計金額,預かり金額、釣り銭額)等を表示する。
The
次に、図2を用いて、POSターミナル1の制御回路について説明する。図2は、POSターミナルの制御回路を示す図である。 Next, the control circuit of the POS terminal 1 will be described with reference to FIG. FIG. 2 is a diagram showing a control circuit of the POS terminal.
POSターミナル1は、主制御部であるCPU(Central Processing Unit)20に、バスラインを介して、ROM(Read Only Memory)21、RAM(Random Access Memory)22、時計回路23、通信インタフェース24、ウォッチドッグ・タイマ(WDT)25、I/O(Input/Output)ポート26、キーボードコントローラ27、カードリーダコントローラ28、表示コントローラ29,30、電子ジャーナルコントローラ31、プリンタコントローラ32、およびスキャナコントローラ33が接続されている。
The POS terminal 1 is connected to a CPU (Central Processing Unit) 20 which is a main control unit via a bus line, a ROM (Read Only Memory) 21, a RAM (Random Access Memory) 22, a
ROM21(記憶手段)は、CPU20が実行するBIOS(Basic Input/Output System)、OS(Operating System)、当該OS上で実行されるドライバなどの固定的データを記憶するとともに、ウォッチドック・タイマ25用の閾値テーブルを記憶している。図3は、ウォッチドック・タイマ用の閾値テーブルを示す図である。この閾値テーブルには、図3に示すように、POSターミナル1の起動に際して実行される予め定められた複数のテストのテスト番号に対し、その複数のテストの実行に要する時間より長い時間が異常検出用の閾値(タイムアウト時間)として対応付けて格納されている。
The ROM 21 (storage means) stores fixed data such as a basic input / output system (BIOS) executed by the
本実施の形態では、閾値テーブルには、POSターミナル1の電源がONされた直後から、オペレータ表示器6に初期画面が表示されるまでに実行される複数のテストのテスト番号:1,2に対し、閾値:3秒が対応付けられている。また、閾値テーブルには、オペレータ表示器6に初期画面が表示されてから、OSの立ち上げ開始までに実行される複数のテストのテスト番号:3−18に対し、閾値:30秒が対応付けられている。さらに、閾値テーブルには、OSの立ち上げが開始されてから、OSの立ち上げが完了するまでに実行される複数のテストのテスト番号:19−150に対し、閾値:180秒が対応付けられている。
In the present embodiment, the threshold value table includes test numbers: 1 and 2 for a plurality of tests executed immediately after the POS terminal 1 is turned on until the initial screen is displayed on the
RAM22は、販売登録商品の売上データを登録処理するための記憶部として機能するとともに、商品にたとえば商品コード、価格などの商品情報を対応付けた商品テーブルを記憶し、さらに、カラー写真やカラー動画による複数のコマーシャル情報や、「いらっしゃいませ」などの顧客案内情報を記憶している。商品テーブル、コマーシャル情報、および顧客案内情報については、商品価格の変化に応じて、あるいは季節の変化や新商品販売などに応じて、あるいは扱い商品の種別などに応じて、適宜に変更される。
The
時計回路23は、現在の日時を計時する。通信インタフェース24は、LAN(Local Area Network)などの通信回線を通じて接続されるホストコンピュータ(不図示)とのデータ通信を制御する。
The
ウォッチドッグ・タイマ25(カウント手段)は、テストの実行に際し、上記閾値テーブル内の各閾値のうち、実行される複数のテストのテスト番号に対応付けられた閾値が設定され、かつ同複数のテストの実行に伴い動作してタイムカウントし、タイムカウントした値が上記設定された閾値に達した場合に当該POSターミナル1のハードウェア(H/W)をリセットして再起動せしめる。これにより、POSターミナル1のレジ係が当該POSターミナル1の電源をONした後、POSターミナル1に異常が発生してロック状態になったとしても、ロック状態のまま放置されることがなくなるので、レジ係がPOSターミナル1から一旦離れたとしても、POSターミナル1に戻ってきたときには、直ちにPOSターミナル1を使用することができる。なお、本実施の形態では、ウォッチドック・タイマ25によりカウント手段を実現しているが、これに限定するものではなく、CPU20がROM21に記憶されているプログラムに従うことによりカウント手段を実現することも可能である。
When the test is executed, the watchdog timer 25 (counting unit) sets a threshold value associated with the test number of a plurality of tests to be executed among the threshold values in the threshold value table, and the plurality of tests. When the time count reaches the set threshold value, the hardware (H / W) of the POS terminal 1 is reset and restarted. As a result, even after the cashier of the POS terminal 1 turns on the power of the POS terminal 1, even if the POS terminal 1 becomes abnormal and becomes locked, it will not be left in the locked state. Even if the cashier leaves the POS terminal 1, the POS terminal 1 can be used immediately when returning to the POS terminal 1. In the present embodiment, the count means is realized by the
I/O(Input/Output)ポート26は、上記モードスイッチ4から発せられるモード選択信号の取込み、上記ドロワ2の引出し2aを自動開放させるためのドロワ開放装置2bに対する駆動信号の出力などを行なう。
An I / O (Input / Output) port 26 takes in a mode selection signal issued from the
キーボードコントローラ27は、キーボード3の操作に応じたキー信号を取込む。カードリーダコントローラ28は、上記カードリーダ5を制御する。表示コントローラ29は、上記オペレータ表示器6を駆動制御する。表示コントローラ30は、上記客面表示器7を駆動制御する。電子ジャーナルコントローラ31は、上記電子ジャーナル8を駆動制御する。プリンタコントローラ32は、上記プリンタ9を駆動制御し、CPU20から与えられる印字データに基づくレシート印字及びジャーナル印字を行わせる。スキャナコントローラ33は、上記コードスキャナ10で読取られたコード信号を取込む。
The
次に、POSターミナル1のROM21に記憶されているBIOSおよびOS上で実行されるプログラムであるドライバがCPU20に実行させる機能のうち、本実施の形態のPOSターミナル1が備える特長的な機能について説明する。
Next, of the functions stored in the
図4は、POSターミナルの機能構成を示すブロック図である。図4に示すように、POSターミナル1は、BIOSおよびOS上で実行されるドライバに従うことにより、設定部401、実行部402、停止部403などを実現する。
FIG. 4 is a block diagram showing a functional configuration of the POS terminal. As shown in FIG. 4, the POS terminal 1 implements a
設定部401は、CPU20がBIOSに従うことにより実現される機能であって、テストの実行に際し、上記閾値テーブル内の各閾値のうち、実行する複数のテストのテスト番号と対応付けられた閾値をウォッチドック・タイマ25に設定するものである。
The
実行部402は、テストを実行するものである。本実施の形態では、実行部402は、POSターミナル1の電源がONされてからOSの立ち上げが開始されるまでは、CPU20がBIOSに従うことにより実現される機能であり、OSの立ち上げが開始されてからOSが立ち上げられるまでは、CPU20がOSに従うことにより実現される機能である。
The
停止部403は、CPU20がBIOSに従うことにより実現される機能であり、複数のテストが完了した際にウォッチドック・タイマ25に停止信号を出力して、ウォッチドック・タイマ25を停止するものである。なお、OSの立ち上げが完了した後は、CPU20がOS上で実行されるドライバに従うことにより停止部403が実現されるものとする。
The
ここで、図5を用いて、設定部401、実行部402、および停止部403の具体的な機能について説明する。図5は、ウォッチドック・タイマの動作を説明するための図である。
Here, specific functions of the
まず、POSターミナル1の電源がONされた直後、設定部401は、閾値テーブルから、テスト番号:1,2と対応付けられた閾値(タイムアウト時間):3秒を読み出し、読み出した閾値:3秒をウォッチドック・タイマ25に設定する。閾値:3秒が設定されると、ウォッチドック・タイマ25は、POSターミナル1の電源がONされた直後から、オペレータ表示器6に初期画面が表示されるまでの1回目の動作(タイムカウント)を開始する。そして、1回目の動作の間にタイムカウントした値が閾値:3秒に達した場合、ウォッチドック・タイマ25は、POSターミナル1のハードウェアをリセットして再起動する。一方、ウォッチドック・タイマ25によりタイムカウントした値が閾値:3秒に達する前に、テスト番号:1,2のテストが完了した場合、停止部403がウォッチドック・タイマ25によるタイムカウントを停止するとともに、設定された閾値:3秒をクリアする。
First, immediately after the power of the POS terminal 1 is turned on, the
ここで、POSターミナル1の電源がONされた直後から、オペレータ表示器6に初期画面が表示されるまでの動作をウォッチドック・タイマ25の1回目の動作としたのは、オペレータ表示器6に初期画面が表示されない状態でロック状態に入ってしまうと、ユーザが自らPOSターミナル1をリセットしてしまう可能性があるからである。そして、本実施の形態のように、POSターミナル1の電源がONされた直後から、オペレータ表示器6に初期画面が表示されるまでの間に異常が検出された場合に、ウォッチドック・タイマ25がPOSターミナル1のハードウェアを直ちにリセットして再起動することにより、ユーザによるPOSターミナル1のリセットを待つことなく、オペレータ表示器6への初期画面の表示を正常かつ速く実行することができる。
Here, the first operation of the
次に、テスト番号:1,2のテストが完了した場合、設定部401は、閾値テーブルから、テスト番号:3−18と対応付けられた閾値(タイムアウト時間):30秒を読み出し、読み出した閾値:30秒をウォッチドック・タイマ25に設定する。閾値:30秒が設定されると、ウォッチドック・タイマ25は、オペレータ表示器6に初期画面が表示されてから、OSの立ち上げ開始までに実行されるまでの2回目の動作(タイムカウント)を開始する。そして、2回目の動作の間に、ウォッチドック・タイマ25によりタイムカウントした値が閾値:30秒に達した場合、ウォッチドック・タイマ25が、POSターミナル1のハードウェアをリセットして再起動する。一方、ウォッチドック・タイマ25によりタイムカウントした値が閾値:30秒に達する前に、テスト番号:3−18のテストが完了した場合、停止部403がウォッチドック・タイマ25によるタイムカウントを停止するとともに、設定された閾値:30秒をクリアする。
Next, when the test of test numbers: 1 and 2 is completed, the
ここで、オペレータ表示器6に初期画面が表示されてから、OSの立ち上げ開始までの動作をウォッチドック・タイマ25の2回目の動作としたのは、仮に、1回目の動作と2回目の動作とを一つの動作とすると、POSターミナル1の電源がONされてから初期画面が表示される前に異常が発生した場合に、少なくとも33秒間ロック状態が続くことになり、その間にユーザが自らPOSターミナル1をリセットしてしまうからである。
Here, the operation from when the initial screen is displayed on the
次に、テスト番号:3−18のテストが完了した場合、設定部401は、閾値テーブルから、テスト番号:19−150と対応付けられた閾値(タイムアウト時間):180秒を読み出し、読み出した閾値:180秒をウォッチドック・タイマ25に設定する。閾値180秒が設定されると、ウォッチドック・タイマ25は、OSの立ち上げ開始から、OSの立ち上げ後までの3回目の動作(タイムカウント)を開始する。そして、3回目の動作の間に、ウォッチドック・タイマ25によりタイムカウントした値が閾値:180秒に達した場合、ウォッチドック・タイマ25が、POSターミナル1のハードウェアをリセットして再起動する。一方、ウォッチドック・タイマ25によりタイムカウントした値が閾値:180秒に達する前に、テスト番号:19−150のテストが完了した場合、停止部403がウォッチドック・タイマ25によるタイムカウントを停止するとともに、設定された閾値:180秒をクリアする。
Next, when the test of test number: 3-18 is completed, the
ここで、OSの立ち上げ開始からOSの立ち上げ後までの動作をウォッチドック・タイマ25の3回目の動作としたのは、OSの立ち上げの間に行われるテストでは問題が生じ易く、OSの立ち上げ開始前のウォッチドック・タイマ25の1,2回目の動作と、3回目の動作とを1つの動作とすると、問題が生じた場合に、ロック状態が続く時間が長くなるとともに、OSの立ち上げ開始前のテストにおいて問題が生じたのか、OSの立ち上げが開始された後に問題が生じたのかの特定が困難になるからである。
Here, the operation from the start of the OS startup to the time after the OS startup is set as the third operation of the
なお、本実施の形態では、上述したように、ウォッチドック・タイマ25の動作を3つに分けているが、ウォッチドック・タイマ25の動作を複数のテストごとに分けるものであれば、これに限定するものではない。
In this embodiment, as described above, the operation of the
次に、図6を用いて、POSターミナル1の起動に際して実行される処理の流れについて説明する。図6は、POSターミナルの起動に際して実行される処理の流れを示すフローチャートである。 Next, the flow of processing executed when the POS terminal 1 is started will be described with reference to FIG. FIG. 6 is a flowchart showing a flow of processing executed when the POS terminal is activated.
まず、POSターミナル1の電源がON、ウォッチドック・タイマ25によりハードウェアがリセット、テスト番号1,2のテストが完了、テスト番号3−18のテストが完了、またはテスト番号19−150のテストが完了すると、設定部401は、テスト番号1,2のテスト、テスト番号3−18のテスト、およびテスト番号19−150のテストのうち、実行していないテストがあるかを判断する(ステップS601)。本実施の形態では、設定部401は、既に実行したテスト番号をRAM22に登録しておき、閾値テーブルに含まれるテスト番号が全てRAM22に登録されているか否かにより、実行していないテストがあるか否かを判断するものとする。なお、ウォッチドック・タイマ25によりハードウェアがリセットされた場合、設定部401は、RAM22に登録したテスト番号を全てクリアするものとする。
First, the power of the POS terminal 1 is turned ON, the hardware is reset by the
そして、閾値テーブルに含まれるテスト番号が全てRAM22に登録されており、実行していないテストがないと判断した場合(ステップS601:No)、テストを完了する。一方、設定部401は、閾値テーブルに含まれるテスト番号が全てRAM22に登録されておらず、実行していない複数のテストがあると判断した場合(ステップS601:Yes)、閾値テーブルから、RAM22に登録されていないテスト番号(実行していない複数のテストのテスト番号)と対応付けられた閾値を読み出し、読み出した閾値をウォッチドック・タイマ25に設定する(ステップS602)。ウォッチドック・タイマ25に閾値が設定されると、実行部402が、複数のテストの実行を開始するとともに(ステップS603)、ウォッチドック・タイマ25が、動作(タイムカウント)を開始する(ステップS604)。
If all the test numbers included in the threshold value table are registered in the
テストが実行されている間、停止部403は、テストが完了したか否かを監視する(ステップS605)。そして、ウォッチドック・タイマ25によりタイムカウントされた値が設定された閾値に達する前に、テストが完了した場合(ステップS605:Yes)、停止部403は、ウォッチドック・タイマ25の動作を停止するとともに、設定された閾値をクリアする(ステップS606)。
While the test is being executed, the stopping
さらに、テストが実行されている間(ステップS605:No)、ウォッチドック・タイマ25は、タイムカウントした値が設定された閾値に達したか否か(タイムアップしたか否か)を判断する(ステップS607)。そして、タイムアップしていないと判断した場合(ステップS607:No)、ウォッチドック・タイマ25は、タイムカウントを継続する(ステップS604)。一方、タイムカウントした値が閾値に達したと判断した場合(ステップS607:Yes)、ウォッチドック・タイマ25は、ハードウェアをリセットする(ステップS608)。
Furthermore, while the test is being executed (step S605: No), the
なお、本実施の形態のPOSターミナル1で実行される各種のプログラムは、ROM21に予め組み込まれて提供されるが、これに限定するものではない。
Various programs executed in the POS terminal 1 of the present embodiment are provided by being incorporated in the
本実施の形態のPOSターミナル1で実行される各種のプログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。 Various programs executed in the POS terminal 1 of the present embodiment are files in an installable or executable format, such as CD-ROM, flexible disk (FD), CD-R, DVD (Digital Versatile Disk), and the like. It may be configured to be recorded on a computer-readable recording medium.
さらに、本実施の形態のPOSターミナル1で実行される各種のプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、本実施の形態のPOSターミナル1で実行される各種のプログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。 Furthermore, various programs executed in the POS terminal 1 of the present embodiment may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network. Further, various programs executed in the POS terminal 1 of the present embodiment may be configured to be provided or distributed via a network such as the Internet.
このように本実施の形態にかかるPOSターミナル1によれば、設定部401が、複数のテストごとに、複数のテストの実行に要する時間より長い時間を異常検出用の閾値としてウォッチドック・タイマ25に設定し、ウォッチドック・タイマ25が、複数のテストの実行に伴い動作してタイムカウントし、タイムカウントした値が設定部401により設定された閾値に達した場合に、ハードウェアをリセットして再起動し、停止部403が、複数のテストが完了した際にウォッチドック・タイマ25によるタイムカウントを停止することにより、テストごとにウォッチドック・タイマ25の開始・停止を行う必要がなくなるため、ハードウェアの起動時に実行されるテストによる処理時間のオーバーヘッドを低減することができる。
As described above, according to the POS terminal 1 according to the present embodiment, the
1 POSターミナル
20 CPU
21 ROM21
25 ウォッチドック・タイマ
401 設定部
403 停止部
1
21 ROM21
25
Claims (6)
複数の前記テストごとに、前記複数のテストの実行に要する時間より長い時間を異常検出用の閾値として設定する設定手段と、
前記複数のテストの実行に伴い動作してタイムカウントし、タイムカウントした値が前記設定手段により設定された前記閾値に達した場合に、ハードウェアをリセットして再起動するカウント手段と、
前記複数のテストが完了した際に前記カウント手段によるタイムカウントを停止する停止手段と、
を備えたことを特徴とする電子機器。 An electronic device that executes a predetermined test when starting up the hardware and enters normal operation after the completion of the test,
For each of the plurality of tests, setting means for setting a time longer than the time required for execution of the plurality of tests as a threshold for abnormality detection;
Counting means that resets and restarts the hardware when the time count reaches the threshold value set by the setting means, and operates in accordance with the execution of the plurality of tests.
Stop means for stopping time counting by the counting means when the plurality of tests are completed;
An electronic device characterized by comprising:
前記設定手段は、前記記憶手段に記憶された前記閾値テーブルから、実行する前記複数のテストの前記テスト番号に対応付けられた前記閾値を読み出し、読み出した前記閾値を設定することを特徴とする請求項1または2に記載の電子機器。 Storage means for storing a threshold table in which the threshold value is associated with a test number of the plurality of tests, which is a time longer than a time required for execution of the plurality of tests;
The setting means reads out the threshold value associated with the test number of the plurality of tests to be executed from the threshold value table stored in the storage means, and sets the read threshold value. Item 3. The electronic device according to Item 1 or 2.
複数の前記テストごとに、前記複数のテストの実行に要する時間より長い時間を異常検出用の閾値として設定する設定手段と、
前記複数のテストの実行に伴い動作してタイムカウントし、タイムカウントした値が前記設定手段により設定された前記閾値に達した場合に、ハードウェアをリセットして再起動するカウント手段と、
前記複数のテストが完了した際に前記カウント手段によるタイムカウントを停止する停止手段と、
として機能させるためのプログラム。 A computer that executes a predetermined test at the time of starting up the hardware and controls an electronic device that enters normal operation after the completion of the test;
For each of the plurality of tests, setting means for setting a time longer than the time required for execution of the plurality of tests as a threshold for abnormality detection;
Counting means that resets and restarts the hardware when the time count reaches the threshold value set by the setting means, and operates in accordance with the execution of the plurality of tests.
Stop means for stopping time counting by the counting means when the plurality of tests are completed;
Program to function as.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009232758A JP2011081566A (en) | 2009-10-06 | 2009-10-06 | Electronic apparatus and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009232758A JP2011081566A (en) | 2009-10-06 | 2009-10-06 | Electronic apparatus and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2011081566A true JP2011081566A (en) | 2011-04-21 |
Family
ID=44075561
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009232758A Pending JP2011081566A (en) | 2009-10-06 | 2009-10-06 | Electronic apparatus and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2011081566A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013061841A (en) * | 2011-09-14 | 2013-04-04 | Fujitsu Ltd | Information processing device and test method for information processing device |
-
2009
- 2009-10-06 JP JP2009232758A patent/JP2011081566A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013061841A (en) * | 2011-09-14 | 2013-04-04 | Fujitsu Ltd | Information processing device and test method for information processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8983862B2 (en) | Initiating a service call for a hardware malfunction in a point of sale system | |
JP2009093290A (en) | Commodity sales processor | |
US20230110985A1 (en) | Commodity reading device and commodity reading method | |
JP2011081566A (en) | Electronic apparatus and program | |
JP2009099045A (en) | Merchandise sales processor | |
JP2008140072A (en) | Electronic device | |
JP5367032B2 (en) | Electronic device and method for driving electronic device | |
JP7449113B2 (en) | Sales data processing device and program | |
JPWO2014013655A1 (en) | Management device, power supply system, management method, and program | |
JP2012238166A (en) | Information processing device and program | |
US20060153065A1 (en) | Point-of-sales terminal, failure information display method and failure information display program | |
JP6920800B2 (en) | Payment device, program and logging method | |
JP2011039963A (en) | Electronic equipment, commodity sales data registration device, and control program of electronic equipment | |
JP2016076193A (en) | Information processing unit and program | |
JP5379764B2 (en) | Product sales data processing apparatus and program | |
US11243841B2 (en) | Sales data processing apparatus and method | |
JP2012059166A (en) | Merchandise data processor and program for the same | |
JP4910030B2 (en) | Electronics | |
JP4825659B2 (en) | Product registration processing device | |
JP2009176035A (en) | Merchandise sales processor | |
US20240095708A1 (en) | Payment device | |
JP2011081734A (en) | Power supply controller, electronic equipment, and power supply control program | |
JP6964480B2 (en) | Product sales data processing equipment, input equipment and programs | |
JP2013054632A (en) | Electronic device and program | |
JP4922902B2 (en) | Merchandise sales processing apparatus and control method thereof |