JP2011081566A - Electronic apparatus and program - Google Patents

Electronic apparatus and program Download PDF

Info

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
Application number
JP2009232758A
Other languages
Japanese (ja)
Inventor
Masahito Watabe
雅人 渡部
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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2009232758A priority Critical patent/JP2011081566A/en
Publication of JP2011081566A publication Critical patent/JP2011081566A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electronic apparatus and a program capable of reducing an overhead of a processing time caused by a test at the start of hardware. <P>SOLUTION: A setting unit 401 sets a time longer than a time required for the execution of a plurality of tests to a watchdog timer 25 for a plurality of tests as a threshold for failure detection. The watchdog timer 25 is operated accompanied by the execution of the plurality of tests to perform time-counting, and resets hardware to restart it when a time-counted value reaches a threshold set by the setting unit 401. Since a stop unit 403 stops time-counting by the watchdog timer 25 when the plurality of tests are completed, the watchdog timer 25 is not required to be started and stopped at each test, so that the overhead of a processing time caused by a test executed at the start of hardware can be reduced. <P>COPYRIGHT: (C)2011,JPO&INPIT

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.

図1は、POSターミナルの外観図である。FIG. 1 is an external view of a POS terminal. 図2は、POSターミナルの制御回路を示す図である。FIG. 2 is a diagram showing a control circuit of the POS terminal. 図3は、ウォッチドック・タイマ用の閾値テーブルを示す図である。FIG. 3 is a diagram showing a threshold table for the watchdog timer. 図4は、POSターミナルの機能構成を示すブロック図である。FIG. 4 is a block diagram showing a functional configuration of the POS terminal. 図5は、ウォッチドック・タイマの動作を説明するための図である。FIG. 5 is a diagram for explaining the operation of the watchdog timer. 図6は、POSターミナルの起動に際して実行される処理の流れを示すフローチャートである。FIG. 6 is a flowchart showing a flow of processing executed when the POS terminal 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 drawer 2 for storing cash or the like, and controls opening and closing of a drawer 2a of the drawer 2.

POSターミナル1は、現金等を収容するためのドロワ2の上に載置されており、このドロワ2の引出し2aの開閉を制御する。   The POS terminal 1 is placed on a drawer 2 for storing cash or the like, and controls opening and closing of a drawer 2a of the drawer 2.

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 keyboard 3, a mode switch 4, a card reader 5, and an operator display (color liquid crystal display) 6 on the front side, and a customer display on the back side so as to face the customer. A (color liquid crystal display) 7 is provided. The main body of the POS terminal 1 is provided with an electronic journal 8 for storing a journal in an electronic medium, and a printer 9 for printing a receipt and a journal. Further, a code scanner 10 is derived from the POS terminal 1 as product information input means. The code scanner 10 has a function of reading a two-dimensional code or a barcode printed on a product label attached to a product.

キーボード3は、預かり金額などを置数するための置数キー、1取引として販売登録された商品の合計出力を指示する小計キー、1取引の代金を現金決済することを宣言して当該取引の締めを指示する預/現計キー、置数データのクリアを指示するクリアキー等を備えている。   The keyboard 3 is a numeric key for entering a deposit amount, etc., 1 subtotal key for instructing the total output of products registered for sale as a transaction, and 1 declaring that the transaction will be settled in cash. A deposit / cash key for instructing tightening, a clear key for instructing clearing of numeric data, and the like are provided.

モードスイッチ4は、「登録」,「点検」,「精算」,「設定」などの各種業務モードを選択するためのスイッチで、専用の鍵で操作される。因みに、「登録」とは、商品情報入力手段により入力された商品情報に基づいて商品の価格を加算してその売上データを記憶部に販売登録処理(商品登録手段)し、商品販売登録の終了が宣言された1取引の代金を精算してレシートを発行(登録締め手段)する業務のモードである。「点検」とは、記憶部に登録処理された各商品の売上データを集計しレポート出力する業務のモードである。「精算」とは、「点検」と同様に記憶部に登録処理された各商品の売上データを集計してレポート出力した後、記憶部の売上データをクリアする業務のモードである。「設定」とは、各種業務を実行する上で必要なデータを予め記憶部に設定するための業務である。   The mode switch 4 is a switch for selecting various business modes such as “registration”, “inspection”, “settlement”, “setting”, and is operated with a dedicated key. By the way, “registration” means adding the price of the product based on the product information input by the product information input means, selling the sales data in the storage unit (product registration means), and ending the product sales registration Is a mode of business in which a payment for one transaction declared is issued and a receipt is issued (registration closing means). “Check” is a business mode in which sales data of each product registered in the storage unit is aggregated and output as a report. “Checkout” is a mode of business in which the sales data of the storage unit is cleared after the sales data of each product registered in the storage unit is aggregated and output as a report in the same manner as “check”. “Setting” is a task for setting data necessary for executing various tasks in the storage unit in advance.

カードリーダ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 operator display 6 displays the product name and price of the product registered for sale by the product registration means, the total amount of one transaction, the deposit amount, the change amount, etc. by the registration closing means when the end of the product sales registration is declared.

客面表示器7は、カラー写真やカラー動画によるコマーシャル情報、たとえば『いらっしゃいませ』などの顧客案内情報、取引明細(商品名、単価、個数)、取引結果(合計金額,預かり金額、釣り銭額)等を表示する。   The customer display 7 has commercial information such as color photographs and color videos, for example, customer information such as “Islai Sase”, transaction details (product name, unit price, number), transaction results (total amount, deposit amount, change amount) Etc. are displayed.

次に、図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 clock circuit 23, a communication interface 24, a watch. A dog timer (WDT) 25, an I / O (Input / Output) port 26, a keyboard controller 27, a card reader controller 28, display controllers 29 and 30, an electronic journal controller 31, a printer controller 32, and a scanner controller 33 are connected. ing.

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 CPU 20, an operating system (OS), and a driver executed on the OS, and for the watchdog timer 25. The threshold table is stored. FIG. 3 is a diagram showing a threshold table for the watchdog timer. In this threshold value table, as shown in FIG. 3, a time longer than the time required for executing the plurality of tests is detected for the test numbers of the plurality of predetermined tests executed when the POS terminal 1 is started. Are stored in association with each other as a threshold (timeout time).

本実施の形態では、閾値テーブルには、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 operator display 6. On the other hand, the threshold value: 3 seconds is associated. Further, in the threshold value table, the threshold value: 30 seconds is associated with the test numbers: 3-18 of a plurality of tests executed from when the initial screen is displayed on the operator display 6 until the start of OS startup. It has been. Further, in the threshold value table, a threshold value: 180 seconds is associated with test numbers: 19 to 150 of a plurality of tests executed after the OS startup is started until the OS startup is completed. ing.

RAM22は、販売登録商品の売上データを登録処理するための記憶部として機能するとともに、商品にたとえば商品コード、価格などの商品情報を対応付けた商品テーブルを記憶し、さらに、カラー写真やカラー動画による複数のコマーシャル情報や、「いらっしゃいませ」などの顧客案内情報を記憶している。商品テーブル、コマーシャル情報、および顧客案内情報については、商品価格の変化に応じて、あるいは季節の変化や新商品販売などに応じて、あるいは扱い商品の種別などに応じて、適宜に変更される。   The RAM 22 functions as a storage unit for registering sales data of sales registered products, and stores a product table in which product information such as product codes and prices is associated with products, and further includes color photographs and color moving images. A number of commercial information and customer guide information such as “I welcome you” are stored. The product table, commercial information, and customer guide information are appropriately changed according to changes in product prices, seasonal changes, new product sales, etc., or types of products handled.

時計回路23は、現在の日時を計時する。通信インタフェース24は、LAN(Local Area Network)などの通信回線を通じて接続されるホストコンピュータ(不図示)とのデータ通信を制御する。   The clock circuit 23 measures the current date and time. The communication interface 24 controls data communication with a host computer (not shown) connected through a communication line such as a LAN (Local Area Network).

ウォッチドッグ・タイマ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 watchdog timer 25. However, the present invention is not limited to this, and the count means may be realized by the CPU 20 following the program stored in the ROM 21. Is possible.

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 mode switch 4, outputs a drive signal to the drawer opening device 2b for automatically opening the drawer 2a of the drawer 2.

キーボードコントローラ27は、キーボード3の操作に応じたキー信号を取込む。カードリーダコントローラ28は、上記カードリーダ5を制御する。表示コントローラ29は、上記オペレータ表示器6を駆動制御する。表示コントローラ30は、上記客面表示器7を駆動制御する。電子ジャーナルコントローラ31は、上記電子ジャーナル8を駆動制御する。プリンタコントローラ32は、上記プリンタ9を駆動制御し、CPU20から与えられる印字データに基づくレシート印字及びジャーナル印字を行わせる。スキャナコントローラ33は、上記コードスキャナ10で読取られたコード信号を取込む。   The keyboard controller 27 takes in key signals according to the operation of the keyboard 3. The card reader controller 28 controls the card reader 5. The display controller 29 drives and controls the operator indicator 6. The display controller 30 controls driving of the customer surface display 7. The electronic journal controller 31 drives and controls the electronic journal 8. The printer controller 32 drives and controls the printer 9 to perform receipt printing and journal printing based on print data given from the CPU 20. The scanner controller 33 takes in the code signal read by the code scanner 10.

次に、POSターミナル1のROM21に記憶されているBIOSおよびOS上で実行されるプログラムであるドライバがCPU20に実行させる機能のうち、本実施の形態のPOSターミナル1が備える特長的な機能について説明する。   Next, of the functions stored in the ROM 21 of the POS terminal 1 and the driver that is the program executed on the OS, the characteristic functions of the POS terminal 1 according to the present embodiment are explained. To do.

図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 setting unit 401, an execution unit 402, a stop unit 403, and the like by following drivers that are executed on the BIOS and OS.

設定部401は、CPU20がBIOSに従うことにより実現される機能であって、テストの実行に際し、上記閾値テーブル内の各閾値のうち、実行する複数のテストのテスト番号と対応付けられた閾値をウォッチドック・タイマ25に設定するものである。   The setting unit 401 is a function realized when the CPU 20 complies with the BIOS. When executing a test, the setting unit 401 watches a threshold associated with test numbers of a plurality of tests to be executed among the thresholds in the threshold table. This is set in the dock timer 25.

実行部402は、テストを実行するものである。本実施の形態では、実行部402は、POSターミナル1の電源がONされてからOSの立ち上げが開始されるまでは、CPU20がBIOSに従うことにより実現される機能であり、OSの立ち上げが開始されてからOSが立ち上げられるまでは、CPU20がOSに従うことにより実現される機能である。   The execution unit 402 executes a test. In the present embodiment, the execution unit 402 is a function realized by the CPU 20 following the BIOS from when the power of the POS terminal 1 is turned on until the start of the OS is started. This function is realized by the CPU 20 following the OS from the start until the OS is started up.

停止部403は、CPU20がBIOSに従うことにより実現される機能であり、複数のテストが完了した際にウォッチドック・タイマ25に停止信号を出力して、ウォッチドック・タイマ25を停止するものである。なお、OSの立ち上げが完了した後は、CPU20がOS上で実行されるドライバに従うことにより停止部403が実現されるものとする。   The stop unit 403 is a function realized by the CPU 20 following the BIOS, and outputs a stop signal to the watchdog timer 25 when a plurality of tests are completed, thereby stopping the watchdog timer 25. . Note that after the startup of the OS is completed, the stop unit 403 is realized by the CPU 20 following the driver executed on the OS.

ここで、図5を用いて、設定部401、実行部402、および停止部403の具体的な機能について説明する。図5は、ウォッチドック・タイマの動作を説明するための図である。   Here, specific functions of the setting unit 401, the execution unit 402, and the stop unit 403 will be described with reference to FIG. FIG. 5 is a diagram for explaining the operation of the watchdog timer.

まず、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 setting unit 401 reads out the threshold (timeout time): 3 seconds associated with the test numbers: 1, 2 from the threshold table, and the read threshold: 3 seconds. Is set in the watchdog timer 25. When the threshold value is set to 3 seconds, the watchdog timer 25 performs the first operation (time count) from immediately after the POS terminal 1 is turned on until the initial screen is displayed on the operator display 6. To start. When the value counted during the first operation reaches the threshold value: 3 seconds, the watchdog timer 25 resets the hardware of the POS terminal 1 and restarts it. On the other hand, when the test number: 1 or 2 is completed before the value counted by the watchdog timer 25 reaches the threshold value: 3 seconds, the stop unit 403 stops the time count by the watchdog timer 25. At the same time, the set threshold value: 3 seconds is cleared.

ここで、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 watchdog timer 25 from the time the POS terminal 1 is turned on until the initial screen is displayed on the operator display 6 is This is because the user may reset the POS terminal 1 by himself if the locked state is entered without the initial screen being displayed. If an abnormality is detected immediately after the POS terminal 1 is turned on and before the initial screen is displayed on the operator display 6 as in this embodiment, the watchdog timer 25 is detected. By immediately resetting and restarting the hardware of the POS terminal 1, the initial screen can be displayed on the operator display 6 normally and quickly without waiting for the user to reset the POS terminal 1.

次に、テスト番号: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 setting unit 401 reads out the threshold (timeout time): 30 seconds associated with the test number: 3-18 from the threshold table, and the read threshold : Set 30 seconds in the watchdog timer 25. When the threshold value is set to 30 seconds, the watchdog timer 25 performs the second operation (time count) from when the initial screen is displayed on the operator display 6 until the start of the OS startup. To start. When the value counted by the watchdog timer 25 reaches the threshold value: 30 seconds during the second operation, the watchdog timer 25 resets the hardware of the POS terminal 1 and restarts. . On the other hand, when the test number: 3-18 is completed before the value counted by the watchdog timer 25 reaches the threshold value: 30 seconds, the stop unit 403 stops the time count by the watchdog timer 25. At the same time, the set threshold value: 30 seconds is cleared.

ここで、オペレータ表示器6に初期画面が表示されてから、OSの立ち上げ開始までの動作をウォッチドック・タイマ25の2回目の動作としたのは、仮に、1回目の動作と2回目の動作とを一つの動作とすると、POSターミナル1の電源がONされてから初期画面が表示される前に異常が発生した場合に、少なくとも33秒間ロック状態が続くことになり、その間にユーザが自らPOSターミナル1をリセットしてしまうからである。   Here, the operation from when the initial screen is displayed on the operator display 6 until the start of the OS startup is the second operation of the watchdog timer 25. If an abnormality occurs before the initial screen is displayed after the power of the POS terminal 1 is turned on, the locked state continues for at least 33 seconds. This is because the POS terminal 1 is reset.

次に、テスト番号: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 setting unit 401 reads out the threshold value (timeout time): 180 seconds associated with the test number: 19-150 from the threshold value table, and reads the read threshold value. : 180 seconds is set in the watchdog timer 25. When the threshold value of 180 seconds is set, the watchdog timer 25 starts the third operation (time count) from the start of the OS startup to the time after the OS startup. When the value counted by the watchdog timer 25 reaches the threshold value: 180 seconds during the third operation, the watchdog timer 25 resets the hardware of the POS terminal 1 and restarts. . On the other hand, when the test number: 19-150 is completed before the value counted by the watchdog timer 25 reaches the threshold value: 180 seconds, the stop unit 403 stops the time count by the watchdog timer 25. At the same time, the set threshold value: 180 seconds is cleared.

ここで、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 watchdog timer 25. The test performed during the OS startup is likely to cause problems. If the first and third operations of the watchdog timer 25 before the start of the start-up of the first and second operations are made one operation, when a problem occurs, the time that the lock state continues becomes longer and the OS This is because it becomes difficult to identify whether a problem has occurred in the test before starting the startup of the OS, or whether a problem has occurred after starting the startup of the OS.

なお、本実施の形態では、上述したように、ウォッチドック・タイマ25の動作を3つに分けているが、ウォッチドック・タイマ25の動作を複数のテストごとに分けるものであれば、これに限定するものではない。   In this embodiment, as described above, the operation of the watchdog timer 25 is divided into three. However, if the operation of the watchdog timer 25 is divided for each of a plurality of tests, It is not limited.

次に、図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 watchdog timer 25, the test numbers 1 and 2 are completed, the test number 3-18 is completed, or the test number 19-150 is Upon completion, the setting unit 401 determines whether there is an unexecuted test among the tests with test numbers 1 and 2, the test with test numbers 3-18, and the test with test numbers 19-150 (step S601). . In the present embodiment, the setting unit 401 registers the test numbers that have already been executed in the RAM 22, and there are tests that are not executed depending on whether or not all the test numbers included in the threshold value table are registered in the RAM 22. It shall be judged whether or not. When the hardware is reset by the watchdog timer 25, the setting unit 401 clears all the test numbers registered in the RAM 22.

そして、閾値テーブルに含まれるテスト番号が全て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 RAM 22 and it is determined that there is no test not executed (step S601: No), the test is completed. On the other hand, when the setting unit 401 determines that all the test numbers included in the threshold table are not registered in the RAM 22 and there are a plurality of tests that have not been executed (step S601: Yes), the setting unit 401 stores the test numbers in the RAM 22 from the threshold table. A threshold value associated with an unregistered test number (test numbers of a plurality of tests not executed) is read, and the read threshold value is set in the watchdog timer 25 (step S602). When a threshold is set in the watchdog timer 25, the execution unit 402 starts executing a plurality of tests (step S603), and the watchdog timer 25 starts an operation (time count) (step S604). ).

テストが実行されている間、停止部403は、テストが完了したか否かを監視する(ステップS605)。そして、ウォッチドック・タイマ25によりタイムカウントされた値が設定された閾値に達する前に、テストが完了した場合(ステップS605:Yes)、停止部403は、ウォッチドック・タイマ25の動作を停止するとともに、設定された閾値をクリアする(ステップS606)。   While the test is being executed, the stopping unit 403 monitors whether or not the test has been completed (step S605). When the test is completed before the value counted by the watchdog timer 25 reaches the set threshold value (step S605: Yes), the stop unit 403 stops the operation of the watchdog timer 25. At the same time, the set threshold value is cleared (step S606).

さらに、テストが実行されている間(ステップS605:No)、ウォッチドック・タイマ25は、タイムカウントした値が設定された閾値に達したか否か(タイムアップしたか否か)を判断する(ステップS607)。そして、タイムアップしていないと判断した場合(ステップS607:No)、ウォッチドック・タイマ25は、タイムカウントを継続する(ステップS604)。一方、タイムカウントした値が閾値に達したと判断した場合(ステップS607:Yes)、ウォッチドック・タイマ25は、ハードウェアをリセットする(ステップS608)。   Furthermore, while the test is being executed (step S605: No), the watchdog timer 25 determines whether or not the time-counted value has reached a set threshold value (whether or not the time is up) ( Step S607). If it is determined that the time is not up (step S607: No), the watchdog timer 25 continues the time count (step S604). On the other hand, when it is determined that the time counted value has reached the threshold value (step S607: Yes), the watchdog timer 25 resets the hardware (step S608).

なお、本実施の形態のPOSターミナル1で実行される各種のプログラムは、ROM21に予め組み込まれて提供されるが、これに限定するものではない。   Various programs executed in the POS terminal 1 of the present embodiment are provided by being incorporated in the ROM 21 in advance, but the present invention is not limited to this.

本実施の形態の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 setting unit 401 sets, for each of a plurality of tests, the watchdog timer 25 using a time longer than the time required for executing the plurality of tests as an abnormality detection threshold. When the watchdog timer 25 operates in accordance with the execution of a plurality of tests and counts the time, and the time counted value reaches the threshold set by the setting unit 401, the hardware is reset. Since the restarting unit 403 stops the time count by the watchdog timer 25 when a plurality of tests are completed, it is not necessary to start and stop the watchdog timer 25 for each test. It is possible to reduce processing time overhead due to a test executed when the hardware is started.

1 POSターミナル
20 CPU
21 ROM21
25 ウォッチドック・タイマ
401 設定部
403 停止部
1 POS terminal 20 CPU
21 ROM21
25 Watchdog timer 401 Setting unit 403 Stopping unit

特開2008−140072号公報JP 2008-140072 A

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:
前記設定手段は、前記電子機器の電源がONされた直後から表示器に初期画面が表示されるまでに実行される前記複数のテスト、前記初期画面が表示されてからOSの立ち上げ開始までに実行される前記複数のテスト、およびOSの立ち上げが開始されてからOSの立ち上げが完了するまでに実行される前記複数のテストごとに、前記閾値を設定することを特徴とする請求項1に記載の電子機器。   The setting means includes the plurality of tests executed immediately after the electronic device is turned on until the initial screen is displayed on the display, from when the initial screen is displayed to when the OS starts up. The threshold value is set for each of the plurality of tests to be executed and for each of the plurality of tests to be executed from when the OS startup is started to when the OS startup is completed. The electronic device as described in. 前記複数のテストのテスト番号に対し、前記複数のテストの実行に要する時間より長い時間である前記閾値が対応付けられた閾値テーブルを記憶する記憶手段をさらに備え、
前記設定手段は、前記記憶手段に記憶された前記閾値テーブルから、実行する前記複数のテストの前記テスト番号に対応付けられた前記閾値を読み出し、読み出した前記閾値を設定することを特徴とする請求項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.
前記カウント手段は、ウォッチドック・タイマであることを特徴とする請求項1から3のいずれか一に記載の電子機器。   4. The electronic apparatus according to claim 1, wherein the counting unit is a watchdog timer. ハードウェアの起動に際して予め定められたテストを実行し、前記テストの完了後に通常動作に入る電子機器を制御するコンピュータを、
複数の前記テストごとに、前記複数のテストの実行に要する時間より長い時間を異常検出用の閾値として設定する設定手段と、
前記複数のテストの実行に伴い動作してタイムカウントし、タイムカウントした値が前記設定手段により設定された前記閾値に達した場合に、ハードウェアをリセットして再起動するカウント手段と、
前記複数のテストが完了した際に前記カウント手段によるタイムカウントを停止する停止手段と、
として機能させるためのプログラム。
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.
前記設定手段は、前記電子機器の電源がONされた直後から表示器に初期画面が表示されるまでに実行される前記複数のテスト、前記初期画面が表示されてからOSの立ち上げ開始までに実行される前記複数のテスト、およびOSの立ち上げが開始されてからOSの立ち上げが完了するまでに実行される前記複数のテストごとに、前記閾値を設定することを特徴とする請求項5に記載のプログラム。   The setting means includes the plurality of tests executed immediately after the electronic device is turned on until the initial screen is displayed on the display, from when the initial screen is displayed to when the OS starts up. 6. The threshold value is set for each of the plurality of tests to be executed and for each of the plurality of tests to be executed after the OS startup is started until the OS startup is completed. The program described in.
JP2009232758A 2009-10-06 2009-10-06 Electronic apparatus and program Pending JP2011081566A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
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