JP2007334906A - Image processor, disk protection method therefor, and control program for executing disk protection method - Google Patents
Image processor, disk protection method therefor, and control program for executing disk protection method Download PDFInfo
- Publication number
- JP2007334906A JP2007334906A JP2007197489A JP2007197489A JP2007334906A JP 2007334906 A JP2007334906 A JP 2007334906A JP 2007197489 A JP2007197489 A JP 2007197489A JP 2007197489 A JP2007197489 A JP 2007197489A JP 2007334906 A JP2007334906 A JP 2007334906A
- Authority
- JP
- Japan
- Prior art keywords
- disk
- writing
- main power
- power supply
- image processing
- 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
- Power Sources (AREA)
- Facsimiles In General (AREA)
Abstract
Description
本発明は、複数の機能を有するマルチファンクションシステムなどで構成される画像処理装置、そのディスク保護方法及びそのディスク保護方法を実行するための制御プログラムに関する。 The present invention relates to an image processing apparatus including a multi-function system having a plurality of functions, a disk protection method thereof, and a control program for executing the disk protection method.
ハードディスクメディアへのデータ書き込み中に電源が遮断されると、書き込み中のセクタが不良となり、次期電源立ち上げ時にシステムの起動に支障を与えることが知られている。そのため、従来からパソコンのようなハードディスクを有するシステムにおいては、ハードディスクメディアへのデータ書き込み中に電源が遮断された際の保護手段を備えることが多い。その保護手段としては、補助電源を有するものや、データのバックアップを行う手段を有するものなど様々である(例えば、特許文献1参照)。 It is known that if the power is cut off while writing data to the hard disk medium, the sector being written becomes defective, and the system startup is hindered when the next power supply is turned on. For this reason, a system having a hard disk such as a personal computer often includes a protection means when the power is shut off during data writing to the hard disk medium. There are various protection means such as those having an auxiliary power source and those having means for backing up data (see, for example, Patent Document 1).
また、磁気ディスクドライブ装置ユニットの電源切断接続装置において、電源OFFスイッチを操作しても、磁気ディスクドライブの記録再生処理に悪影響を及ぼすと判断すると電源供給を停止しない構成が知られている(例えば、特許文献2参照)。さらに、ハードディスクの保護のために、電源の瞬断が検出されたときにハードディスクへのアクセスを停止する構成も知られている(例えば、特許文献3参照)。
しかしながら、上記従来の、ハードディスクの保護手段では、ハードディスクメディアのデータを保護するために多くのコストがかかり、低価格を目指すシステムに前記保護手段を盛り込むことは困難であった。さらに、データのバックアップ手段を備えるシステムでは、データのトータル転送量が増大するため、システムパフォーマンスの悪化が懸念されることもあった。 However, with the conventional hard disk protection means, it takes a lot of cost to protect the data on the hard disk media, and it is difficult to incorporate the protection means into a system that aims for a low price. Furthermore, in a system provided with data backup means, the total data transfer amount increases, and there is a concern that system performance deteriorates.
また、電源OFFスイッチを操作しても、磁気ディスクドライブの記録再生処理に悪影響を及ぼすと判断した場合には電源供給の停止を行わない構成では、ユーザが望んだときに電源を遮断できないという欠点があった。特に、大量の画像データを扱う画像処理装置において、電源が遮断によるハードディスクの障害は、大量のメモリを用いるスキャナで読み込んだ画像データの処理や大量の印刷ジョブの展開などに大きな支障をもたらす。 In addition, even if the power OFF switch is operated, if it is determined that the recording / reproducing process of the magnetic disk drive is adversely affected, the configuration in which the power supply is not stopped cannot cut off the power when the user desires. was there. In particular, in an image processing apparatus that handles a large amount of image data, a hard disk failure due to a power interruption causes a great hindrance to the processing of image data read by a scanner using a large amount of memory or the development of a large amount of print jobs.
従って、ディスクメディアへのデータ書き込み中の電源遮断を防止するために、最低限の時間のロスでパフォーマンスの悪化なく且つ低コストな解決方法が望まれていた。また、ユーザが望んだときに電源を遮断でき、且つディスクに障害を与えない解決方法が望まれていた。 Therefore, in order to prevent power interruption during data writing to the disk medium, a solution that does not deteriorate performance with a minimum loss of time and is low in cost has been desired. In addition, there has been a demand for a solution that can shut off the power supply when the user desires and that does not damage the disk.
本発明は上記従来の問題点に鑑み、ディスクに対するアクセス中に電源が遮断されることで発生するセクタ不良による起動障害を、パフォーマンスの悪化なく確実に回避することができる安価な構成のディスク保護手段を備えた画像処理装置、そのディスク保護方法及びそのディスク保護方法を実行するための制御プログラムを提供することを目的とする。 In view of the above-described conventional problems, the present invention provides an inexpensive disk protection means capable of reliably avoiding a start failure due to a sector failure caused by a power failure while accessing a disk without deteriorating performance. An image processing apparatus including the same, a disk protection method thereof, and a control program for executing the disk protection method.
上記目的を達成するために、本発明の画像処理装置は、データ格納用のディスクを有する画像処理装置において、前記ディスクは、ディスクメディアと該ディスクメディアにデータを格納するためのバッファ手段を有し、当該画像処理装置のメイン電源を遮断するためのユーザの操作を検知する検知手段と、前記検知手段によって前記操作が検出された場合に、前記ディスクへのアクセス動作を中断し、新たなデータの書き込みを行わないようにするアクセス中断手段と、前記検知手段によって前記操作が検知された場合に、前記バッファ手段に既に書き込まれているデータを前記ディスクに書き込み処理を行うメディア書き込み処理手段と、前記メイン電源の遮断に関する情報を報知する報知手段とを有し、前記メディア書き込み処理手段による書き込み処理をしているかどうかに基づいて、前記報知手段はメイン電源を遮断してよいかどうかを報知することを特徴とする。 In order to achieve the above object, an image processing apparatus according to the present invention comprises an image processing apparatus having a data storage disk, the disk having a disk medium and buffer means for storing data in the disk medium. Detecting means for detecting a user operation for shutting off the main power supply of the image processing apparatus; and when the operation is detected by the detecting means, the access operation to the disk is interrupted, and new data Access interrupting means for preventing writing, media writing processing means for writing data already written in the buffer means to the disk when the operation is detected by the detecting means, Notification means for notifying information relating to shut-off of the main power supply, the media writing processing means Based on whether the write processing by said notification means is characterized by notifying whether or shut off the main power.
上記目的を達成するために、本発明の画像処理装置のディスク保護方法は、ディスクメディアと該ディスクメディアにデータを書き込むためのバッファ手段を含むデータ格納用のディスクを有する画像処理装置のディスク保護方法において、前記画像処理装置のメイン電源を遮断するためのユーザの操作を検知する検知工程と、前記検知工程によって前記操作が検知された場合に、前記ディスクへのアクセス動作を中断し、新たなデータの書き込みを行わないようにする工程と、前記検知工程によって前記操作が検知された場合に、前記バッファ手段に既に書き込まれているデータを前記ディスクメディアに書き込む処理を行うメディア書き込み処理工程と、前記メディア書き込み処理工程による書き込み処理をしているかどうかに基づいて、報知手段によりメイン電源を遮断してよいかどうかを報知する工程とを有することを特徴とする。 In order to achieve the above object, a disk protection method for an image processing apparatus according to the present invention is a disk protection method for an image processing apparatus having a disk medium and a data storage disk including buffer means for writing data to the disk medium. And detecting a user operation for shutting off the main power supply of the image processing apparatus, and when the operation is detected by the detection process, the access operation to the disk is interrupted and a new data And a media writing processing step for performing processing for writing data already written in the buffer means to the disk medium when the operation is detected by the detecting step, and Based on whether or not the writing process in the media writing process Characterized by a step of notifying whether or shut off the main power supply by informing means.
上記目的を達成するために、本発明の画像処理装置のディスク保護方法を実行するための制御プログラムは、ディスクメディアと該ディスクメディアにデータを書き込むためのバッファ手段を含むデータ格納用のディスクを有する画像処理装置のディスク保護方法を実行するための制御プログラムであって、前記画像処理装置のメイン電源を遮断するためのユーザの操作を検知する検知ステップと、前記検知ステップによって前記操作が検知された場合に、前記ディスクへのアクセス動作を中断し、新たなデータの書き込みを行わないようにするステップと、前記検知ステップによって前記操作が検知された場合に、前記バッファ手段に既に書き込まれているデータを前記ディスクメディアに書き込む処理を行うメディア書き込み処理ステップと、前記メディア書き込み処理ステップによる書き込み処理をしているかどうかに基づいて、報知手段によりメイン電源を遮断してよいかどうかを報知するステップとを有することを特徴とする。 In order to achieve the above object, a control program for executing a disk protection method for an image processing apparatus according to the present invention includes a disk for data storage including a disk medium and buffer means for writing data to the disk medium. A control program for executing a disk protection method for an image processing apparatus, the detection step detecting a user operation for shutting off a main power supply of the image processing apparatus, and the operation detected by the detection step The operation of accessing the disk is interrupted and new data is not written, and the data already written in the buffer means when the operation is detected by the detecting step. Is a media writing process step for writing to the disk medium. If, based on whether the write processing by the media writing process step, characterized in that a step of notifying whether or shut off the main power supply by informing means.
以上詳細に説明したように本発明によれば、ディスクに対するアクセス中に電源が遮断されることで発生する起動障害を、安価な構成で確実に回避することが可能になる。 As described above in detail, according to the present invention, it is possible to reliably avoid a start-up failure that occurs due to power being shut off during access to a disk with an inexpensive configuration.
以下、本発明の実施の形態を図面に基づいて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[第1の実施形態]
<システム構成>
図1は、本発明の第1の実施形態に係る画像処理装置であるマルチファンクションシステムが搭載されたシステム構成を示すブロック図である。
[First Embodiment]
<System configuration>
FIG. 1 is a block diagram showing a system configuration in which a multi-function system that is an image processing apparatus according to the first embodiment of the present invention is mounted.
同図において、101は機器を接続する既知の技術を用いたネットワークであり、本実施の形態では、TCP/IPプロトコルを用いたイーサネット(登録商標)の使用を想定している。このネットワーク101には、ネットワークスキャナ102と、パソコン(PC)103と、ファックス(FAX)104と、ネットワークプリンタ106,107,108とが接続されている。
In the figure,
ネットワークスキャナ102は、ネットワークインターフェイスを具備すると共に、用紙などに印刷された原稿などを光学的に読み込む装置であり、例えばR(赤),G(緑),B(青)の3色で画像を読み込むカラースキャナである。
The
ファックス104は、ネットワークインターフェイスを具備し、公衆回線105を介して画像データの送受信を行う。このファックス104は、ネットワーク101上のスキャナ102で読み取った画像データを送信したり、受信した画像データをネットワークプリンタ106,107,108から出力したり、パソコン(PC)103でファイル化する画像データを公衆回線105上に入出力するインターフェイスでもある。
The
ネットワークプリンタ106,107,108は、ネットワークインターフェイスを具備し、ネットワークインターフェイスを介して送られる印刷データや画像データを受信し、電子写真技術などの既知の印刷技術を用いて用紙などのメディアに実際に印刷を行う印刷装置であり、ネットワーク101を介して各機器に接続されている。ここでは、106は白黒レーザービームプリンタ、107はカラーレーザープリンタ、108は本実施の形態のマルチファンクションシステムである白黒デジタル複合機をそれぞれ示している。
The
<マルチファンクションシステムの機能構成>
図2は、図1に示したマルチファンクションシステム(白黒デジタル複合機)108の機能構成を示すブロック図である。
<Functional configuration of multi-function system>
FIG. 2 is a block diagram showing a functional configuration of the multi-function system (monochrome digital multifunction peripheral) 108 shown in FIG.
このマルチファンクションシステム108は、コントローラユニット200、操作部312、スキャナ270、及びプリンタ295を備えている。
The
コントローラユニット200は、画像入出力デバイスであるスキャナ270や画像出力デバイスであるプリンタ295と接続される一方、LAN2011や公衆回線(WAN)2051と接続されることで、画像情報やデバイス情報の入出力を行うための制御装置として機能する。
The
以下、コントローラユニット200の内部構成について説明する。図2において、CPU2001は、システム全体を制御するコントローラである。RAM2002はCPU2001が動作するためのシステムワークメモリであり、画像データを一時記憶するための画像メモリでもある。ROM2003はブートROMであり、システムのブートプログラムが格納されている。データ格納用のHDD2004は、ハードディスクメディア、ハードディスクメディアにデータを書き込むためのバッファ、ハードディスクドライブ及びIDEコントローラから成り、システムソフトウェア、画像データ及びそれらの管理情報を格納する。
Hereinafter, the internal configuration of the
操作部I/F2006は、操作部(UI)312とのインターフェイス部であり、操作部312に表示する画像データを操作部312に対して出力する。また、操作部312から本システム使用者が入力した情報をCPU2001に伝える役割をする。ネットワーク2010はLAN2011に接続し、情報の入出力を行う。モデム2050は公衆回線2051に接続し、情報の入出力を行う。以上のデバイスがシステムバス2007上に配置される。
The operation unit I /
イメージバスI/F2005は、システムバス2007と、画像データを高速で転送する画像バス2008とを接続し、データ構造を変換するバスブリッジである。画像バス2008は、PCIバスまたはIEEE1394で構成される。画像バス2008には、ラスターイメージプロセッサ(RIP)2060、デバイスI/F部2020、スキャナ画像処理部2080、プリンタ画像処理部2090、画像回転部2030、及び画像圧縮部2040の、各デバイスが接続されている。
An image bus I / F 2005 is a bus bridge that connects a
ラスターイメージプロセッサ2060は、PDLコードをビットマップイメージに展開する。デバイスI/F部2020は、スキャナ270やプリンタ295とコントローラユニット200とを接続し、画像データの同期系/非同期系の変換を行う。スキャナ画像処理部2080は、入力画像データに対し補正、加工及び編集を行い、プリンタ画像処理部2090は、プリント出力画像データに対して、プリンタの補正や解像度変換等を行う。画像回転部2030は画像データの回転を行い、画像圧縮部2040は、多値画像データをJPEG方式で圧縮伸張処理を行うほか、2値画像画像データをJBIGやMMR及びMH方式で圧縮伸張処理を行う。
The
<マルチファンクションシステムの外観>
図3は、図1に示したマルチファンクションシステム108の外観図である。
<Appearance of multi-function system>
FIG. 3 is an external view of the
マルチファンクションシステムのスキャナ270は、原稿用紙上の画像に投光しながらCCDラインセンサ(図示せず)を走査することで、原稿画像をラスターイメージデータとして電気信号に変換する。装置使用者が、原稿フィーダ272のトレイ273に原稿用紙をセットして、操作部312から読み取り起動指示を行うことにより、コントローラCPU2001がスキャナ270に指示を与え(図2の2071)、フィーダ272は原稿用紙を1枚ずつフィードして原稿画像の読み取り動作を行う。
The
プリンタ295は、ラスターイメージデータを用紙上の画像に変換する装置であり、その方式としては、感光体ドラムや感光体ベルトを用いた電子写真方式、あるいは微少ノズルアレイからインクを吐出して用紙上に直接画像を印字するインクジェット方式等があるが、どの方式でも構わない。
The
プリント動作の起動は、コントローラCPU2001からの指示2096によって開始される。プリンタ295には、異なる用紙サイズや用紙向きを選択できるように複数の給紙段が配置され、それに対応した用紙カセット311、312、313、314が着脱自在に装着されている。そして、印字し終わった用紙は、排紙トレイ310へ排出されるようになっている。
Activation of the printing operation is started by an
<操作部>
図4は、図2に示したマルチファンクションシステム108の操作部312の外観構成を示す図である。
<Operation unit>
FIG. 4 is a diagram showing an external configuration of the
LCD表示部313は、LCD上にタッチパネルシートが貼られており、システムの操作画面を表示するとともに、表示してあるキーが押されるとその位置情報をコントローラCPU2001に伝える。スタートキー314は、原稿画像の読み取り動作を開始する時などに用いる。スタートキー314の中央部には、報知手段としての緑と赤の2色のLED318(発光ダイオード)があり、発光ダイオードの発光する色によってスタートキー314が使える状態にあるかどうかを示す。ストップキー315は稼動中の動作を止める働きをする。IDキー316は、使用者のユーザIDを入力する時に用い、リセットキー317は操作部312からの設定を初期化する時に用いる。
The
<電源制御系>
図5は、図1に示したマルチファンクションシステムの電源制御系のブロック図である。
<Power control system>
FIG. 5 is a block diagram of the power supply control system of the multifunction system shown in FIG.
図中の401はメイン電源スイッチであり、402は電源ユニットである。 In the figure, 401 is a main power switch, and 402 is a power unit.
電源ユニット402は、前述のコントローラユニット200やHDD2004への電源を供給するためのユニットであり、メイン電源スイッチ401を介して供給された交流(AC)の入力を直流(DC)に変換している。
The
<第1の実施の形態に係るハードディスク保護手段>
次に、本実施の形態の特徴を成す、データ格納用のディスクであるハードディスクメディアへのデータ書き込み中に電源が遮断された際のハードディスクメディアを保護する手段(ハードディスク保護手段)について説明する。
<Hard Disk Protection Means According to First Embodiment>
Next, means (hard disk protection means) for protecting the hard disk medium when the power is cut off during data writing to the hard disk medium, which is a data storage disk, which is a feature of the present embodiment will be described.
図6(a)は、電源遮断を事前に検知するための構成を示す図であり、メイン電源のフタ501と、フタ受け部502と、報知手段としてのLEDが内蔵された押しボタン式のメイン電源スイッチ401(ここでは、メイン電源遮断用のスイッチとなる)と、メイン電源スイッチ401の位置をメカ的に制御するバネ制御部507等から成る。
FIG. 6A is a diagram showing a configuration for detecting in advance a power shutdown, and a push button type main unit incorporating a
メイン電源スイッチ401を保護するための保護手段としてのメイン電源のフタ501は、ユーザがメイン電源遮断を行おうとするときに、図6(b)に示す様にユーザがスライドして開けること(メイン電源スイッチ401を保護するための保護手段を解除すること)が必須となる。この解除動作により、フタ501に設けた接点503は、フタ受け部502上の接点504と接触する。この解除の時(検知タイミング)、接点504はGNDレベルとなり、この検知タイミングの情報はフタ501の検知信号DSとしてCPU2001への割り込みを発生させる。CPU2001及びHDD2004の周りの接続を図6(c)に示す。
The main
CPU2001は、フタ501の検知信号DSの割り込みを受けて以下のような処理を行う。図7(a)は、HDD2004への転送中止及びLEDの制御アルゴリズムを示すフローチャートである。
The
まず、フタ501の検知信号DSによる割り込みが発生すると(ステップS11)、報知手段としてのLED401aの赤部分を点灯させる(ステップS12)。これにより、ユーザに対して、メイン電源スイッチ401をオフすることを許可していない旨を伝える。
First, when an interrupt is generated by the detection signal DS of the lid 501 (step S11), the red portion of the
その後、CPU2001はHDD2004(バッファ手段側)へのアクセス(アクセス動作)を中断し、HDD2004(バッファ手段側)への新たなデータの書き込みを行わないようにし(ステップS13)、後述の所定の待ち時間が経過するまで待った後(ステップS14)、赤のLED401aを消灯し(ステップS15)、報知手段としての緑のLED401bを点灯する(ステップS16)。LEDの点灯が赤から緑に変わるのを確認した後、ユーザは図7(b)の様にメイン電源スイッチ401をオフする。
Thereafter, the
これによって、ハードディスクメディアのアクセス中にメイン電源を遮断することを回避することができる。メイン電源スイッチ401は一度押されるとバネ制御部507により、押された状態を保ち続ける。
As a result, it is possible to avoid shutting off the main power supply while the hard disk medium is being accessed. Once the
次に、前述した所定の待ち時間の決定方法について詳細に説明する。 Next, a method for determining the predetermined waiting time described above will be described in detail.
図8(a)は、図7(a)で示したステップS14における待ち時間設定のアルゴリズムを示すフローチャートである。 FIG. 8A is a flowchart showing the waiting time setting algorithm in step S14 shown in FIG.
まず、データ格納用のHDD2004への転送が発生する動作モードが始まって転送要求がCPU2001に入力されると(ステップS21)、CPU2001は、メディア書き込み処理として、HDD2004への転送コマンドを発行する(ステップS22)。HDD2004への転送コマンドが発行されると、HDD2004へのDMA転送が行われ、設定したサイズの転送が終了したときに、CPU2001は転送終了割り込みを受ける(ステップS23)。
First, when an operation mode in which a transfer to the
CPU2001は、転送終了割り込みを受ける度に、設定された転送サイズを加算していく(ステップS24)。累計値がハードディスクメディア内のバッファサイズに達していない場合は(ステップS25)、ステップS22へ戻って引き続き転送コマンドを発行し、HDD2004へのDMA転送を続け、再び割り込みを受けて、転送サイズを加算していく。
The
累計値がハードディスクメディア内のバッファサイズに達した時(ディスク転送時間の測定結果)に(ステップS25)、トータルの転送時間(ディスク転送時間)を算出し、この時間が過去の最大値を越えた場合は(ステップS26)、所定の待ち時間を再設定する(ステップS27)。ステップS26でトータルの転送時間が過去の最大値を越えない場合は、そのままの設定値が保持される。 When the cumulative value reaches the buffer size in the hard disk medium (disk transfer time measurement result) (step S25), the total transfer time (disk transfer time) is calculated, and this time exceeds the past maximum value. In such a case (step S26), a predetermined waiting time is reset (step S27). If the total transfer time does not exceed the past maximum value in step S26, the set value is held as it is.
こうして決定された所定の待ち時間は、HDD2004内バッファのデータを全てハードディスクメディアに書き込むのに必要な時間のうち最も長いケースを基準とすることになるため、上記のようなフタ501の検知信号DSの割り込みを受けてから所定の待ち時間経過した時には、メディア書き込み処理により、HDD2004内バッファに存在するデータはメディアに全て書き込まれている。そのため、緑のLED401bが点灯した時には、ユーザがメイン電源スイッチ401をオフしても、ハードディスクの不具合の発生は回避することができるのである。
The predetermined waiting time determined in this way is based on the longest case of the time required to write all the data in the buffer in the
電源を起動する時には、再びメイン電源スイッチ401をオフすることにより、メイン電源スイッチ401はバネ制御部507の働きにより図6(a)の状態に戻り電源を投入することができる。この時、フタ501が空いている間は上記の構成によりCPU2001に割り込みが入り、HDD2004へのアクセス(アクセス動作)が中断されている。ユーザはHDD2004へのアクセスを開始するためにはフタ501を閉めなければならない。そのため、ユーザに対してこの操作を忘れないように促すため、操作部312の表示部313には図8(b)のような表示を発生させておく必要がある。
When starting the power supply, the
このように本実施の形態では、データ格納用のHDDを有するマルチファンクションシステムにおいて、ユーザがメイン電源を遮断する行為を、検知手段(メイン電源スイッチのフタ501等)が検知したとき、ユーザには赤のLED401aの点灯で電源オフの不許可を示すと同時に、事前にハードディスクメディアへの書き込みを中断し、ハードディスクメディアへの書き込みが完全に終了するまでの十分な時間が経過した後に、ユーザに対して、メイン電源を遮断してよいかどうかの確認メッセージを緑のLED401bの点灯で知らせる。ハードディスクメディアへの書き込みが完全に終了するまでの十分な時間は、通常動作時に、HDD2004が有するバッファ容量分の転送時間におけるワーストケースを自動計測した結果に基づいて設定される。
As described above, in the present embodiment, in a multi-function system having an HDD for storing data, when the detection means (the main
これにより、ハードディスクメディアへのデータの書き込み中に電源が遮断されることで、セクタ不良による起動障害に陥ることを事前に回避することができる。 As a result, it is possible to avoid in advance a start-up failure due to a sector failure due to the power being shut off during the writing of data to the hard disk medium.
本実施の形態では、LED401aの赤点灯で電源オフの不許可を示し、メイン電源を遮断してよいかどうかの確認メッセージを緑のLED401bの点灯で示したが、これに限らず、メイン電源スイッチ401に、LEDの代わりにスピーカを付けて音声メッセージとしてユーザに注意を促してもよい。即ち、赤のLED401aの点灯するタイミングで、ユーザに電源オフ不許可の音声メッセージを出力し、緑のLED401bの点灯するタイミングで、メイン電源を遮断してよいかの確認用の音声メッセージを出力する。また、LCD表示部313で同様の表示を行うようにしてもよい。
In the present embodiment, the
また、本実施の形態では、HDD2004内バッファに保持されているデータのハードディスクメディアへの書き込みが完全に終了するまでの十分な時間は、HDD2004が有するバッファ容量分の転送時間におけるワーストケースを自動計測した結果に基づいて設定されたが、これに限らず、通常転送を行い得るのに十分な所定時間であればよい。
In this embodiment, the worst case in the transfer time corresponding to the buffer capacity of the
[第2の実施の形態]
本第2の実施の形態が上述の第1の実施の形態と異なる点は、ハードディスク保護手段のみが異なり、前述した図1〜図4で説明した構成は同じである。
[Second Embodiment]
The second embodiment differs from the first embodiment described above only in the hard disk protection means, and the configuration described with reference to FIGS. 1 to 4 is the same.
<第2の実施の形態に係るハードディスク保護手段>
以下、本発明の第2の実施の形態に係るハードディスク保護手段について説明する。
<Hard Disk Protection Means According to Second Embodiment>
The hard disk protection means according to the second embodiment of the present invention will be described below.
図9は、本発明の第2の実施の形態に係るマルチファンクションシステムの電源制御系を示すブロック図である。 FIG. 9 is a block diagram showing a power supply control system of the multifunction system according to the second embodiment of the present invention.
この電源制御系は、メイン電源1001、サブ電源1002、リセット回路1003、リレー制御回路1004、リレー1005、及びメイン電源スイッチ401から成る。
The power supply control system includes a
メイン電源1001は、前述したコントローラユニット200やHDD2004へ電源を供給するためのユニットであり、交流(AC)の入力を直流(DC)に変換している。本システムの大半の電力供給は、このメイン電源1001によって行われる。
The
サブ電源1002は、メイン電源スイッチ401のオン/オフを受けてリセット回路1003にDCを供給するために使用され、メイン電源1001より遙かに小容量の電源ユニットで構成されている。
The
以下、図10(a),(b)のフローチャートを参照しつつ、本電源制御系の動作について説明する。なお、図10(a)は、メイン電源スイッチ401がオンされた時の電源制御の流れを示すフローチャートであり、図10(b)は、メイン電源スイッチ401がオフされた時の電源制御の流れを示すフローチャートである。
Hereinafter, the operation of the power supply control system will be described with reference to the flowcharts of FIGS. 10 (a) and 10 (b). 10A is a flowchart showing a flow of power control when the
まず、図10(a)において、メイン電源スイッチ401がオンされると(ステップS31)、サブ電源1002に交流電源ACが投入される。サブ電源1002はDC電源を発生させ、それを受けてリセット回路1003はreset信号の”H”レベルを出力する(ステップS32)。
First, in FIG. 10A, when the
リレー制御回路1004はreset信号の”H”レベルを受けるとリレー1005をオンする(ステップS33)。その結果、メイン電源1001に交流電源ACが供給されるため、コントローラユニット200及びHDD2004に電源が供給される。
When receiving the “H” level of the reset signal, the
コントローラユニット200に電源が供給されると、コントローラユニット200の出力信号であるpower・down信号が”H”レベルにディアサートされる(ステップS34)。リレー制御回路1004は、reset信号、power・down信号のいずれかが”H”レベルである限りリレー1005をオンし続ける。
When power is supplied to the
図10(b)において、メイン電源スイッチ401がオフされると(ステップS41)、サブ電源1002に投入されていた交流電源ACが途絶えて出力のDC電源が遮断するため、それを検知したリセット回路1003は、reset信号の”L”レベルを出力する(ステップS42)。リセット回路1003のリセット出力は、コントローラユニット200内のCPU2001への割り込み信号としても使用されているため、コントローラユニット200のCPU2001は、リセット回路1003のリセット出力のタイミングを知ることができる。
In FIG. 10B, when the
コントローラユニット200のCPU2001は上記割り込みを受けると(ステップS43)、まず、データ格納用のHDD2004へのアクセス(アクセス動作)を中断し、HDD2004への新たなデータの書き込みを行わないようにする(ステップS44)。
When the
ハードディスクには通常バッファ部とメディア部が存在し、コントローラユニット200のアクセス中断後もハードディスク内バッファ部に存在するデータはメディア部に書き込まれる。近年、このバッファの容量は増加する傾向にあり、アクセス中断からメディア転送終了までの時間差は無視できないものとなっている。そのため、この時間差である”所定の時間”を後述のルーチンでカウントし(ステップS45)、HDD2004への書き込み動作中でないタイミングを見つけて、前述のpower・down信号を”L”レベルに出力する(ステップS46)。これにより、power・down信号とreset信号が共に”L”レベルになるため、リレー制御回路1004はリレー1005をオフする(ステップS47)。
The hard disk normally has a buffer unit and a media unit, and data existing in the buffer unit in the hard disk is written to the media unit even after the access of the
リレー1005がオフされると、メイン電源1001に交流電源ACが供給されなくなり、メインコントローラユニット200及びHDD2004の電源が遮断され、システムが停止する。
When the
このように、本実施の形態によれば、HDD2004が書き込み動作状態でないことが確認されてから電源を遮断するため、HDD2004の不良セクタ発生に伴う起動不良に至る危険性を抑えることができる。
As described above, according to the present embodiment, since it is confirmed that the
また、前述したステップS45における所定の待ち時間の決定方法については、図8(a)を用いて第1の実施の形態で説明したものと同じである。こうして決定された所定の待ち時間は、HDD2004内のバッファ部のデータを全てメディアに書き込むのに十分な時間のうち最も長いケースを基準とすることになるため、上記のようなメイン電源スイッチ401のオフ時に発生する割り込みを受けてから所定の待ち時間経過した時には、HDD2004内のバッファ部に存在するデータはメディアに全て書き込まれている。そのため、前述のリレー1005がオフされた時には、HDD2004の書き込み動作が完全に終了しているため、電源遮断に伴う不具合の発生を回避することができるのである。
The predetermined waiting time determination method in step S45 described above is the same as that described in the first embodiment with reference to FIG. The predetermined waiting time determined in this way is based on the longest case among the time sufficient to write all the data in the buffer unit in the
なお、上述した図7(a)、図8(a)、及び図10(a),(b)のフローチャートに従ったプログラムをコントローラユニット200内の例えばROM2003に格納し動作することにより、上述の制御方法を実現させることが可能となる。
7A, FIG. 8A, FIG. 10A, and FIG. 10B are stored in the
また、上記各実施の形態では、ハードディスクの保護に限定して説明したが、同様の手法で、他の記録メディアへのデータ書き込み中に電源が遮断された場合にも適用することができる。即ち、システムの起動に支障を与えることを防ぐことができるのであれば、ハードディスクに限らず、他のメディア(例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM)に適用してもよいことは言うまでもない。 In each of the above embodiments, the description is limited to the protection of the hard disk. However, the present invention can also be applied to a case where the power is shut off during data writing to another recording medium by the same method. That is, as long as it can prevent the system from being hindered, it is not limited to a hard disk, but other media (for example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD). -R, magnetic tape, non-volatile memory card, ROM), it goes without saying.
本発明は、上述した実施の形態の装置に限定されず、複数の機器から構成されるシステムに適用しても、1つの機器から成る装置に適用してもよい。即ち、マルチファンクションシステムについて説明したが、これに限らず、プリンタ装置、スキャナ装置、ファクシミリ装置であってもよい。前述した実施の形態の機能を実現するCPUのプログラムコードを記憶した記憶媒体をシステムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、完成されることは言うまでもない。 The present invention is not limited to the apparatus of the above-described embodiment, and may be applied to a system constituted by a plurality of devices or an apparatus constituted by one device. That is, the multi-function system has been described. However, the present invention is not limited to this, and a printer device, a scanner device, or a facsimile device may be used. A storage medium storing the CPU program code for realizing the functions of the above-described embodiments is supplied to the system or apparatus, and the computer (or CPU or MPU) of the system or apparatus reads the program code stored in the storage medium. It goes without saying that it is completed by executing.
この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施の形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。プログラムコードを供給するための記憶媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROMを用いることができる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施の形態の機能が実現されるだけではなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOSなどが実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現される場合も含まれることは言うまでもない。 In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. As a storage medium for supplying the program code, for example, a floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM should be used. Can do. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also the OS running on the computer based on the instruction of the program code performs the actual processing. It goes without saying that a case where the functions of the above-described embodiment are realized by performing part or all of the above and the processing thereof is included.
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、次のそのプログラムコードの指示に基づき、その拡張機能を拡張ボードや拡張ユニットに備わるCPUなどが処理を行って実際の処理の一部または全部を行い、その処理によって前述した実施の形態の機能が実現される場合も含まれることは言うまでもない。 Furthermore, after the program code read from the storage medium is written to the memory provided in the function expansion board inserted into the computer or the function expansion unit connected to the computer, the program code is read based on the instruction of the next program code. It goes without saying that the CPU of the expansion board or the expansion unit performs the processing of the extended function to perform part or all of the actual processing, and the function of the above-described embodiment is realized by the processing. .
200 コントローラユニット
401 メイン電源スイッチ
401a,401b LED
402 電源ユニット
501 メイン電源のフタ
502 フタ受け部分
507 バネ制御部
1001 メイン電源
1002 サブ電源
1003 リセット回路
1004 リレー制御回路
1005 リレー
2004 HDD
200
402
Claims (9)
前記ディスクは、ディスクメディアと該ディスクメディアにデータを格納するためのバッファ手段を有し、
当該画像処理装置のメイン電源を遮断するためのユーザの操作を検知する検知手段と、
前記検知手段によって前記操作が検出された場合に、前記ディスクへのアクセス動作を中断し、新たなデータの書き込みを行わないようにするアクセス中断手段と、
前記検知手段によって前記操作が検知された場合に、前記バッファ手段に既に書き込まれているデータを前記ディスクに書き込み処理を行うメディア書き込み処理手段と、
前記メイン電源の遮断に関する情報を報知する報知手段とを有し、
前記メディア書き込み処理手段による書き込み処理をしているかどうかに基づいて、前記報知手段はメイン電源を遮断してよいかどうかを報知することを特徴とする画像処理装置。 In an image processing apparatus having a disk for storing data,
The disk has a disk medium and buffer means for storing data in the disk medium,
Detecting means for detecting a user operation for shutting off a main power supply of the image processing apparatus;
An access interruption means for interrupting an access operation to the disk and not writing new data when the operation is detected by the detection means;
Media writing processing means for writing data already written in the buffer means to the disk when the operation is detected by the detecting means;
An informing means for informing information relating to the shutoff of the main power supply,
The image processing apparatus according to claim 1, wherein the notifying unit notifies whether or not the main power supply may be shut off based on whether or not the writing process by the media writing processing unit is performed.
前記画像処理装置のメイン電源を遮断するためのユーザの操作を検知する検知工程と、
前記検知工程によって前記操作が検知された場合に、前記ディスクへのアクセス動作を中断し、新たなデータの書き込みを行わないようにする工程と、
前記検知工程によって前記操作が検知された場合に、前記バッファ手段に既に書き込まれているデータを前記ディスクメディアに書き込む処理を行うメディア書き込み処理工程と、
前記メディア書き込み処理工程による書き込み処理をしているかどうかに基づいて、報知手段によりメイン電源を遮断してよいかどうかを報知する工程とを有することを特徴とする画像処理装置のディスク保護方法。 In a disk protection method for an image processing apparatus having a disk for storing data including a disk medium and buffer means for writing data to the disk medium,
A detection step of detecting a user operation for shutting off a main power supply of the image processing apparatus;
A step of interrupting an access operation to the disk and not writing new data when the operation is detected by the detection step;
A media write processing step for performing a process of writing data already written in the buffer means to the disk media when the operation is detected by the detection step;
A disc protection method for an image processing apparatus, comprising: notifying a main power supply by an informing means based on whether or not the writing process in the media writing process step is performed.
前記画像処理装置のメイン電源を遮断するためのユーザの操作を検知する検知ステップと、
前記検知ステップによって前記操作が検知された場合に、前記ディスクへのアクセス動作を中断し、新たなデータの書き込みを行わないようにするステップと、
前記検知ステップによって前記操作が検知された場合に、前記バッファ手段に既に書き込まれているデータを前記ディスクメディアに書き込む処理を行うメディア書き込み処理ステップと、
前記メディア書き込み処理ステップによる書き込み処理をしているかどうかに基づいて、報知手段によりメイン電源を遮断してよいかどうかを報知するステップとを有することを特徴とする制御プログラム。 A control program for executing a disk protection method of an image processing apparatus having a disk for storing data including a disk medium and buffer means for writing data to the disk medium,
A detection step of detecting a user operation for shutting off a main power supply of the image processing apparatus;
A step of interrupting an access operation to the disk and not writing new data when the operation is detected by the detection step;
A media writing processing step for performing processing for writing data already written in the buffer means to the disk media when the operation is detected by the detecting step;
And a step of notifying whether or not the main power supply may be shut off based on whether or not the writing process in the media writing process step is performed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007197489A JP2007334906A (en) | 2003-05-22 | 2007-07-30 | Image processor, disk protection method therefor, and control program for executing disk protection method |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003144933 | 2003-05-22 | ||
JP2007197489A JP2007334906A (en) | 2003-05-22 | 2007-07-30 | Image processor, disk protection method therefor, and control program for executing disk protection method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004137655A Division JP2005011320A (en) | 2003-05-22 | 2004-05-06 | Image processor, its disk protection method, medium for providing control program, and control program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007334906A true JP2007334906A (en) | 2007-12-27 |
Family
ID=38934258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007197489A Pending JP2007334906A (en) | 2003-05-22 | 2007-07-30 | Image processor, disk protection method therefor, and control program for executing disk protection method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007334906A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011059959A (en) * | 2009-09-09 | 2011-03-24 | Mitsubishi Electric Corp | Computer device for vehicle |
EP2392987A1 (en) | 2010-06-02 | 2011-12-07 | Ricoh Company, Ltd. | Image processing apparatus |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62209604A (en) * | 1986-03-11 | 1987-09-14 | Fujitsu Ltd | Power supply cut-off system for information processing system |
JPS63305445A (en) * | 1987-06-08 | 1988-12-13 | Fujitsu Ltd | Data writing system at power break |
JPS63308621A (en) * | 1987-06-10 | 1988-12-16 | Canon Inc | Power source control circuit |
JPH0375810A (en) * | 1989-08-17 | 1991-03-29 | Mitsubishi Electric Corp | Electronic computer |
JPH0651879A (en) * | 1992-07-31 | 1994-02-25 | Fujitsu Ltd | Power source interruption processing system |
-
2007
- 2007-07-30 JP JP2007197489A patent/JP2007334906A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62209604A (en) * | 1986-03-11 | 1987-09-14 | Fujitsu Ltd | Power supply cut-off system for information processing system |
JPS63305445A (en) * | 1987-06-08 | 1988-12-13 | Fujitsu Ltd | Data writing system at power break |
JPS63308621A (en) * | 1987-06-10 | 1988-12-16 | Canon Inc | Power source control circuit |
JPH0375810A (en) * | 1989-08-17 | 1991-03-29 | Mitsubishi Electric Corp | Electronic computer |
JPH0651879A (en) * | 1992-07-31 | 1994-02-25 | Fujitsu Ltd | Power source interruption processing system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011059959A (en) * | 2009-09-09 | 2011-03-24 | Mitsubishi Electric Corp | Computer device for vehicle |
EP2392987A1 (en) | 2010-06-02 | 2011-12-07 | Ricoh Company, Ltd. | Image processing apparatus |
US9063716B2 (en) | 2010-06-02 | 2015-06-23 | Ricoh Company, Limited | Image processing apparatus and method for interrupting a power supply in response to a user's operation or a kernel of the operating system to switch the power supply between a supply of power and an interruption of power to the apparatus, when a time lapse since an interrupt request notification was sent, exceeds one of a plurality of predetermined times |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20070250733A1 (en) | Apparatus having power saving mode and method of controlling apparatus | |
CN103489415B (en) | Reduce the image processing system and the control method thereof that return the time used from dormancy | |
JP2007043665A (en) | Image forming apparatus and method of controlling the same | |
JP4182090B2 (en) | Data processing device | |
JP2013246491A (en) | Information processing device, control method of information processing device, program, and recording medium | |
KR101684229B1 (en) | Image forming apparatus, method for controlling the same, recording medium, and image forming system | |
JP2008065242A (en) | Image forming apparatus | |
US9291983B2 (en) | Image forming apparatus, control method and program | |
JP2000196789A (en) | Energy saving returning method and recorder using the same | |
JP2006092481A (en) | Information processing apparatus | |
US7424627B2 (en) | Storage device protection system, method for protecting hard disk thereof, medium for providing control program, and control program | |
JP2007334906A (en) | Image processor, disk protection method therefor, and control program for executing disk protection method | |
JP2005011320A (en) | Image processor, its disk protection method, medium for providing control program, and control program | |
US9268290B2 (en) | Image forming apparatus, image forming apparatus control method, and storage medium | |
JP2010131929A (en) | Electronic equipment and control method thereof | |
JP2007025882A (en) | Means of fast recovery from power-saving mode | |
JP5736684B2 (en) | Image forming system, image forming system control method, control program, and recording medium | |
JP4507678B2 (en) | Processing equipment | |
JP2006095741A (en) | Information processing equipment | |
JP2014079957A (en) | Image formation device, image formation device control method, and program | |
JP2010000702A (en) | Image forming apparatus, power supply control method executed in image forming apparatus, power supply control program, and image forming system | |
JPH11301078A (en) | Composite apparatus | |
JP2018197991A (en) | Alteration detecting device, control method thereof, and program | |
JP6743206B2 (en) | Information processing apparatus, control method of information processing apparatus, program, and recording medium | |
JP7000497B2 (en) | Printing device and control method of printing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090916 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090929 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20100510 |