JP2015102989A - Peripheral device control fault avoidance method, peripheral device control fault avoidance program, processing apparatus, and processing system - Google Patents
Peripheral device control fault avoidance method, peripheral device control fault avoidance program, processing apparatus, and processing system Download PDFInfo
- Publication number
- JP2015102989A JP2015102989A JP2013242608A JP2013242608A JP2015102989A JP 2015102989 A JP2015102989 A JP 2015102989A JP 2013242608 A JP2013242608 A JP 2013242608A JP 2013242608 A JP2013242608 A JP 2013242608A JP 2015102989 A JP2015102989 A JP 2015102989A
- Authority
- JP
- Japan
- Prior art keywords
- peripheral device
- restart
- processing
- scanner
- device control
- 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
Abstract
Description
本発明は、周辺機器制御障害回避方法、周辺機器制御障害回避プログラム、処理装置、及び処理システムに関し、特に、OS起動時の周辺機器の死活状態をチェックする技術に関する。 The present invention relates to a peripheral device control failure avoidance method, a peripheral device control failure avoidance program, a processing apparatus, and a processing system.
銀行や郵便局等の金融機関では、顧客は、現金の預け入れや、引き出し、振込等の取引を行うために、該金融機関の営業店に来店し、来店目的に応じて諸事項を帳票に記入する。営業点の窓口端末では、スキャナが設置されており、スキャナが帳票画像を読み取り、PC(Personal Computer)が文字認識することが行われている。 In a financial institution such as a bank or post office, a customer visits the financial institution's branch in order to conduct cash deposits, withdrawals, transfers, etc., and fills in various items according to the purpose of the visit. To do. A sales point counter terminal is provided with a scanner. The scanner reads a form image, and a PC (Personal Computer) recognizes characters.
これらスキャナやPC等の機器やシステムに障害(エラー)が発生したときに対処する技術が従来から存在している。例えば、特許文献1には、同一のエラーコードが設定回数に到達したとき、障害発生部位の清掃、交換を促す貨幣処理機が記載されている。また、特許文献2には、システムの本体装置にAC電力供給した後でシステム電源投入前に補助電源で動作する本体装置の動作状態を監視し、障害検知手段が本体装置の障害を検知したとき、本体装置へのAC電力供給を一旦停止した後、再びAC電力供給を開始する電源制御技術が記載されている。 Conventionally, there is a technique for dealing with a failure (error) in a device or system such as a scanner or a PC. For example, Patent Document 1 describes a money handling machine that prompts cleaning and replacement of a faulty part when the same error code reaches a set number of times. Japanese Patent Laid-Open No. 2004-268531 monitors the operating state of the main unit operating with the auxiliary power source after supplying AC power to the main unit of the system and before turning on the system power, and when the failure detection means detects a failure of the main unit. A power supply control technique is described in which AC power supply to the main device is temporarily stopped and then AC power supply is started again.
また、PCで使用されるOS(Operations System)は、WIA(Windows(登録商標) Image Acquisition)モジュールが含まれており、起動時にメモリに常駐することにより、WIA対応のデジタルカメラやスキャナ等の周辺機器をパソコンに接続すると、パソコンが周辺機器を自動的に認識し、所定のフォルダに画像を取り込むことができるようになっている。また、前記周辺機器は、機器専用のTWAIN(Technology Without An Interesting Name)ドライバが用意されており、アプリケーションソフトとの連係操作が可能となっている。 In addition, the OS (Operations System) used in the PC includes a WIA (Windows (registered trademark) Image Acquisition) module and is resident in memory at startup, so that peripherals such as WIA-compatible digital cameras and scanners can be used. When the device is connected to a personal computer, the personal computer automatically recognizes the peripheral device and can capture images in a predetermined folder. The peripheral device is provided with a TWAIN (Technology Without An Interesting Name) driver dedicated to the device, and can be linked with application software.
ところで、PCは、その起動時に、周辺機器の起動状態を確認するための起動チェックプログラムを実行することがある。この場合には、WIAモジュールによる周辺機器の自動認識の直後にTWAINドライバが実行され、WIAモジュールとTWAINドライバとが並列処理されることがある。このときには、WIAモジュール(制御モジュール)がフリーズすることがあり、結果的に、TWAINドライバ(制御ドライバ)が処理待ち状態(制御障害発生状態)になってしまう。 By the way, the PC may execute a startup check program for checking the startup status of the peripheral device at the startup. In this case, the TWAIN driver may be executed immediately after the peripheral device is automatically recognized by the WIA module, and the WIA module and the TWAIN driver may be processed in parallel. At this time, the WIA module (control module) may freeze, and as a result, the TWAIN driver (control driver) enters a process waiting state (control failure occurrence state).
そこで、本発明は、制御ドライバの処理待ち状態の発生確率を低減することができる周辺機器制御障害回避方法、周辺機器制御障害回避プログラム、処理装置、及び処理システムを提供することを目的とする。 Accordingly, an object of the present invention is to provide a peripheral device control failure avoidance method, a peripheral device control failure avoidance program, a processing device, and a processing system that can reduce the probability of occurrence of a process waiting state of a control driver.
前記課題を解決するため、本発明は、周辺機器(例えば、スキャナ210)に接続され、OSを備えたコンピュータ(100)が実行する周辺機器起動方法であって、前記周辺機器を制御する制御ドライバ(例えば、TWAINドライバ520)のエラー状態を検出する検出過程(S22)と、前記エラー状態が検出された場合に、復旧処理を行う復旧処理過程(S30)とを前記コンピュータが実行し、前記復旧処理過程は、前記OSに再起動(S16)を実行させることを特徴とする。なお、( )内の符号等は例示である。 In order to solve the above-described problems, the present invention provides a peripheral device activation method executed by a computer (100) connected to a peripheral device (for example, the scanner 210) and having an OS, and a control driver for controlling the peripheral device The computer executes a detection process (S22) for detecting an error state (for example, the TWAIN driver 520) and a recovery process (S30) for performing a recovery process when the error state is detected, and the recovery The process is characterized by causing the OS to restart (S16). In addition, the code | symbol etc. in () are illustrations.
OSは、起動時に制御モジュール(例えば、WIAモジュール514)が常駐し、制御ドライバも動作する。このため、先に起動する制御モジュールがスレッドを掴んだ状態になり、この結果、制御ドライバが処理待ち状態になることがある。この状態で、検出部は、制御ドライバに状態確認を求めても応答が無く、スキャナ起動エラーとなる。この障害を回避するため、OSに再起動を促す確認画面を表示部に表示させ、OS再起動を行い、このOS再起動によりエラー状態が解消される。スキャナ起動エラーの発生確率が100%未満であれば、複数回のOS再起動により、スキャナ起動エラーは解消する。また、電源投入時の起動(Cold-Start)とOS再起動(例えば、Warm-Start)とでは、ハードウェアの初期設定が相違することがあるので、電源投入時にスキャナ起動エラーが発生しても、OS再起動によりスキャナ起動エラーが解消することがある。 The OS has a control module (for example, a WIA module 514) resident at startup, and the control driver also operates. For this reason, the control module to be activated first grabs the thread, and as a result, the control driver may wait for processing. In this state, the detection unit does not respond even if it asks the control driver to check the status, resulting in a scanner activation error. In order to avoid this failure, a confirmation screen prompting the OS to restart is displayed on the display unit, the OS is restarted, and the error state is resolved by restarting the OS. If the occurrence probability of a scanner activation error is less than 100%, the scanner activation error is resolved by restarting the OS a plurality of times. In addition, since the initial hardware settings may differ between the startup at power-on (Cold-Start) and the OS restart (for example, Warm-Start), even if a scanner startup error occurs at power-on The scanner activation error may be resolved by restarting the OS.
本発明によれば、制御ドライバの処理待ち状態の発生確率を低減することができる。 According to the present invention, it is possible to reduce the probability of occurrence of a processing wait state of a control driver.
以下、図面を参照して、本発明の実施の形態(以下、「本実施形態」と称する)につき詳細に説明する。なお、各図は、本発明を十分に理解できる程度に、概略的に示してあるに過ぎない。よって、本発明は、図示例のみに限定されるものではない。また、各図において、共通する構成要素や同様な構成要素については、同一の符号を付し、それらの重複する説明を省略する。 Hereinafter, an embodiment of the present invention (hereinafter referred to as “the present embodiment”) will be described in detail with reference to the drawings. Each figure is only schematically shown so that the present invention can be fully understood. Therefore, the present invention is not limited to the illustrated example. Moreover, in each figure, the same code | symbol is attached | subjected about the common component and the same component, and those overlapping description is abbreviate | omitted.
(第1実施形態)
図1は、本発明の第1実施形態である事務処理用スキャナシステムの構成図である。
事務処理用スキャナシステム1000は、マシン室350が併設された事務センタ300とがLAN(Local Area Network)を介して接続されており、マシン室350は、ネットワークNWを介して複数の営業店200,201、及びホストに接続されている。
(First embodiment)
FIG. 1 is a configuration diagram of a business processing scanner system according to a first embodiment of the present invention.
The office processing scanner system 1000 is connected to an
営業店200は、処理装置としてのスキャナPC100と、周辺機器としてのスキャナ210と、営業店プリンタ220とを備えて構成されている。なお、スキャナ210はマット部に載置された帳票をCCDカメラで撮像する非接触スキャナであり、スキャナPC100は表示部としてのモニタ110を備え、スキャナ210が読み取った読取画像をOCR(Optical Character Recognition)変換し、使用者が帳票画像とOCR変換された認識文字との照合作業を行ったりするクライアントマシンである。また、スキャナPC100は、データをマシン室350に転送したり、データの照会を行ったりする。なお、スキャナ210で読み込む画像は、帳票画像だけでなく、免許証等の身分証明書の画像であったり、診療機関で用いられるレセプト(診療報酬明細書)の画像であったりする。
The sales office 200 includes a scanner PC 100 as a processing device, a
事務センタ300は、エントリPC310とセンタプリンタ320とを備え、エントリPC310はデータの入力や、照会を実行するクライアントマシンである。マシン室350は、DB(Data Base)サーバ、AP(Application)サーバ、及びGW(Gate Way)サーバを備え、互いにLANで接続されている。DBサーバは、読取画像や取引データ等を格納し、APサーバは、アプリケーションソフトが格納されており、格納されたアプリケーションソフトをクライアントマシンがダウンロードして使用したり、APサーバ内で実行したりする。GWサーバは、NWを介してホストや営業店200,201と通信を行うサーバである。以下、DBサーバ、及びAPサーバは、GWサーバを介して通信を行っているが、省略する。
The
事務処理用スキャナシステム1000は、例えば、スキャンされた帳票画像のデータや、そのOCRデータが営業店200,201から事務センタ300に送信され、データの集計、照会を行うことができる。また、DBサーバは、これらのデータを格納することにより、紙媒体での保管を最小限にすることができる。なお、営業店200のスキャナPC100は、スキャナ210を用いた読み取りのみを行い、スキャナPC100は、読取画像データをマシン室350のDBサーバに送信し、事務センタ300のエントリPCがDBサーバに格納された読取画像データの画像をOCR変換し、使用者が照合等の事務処理を行うこともある。
The business processing scanner system 1000 can, for example, send scanned form image data and its OCR data from the
図2は、本発明の第1実施形態である処理装置(スキャナPC)のハードウェア構成図である。
スキャナPC100は、商用電源ACに接続されたメイン電源10、及びサブ電源15と、メインCPU(Central Processing Unit)20、及びパワー・マネジメント回路25と、電源スイッチ26と、RAM(Random Access Memory)30と、ブートROM(Read Only Memory)32と、不揮発性記憶部としてのHDD(Hard Disk Drive)35と、USB(Universal Serial Bus)I/F40と、モニタI/F45とを備え、電源スイッチ26の一時的な短絡により、起動し、ソフトウェア制御により再起動するように構成されている。
FIG. 2 is a hardware configuration diagram of the processing apparatus (scanner PC) according to the first embodiment of the present invention.
The scanner PC 100 includes a
メイン電源10、及びサブ電源15は、商用電源ACに接続されている。メイン電源10は、外部のパワー・マネジメント回路25からPS_ON信号が入力されると+5V等の直流電圧を発生し、サブ電源15は、常時、+5Vの電圧(+5VSB(Stand By))を発生し、それぞれの電源が各部に直流電力を供給する。なお、メイン電源10及びサブ電源15は、一体化されており、一般的に「ATX電源」と称している。
The
メインCPU20は、マルチコアにより、マルチスレッドに対応することができたり(例えば、4コア4スレッド)、また、物理的に1つしかないコアに擬似的なコアを作り、2つの分割されたスレッドを同時に実行したりすることが可能になっている(例えば、2コア4スレッド)。ここで、「スレッド(thread)」とは、一連の命令が順番に処理されていく最小の処理単位のことであり、マルチスレッド(multithread)とは、アプリケーションなど、単一のプロセスを複数のスレッドに分けて並列処理することである。
The
パワー・マネジメント回路25は、サブ電源15により、常時、電力供給を受けており、電源スイッチ26の短絡/開放状態を監視すると共に、メインCPU20等の電源制御(省電力制御を含む)を行うサブCPUである。電源スイッチ26が一時的に短絡状態になることにより、パワー・マネジメント回路25は、PS_ON信号によりメイン電源10を立ち上げると共に、リセット解除することにより、メインCPU20、RAM30、及びブートROM32を起動させる。ここで、ブートROM32は、BIOS(Basic Input Output System)等が格納されている。
The
また、HDD35は、先頭領域がMBR(Master Boot Recode)になっており、OSやアプリケーションプログラムが格納されている不揮発性記憶部である。このMBRは、ハードディスク上でのパーティションの開始/終了位置や使用しているファイルシステム、アクティブかどうかなどを記録したパーティションテーブルや、イニシャルプログラムローダ(ブート ストラップ ローダともいう。)が格納されている。また、HDD35は、第2実施形態で使用されるカウンタが格納されており、カウンタの値はOSの再起動により初期化されることはない。
The
メインCPU20、及びブートROM32の起動により、メインCPU20は、周辺機器用インタフェース(USBI/F40やモニタI/F45等)の検出・ハードウェア初期化・各種設定を行い、HDD35からイニシャルプログラムローダを読み込み、OSやアプリケーションプログラムをRAM30に展開し、RAM30上で処理を実行する。なお、再起動の場合は検査や初期化の一部を省略し、イニシャルプログラムローダの読み込みを開始したり、OSから起動(Warm-Start)したりすることもある。つまり、スキャナPC100は、電源投入時の起動(Cold-Start)と再起動とで、ハードウェア設定が異なることがあり得る。
When the
USB(Universal Serial Bus)I/F40は、営業店プリンタ220やスキャナ210と接続するUSBデバイスコントローラである。モニタI/F45は、表示部としてのモニタ110と接続するインタフェースであり、VRAMを含む。
A USB (Universal Serial Bus) I /
図3は、本発明の第1実施形態である処理装置(スキャナPC)のソフトウェア構成図である。
HDD35に格納されており、RAM30に展開されメインCPU20により実行されるプログラムは、OS510と、アプリケーションソフト550と、ディスプレイドライバ516と、プリンタドライバ518とを備え、これらが、予めインストールされている。
FIG. 3 is a software configuration diagram of the processing apparatus (scanner PC) according to the first embodiment of the present invention.
A program stored in the
OS510は、特に、再起動処理部512を備え、WIAモジュール514が組み込まれている。再起動処理部512は、ソフトウェアにより再起動(Warm-Start)を行う処理部であり、起動中のアプリケーションソフト550を終了させ、さらに、パワー・マネジメント回路25に対して、ブートROM32を用いてメインCPU20を起動(再起動)させるように指示するものである。なお、この再起動は、BIOSによるハードウェアチェックや初期設定等を省略し、イニシャルプログラムローダの読み出しから実行することがある。
In particular, the
WIAモジュール514は、スキャナ210等の周辺機器の接続を認識し、読み込んだ画像データ等を所定のフォルダに格納する機能を有するOSでサポートされたプログラムである。なお、OSのバージョンに応じて、WIAの代わりに、WPD(Windows(登録商標) Portable Devices)が用いられることもある。
The
ディスプレイドライバ516は、モニタI/F45を制御するプログラムである。プリンタドライバ518は、USBI/F40等を介して、営業店プリンタ220を制御する専用のプログラムであり、アプリケーションソフト550(特に、OCRプログラム545)から印刷するときに使用される。
The
アプリケーションソフト550は、スキャナ起動チェックプログラム530と、システム起動バッチ540(540a)と、OCRプログラム545とを備えている。ここで、システム起動バッチ540(540a)は、OS510が規定するスタートアップフォルダに格納され、起動時や再起動時に自動的に実行されるものである。
The application software 550 includes a scanner activation check program 530, a system activation batch 540 (540a), and an
TWAIN(Technology Without An Interesting Name)ドライバ520は、スキャナ210専用のAPI(Application Interface)であり、OCRプログラム545がTWAIN規格に準拠していれば、OCRプログラム545からTWAINドライバ520を読み出すことができ、連係操作が可能となる。また、WIAモジュール514とTWAINドライバ520との双方は、OS510の起動により立ち上がるものであるが、WIAモジュール514の方がTWAINドライバ520よりも先に起動する。なお、図3において、プリンタドライバ518及びTWAINドライバ520は破線で記載してあるが、この破線はハードウェア専用プログラムであることを示している。
A TWAIN (Technology Without An Interesting Name)
スキャナ起動チェックプログラム530は、検出部532と、復旧処理部534(534a)とを備えて構成され、復旧処理部534(534a)は表示画像生成部536(536a)を含んでいる。検出部532は、スキャナ210の起動エラーを検出するものであり、TWAINドライバ520を介してスキャナ210の状態確認を行っても応答が無いとき(所定時間以上検知できないとき)にスキャナ起動エラーとして検出する。
The scanner activation check program 530 includes a
復旧処理部534は、検出部532がスキャナ起動エラーを検出したときに、OS再起動を促すメッセージ画面(OS再起動画面(図4))をモニタ110に表示させ、使用者に再起動の実行を確認し、その確認後、OS510の再起動処理部512に再起動処理を実行させる。この再起動により、検出部532は、再度、スキャナ起動エラーの検出を行うことになる。なお、検出部532がスキャナ起動エラーを検出しないときには、スキャナ起動チェックプログラム530(復旧処理部534)は、処理を終了し、システム起動バッチ540aの記述にしたがって、OCRプログラム545を起動させる。
When the
システム起動バッチ540aは、OS510の場合にはスタートアップフォルダに格納させておくことにより、起動時に実行されるバッチファイルである。システム起動バッチ540aは、プログラムのファイルパスが実行順に記述されており、本実施形態では、スキャナ起動チェックプログラム530のファイルパスと、OCRプログラム545のファイルパスとがこの順番で記述されている。
In the case of the
OCRプログラム545は、スキャナ210に帳票等を読み取らせる読取機能、読取画像(帳票画像、手書文字画像)を二値化し、二値画像をOCR変換する文字認識機能、読取画像及びOCRデータの何れか一方又は双方を転送する転送機能を有する。なお、OCRプログラム545は、特定色を認識し、除去するドロップアウト機能や、印鑑を照合したりする照合機能を有している。この特定色は帳票の罫線に用いられ、罫線をドロップアウトすることができる。
The
(動作の説明)
図5は、本発明の第1実施形態である処理装置(スキャナPC)が実行する起動処理のフローチャートである。
まず、使用者は、スキャナ210の電源スイッチをONにし(S10)、スキャナPC100の電源をONにする(電源スイッチ26を一時的に短絡させる)(S12)。これにより、OS510が起動し、スタートアップフォルダに格納されたシステム起動バッチ540が実行される(S14)。このシステム起動バッチ540の実行により、スキャナ起動チェックプログラム530が実行される。
(Description of operation)
FIG. 5 is a flowchart of a startup process executed by the processing apparatus (scanner PC) according to the first embodiment of the present invention.
First, the user turns on the power switch of the scanner 210 (S10), and turns on the power of the scanner PC 100 (short-circuits the
OS510の起動に伴い、WIAモジュール514が常駐ソフトとして起動し、WIAモジュール514がスキャナ210を認識する。次に、OS510は、TWAINドライバ520を起動する。このため、起動時に、OS510は、WIAモジュール514とTWAINドライバ520との双方を起動させるので、双方のプログラムが競合(衝突)することがある。つまり、先に起動するWIAモジュール514がスレッドを掴んだフリーズ状態になり、この結果、TWAINドライバ520が処理待ち状態になるので、スキャナ起動エラーが発生してしまう。なお、このスレッドは、メインCPU20が複数のコアで並列処理するマルチスレッドを意味することがある。
As the
検出部532は、このスキャナ起動エラーが発生したか否かを判定する(S22)。スキャナ起動エラーが発生したときには(Yes)、表示画像生成部536aは、「スキャナが起動エラーです。コンピュータを再起動して下さい。今すぐ再起動しますか?」というOS再起動画面(図4)を「今すぐ再起動/後で再起動」の選択ボタンを含めて生成する。そして、復旧処理部534は、生成されたOS再起動画面(OS再起動メッセージ)をモニタ110に表示させる(S30)。
The
「今すぐ再起動」ボタンが押下されることにより(S24でYes)、OS510の再起動処理部512が再起動の処理を行う(S16)。また、「後で再起動」ボタンが押下されたら、アプリケーションソフト550自体が終了する。なお、S22において、スキャナ起動エラーが発生していなければ、処理は終了し、OS510は、システム起動バッチ540の記述に従い、OCRプログラム545の起動を開始する。
When the “restart now” button is pressed (Yes in S24), the
本実施形態によれば、スキャナ起動チェックプログラム530は、OS510の再起動を促すメッセージを表示し、OS510の再起動が実行されることで、WIAモジュール514のダンマリ現象(何らかのスレッドを掴んだ状態のままとなるフリーズ現象)を一度リフレッシュすることができる。リフレッシュされたことにより、TWAINドライバ520の処理待ち状態(制御障害発生状態)が解消され、スキャナ210が応答できる状態となる。
According to the present embodiment, the scanner activation check program 530 displays a message prompting the
つまり、スキャナ起動エラーの発生確率が低ければ、電源投入時のOS起動、及びOS再起動により、スキャナ起動エラーは解消し得る。また、OS510の再起動では、BIOSによるハードウェアチェックや初期設定等を省略し、イニシャルブートプログラムの読み出しを開始したり、OSから再起動(Warm-Start)したりすることがある。このため、WIAモジュール514やTWAINドライバ520等の初期状態が電源投入時と再起動時とで異なり、WIAモジュール514のリフレッシュが期待される。
That is, if the probability of occurrence of a scanner activation error is low, the scanner activation error can be resolved by starting the OS when the power is turned on and restarting the OS. Further, when the
(第2実施形態)
第1実施形態は、スキャナ起動エラーが検出されたら、OSの再起動メッセージの表示後、OS510を再起動させたが、複数回のOS再起動でもスキャナ起動エラーが発生することがある。この場合には、OS再起動だけでなくスキャナ210の電源スイッチのOFF/ONを行うことにより、スキャナ起動エラーが解消することがある。
(Second Embodiment)
In the first embodiment, when a scanner startup error is detected, the
本実施形態のハードウェア構成は、第1実施形態と同様である。但し、HDD35にカウンタがレジストリとして格納されており、その値はOS再起動によっても値がリセットされない。また、カウンタは、スキャナ起動エラーが生じていないときに初期値「1」に設定される。なお、レジストリとは、アプリケーション設定、ユーザパスワード、デバイスドライバ情報、ウィンドウズ(登録商標)設定、その他のPC上の全ての設定を格納する階層型データベースである。また、カウンタの値は、レジストリとして格納することなく、ファイルとしてHDD35に格納することもできる。
The hardware configuration of this embodiment is the same as that of the first embodiment. However, the counter is stored in the
図6は、本発明の第2実施形態である処理装置(スキャナPC)のソフトウェア構成図である。
本実施形態のソフトウェア構成図は、第1実施形態と同様であるが、スキャナ起動チェックプログラム530b、復旧処理部534b、表示画像生成部536b、システム起動バッチ540bに変更されている点で相違する。
その相違点である表示画像生成部536bは、スキャナ及びOSの再起動を使用者に依頼する指示メッセージ画像(図7)を生成し、復旧処理部534bは、複数回のスキャナ起動エラーが発生したときに、生成された指示メッセージ画像をモニタ110に表示させ、スキャナ再起動を使用者に促す。また、システム起動バッチ540bは、先にスキャナ起動チェックプログラム530bを起動させ、その後、OCRプログラム545を起動するように記述されている。
FIG. 6 is a software configuration diagram of the processing apparatus (scanner PC) according to the second embodiment of the present invention.
The software configuration diagram of this embodiment is the same as that of the first embodiment, but is different in that it is changed to a scanner activation check program 530b, a
The display
図8は、本発明の第2実施形態である処理装置(スキャナPC)が実行する起動処理のフローチャートである。
まず、前記第1実施形態と同様に、使用者は、スキャナ210の電源スイッチをONにし(S10)、スキャナPC100の電源をONにする(電源スイッチ26を短絡させる)(S12)。これにより、OS510が起動し、スタートアップからシステム起動バッチ540が実行される(S14)。このシステム起動バッチ540の実行により、スキャナ起動チェックプログラム530bが実行される。
FIG. 8 is a flowchart of the startup process executed by the processing apparatus (scanner PC) according to the second embodiment of the present invention.
First, as in the first embodiment, the user turns on the power switch of the scanner 210 (S10), and turns on the power of the scanner PC 100 (shorts the power switch 26) (S12). As a result, the
検出部532は、TWAINドライバ520のスキャナ起動エラーが発生したか否かを判定する(S20)。スキャナ起動エラーが発生したときには(S20でYes)、復旧処理部534bは、カウンタの値が所定値「5」以下であるか否か判定する。カウンタの値が所定値「5」以下であるときには(Yes)、復旧処理部534bは、カウンタに「1」を加算する(S28)。つまり、カウンタの値が初期値「1」+1=2になる。そして、表示画像生成部536は、第1実施形態と同様に、「スキャナが起動エラーです。コンピュータを再起動して下さい。今すぐ再起動しますか?」というOS再起動を促すメッセージ画面(OS再起動画面(図4))を「今すぐ再起動/後で再起動」の選択ボタンを含めて生成する。そして、復旧処理部534は、OS再起動画面(OS再起動メッセージ)をモニタ110に表示させる(S30)。
The
「今すぐ再起動」ボタンが押下されることにより(S32でYes)、復旧処理部534bは、OS510に再起動させ、OS510の再起動処理部512が再起動の処理を行う(S16)。つまり、OS510は、スキャナ起動チェックプログラム530bの処理を終了させ、HDD35のMBRからイニシャルブートプログラムを読み出し、OS510をRAM30に展開する。これにより、再び、システム起動バッチ540bが実行され(S14)、スキャナ起動エラーが発生したか否かが判定される(S20)。また、「後で再起動」ボタンが押下されたら、アプリケーションソフト550自体が終了する。
When the “restart now” button is pressed (Yes in S32), the
また、S26において、カウンタの値が所定値「5」を超えていたときには、表示画像生成部536は、「スキャナが起動エラーです。スキャナおよびコンピュータを再起動して下さい。今すぐ再起動しますか?」という指示メッセージ画像を「今すぐ再起動/あとで再起動」の選択ボタンを含めて生成する。そして、復旧処理部534bは、生成された指示メッセージ画像(スキャナ、OS再起動メッセージ画像)をモニタ110に表示させる(S34)。
In S26, when the value of the counter exceeds the predetermined value “5”, the display
「今すぐ再起動」ボタンが押下されることにより(S36でYes)、処理はスキャナ起動チェックプログラム530bから離れる。そして、使用者は、スキャナ210の電源をOFFにし、再投入(ON)することにより、スキャナ再起動を行い(S18)、かつ、OS510の再起動処理部512は、再起動の処理を行う(S16)。なお、図8においては、S18のスキャナ再起動がS16のOS再起動よりも先に実行されるように記載しているが、OS再起動がスキャナ再起動よりも先に実行されてもよい。
When the “restart now” button is pressed (Yes in S36), the process leaves the scanner activation check program 530b. Then, the user turns off the power of the
また、S20において、スキャナ起動エラーが発生していなければ(No)、復旧処理部534bは、カウンタの値を「1」に初期化し(S38)、処理が終了する。そして、OS510は、システム起動バッチ540の記述に従い、OCRプログラム545の起動を開始する。つまり、このスキャナ起動チェックプログラム530bは、エラーが発生しないときにカウンタの初期化を行う。
If no scanner activation error has occurred in S20 (No), the
本実施形態によれば、第1実施形態と同様に、OS510の再起動が実行されることで、WIAモジュール514のダンマリ現象(何らかのスレッドを掴んだ状態のままとなる現象)を一度リフレッシュすることができ、TWAINドライバ520の処理待ち状態が解消される。また、スキャナ起動エラーの発生確率が100%未満であれば、複数回の再起動により、スキャナ起動エラーが解消する。
According to the present embodiment, as in the first embodiment, the restart of the
また、複数回のOS再起動を行っても、スキャナが正常応答せず、スキャナ起動エラーが発生したときには、スキャナ起動チェックプログラム530b自体に何らかのエラーの可能性がある。このエラーをリフレッシュするには一度、スキャナ210の再起動が必要である。このため、スキャナ起動チェックプログラム530bは、OS510の再起動を実行すると共に、スキャナ210の電源を落とし、再投入するメッセージをモニタ110に表示させる。これにより、使用者は、スキャナ210の電源をOFF/ONにして、スキャナ210を再起動させる。これにより、例えば、TWAINドライバ520の処理待ち状態以外のエラー発生を解消することができる。
Further, even if the OS is restarted a plurality of times, if the scanner does not respond normally and a scanner activation error occurs, there is a possibility of some error in the scanner activation check program 530b itself. To refresh this error, it is necessary to restart the
(変形例)
本発明は前記した実施形態に限定されるものではなく、例えば以下のような種々の変形が可能である。
(1)前記第1実施形態は、OS510がインストールされた処理装置(PC)でスキャナ起動チェックプログラム530を実行させて、復旧処理部534aがOS510の再起動処理部512に再起動を行わせたが、再起動処理部512の機能を有した他の復旧処理部534cが再起動を行ってもよい。つまり、新たなスキャナ起動チェックプログラム530は、OS510がWIAモジュール514、及びTWAINドライバ520を起動させ、検出部532がTWAINドライバ520のエラーを検出したら、復旧処理部534cが再起動を実行するようにしてもよい。
(Modification)
The present invention is not limited to the embodiments described above, and various modifications such as the following are possible.
(1) In the first embodiment, the scanner activation check program 530 is executed by the processing device (PC) in which the
(2)前記第2実施形態は、スキャナ210の電源OFF/ONを手動で行ったが、復旧処理部534aがスキャナ210に再起動命令を送信するように構成することもできる。このとき、再起動処理部512は、指示メッセージ画像(図7)を表示させて、「今すぐ再起動」ボタンが押下されてから再起動命令を送信してもよい。また、指示メッセージ画像(図7)を表示させることなく再起動命令を送信してもよい。
(2) In the second embodiment, the power of the
(3)前記各実施形態は、システム起動バッチ540をスタートアップフォルダに格納することにより、WIAモジュール514、及びTWAINドライバ518の起動に引き続いて、検出部532が起動するようにした。しかしながら、OS510の起動後、アプリケーションソフト550と異なる他のアプリケーションソフトが起動され、その後、スキャナ起動チェックプログラム530bを起動してもよい。この場合には、他のアプリケーションソフトは、WIAモジュール514や、TWAINドライバ518を使用することがない。
(4)前記各実施形態は、周辺機器としてスキャナ210を用いたが、他の周辺機器、例えば、WIAモジュール514やTWAINドライバ518が対応しているデジタルカメラであってもよい。また、WIAモジュール514やTWAINドライバ518が対応していない周辺機器、例えば、プリンタであってもよい。
(3) In each of the above embodiments, the
(4) In each of the above embodiments, the
10 メイン電源
15 サブ電源
20 メインCPU
25 パワー・マネジメント回路(サブCPU)
26 電源スイッチ
30 RAM
32 ブートROM
35 HDD(不揮発性記憶媒体)
40 USBI/F(デバイスコントローラ)
45 モニタI/F(VRAM)
100 スキャナPC(処理装置)
110 モニタ(表示部)
200,201 営業店
210 スキャナ(周辺機器)
220 営業店プリンタ
300 事務センタ
310 エントリPC
320 センタプリンタ
350 マシン室
510 OS
512 再起動処理部
514 WIAモジュール(制御モジュール)
516 ディスプレイドライバ
518 プリンタドライバ
520 TWAINドライバ(制御ドライバ)
530 スキャナ起動チェックプログラム
532 検出部
534,534a,534b 復旧処理部
536,536a,536b 表示画像生成部
540 システム起動バッチ
550 アプリケーションソフト
1000 事務処理用スキャナシステム(処理システム)
DBサーバ
APサーバ
GWサーバ
NW ネットワーク
10
25 Power management circuit (sub CPU)
26
32 Boot ROM
35 HDD (nonvolatile storage medium)
40 USB I / F (device controller)
45 Monitor I / F (VRAM)
100 Scanner PC (Processor)
110 Monitor (display unit)
200,201
220
320 Center printer 350
512
516
530 Scanner
DB server AP server GW server NW network
Claims (13)
前記周辺機器を制御する制御ドライバのエラー状態を検出する検出過程と、
前記エラー状態が検出された場合に、復旧処理を行う復旧処理過程とを前記コンピュータが実行し、
前記復旧処理過程は、前記OSに再起動を実行させることを特徴とする周辺機器制御障害回避方法。 A peripheral device control failure avoidance method executed by a computer connected to a peripheral device and provided with an OS,
A detection process for detecting an error state of a control driver for controlling the peripheral device;
When the error state is detected, the computer executes a recovery process for performing a recovery process,
The peripheral device control failure avoidance method, wherein the recovery processing step causes the OS to restart.
前記周辺機器を制御する制御ドライバのエラー状態を検出する検出過程と、
前記エラー状態が検出された場合に、復旧処理を行う復旧処理過程とを前記コンピュータが実行し、
前記復旧処理過程は、前記エラー状態の発生が所定回数未満のときに、前記OSに再起動を実行させ、前記所定回数以上のときに前記周辺機器の再起動のための復旧処理を行う
ことを特徴とする周辺機器制御障害回避方法。 A peripheral device control failure avoidance method executed by a computer connected to a peripheral device and provided with an OS,
A detection process for detecting an error state of a control driver for controlling the peripheral device;
When the error state is detected, the computer executes a recovery process for performing a recovery process,
The recovery process includes causing the OS to restart when the occurrence of the error state is less than a predetermined number of times, and performing recovery processing for restarting the peripheral device when the error state is greater than or equal to the predetermined number of times. Peripheral device control failure avoidance method characterized.
前記コンピュータは、前記周辺機器を制御する制御モジュールが常駐するものであり、
前記エラー状態は、前記制御ドライバよりも先に起動した前記制御モジュールがフリーズし、前記制御ドライバが処理待ち状態になることにより発生することを特徴とする周辺機器制御障害回避方法。 A peripheral device control failure avoidance method according to claim 1 or 2,
The computer has a resident control module for controlling the peripheral device,
2. The peripheral device control failure avoidance method according to claim 1, wherein the error state is generated when the control module activated prior to the control driver freezes and the control driver enters a process waiting state.
前記OSに再起動を実行させる前に、該再起動の実行を確認させる再起動画面を表示部に表示させることを特徴とする周辺機器制御障害回避方法。 A peripheral device control failure avoidance method according to any one of claims 1 to 3,
A peripheral device control failure avoidance method, wherein a restart screen for confirming the execution of the restart is displayed on a display unit before the OS executes the restart.
前記周辺機器の再起動のための復旧処理は、前記周辺機器の再起動を依頼する旨の指示メッセージを表示部に表示させることであることを特徴とする周辺機器制御障害回避方法。 A peripheral device control failure avoidance method according to claim 2,
The peripheral device control failure avoidance method, wherein the recovery process for restarting the peripheral device is to display an instruction message to request the restart of the peripheral device on a display unit.
前記周辺機器の再起動のための復旧処理は、再起動命令を前記周辺機器に送信することである
ことを特徴とする周辺機器制御障害回避方法。 A peripheral device control failure avoidance method according to claim 2,
The peripheral device control failure avoidance method, wherein the recovery processing for restarting the peripheral device is to transmit a restart command to the peripheral device.
前記OSのスタートアップフォルダから起動するものであり、
前記検出過程は、前記制御モジュール、及び前記制御ドライバが予め起動してから実行されることを特徴とする周辺機器制御障害回避プログラム。 A peripheral device control failure avoidance program according to claim 7,
It is started from the startup folder of the OS,
The peripheral device control failure avoidance program, wherein the detection process is executed after the control module and the control driver are activated in advance.
前記周辺機器の制御がエラー状態であることを検出すると復旧処理を行う復旧処理部とを備え、
前記復旧処理部は、前記周辺機器がエラー状態の場合に、前記周辺機器が接続された処理装置本体の再起動を実行する処理装置。 A detection unit for detecting a control state of a peripheral device connected to the processing apparatus body;
A recovery processing unit that performs recovery processing when detecting that the peripheral device control is in an error state;
The recovery processing unit is a processing device that executes a restart of a processing device main body to which the peripheral device is connected when the peripheral device is in an error state.
前記周辺機器の制御がエラー状態であることを検出すると復旧処理を行う復旧処理部とを備え、
前記復旧処理部は、当該エラーが所定回数未満のときは処理装置本体の再起動を行い、前記所定回数以上のときに前記周辺機器の再起動のための処理を行う
ことを特徴とする処理装置。 A detection unit for detecting a control state of a peripheral device connected to the processing apparatus body;
A recovery processing unit that performs recovery processing when detecting that the peripheral device control is in an error state;
The recovery processing unit restarts the processing device main body when the error is less than a predetermined number of times, and performs processing for restarting the peripheral device when the error is equal to or more than the predetermined number of times. .
前記周辺機器の復旧処理は、前記周辺機器の再起動を依頼する旨の指示メッセージを表示部に表示させることを特徴とする処理装置。 The processing apparatus according to claim 10, wherein
In the processing for restoring the peripheral device, an instruction message for requesting restart of the peripheral device is displayed on a display unit.
前記周辺機器の復旧処理は、再起動命令を前記周辺機器に送信することを特徴とする処理装置。 The processing apparatus according to claim 10, wherein
The peripheral device restoration processing transmits a restart command to the peripheral device.
前記処理装置は、
前記周辺機器の制御状態を検出する検出部と、
前記周辺機器の制御がエラー状態であることを検出すると復旧処理を行う復旧処理部とを備え、
前記復旧処理部は、当該エラーが所定回数未満のときは処理装置本体の再起動を行い、前記所定回数以上のときに前記周辺機器の再起動のための処理を行う
ことを特徴とする処理システム。 A processing system comprising a peripheral device and a processing device connected to the peripheral device,
The processor is
A detection unit for detecting a control state of the peripheral device;
A recovery processing unit that performs recovery processing when detecting that the peripheral device control is in an error state;
The recovery processing unit restarts the processing apparatus main body when the error is less than a predetermined number of times, and performs processing for restarting the peripheral device when the error is equal to or more than the predetermined number of times. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013242608A JP2015102989A (en) | 2013-11-25 | 2013-11-25 | Peripheral device control fault avoidance method, peripheral device control fault avoidance program, processing apparatus, and processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013242608A JP2015102989A (en) | 2013-11-25 | 2013-11-25 | Peripheral device control fault avoidance method, peripheral device control fault avoidance program, processing apparatus, and processing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2015102989A true JP2015102989A (en) | 2015-06-04 |
Family
ID=53378646
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013242608A Pending JP2015102989A (en) | 2013-11-25 | 2013-11-25 | Peripheral device control fault avoidance method, peripheral device control fault avoidance program, processing apparatus, and processing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2015102989A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017058825A (en) * | 2015-09-15 | 2017-03-23 | 株式会社リコー | Information processing system, information processing apparatus, and information processing method |
CN110663027A (en) * | 2017-06-16 | 2020-01-07 | 国际商业机器公司 | Protecting operating system configuration using hardware |
-
2013
- 2013-11-25 JP JP2013242608A patent/JP2015102989A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017058825A (en) * | 2015-09-15 | 2017-03-23 | 株式会社リコー | Information processing system, information processing apparatus, and information processing method |
CN110663027A (en) * | 2017-06-16 | 2020-01-07 | 国际商业机器公司 | Protecting operating system configuration using hardware |
JP2020523685A (en) * | 2017-06-16 | 2020-08-06 | インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation | Use hardware to secure operating system configurations |
JP7169042B2 (en) | 2017-06-16 | 2022-11-10 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Using hardware to secure operating system configurations |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9792441B2 (en) | Portable desktop device and method of host computer system hardware recognition and configuration | |
US9158628B2 (en) | Bios failover update with service processor having direct serial peripheral interface (SPI) access | |
CN108121630B (en) | Electronic device, restart method, and recording medium | |
US10514930B2 (en) | Setting a startup parameter and controlling startup of a mainboard | |
JP6034990B2 (en) | Server control method and server control apparatus | |
JP5822527B2 (en) | Information processing apparatus, control method thereof, and control program | |
US10162649B2 (en) | Information processing system, information processing apparatus and start up control method | |
CN102779050A (en) | System and method for accelerated boot performance | |
US9448808B2 (en) | BIOS update with service processor without serial peripheral interface (SPI) access | |
US20150143095A1 (en) | Bios failover update with service processor | |
US9930207B2 (en) | Information processing apparatus, method of initializing a non-volatile storage device, and storage medium | |
US20180210783A1 (en) | Information processing apparatus, control method of the same, and storage medium | |
US11481496B2 (en) | Information processing apparatus for detecting tampering with software executed at boot time, method for rebooting information processing apparatus, and storage medium | |
JP2015102989A (en) | Peripheral device control fault avoidance method, peripheral device control fault avoidance program, processing apparatus, and processing system | |
JP2008027379A (en) | Host device | |
JP2015032103A (en) | Image forming apparatus, control method of image forming apparatus, and program | |
WO2019080321A1 (en) | Power-on method and apparatus for terminal device, device, and storage medium | |
CN109255265B (en) | Self-recovery method and device for reading abnormal identity card information | |
JP7322233B2 (en) | Information processing device and tampering detection method for detecting tampering of software executed at startup | |
EP3159795A1 (en) | Image forming apparatus that ensures operation while hdd is inoperative, and recording medium therefor | |
US11782730B1 (en) | Operation-specific file system | |
US11983541B1 (en) | Operation-specific device configuration | |
WO2022159107A1 (en) | Application security and mobility | |
JP2006133823A (en) | Computer system | |
JP2016062529A (en) | Information processing device, control method of information processing device, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20160425 |