Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3888010B2 - Disk controller - Google Patents
[go: Go Back, main page]

JP3888010B2 - Disk controller - Google Patents

Disk controller Download PDF

Info

Publication number
JP3888010B2
JP3888010B2 JP30845099A JP30845099A JP3888010B2 JP 3888010 B2 JP3888010 B2 JP 3888010B2 JP 30845099 A JP30845099 A JP 30845099A JP 30845099 A JP30845099 A JP 30845099A JP 3888010 B2 JP3888010 B2 JP 3888010B2
Authority
JP
Japan
Prior art keywords
information
vibration
image data
disk
hard disk
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.)
Expired - Fee Related
Application number
JP30845099A
Other languages
Japanese (ja)
Other versions
JP2001126373A (en
Inventor
淳 宇賀神
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP30845099A priority Critical patent/JP3888010B2/en
Publication of JP2001126373A publication Critical patent/JP2001126373A/en
Application granted granted Critical
Publication of JP3888010B2 publication Critical patent/JP3888010B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ディスク制御装置に係り、より詳しくは、ハードディスク等の情報を記憶するディスク装置の動作を制御するディスク制御装置に関する。
【0002】
【従来の技術】
ハードディスクでは一般に、ディスク状の記録媒体をスピンドルモータで回転駆動しているが、該スピンドルモータは構造上、回転駆動中における外部からの衝撃に対して弱いため、外部からの衝撃に起因してアクセスヘッドと記録媒体とが接触しやすく、不良セクタが発生しやすい。
【0003】
また、ハードディスクの記録媒体は、不良セクタが発生しないまでも、振動、衝撃等によるヘッドと記録媒体との接触によって表面に傷が付いてしまうこともある。この場合は、傷が付いた瞬間にアクセス不能となる場合もあるし、状態によっては、それ以降の傷が付いた記録領域に対するアドレスをアクセスしたときのリトライ回数が増えることも有り得る。また、この時点では実使用上問題なかったとしても、そのアドレスを頻繁にアクセスするようであれば、加速的に傷が広がり、将来的にアクセス不能となる可能性もある。
【0004】
不良セクタは一般に初期化時から既に存在し、その後磁気の劣化等によっても発生するが、例えばデジタル複写機の画像処理装置に搭載された後の市場においては、用紙トレイの抜き差し等による外部からの振動・衝撃によって発生する場合も少なくない。
【0005】
一方、デジタル画像処理装置の処理速度は年々高速化されており、画像データを記憶するために用いられるハードディスクに対するアクセスのリトライ回数が多くなったり、書き込み、読み出しが突然できなくなる等の問題が発生することは、すぐさま画像処理装置の停止、若しくはパフォーマンスの低下につながることになる。
【0006】
このような問題に対して、特開平5−130545号公報には、振動検出手段による検出結果に応じて、画像信号を記録媒体に記録する動作を中止する、若しくは記録媒体に記録された画像信号をベリファイする技術が記載されている。
【0007】
また、特開平10−65891号公報には、記録媒体にアクセスする際に、エラー発生回数や所要時間を測定し、規定値を超えている場合に該当する領域を使用禁止領域に設定する技術が記載されており、この技術によればエラー検出の確実性を高めることができる。
【0008】
また、特開平10−162529号公報には、振動センサからの検出信号が異常値から通常値に戻った後、ハードディスクの検査実行後に、異常振動検出時にメモリに待避させておいた処理中の作業内容を最初から再実行させる技術が記載されている。
【0009】
更に、特開平10−11881号公報には、振動検知手段によって検知された振動が所定量より大きな場合に、情報記録装置に対するデータのアクセスを禁止し、所定量以下となった場合に上記アクセスを許可する技術が記載されている。この技術は移動する物体を対象とした技術であり、振動検知手段は物体の進行方向前方に設置されており、該振動検知手段によって振動が検知されてから実際に情報記録装置が振動を受けるまでの時間内でヘッドを作用点から待避点まで移動するものである。
【0010】
【発明が解決しようとする課題】
しかしながら、上記特開平5−130545号公報、特開平10−162529号公報、及び特開平10−11881号公報に記載の技術では、異常振動が検知されてから該異常振動が記録媒体へのアクセスに影響を与えるまでの期間が短い場合には、記録媒体への損傷を防止することができない場合が多く、この場合には、その後の記録媒体に対するアクセスのリトライ回数の増加や突然のアクセス不能状態の発生を防止することができない、という問題点があった。
【0011】
また、上記特開平10−65891号公報に記載の技術は、記録媒体へのアクセス中における状態に応じて使用禁止領域を設定しているものであるので、異常振動によって記録媒体が損傷を受けた場合における、その後の記録媒体へのアクセスのリトライ回数の増加や突然のアクセス不能状態の発生を防止することができない、といった問題点があった。
【0012】
本発明は上記問題点を解消するために成されたものであり、記録媒体に対するアクセスのリトライ回数の増加や突然のアクセス不能状態の発生を防止することができるディスク制御装置を提供することを目的とする。
【0013】
【課題を解決するための手段】
上記目的を達成するために、請求項1記載のディスク制御装置は、情報を記憶するディスク装置を制御するディスク制御装置において、前記ディスク装置の振動を検出する検出手段と、前記ディスク装置に対する情報の書き込みまたは、読み出しのためのアクセス中に前記検出手段が所定レベル以上の振動を検出した場合に、当該アクセス中のアドレスに対応する記憶領域の当該アクセスが情報の書き込みの場合は当該アクセス以降、当該アクセスが情報の読み出しの場合は残りの情報を読み出した以降の使用を禁止する処理を行うと共に、当該アクセスが情報の読み出し中のときに、情報の残りを読み出して、前記ディスク装置とは異なる記憶手段に記憶するか、又は前記読み出した情報を前記所定レベル以上の振動が終了した後に前記ディスク装置の前記アドレスとは異なるアドレスに対応する記憶領域に記憶する禁止処理手段と、を備えたことを特徴としている。
【0014】
請求項1に記載のディスク制御装置によれば、情報を記憶するディスク装置の振動が検出手段によって検出される。なお、上記検出手段には、可変容量型ピックアップ、動電型ピックアップ、圧電型ピックアップ、うず電流型ピックアップ等の全ての振動センサが含まれる。また、上記ディスク装置には、ハードディスクドライブ、フロッピィディスクドライブ、コンパクトディスクドライブ、光磁気ディスクドライブ等の、記録媒体と、該記録媒体に対するアクセスを行うヘッドとを有する全てのディスク装置が含まれる。
【0015】
また、請求項1記載のディスク制御装置では、ディスク装置に対するアクセス中に検出手段が所定レベル以上の振動を検出した場合に、当該アクセス中のアドレスに対応する記憶領域の以降の使用を禁止する処理が禁止処理手段によって行われる。なお、上記所定レベルとしては、ディスク装置のアクセス中に発生した場合にディスク装置内の記録媒体に損傷が発生し得る振動の大きさに対応する値、該値より若干小さな値等を適用することができる。
【0016】
このように、請求項1に記載のディスク制御装置によれば、ディスク装置に対する情報の書き込みまたは、読み出しのためのアクセス中に所定レベル以上の振動を検出した場合に、当該アクセス中のアドレスに対応する記憶領域の、当該アクセスが情報の書き込みの場合は当該アクセス以降、当該アクセスが情報の読み出しの場合は残りの情報を読み出した以降の使用を禁止しているので、振動による記録媒体の損傷に起因した記録媒体に対するアクセスのリトライ回数の増加や突然のアクセス不能状態の発生を防止することができる。
【0017】
また、請求項2記載のディスク制御装置は、請求項1記載の発明において、前記ディスク装置に情報を書き込んでいるときに前記検出手段が所定レベル以上の振動を検出した場合に、前記書き込んでいる情報を保持する保持手段を更に備えたことを特徴とするものである。
【0018】
請求項2に記載のディスク制御装置によれば、請求項1記載の発明において更に、ディスク装置に情報を書き込んでいるときに検出手段が所定レベル以上の振動を検出した場合に、上記書き込んでいる情報が保持手段によって保持される。
【0019】
このように、請求項2に記載のディスク制御装置によれば、請求項1記載の発明と同様の効果を奏することができると共に、ディスク装置に情報を書き込んでいるときに所定レベル以上の振動を検出した場合に、上記書き込んでいる情報を保持しているので、該保持した情報を情報の読み出し時に読み出すことによって正確な情報を得ることができる。
【0020】
また、請求項3記載のディスク制御装置は、請求項2記載の発明において、前記保持手段は、前記書き込んでいる情報を前記ディスク装置とは異なる前記記憶手段に記憶することにより保持するか、又は前記書き込んでいる情報を前記所定レベル以上の振動が終了した後に前記ディスク装置の前記アクセス中のアドレスとは異なるアドレスに対応する記憶領域に記憶することにより保持することを特徴とするものである。
【0021】
請求項3に記載のディスク制御装置によれば、請求項2記載の保持手段によって、上記書き込んでいる情報がディスク装置とは異なる記憶手段に記憶されることにより保持されるか、又は上記書き込んでいる情報が上記所定レベル以上の振動が終了した後にディスク装置の上記アクセス中のアドレスとは異なるアドレスに対応する記憶領域に記憶されることにより保持される。なお、上記記憶手段としては、あらゆる記録媒体を適用することができるが、特に、振動の影響を受けることがないRAM、EEPROM、フラッシュメモリ等の半導体メモリを適用することが好ましい。
【0022】
このように、請求項3に記載のディスク制御装置によれば、ディスク装置に情報を書き込んでいるときに所定レベル以上の振動を検出した場合に、上記書き込んでいる情報をディスク装置とは異なる記憶手段に記憶することにより保持するか、又は上記書き込んでいる情報を所定レベル以上の振動が終了した後にディスク装置のアクセス中のアドレスとは異なるアドレスに対応する記憶領域に記憶することにより保持しているので、上記書き込んでいる情報を確実に保持することができる。
【0023】
【発明の実施の形態】
以下、図面を参照して、本発明の実施の形態について詳細に説明する。なお、本実施の形態では、本発明のディスク制御装置をデジタル複写機に適用した場合について説明する。
【0024】
〔第1実施形態〕
まず、図1を参照して、本発明を適用したデジタル複写機10の構成について説明する。
【0025】
同図に示すように、本実施の形態に係るデジタル複写機10は、画像入力手段となる画像入力装置20と、該画像入力装置20から入力された実画像データに種々の画像処理を施す画像処理装置30と、該画像処理装置30で画像処理された実画像データを可視画像としてプリント出力する画像出力装置40と、を含んで構成されている。
【0026】
画像入力装置20は複数枚の原稿をプラテンガラス上に連続給紙できる自動原稿送り装置21と共に、プラテンガラス上に置かれた原稿の画像を読み取り走査するスキャナーユニットとして、露光ランプ22、反射ミラー23、結像レンズ24、及びCCDセンサ25を備えている。露光ランプ22の出射光に基づく原稿からの反射光は、反射ミラー23、結像レンズ24を経て光電変換素子であるCCDセンサ25の撮像面に結像される。
【0027】
一方、制御系としては、ユーザ・インタフェース(UI)となる操作パネル26と共に、上記自動原稿送り装置21及び上記スキャナーユニットを含む画像入力装置20全体を制御する画像入力制御部27を有しており、画像処理装置30から出力される画像入力制御信号は、この画像入力制御部27に入力される構成となっている。なお、上記操作パネル26には、オペレータからの各種指示等を入力するためのスイッチ類が設けられていると共に、オペレータに対して各種表示を行うための表示部が設けられている。
【0028】
画像処理装置30は、画像入力装置20から入力された実画像データに、MTF(Modulation Transfer Function、光学的伝達関数)補正、階調補正、色補正、画像圧縮伸長処理等の画像処理を施すもので、入力された実画像データは上記のような画像処理が施された後に記憶される。この画像処理装置30では、全ての実画像データの入力が終了した後、記憶した画像データを一定のピッチで指定順に指定回数だけ画像出力装置40に出力する。
【0029】
画像出力装置40は、レーザービームスキャナー41、ゼログラフィエンジン42、及び用紙搬送機構43と、これら全体を制御する画像出力制御部44とを含んで構成されている。画像処理装置30から出力された画像データは、レーザービームスキャナー41に入力され、これに伴うレーザダイオードの駆動と共に、露光のためのレーザビームが出射される。感光体45を中心としたゼログラフィエンジン42では、露光・現像された感光体45上の可視像を用紙46に転写し、これを定着器47に通してトレイ48に排出する。この画像出力装置40では、一定ピッチで連続して画像の出力(プリント)が可能となっている。
【0030】
図2には、本実施の形態に係る画像処理装置30のブロック図が示されている。同図に示すように、本実施の形態に係る画像処理装置30には、画像入力装置20から入力された実画像データをデジタル画像データに変換する図示しないA/D変換器、該A/D変換器によって得られたデジタル画像データに対して階調補正、色補正等の必要な画像処理を施す図示しない画像処理部、該画像処理部によって画像処理が施されたデジタル画像データの圧縮や圧縮されたデジタル画像データの伸長を行う画像圧縮伸長部31、上記デジタル画像データを一次的に蓄積するメモリバッファ32、上記画像圧縮伸長部31によって圧縮されたデジタル画像データに対するソーティング、並べ替え等の処理を行うためにデジタル画像データを順次蓄積する大容量のハードディスク33、該ハードディスク33を制御するディスク制御部34、他の装置の制御部(画像入力制御部27、画像出力制御部44)や操作パネル26とのシリアル通信を行うシリアル入出力部35、各種制御プログラムを実行して画像処理装置30全体の制御を司るCPU(中央演算装置)36、該CPU36によって実行される制御プログラムや各種パラメータ等を記憶したROM37、CPU36によって制御プログラムが実行されている際のワークエリア等として使用されるRAM38等を含んで構成されている。
【0031】
なお、本実施の形態におけるRAM38は図示しないバッテリでバックアップされている所謂バッテリバックアップメモリとして構成されており、デジタル複写機10の主電源がオフされても、RAM38に記憶された内容を保持することができる。
【0032】
図2に示すように、上記画像圧縮伸長部31、メモリバッファ32、ディスク制御部34、シリアル入出力部35、CPU36、ROM37、及びRAM38は共通のバスに接続されており、CPU36は画像圧縮伸長部31、メモリバッファ32、ディスク制御部34、シリアル入出力部35、ROM37、及びRAM38とアクセス可能とされている。
【0033】
また、画像処理装置30のハードディスク33の近傍には、CPU36に接続された振動検出部39が設けられており、CPU36はハードディスク33近傍における所定レベル以上の振動の発生を認知することができる。
【0034】
振動検出部39はハードディスク33近傍の振動を検出して、振動の大きさに応じたレベルのアナログ信号を出力する図示しない振動センサと、該振動センサから出力されたアナログ信号を所定の振動検出閾値に基づいてデジタル信号(以下、振動検出信号という)に変換する図示しないA/D変換器を含んで構成されている。
【0035】
すなわち振動検出部39では、図3に示すように、ハードディスク33近傍に外部衝撃等により振動が発生した場合に、振動検出部39に含まれる振動センサによって上記振動の大きさに応じたアナログ信号が出力され、該アナログ信号が振動検出部39に含まれるA/D変換器によって所定の振動検出閾値以上となっている期間をパルス幅とした振動検出信号(デジタル信号)に変換されて出力される。
【0036】
なお、本実施の形態では、上記所定の振動検出閾値を、ハードディスク33のアクセス中に発生した場合に記録媒体に損傷が発生し得る振動の大きさに対応する値より若干小さな値としている。従って、ハードディスク33のアクセス中に上記振動検出閾値以上のレベルの振動が発生した場合には振動検出部39から振動検出信号が出力され、この場合はハードディスク33の記録媒体に損傷が発生した可能性があることを示す。
【0037】
ところで、ハードディスク33における最小記憶単位は1セクタと呼ばれており、1セクタは通常512バイトとされている。しかしながら、一般に画像データは1セクタより遥かに大きな量であるため、セクタ単位で管理すると該管理が複雑になり、また該管理におけるワークエリア等として使用されるメモリ(本実施の形態ではRAM38)の容量を大きくする必要もあるため、コスト的に不利である。
【0038】
そこで、本実施の形態では、セクタを複数まとめた単位をブロックとして、該ブロック単位でハードディスクを管理するようにしており、画像データを1ブロック毎に繰り返しハードディスク33に記憶することにより、所定量の画像データをハードディスク33に記憶している。なお、本実施の形態では、1ブロックを256セクタ(128kバイト)としている。
【0039】
図4は、上述したRAM38のメモリマップを示す図である。同図に示すようにRAM38の内部には、ページ情報テーブルT1、エラー情報テーブルT2、及びその他領域T3が存在する。
【0040】
ページ情報テーブルT1には、ハードディスク33に格納された各ページの画像データに関する情報が格納される。具体的には、図5に示すように、ページ毎の画像サイズ、ハードディスク33における記録媒体上の格納位置を示すための先頭ブロックアドレス、及びその他必要な情報が格納される。
【0041】
一方、エラー情報テーブルT2には、図6に示すように、ハードディスク33が持つ複数のブロックにつき、各々のブロック(#0、#1、・・・、#m)毎にエラー情報が格納される。
【0042】
なお、本実施の形態におけるエラー情報には、ハードディスク33への画像データの書き込み中、或いはハードディスク33からの画像データの読み出し中に、ハードディスク33近傍において上述した振動検出閾値以上のレベルの振動が発生した場合に、当該振動発生の際にアクセスしていたアドレスに対応するハードディスク33のブロック毎の記憶領域を、それ以降使用しない旨を示す使用禁止情報が含まれている。
【0043】
具体的には、上述した振動検出閾値以上のレベルの振動が発生した場合に、アクセス中のブロックに対応するエラー情報に含まれる上記使用禁止情報として‘1’を設定する。また、装置出荷時には、全てのブロックに対応するエラー情報に含まれる使用禁止情報として、使用許可を示す‘0’が初期設定されている。
【0044】
ハードディスク33が本発明のディスク装置に、振動検出部39が本発明の検出手段に、各々相当する。
【0045】
次に、本実施の形態に係る画像処理装置30の基本動作について説明する。まず、画像入力時の動作について説明する。
【0046】
まず、画像入力装置20から読取対象とする原稿の画像データが1ページずつ一定ピッチで読み取られ、図示しないA/D変換器でデジタル化された後、図示しない画像処理部によって必要な画像処理が施される。
【0047】
その後、画像処理が施された画像データは画像圧縮伸長部31に入力されて圧縮処理が施され、圧縮処理後の画像データはメモリバッファ32に順次蓄積されていく。これと同時にRAM38のページ情報テーブルT1に画像サイズが書き込まれる。
【0048】
次に、メモリバッファ32に蓄積された画像データの量が所定量となった時点で、メモリバッファ32に蓄積されている画像データのハードディスク33へのブロック毎の書き込み処理(以下、「1ブロック書き込み処理」という)が繰り返して行われるが、この処理については後述する。なお、このとき、ハードディスク33に1ページ分の画像データが記憶される毎に、ハードディスク33における記録媒体上の格納領域の先頭位置を示す先頭ブロックアドレスを当該ページに対応するページ情報テーブルT1に記録する。また、画像データのページ毎のサイズが1ブロックを越える場合には、当該ページに対応するページ情報テーブルT1の「その他情報」領域に使用ブロックのアドレスを記憶しておく。
【0049】
次に、画像出力時の動作について説明する。
【0050】
まず、ページ情報テーブルT1の各ページの画像サイズ、先頭ブロックアドレス、及びその他情報に基づいて、ハードディスク33からの圧縮された画像データのブロック毎の読み出し処理(以下、「1ブロック読み出し処理」という)が繰り返して行われるが、この処理については後述する。
【0051】
ハードディスク33からブロック毎に読み込まれた画像データは画像圧縮伸長部31に転送され、画像伸長処理が施された後、伸長された画像データは画像出力装置40に出力されて画像がプリント出力される。
【0052】
次に、図7を参照して、1ブロック毎の画像データのハードディスク33への書き込みを行う1ブロック書き込み処理について説明する。なお、図7は1ブロック書き込み処理を実行する際にCPU36によって実行される制御プログラム(以下、「1ブロック書き込み処理プログラム」という)の流れを示すフローチャートであり、該プログラムは予めROM37に記憶されている。
【0053】
同図のステップ200では、RAM38のエラー情報テーブルT2に含まれる使用禁止情報を参照して、ハードディスク33の記録媒体上の使用禁止とされている記憶領域に対応するブロックナンバを取得し、次のステップ202では、上記ステップ200において取得したブロックナンバ以外のブロックに対応するハードディスク33の記憶領域への画像データの書き込みをディスク制御部34に開始させ、次のステップ204では、1ブロック分の画像データのハードディスク33への書き込みの終了待ちを行う。
【0054】
なお、上記ステップ202及びステップ204の処理、すなわち1ブロック分の画像データをハードディスク33に書き込む処理を行っている間に、CPU36に振動検出部39から振動検出信号が入力された際には所定の割込処理(以下、「振動検出割込処理1」という)が実行されるが、この処理については後述する。
【0055】
ハードディスク33への1ブロック分の画像データの書き込みが終了すると、すなわちステップ204の判定が肯定されるとステップ206へ移行して、ハードディスク33の図示しないステータスレジスタをチェックし、次のステップ208では、上記ステップ206のチェック結果が正常であったか否かを判定して、正常であった場合(肯定判定された場合)はそのまま本1ブロック書き込み処理を終了し、正常でなかった場合(否定判定された場合)にはステップ210へ移行して所定のエラー処理を行った後に本1ブロック書き込み処理を終了する。
【0056】
なお、上記ステップ206〜ステップ210の処理、すなわちハードディスク33のステータスレジスタに基づくエラー処理は、従来より一般的に行われている処理であるので、ここでの詳細な説明は省略する。
【0057】
次に、図8を参照して、振動検出割込処理1について説明する。なお、図8はCPU36において実行される振動検出割込処理1プログラムの流れを示すフローチャートであり、該プログラムも予めROM37に記憶されている。
【0058】
同図のステップ250では、現時点、すなわち所定の振動検出閾値以上のレベルの振動が検出された時点でアクセスしているハードディスク33の記録媒体上のブロックアドレスを認識し、次のステップ252では、上記ステップ250で認識したブロックアドレスに対応するエラー情報テーブルT2の使用禁止情報として‘1’を設定する。
【0059】
次のステップ254では、引き続き上記振動検出閾値以上のレベルの振動衝撃が発生しているか否かを振動検出部39からの振動検出信号の出力の有無に基づいて判定し、該振動衝撃が終了するまで待機する。
【0060】
上記振動衝撃が終了すると、すなわち上記ステップ254の判定が否定されるとステップ256へ移行して、上記ステップ250で認識したブロックアドレス以外のブロックに対応する記憶領域に、書き込み中であった画像データを書き込み、次のステップ258では、上記ステップ256で画像データを書き込んだブロックアドレスをページ情報テーブルT1の「その他情報」領域に記録した後に本振動検出割込処理1を終了する。
【0061】
以上の振動検出割込処理1によって、一例として図9に示すように、メモリバッファ32に記憶されている画像データをブロック毎にハードディスク33に書き込んでおり、ブロック3の画像データを書き込んでいる際に上記振動検出閾値以上のレベルの振動が発生した場合には、該振動が終了した後に、ブロック3の画像データが異なるブロックに対応するハードディスク33の記憶領域にも書き込まれることになる。従って、このように別ブロックに書き込まれた画像データを画像出力時に用いることにより、正確な画像形成を行うことが可能となる。
【0062】
次に、図10を参照して、1ブロック毎の画像データのハードディスク33からの読み出しを行う1ブロック読み出し処理について説明する。なお、図10は1ブロック読み出し処理を行う際にCPU36で実行される制御プログラム(以下、「1ブロック読み出し処理プログラム」という)の流れを示すフローチャートであり、該プログラムも予めROM37に記憶されている。
【0063】
同図のステップ300では、読み出そうとしているブロックに対応するエラー情報テーブルT2に含まれる使用禁止情報を取得し、次のステップ302では、ハードディスク33からの画像データの読み出しをディスク制御部34に開始させる。この際、上記ステップ300で取得した使用禁止情報が‘1’であった場合には、ハードディスク33の別ブロックに対応する記憶領域に読み取り対象とする画像データが保持されていると共に、該保持されているブロックアドレスがページ情報テーブルT1の「その他情報」領域に記憶されているので、このブロックアドレスをページ情報テーブルT1から取得して、このアドレスに対応する記憶領域から画像データを読み出すようにする。
【0064】
次のステップ304では、1ブロック分の画像データのハードディスク33からの読み出しの終了待ちを行う。
【0065】
なお、上記ステップ302及びステップ304の処理、すなわち1ブロック分の画像データをハードディスク33から読み出す処理を行っている間に、CPU36に振動検出部39から振動検出信号が入力された際には所定の割込処理(以下、「振動検出割込処理2」という)が実行されるが、この処理については後述する。
【0066】
ハードディスク33からの1ブロック分の画像データの読み出しが終了すると、すなわちステップ304の判定が肯定されるとステップ306へ移行して、ハードディスク33の図示しないステータスレジスタをチェックし、次のステップ308では、上記ステップ306のチェック結果が正常であったか否かを判定して、正常であった場合(肯定判定された場合)はそのまま本1ブロック読み出し処理を終了し、正常でなかった場合(否定判定された場合)にはステップ310へ移行して所定のエラー処理を行った後に本1ブロック読み出し処理を終了する。
【0067】
なお、上記ステップ306〜ステップ310の処理、すなわちハードディスク33のステータスレジスタに基づくエラー処理は、従来より一般的に行われている処理であるので、ここでの詳細な説明は省略する。
【0068】
次に、図11を参照して、振動検出割込処理2について説明する。なお、図11はCPU36において実行される振動検出割込処理2プログラムの流れを示すフローチャートであり、該プログラムも予めROM37に記憶されている。
【0069】
同図のステップ350では、現時点、すなわち所定の振動検出閾値以上のレベルの振動が検出された時点でアクセスしているハードディスク33の記録媒体上のブロックアドレスを認識し、次のステップ352では、上記ステップ350で認識したブロックアドレスに対応するエラー情報テーブルT2の使用禁止情報として‘1’を設定し、更に次のステップ354では、画像入力装置20に設けられている操作パネル26に含まれた表示部に、正常な画像データが得られない可能性があることを示す旨のワーニングをシリアル入出力部35を介して表示させる。
【0070】
次のステップ356では、振動発生時に読み出し中であった画像データの残りの読み出しを行い、次のステップ358では、読み出した当該ブロックアドレスにおける画像データをハードディスク33の異なるブロックアドレスに記憶させ、その後に本振動検出割込処理2を終了する。
【0071】
図8におけるステップ252及び図11におけるステップ352の各処理が本発明の禁止処理手段に、図8におけるステップ256の処理が本発明の保持手段に、各々相当する。
【0072】
以上詳細に説明したように、本第1実施形態に係る画像処理装置では、ハードディスクに対するアクセス中に振動検出部によって所定の振動検出閾値以上のレベルの振動を検出した際に、当該アクセス中のブロックアドレスに対応する記憶領域の以降の使用を禁止する処理を行っているので、記録媒体に対するアクセスのリトライ回数の増加や突然のアクセス不能状態の発生を防止することができる。
【0073】
また、本第1実施形態に係る画像処理装置では、ハードディスクに画像データを書き込んでいるときに振動検出部によって所定レベル以上の振動を検出した場合に、上記書き込んでいる画像データを振動停止後にハードディスクの異なるアドレスに対応する記憶領域に保持しているので、画像データの読み出し時に上記異なるアドレスに対応する記憶領域から画像データを読み出すことによって正確な画像データを得ることができる。
【0074】
更に、本第1実施形態に係る画像処理装置では、ハードディスクから画像データを読み出しているときに振動検出部によって所定レベル以上の振動を検出した場合に、上記読み出している画像データを継続して読み出してハードディスクの異なるアドレスに対応する記憶領域に保持しているので、再度同一の画像データを読み出す必要がある場合には、上記異なるアドレスに対応する記憶領域から画像データを読み出すことによって、正確な画像データを得ることができる場合がある。
【0075】
なお、本第1実施形態では、ハードディスクへの画像データの書き込み中に所定の振動検出閾値以上のレベルの振動が発生した場合に、書き込み中の画像データを別ブロックに保持する場合について説明したが、本発明はこれに限定されるものではなく、発生した振動のレベルによっては画像データの書き込み動作を中止する形態とすることもできる。この形態は、本実施の形態に係る振動検出部から出力される振動検出信号のパルス幅は振動の大きさに応じた幅となっているので、振動検出信号のパルス幅が所定値より大きな場合に画像データの書き込み動作を中止すること等によって実現することができる。
【0076】
〔第2実施形態〕
上記第1実施形態では、画像データのハードディスク33への書き込みの際に所定の振動検出閾値以上のレベルの振動が検出された際に、書き込み中の画像データを振動が終了した後に別のブロックに対応する領域に書き込む場合について説明したが、本第2実施形態では、上記振動検出閾値以上のレベルの振動が検出された際に書き込み中の画像データをメモリバッファ32に保持しておく場合について説明する。なお、本第2実施形態に係るデジタル複写機の構成については、上記第1実施形態に係るデジタル複写機10と同様であるので、ここでの説明は省略する。
【0077】
本第2実施形態に係る画像処理装置30では、1ブロック書き込み処理(図7参照)における画像データのハードディスク33への書き込み中に上記所定の振動検出閾値以上のレベルの振動が検出された際に実行される振動検出割込処理が図12に示す振動検出割込処理1’とされている点が上記第1実施形態と異なっている。
【0078】
すなわち、図12のステップ250では、現時点、すなわち所定の振動検出閾値以上のレベルの振動が検出された時点でアクセスしているハードディスク33の記録媒体上のブロックアドレスを認識し、次のステップ252では、上記ステップ250で認識したブロックアドレスに対応するエラー情報テーブルT2の使用禁止情報として‘1’を設定し、その後ステップ260で書き込み中であった画像データをメモリバッファ32に残す旨の情報をページ情報テーブルT1の「その他情報」領域に記録した後に、本振動検出割込処理1’を終了する。
【0079】
従って、本第2実施形態に係る画像処理装置30では、画像データのハードディスク33への書き込み時に、ページ情報テーブルT1を参照して、「その他情報」領域に画像データをメモリバッファ32に残す旨の情報が記録されていた場合には、当該画像データが格納されているメモリバッファ32の領域には画像データを格納しないようにする。
【0080】
また、画像データのハードディスク33からの読み出し時に、ページ情報テーブルT1を参照して、「その他情報」領域に画像データをメモリバッファ32に残す旨の情報が記録されていた場合には、当該画像データをメモリバッファ32から読み込むようにする。
【0081】
図12におけるステップ260の処理が本発明の保持手段に、メモリバッファ32が本発明の記憶手段に、各々相当する。
【0082】
以上詳細に説明したように、本第2実施形態に係る画像処理装置では、ハードディスクに対するアクセス中に振動検出部によって所定の振動検出閾値以上のレベルの振動を検出した際に、当該アクセス中のブロックアドレスに対応する記憶領域の以降の使用を禁止する処理を行っているので、上記第1実施形態に係る画像処理装置と同様に、記録媒体に対するアクセスのリトライ回数の増加や突然のアクセス不能状態の発生を防止することができる。
【0083】
また、本第2実施形態に係る画像処理装置では、ハードディスクに画像データを書き込んでいるときに振動検出部によって所定レベル以上の振動を検出した場合に、上記書き込んでいる画像データをメモリバッファに保持しているので、画像データの読み出し時に上記メモリバッファから画像データを読み出すことによって正確な画像データを得ることができる。
【0084】
なお、本第2実施形態では、ハードディスクへの画像データの書き込み中に所定の振動検出閾値以上のレベルの振動が発生した場合に、書き込み中の画像データをメモリバッファに保持する場合について説明したが、本発明はこれに限定されるものではなく、発生した振動のレベルによっては画像データの書き込み動作を中止する形態とすることもできる。この形態は、振動検出信号のパルス幅が所定値より大きな場合に画像データの書き込み動作を中止すること等によって実現することができる。
【0085】
また、上記各実施形態では、エラー情報テーブルをバッテリバックアップされたRAMに記録する場合について説明したが、本発明はこれに限定されるものではなく、エラー情報テーブルは主電源がオフされても記録内容を保持可能な記録手段であれば如何なる記録手段にも記録することができ、該記録手段としては例えば、フラッシュメモリ、EEPROM等を適用することができる。
【0086】
また、上記各実施形態では、本発明の検出手段としての振動検出部を振動センサとA/D変換器とを含んで構成した場合について説明したが、本発明はこれに限定されるものではなく、例えば、振動センサのみにより構成する形態とすることもできる。この場合は、振動検出部から出力される振動検出信号はアナログ信号であるので、該アナログ信号に基づいて振動レベルの大きさを判定することが必要となる。
【0087】
また、上記各実施形態では、ハードディスクからの画像データの読み出し中に所定の振動検出閾値以上のレベルの振動が発生した場合に、読み出し動作を継続する場合について説明したが、本発明はこれに限定されるものではなく、例えば、発生した振動のレベルによっては画像データの読み出し動作を中止する形態とすることもできる。この形態は、振動検出信号のパルス幅が所定値より大きな場合に画像データの読み取り動作を中止すること等によって実現することができる。
【0088】
【発明の効果】
本発明によれば、ディスク装置に対するアクセス中に所定レベル以上の振動を検出した場合に、当該アクセス中のアドレスに対応する記憶領域の以降の使用を禁止しているので、振動による記録媒体の損傷に起因した記録媒体に対するアクセスのリトライ回数の増加や突然のアクセス不能状態の発生を防止することができる、という効果が得られる。
【図面の簡単な説明】
【図1】 実施の形態に係るデジタル複写機の概略構成図である。
【図2】 図1における画像処理装置の内部構成の一例を示すブロック図である。
【図3】 図2における振動検出部の動作の説明に供する波形図である。
【図4】 RAMのメモリマップを示す概略図である。
【図5】 ページ情報テーブルT1の内容を示す概略図である。
【図6】 エラー情報テーブルT2の内容を示す概略図である。
【図7】 1ブロック書き込み処理プログラムの流れを示すフローチャートである。
【図8】 1ブロック書き込み処理プログラムの実行時に実行される振動検出割込処理1プログラムの流れを示すフローチャートである。
【図9】 振動検出割込処理1プログラムの実行によるハードディスクへの画像データの書き込み状態の一例を示す概略図である。
【図10】 1ブロック読み出し処理プログラムの流れを示すフローチャートである。
【図11】 1ブロック読み出し処理プログラムの実行時に実行される振動検出割込処理2プログラムの流れを示すフローチャートである。
【図12】 1ブロック書き込み処理プログラムの実行時に実行される振動検出割込処理1’プログラムの流れを示すフローチャートである。
【符号の説明】
10 デジタル複写機
20 画像入力装置
30 画像処理装置
32 メモリバッファ(記憶手段)
33 ハードディスク(ディスク装置)
36 CPU
39 振動検出部(検出手段)
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a disk control device, and more particularly to a disk control device that controls the operation of a disk device that stores information such as a hard disk.
[0002]
[Prior art]
In general, a hard disk is driven to rotate a disk-shaped recording medium by a spindle motor. However, because the spindle motor is structurally weak against external shock during rotation, it is accessed due to external shock. The head and the recording medium are likely to come into contact with each other, and defective sectors are likely to occur.
[0003]
Further, the surface of a hard disk recording medium may be scratched by contact between the head and the recording medium due to vibration, impact, or the like, even if a defective sector does not occur. In this case, access may become impossible at the moment when the scratch is made, and depending on the state, the number of retries when an address is accessed for a subsequent scratched recording area may increase. Even if there is no problem in actual use at this point, if the address is accessed frequently, the damage may be accelerated and the access may become impossible in the future.
[0004]
In general, a defective sector already exists from the time of initialization, and is also generated due to magnetic degradation, etc., but in the market after being mounted on an image processing apparatus of a digital copying machine, It is often caused by vibration and shock.
[0005]
On the other hand, the processing speed of digital image processing devices has been increasing year by year, causing problems such as an increase in the number of retries for accessing a hard disk used for storing image data, and sudden failure in writing and reading. This immediately leads to a stop of the image processing apparatus or a decrease in performance.
[0006]
In response to such a problem, Japanese Patent Application Laid-Open No. 5-130545 discloses that an operation of recording an image signal on a recording medium is stopped or an image signal recorded on the recording medium according to a detection result by the vibration detecting unit. A technique for verifying is described.
[0007]
Japanese Patent Laid-Open No. 10-65891 discloses a technique for measuring the number of times an error has occurred and the required time when accessing a recording medium, and setting the corresponding area as a use-prohibited area when the specified value is exceeded. As described above, according to this technique, the certainty of error detection can be improved.
[0008]
Japanese Laid-Open Patent Publication No. 10-162529 discloses a work in process that is saved in a memory when abnormal vibration is detected after a detection signal from a vibration sensor returns from an abnormal value to a normal value and after a hard disk inspection is performed. A technique for re-executing the contents from the beginning is described.
[0009]
Further, in Japanese Patent Laid-Open No. 10-11881, when the vibration detected by the vibration detecting means is larger than a predetermined amount, data access to the information recording apparatus is prohibited, and when the vibration is less than the predetermined amount, the above access is made. The technology allowed is described. This technology is for moving objects, and the vibration detecting means is installed in front of the moving direction of the object, and until the information recording apparatus actually receives vibration after the vibration is detected by the vibration detecting means. In this time, the head is moved from the operating point to the retracted point.
[0010]
[Problems to be solved by the invention]
However, in the techniques described in Japanese Patent Laid-Open Nos. 5-130545, 10-162529, and 10-11881, the abnormal vibration is used to access the recording medium after the abnormal vibration is detected. If the period until the impact is short, it is often impossible to prevent damage to the recording medium. In this case, the number of times of retrying access to the recording medium is increased or a sudden inaccessible state is not detected. There was a problem that the occurrence could not be prevented.
[0011]
Further, since the technique described in Japanese Patent Laid-Open No. 10-65891 sets a use-prohibited area according to the state during access to the recording medium, the recording medium is damaged by abnormal vibration. In such cases, there are problems such as an increase in the number of retries for subsequent access to the recording medium and a sudden inaccessibility state cannot be prevented.
[0012]
The present invention has been made to solve the above problems, and an object of the present invention is to provide a disk control device capable of preventing an increase in the number of access retries to a recording medium and the occurrence of a sudden inaccessible state. And
[0013]
[Means for Solving the Problems]
In order to achieve the above object, a disk control device according to claim 1 is a disk control device for controlling a disk device for storing information, a detection means for detecting vibrations of the disk device, and the disk device. For writing or reading information When the detection means detects a vibration of a predetermined level or more during access, the storage area corresponding to the address being accessed is stored. , Access If this is an information write, after the access, if the access is an information read, the remaining information was read In addition to performing processing for prohibiting subsequent use, when the access is in the process of reading information, the rest of the information is read and stored in a storage means different from the disk device, or the read information is stored in the predetermined information And a prohibition processing means for storing in a storage area corresponding to an address different from the address of the disk device after the vibration of the level or more is finished.
[0014]
According to the disk control device of the first aspect, the vibration of the disk device storing information is detected by the detecting means. The detection means includes all vibration sensors such as variable capacitance pickups, electrodynamic pickups, piezoelectric pickups, and eddy current pickups. The disk device includes all disk devices having a recording medium and a head for accessing the recording medium, such as a hard disk drive, a floppy disk drive, a compact disk drive, and a magneto-optical disk drive.
[0015]
Further, in the disk control device according to claim 1, when the detecting means detects a vibration of a predetermined level or more during access to the disk device, the processing for prohibiting the subsequent use of the storage area corresponding to the accessed address. Is performed by prohibition processing means. As the predetermined level, a value corresponding to the magnitude of vibration that may cause damage to the recording medium in the disk device when it occurs during access of the disk device, a value slightly smaller than the value, etc. is applied. Can do.
[0016]
Thus, according to the disk control device of the first aspect, for the disk device, For writing or reading information When vibration of a predetermined level or more is detected during access, the storage area corresponding to the address being accessed If the access is an information write, after the access, if the access is an information read, the remaining information is read Since subsequent use is prohibited, it is possible to prevent an increase in the number of access retries to the recording medium due to damage to the recording medium due to vibrations and the occurrence of a sudden inaccessible state.
[0017]
According to a second aspect of the present invention, in the disk control device according to the first aspect, the information is written when the detection means detects a vibration of a predetermined level or higher when information is written to the disk device. It further comprises holding means for holding information.
[0018]
According to a second aspect of the present invention, in the disk control device according to the first aspect, the information is written when the detection means detects a vibration of a predetermined level or higher while writing information to the disk device. Information is held by holding means.
[0019]
As described above, according to the disk control device of the second aspect, the same effect as that of the first aspect of the invention can be achieved, and vibrations of a predetermined level or more can be generated when information is written to the disk device. When detected, since the written information is held, accurate information can be obtained by reading the held information when reading the information.
[0020]
According to a third aspect of the present invention, there is provided the disk control device according to the second aspect, wherein the holding means is different from the disk device in the written information. Above The information stored is stored in a storage means or the written information is stored in a storage area corresponding to an address different from the address being accessed of the disk device after the vibration of the predetermined level or more is finished. It is characterized by holding.
[0021]
According to the disk control device of the third aspect, the holding means according to the second aspect holds the written information by being stored in a storage means different from the disk device, or the writing is performed. Is stored in a storage area corresponding to an address different from the address being accessed of the disk device after the vibration of the predetermined level or more is finished. Although any recording medium can be applied as the storage means, it is particularly preferable to apply a semiconductor memory such as a RAM, EEPROM, flash memory and the like that is not affected by vibration.
[0022]
As described above, according to the disk control device of the third aspect, when the vibration of a predetermined level or more is detected when information is written to the disk device, the written information is stored differently from the disk device. Or by storing it in a storage area corresponding to an address different from the address being accessed after the end of the vibration of a predetermined level or more. Therefore, the written information can be securely held.
[0023]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In this embodiment, the case where the disk control device of the present invention is applied to a digital copying machine will be described.
[0024]
[First Embodiment]
First, the configuration of a digital copying machine 10 to which the present invention is applied will be described with reference to FIG.
[0025]
As shown in the figure, the digital copying machine 10 according to the present embodiment includes an image input device 20 serving as an image input unit, and an image that performs various image processing on actual image data input from the image input device 20. The image processing apparatus 30 includes an image output apparatus 40 that prints out the actual image data image-processed by the image processing apparatus 30 as a visible image.
[0026]
The image input device 20 has an automatic document feeder 21 that can continuously feed a plurality of documents on the platen glass, and an exposure lamp 22 and a reflection mirror 23 as a scanner unit that reads and scans the image of the document placed on the platen glass. , An imaging lens 24 and a CCD sensor 25. Reflected light from the document based on the light emitted from the exposure lamp 22 forms an image on the imaging surface of a CCD sensor 25 that is a photoelectric conversion element via a reflection mirror 23 and an imaging lens 24.
[0027]
On the other hand, the control system includes an operation panel 26 serving as a user interface (UI) and an image input control unit 27 for controlling the entire image input apparatus 20 including the automatic document feeder 21 and the scanner unit. The image input control signal output from the image processing device 30 is input to the image input control unit 27. The operation panel 26 is provided with switches for inputting various instructions from the operator and a display unit for performing various displays for the operator.
[0028]
The image processing apparatus 30 performs image processing such as MTF (Modulation Transfer Function) correction, gradation correction, color correction, and image compression / decompression processing on actual image data input from the image input apparatus 20. Thus, the input actual image data is stored after the image processing as described above is performed. In the image processing apparatus 30, after all the actual image data has been input, the stored image data is output to the image output apparatus 40 a specified number of times in a specified order at a constant pitch.
[0029]
The image output device 40 includes a laser beam scanner 41, a xerographic engine 42, a paper transport mechanism 43, and an image output control unit 44 that controls the whole. Image data output from the image processing apparatus 30 is input to the laser beam scanner 41, and a laser beam for exposure is emitted along with the driving of the laser diode. In the xerographic engine 42 centering on the photoconductor 45, the exposed and developed visible image on the photoconductor 45 is transferred to a paper 46, which is passed through a fixing device 47 and discharged to a tray 48. The image output device 40 can output (print) images continuously at a constant pitch.
[0030]
FIG. 2 shows a block diagram of the image processing apparatus 30 according to the present embodiment. As shown in the figure, the image processing apparatus 30 according to the present embodiment includes an A / D converter (not shown) that converts actual image data input from the image input apparatus 20 into digital image data. An image processing unit (not shown) that performs necessary image processing such as gradation correction and color correction on the digital image data obtained by the converter, and compression and compression of the digital image data subjected to image processing by the image processing unit An image compression / decompression unit 31 for decompressing the digital image data, a memory buffer 32 for temporarily storing the digital image data, and processing such as sorting and sorting for the digital image data compressed by the image compression / decompression unit 31 Large-capacity hard disk 33 for sequentially storing digital image data in order to perform recording, and disk control for controlling the hard disk 33 34, the control unit (image input control unit 27, image output control unit 44) of another device, the serial input / output unit 35 that performs serial communication with the operation panel 26, and various control programs to execute the entire image processing device 30. A CPU (Central Processing Unit) 36 that controls the control, a ROM 37 that stores a control program executed by the CPU 36 and various parameters, a RAM 38 that is used as a work area when the control program is executed by the CPU 36, and the like. It consists of
[0031]
The RAM 38 in the present embodiment is configured as a so-called battery backup memory that is backed up by a battery (not shown), and retains the contents stored in the RAM 38 even when the main power supply of the digital copying machine 10 is turned off. Can do.
[0032]
As shown in FIG. 2, the image compression / decompression unit 31, memory buffer 32, disk control unit 34, serial input / output unit 35, CPU 36, ROM 37, and RAM 38 are connected to a common bus. The unit 31, the memory buffer 32, the disk control unit 34, the serial input / output unit 35, the ROM 37, and the RAM 38 are accessible.
[0033]
In addition, a vibration detection unit 39 connected to the CPU 36 is provided in the vicinity of the hard disk 33 of the image processing apparatus 30, and the CPU 36 can recognize the occurrence of vibration above a predetermined level in the vicinity of the hard disk 33.
[0034]
The vibration detection unit 39 detects vibration in the vicinity of the hard disk 33 and outputs an analog signal of a level corresponding to the magnitude of the vibration, and an analog signal output from the vibration sensor is used as a predetermined vibration detection threshold value. And an A / D converter (not shown) for converting into a digital signal (hereinafter referred to as a vibration detection signal).
[0035]
That is, in the vibration detection unit 39, as shown in FIG. 3, when vibration is generated near the hard disk 33 due to an external impact or the like, an analog signal corresponding to the magnitude of the vibration is generated by the vibration sensor included in the vibration detection unit 39. The analog signal is converted by the A / D converter included in the vibration detection unit 39 into a vibration detection signal (digital signal) having a pulse width that is equal to or greater than a predetermined vibration detection threshold and output. .
[0036]
In the present embodiment, the predetermined vibration detection threshold is set to a value slightly smaller than the value corresponding to the magnitude of vibration that may cause damage to the recording medium when it occurs during access to the hard disk 33. Therefore, when vibration of a level equal to or higher than the vibration detection threshold occurs during access to the hard disk 33, a vibration detection signal is output from the vibration detection unit 39. In this case, the recording medium of the hard disk 33 may be damaged. Indicates that there is.
[0037]
By the way, the minimum storage unit in the hard disk 33 is called one sector, and one sector is usually 512 bytes. However, since the image data is generally much larger than one sector, the management becomes complicated when managed in units of sectors, and the memory (RAM 38 in this embodiment) used as a work area in the management is complicated. Since it is necessary to increase the capacity, it is disadvantageous in terms of cost.
[0038]
Therefore, in the present embodiment, the hard disk is managed in units of blocks each of which is a group of a plurality of sectors, and a predetermined amount of image data is stored in the hard disk 33 repeatedly for each block. Image data is stored in the hard disk 33. In this embodiment, one block is 256 sectors (128 kbytes).
[0039]
FIG. 4 is a diagram showing a memory map of the RAM 38 described above. As shown in the figure, the RAM 38 includes a page information table T1, an error information table T2, and another area T3.
[0040]
In the page information table T1, information regarding image data of each page stored in the hard disk 33 is stored. Specifically, as shown in FIG. 5, the image size for each page, the head block address for indicating the storage position on the recording medium in the hard disk 33, and other necessary information are stored.
[0041]
On the other hand, as shown in FIG. 6, error information is stored in the error information table T2 for each block (# 0, # 1,..., #M) for a plurality of blocks of the hard disk 33. .
[0042]
In the error information in the present embodiment, vibration of a level equal to or higher than the above-described vibration detection threshold occurs in the vicinity of the hard disk 33 during writing of image data to the hard disk 33 or reading of image data from the hard disk 33. In this case, use prohibition information indicating that the storage area for each block of the hard disk 33 corresponding to the address accessed at the time of occurrence of the vibration is not used is included.
[0043]
Specifically, when vibration having a level equal to or higher than the vibration detection threshold described above occurs, “1” is set as the use prohibition information included in the error information corresponding to the block being accessed. In addition, when the device is shipped, “0” indicating use permission is initially set as use prohibition information included in error information corresponding to all blocks.
[0044]
The hard disk 33 corresponds to the disk device of the present invention, and the vibration detector 39 corresponds to the detection means of the present invention.
[0045]
Next, the basic operation of the image processing apparatus 30 according to the present embodiment will be described. First, the operation during image input will be described.
[0046]
First, image data of a document to be read is read page by page from the image input device 20 at a constant pitch, digitized by an A / D converter (not shown), and then necessary image processing is performed by an image processing unit (not shown). Applied.
[0047]
Thereafter, the image data subjected to the image processing is input to the image compression / decompression unit 31 and subjected to the compression processing, and the image data after the compression processing is sequentially stored in the memory buffer 32. At the same time, the image size is written in the page information table T1 of the RAM 38.
[0048]
Next, when the amount of image data stored in the memory buffer 32 reaches a predetermined amount, the image data stored in the memory buffer 32 is written to the hard disk 33 for each block (hereinafter referred to as “1-block writing”). This process is described later. At this time, every time image data for one page is stored in the hard disk 33, the head block address indicating the head position of the storage area on the recording medium in the hard disk 33 is recorded in the page information table T1 corresponding to the page. To do. If the size of each page of image data exceeds one block, the address of the used block is stored in the “other information” area of the page information table T1 corresponding to the page.
[0049]
Next, the operation at the time of image output will be described.
[0050]
First, a read process for each block of compressed image data from the hard disk 33 based on the image size of each page of the page information table T1, the head block address, and other information (hereinafter referred to as “one block read process”). This process is repeated, but this process will be described later.
[0051]
The image data read from the hard disk 33 for each block is transferred to the image compression / decompression unit 31, and after image decompression processing is performed, the decompressed image data is output to the image output device 40, and the image is printed out. .
[0052]
Next, a one-block writing process for writing image data for each block to the hard disk 33 will be described with reference to FIG. FIG. 7 is a flowchart showing the flow of a control program (hereinafter referred to as “one-block writing process program”) executed by the CPU 36 when executing the one-block writing process. The program is stored in the ROM 37 in advance. Yes.
[0053]
In step 200 in the figure, referring to the use prohibition information included in the error information table T2 of the RAM 38, a block number corresponding to the storage area on the recording medium of the hard disk 33 which is prohibited is obtained. In step 202, writing of image data to the storage area of the hard disk 33 corresponding to the block other than the block number acquired in step 200 is started by the disk control unit 34. In the next step 204, image data for one block is written. Waiting for completion of writing to the hard disk 33.
[0054]
Note that when a vibration detection signal is input from the vibration detection unit 39 to the CPU 36 during the processing of the above steps 202 and 204, that is, the processing of writing the image data for one block to the hard disk 33, a predetermined value is received. An interrupt process (hereinafter referred to as “vibration detection interrupt process 1”) is executed, which will be described later.
[0055]
When the writing of the image data for one block to the hard disk 33 is completed, that is, when the determination in step 204 is affirmed, the process proceeds to step 206 to check a status register (not shown) of the hard disk 33. In the next step 208, It is determined whether or not the check result in the above step 206 is normal. If the result is normal (when affirmative determination is made), the one-block writing process is terminated as it is, and if it is not normal (negative determination is made) In the case), after proceeding to step 210 and performing predetermined error processing, this one-block writing processing is terminated.
[0056]
Note that the processing from step 206 to step 210, that is, error processing based on the status register of the hard disk 33, is processing that is generally performed conventionally, and thus detailed description thereof is omitted here.
[0057]
Next, the vibration detection interrupt process 1 will be described with reference to FIG. FIG. 8 is a flowchart showing the flow of the vibration detection interrupt processing 1 program executed in the CPU 36, and this program is also stored in the ROM 37 in advance.
[0058]
In step 250 of the figure, the block address on the recording medium of the hard disk 33 that is being accessed is recognized at the present time, that is, when vibration of a level equal to or higher than a predetermined vibration detection threshold value is detected. '1' is set as use prohibition information in the error information table T2 corresponding to the block address recognized in step 250.
[0059]
In the next step 254, it is determined based on the presence / absence of the output of a vibration detection signal from the vibration detection unit 39 whether or not a vibration shock having a level equal to or higher than the vibration detection threshold value has been generated, and the vibration shock ends. Wait until.
[0060]
When the vibration shock ends, that is, when the determination in step 254 is negative, the process proceeds to step 256, and the image data that was being written to the storage area corresponding to the block other than the block address recognized in step 250 In the next step 258, the block address where the image data is written in step 256 is recorded in the “other information” area of the page information table T1, and then the vibration detection interrupt process 1 is terminated.
[0061]
When the image data stored in the memory buffer 32 is written to the hard disk 33 for each block and the image data of the block 3 is written by the vibration detection interrupt process 1 as shown in FIG. When vibration of a level equal to or higher than the vibration detection threshold occurs, the image data of the block 3 is also written in the storage area of the hard disk 33 corresponding to a different block after the vibration is finished. Therefore, it is possible to perform accurate image formation by using the image data written in another block in this way at the time of image output.
[0062]
Next, with reference to FIG. 10, a description will be given of one-block reading processing for reading image data for each block from the hard disk 33. FIG. FIG. 10 is a flowchart showing the flow of a control program (hereinafter referred to as “one-block read processing program”) executed by the CPU 36 when one-block read processing is performed. The program is also stored in the ROM 37 in advance. .
[0063]
In step 300 in the figure, use prohibition information included in the error information table T2 corresponding to the block to be read is acquired, and in the next step 302, reading of image data from the hard disk 33 is performed to the disk control unit 34. Let it begin. At this time, if the use prohibition information acquired in step 300 is “1”, the image data to be read is held in the storage area corresponding to another block of the hard disk 33 and is held. Since the block address is stored in the “other information” area of the page information table T1, the block address is acquired from the page information table T1, and the image data is read from the storage area corresponding to the address. .
[0064]
In the next step 304, the completion of reading of image data for one block from the hard disk 33 is waited for.
[0065]
Note that when a vibration detection signal is input from the vibration detection unit 39 to the CPU 36 during the processing of the above step 302 and step 304, that is, the processing of reading out image data for one block from the hard disk 33, a predetermined value is received. An interrupt process (hereinafter referred to as “vibration detection interrupt process 2”) is executed, which will be described later.
[0066]
When reading of image data for one block from the hard disk 33 is completed, that is, when the determination in step 304 is affirmed, the process proceeds to step 306 to check a status register (not shown) of the hard disk 33. In the next step 308, It is determined whether or not the check result in the above step 306 is normal. If the check result is normal (when an affirmative determination is made), the one-block reading process is terminated, and if not normal (a negative determination is made) In the case), the process proceeds to step 310 and a predetermined error process is performed, and then the one-block reading process is terminated.
[0067]
Note that the processing from step 306 to step 310, that is, error processing based on the status register of the hard disk 33 is processing that has been generally performed conventionally, and thus detailed description thereof is omitted here.
[0068]
Next, the vibration detection interrupt process 2 will be described with reference to FIG. FIG. 11 is a flowchart showing the flow of the vibration detection interrupt processing 2 program executed by the CPU 36, and the program is also stored in the ROM 37 in advance.
[0069]
In step 350 of the figure, the block address on the recording medium of the hard disk 33 that is being accessed is recognized at the present time, that is, when vibration of a level equal to or higher than a predetermined vibration detection threshold value is detected. '1' is set as use prohibition information in the error information table T2 corresponding to the block address recognized in step 350, and in the next step 354, the display included in the operation panel 26 provided in the image input device 20 is set. A warning indicating that there is a possibility that normal image data may not be obtained is displayed on the unit via the serial input / output unit 35.
[0070]
In the next step 356, the remaining image data that was being read at the time of the vibration is read out. In the next step 358, the read image data at the block address is stored in a different block address of the hard disk 33, and thereafter The vibration detection interrupt process 2 is terminated.
[0071]
Each process of step 252 in FIG. 8 and step 352 in FIG. 11 corresponds to the prohibition processing means of the present invention, and the process of step 256 in FIG. 8 corresponds to the holding means of the present invention.
[0072]
As described above in detail, in the image processing apparatus according to the first embodiment, when the vibration detection unit detects vibration at a level equal to or higher than the predetermined vibration detection threshold during access to the hard disk, the block being accessed Since processing for prohibiting subsequent use of the storage area corresponding to the address is performed, it is possible to prevent an increase in the number of access retries to the recording medium and the occurrence of a sudden inaccessible state.
[0073]
In the image processing apparatus according to the first embodiment, when the vibration detection unit detects vibration of a predetermined level or higher when image data is being written to the hard disk, the written image data is transferred to the hard disk after the vibration is stopped. Therefore, accurate image data can be obtained by reading the image data from the storage area corresponding to the different address when reading the image data.
[0074]
Furthermore, in the image processing apparatus according to the first embodiment, when the vibration detection unit detects vibrations of a predetermined level or more while reading image data from the hard disk, the read image data is continuously read. Therefore, if it is necessary to read the same image data again, an accurate image can be obtained by reading the image data from the storage area corresponding to the different address. Data may be available.
[0075]
In the first embodiment, the case where the image data being written is held in another block when vibration of a level equal to or higher than a predetermined vibration detection threshold occurs during the writing of the image data to the hard disk has been described. However, the present invention is not limited to this, and the writing operation of the image data may be stopped depending on the level of the generated vibration. In this embodiment, the pulse width of the vibration detection signal output from the vibration detection unit according to the present embodiment is a width corresponding to the magnitude of the vibration, so the pulse width of the vibration detection signal is larger than a predetermined value. This can be realized by stopping the writing operation of the image data.
[0076]
[Second Embodiment]
In the first embodiment, when vibration of a level equal to or higher than a predetermined vibration detection threshold is detected when writing image data to the hard disk 33, the image data being written is transferred to another block after the vibration is finished. In the second embodiment, the case where image data being written is held in the memory buffer 32 when vibration of a level equal to or higher than the vibration detection threshold is detected has been described. To do. The configuration of the digital copying machine according to the second embodiment is the same as that of the digital copying machine 10 according to the first embodiment, and a description thereof will be omitted here.
[0077]
In the image processing apparatus 30 according to the second embodiment, when a vibration having a level equal to or higher than the predetermined vibration detection threshold is detected during the writing of the image data to the hard disk 33 in the one-block writing process (see FIG. 7). The difference from the first embodiment is that the vibration detection interrupt process to be executed is the vibration detection interrupt process 1 'shown in FIG.
[0078]
That is, in step 250 of FIG. 12, the block address on the recording medium of the hard disk 33 that is being accessed is recognized at the present time, that is, when vibration of a level equal to or higher than a predetermined vibration detection threshold is detected. Then, '1' is set as the use prohibition information in the error information table T2 corresponding to the block address recognized in the above step 250, and then information indicating that the image data being written is left in the memory buffer 32 in step 260 After recording in the “other information” area of the information table T1, the vibration detection interrupt process 1 ′ is terminated.
[0079]
Therefore, in the image processing apparatus 30 according to the second embodiment, when the image data is written to the hard disk 33, the page information table T1 is referred to leave the image data in the memory buffer 32 in the “other information” area. When information is recorded, image data is not stored in the area of the memory buffer 32 in which the image data is stored.
[0080]
Further, when the image data is read from the hard disk 33 and the page information table T1 is referred to and information indicating that the image data remains in the memory buffer 32 is recorded in the “other information” area, the image data Are read from the memory buffer 32.
[0081]
The processing of step 260 in FIG. 12 corresponds to the holding means of the present invention, and the memory buffer 32 corresponds to the storage means of the present invention.
[0082]
As described above in detail, in the image processing apparatus according to the second embodiment, when the vibration detection unit detects vibration at a level equal to or higher than the predetermined vibration detection threshold during access to the hard disk, the block being accessed Since the processing for prohibiting the subsequent use of the storage area corresponding to the address is performed, the number of access retries to the recording medium is increased or the access is suddenly disabled as in the image processing apparatus according to the first embodiment. Occurrence can be prevented.
[0083]
In the image processing apparatus according to the second embodiment, when the vibration detection unit detects vibration of a predetermined level or more while writing image data to the hard disk, the written image data is held in the memory buffer. Therefore, accurate image data can be obtained by reading the image data from the memory buffer when reading the image data.
[0084]
In the second embodiment, the case where the image data being written is held in the memory buffer when the vibration having a level equal to or higher than the predetermined vibration detection threshold occurs during the writing of the image data to the hard disk has been described. However, the present invention is not limited to this, and the writing operation of the image data may be stopped depending on the level of the generated vibration. This form can be realized by stopping the image data writing operation when the pulse width of the vibration detection signal is larger than a predetermined value.
[0085]
In each of the above embodiments, the case where the error information table is recorded in the battery-backed RAM has been described. However, the present invention is not limited to this, and the error information table is recorded even when the main power is turned off. Any recording means capable of holding the contents can be recorded in any recording means, and as the recording means, for example, a flash memory, an EEPROM or the like can be applied.
[0086]
In each of the above embodiments, the case where the vibration detection unit as the detection means of the present invention is configured to include a vibration sensor and an A / D converter has been described, but the present invention is not limited to this. For example, it can also be set as the form comprised only with a vibration sensor. In this case, since the vibration detection signal output from the vibration detection unit is an analog signal, it is necessary to determine the magnitude of the vibration level based on the analog signal.
[0087]
In each of the above embodiments, a case has been described in which the read operation is continued when vibration having a level equal to or higher than a predetermined vibration detection threshold occurs during reading of image data from the hard disk. However, the present invention is not limited to this. For example, the read operation of the image data may be stopped depending on the level of vibration that has occurred. This form can be realized by stopping the image data reading operation when the pulse width of the vibration detection signal is larger than a predetermined value.
[0088]
【The invention's effect】
According to the present invention, when vibration of a predetermined level or more is detected during access to the disk device, subsequent use of the storage area corresponding to the address being accessed is prohibited, so that the recording medium is damaged by vibration. As a result, it is possible to prevent an increase in the number of times of retrying access to the recording medium and the occurrence of a sudden inaccessible state due to the above.
[Brief description of the drawings]
FIG. 1 is a schematic configuration diagram of a digital copying machine according to an embodiment.
2 is a block diagram illustrating an example of an internal configuration of the image processing apparatus in FIG. 1;
FIG. 3 is a waveform diagram for explaining the operation of the vibration detection unit in FIG. 2;
FIG. 4 is a schematic diagram showing a memory map of a RAM.
FIG. 5 is a schematic diagram showing the contents of a page information table T1.
FIG. 6 is a schematic diagram showing the contents of an error information table T2.
FIG. 7 is a flowchart showing the flow of a one-block write processing program.
FIG. 8 is a flowchart showing the flow of a vibration detection interrupt process 1 program executed when the 1-block write process program is executed.
FIG. 9 is a schematic diagram showing an example of a state of writing image data to a hard disk by executing a vibration detection interrupt process 1 program;
FIG. 10 is a flowchart showing the flow of a one-block read processing program.
FIG. 11 is a flowchart showing the flow of a vibration detection interrupt process 2 program executed when the 1-block read process program is executed.
FIG. 12 is a flowchart showing a flow of a vibration detection interrupt process 1 ′ program executed when the one-block write process program is executed.
[Explanation of symbols]
10 Digital copier
20 Image input device
30 Image processing device
32 Memory buffer (storage means)
33 Hard disk (disk device)
36 CPU
39 Vibration detector (detection means)

Claims (3)

情報を記憶するディスク装置を制御するディスク制御装置において、
前記ディスク装置の振動を検出する検出手段と、
前記ディスク装置に対する情報の書き込みまたは、読み出しのためのアクセス中に前記検出手段が所定レベル以上の振動を検出した場合に、当該アクセス中のアドレスに対応する記憶領域の当該アクセスが情報の書き込みの場合は当該アクセス以降、当該アクセスが情報の読み出しの場合は残りの情報を読み出した以降の使用を禁止する処理を行うと共に、当該アクセスが情報の読み出し中のときに、情報の残りを読み出して、前記ディスク装置とは異なる記憶手段に記憶するか、又は前記読み出した情報を前記所定レベル以上の振動が終了した後に前記ディスク装置の前記アドレスとは異なるアドレスに対応する記憶領域に記憶する禁止処理手段と、
を備えたことを特徴とするディスク制御装置。
In a disk control device that controls a disk device that stores information,
Detecting means for detecting vibration of the disk device;
Said disk writing of information to the device or, in the case where the detecting means during access for reading is detected vibrations above a predetermined level, the storage area corresponding to the address in the access, the access is a write of information If the access is reading information, if the access is reading information, perform processing to prohibit use after reading the remaining information, and when the access is reading information, read the rest of the information , Inhibiting processing means for storing in a storage means different from the disk device or storing the read information in a storage area corresponding to an address different from the address of the disk device after the vibration of the predetermined level or more is finished When,
A disk control device comprising:
前記ディスク装置に情報を書き込んでいるときに前記検出手段が所定レベル以上の振動を検出した場合に、前記書き込んでいる情報を保持する保持手段を更に備えたことを特徴とする請求項1記載のディスク制御装置。  2. The holding device according to claim 1, further comprising holding means for holding the written information when the detecting means detects a vibration of a predetermined level or more while writing information to the disk device. Disk controller. 前記保持手段は、前記書き込んでいる情報を前記ディスク装置とは異なる記憶手段に記憶することにより保持するか、又は前記書き込んでいる情報を前記所定レベル以上の振動が終了した後に前記ディスク装置の前記アクセス中のアドレスとは異なるアドレスに対応する記憶領域に記憶することにより保持する
ことを特徴とする請求項2記載のディスク制御装置。
The holding means holds the written information by storing the information in a storage means different from the disk device, or the written information after the vibration of the predetermined level or more has ended. The disk controller according to claim 2, wherein the disk controller is held by storing it in a storage area corresponding to an address different from the address being accessed.
JP30845099A 1999-10-29 1999-10-29 Disk controller Expired - Fee Related JP3888010B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30845099A JP3888010B2 (en) 1999-10-29 1999-10-29 Disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30845099A JP3888010B2 (en) 1999-10-29 1999-10-29 Disk controller

Publications (2)

Publication Number Publication Date
JP2001126373A JP2001126373A (en) 2001-05-11
JP3888010B2 true JP3888010B2 (en) 2007-02-28

Family

ID=17981178

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30845099A Expired - Fee Related JP3888010B2 (en) 1999-10-29 1999-10-29 Disk controller

Country Status (1)

Country Link
JP (1) JP3888010B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4850079B2 (en) * 2007-01-12 2012-01-11 株式会社リコー Image processing apparatus, image processing apparatus control method, and failure prediction method

Also Published As

Publication number Publication date
JP2001126373A (en) 2001-05-11

Similar Documents

Publication Publication Date Title
US8427692B2 (en) Image processing apparatuses and systems for responding to writing errors associated with hard disk devices
US8514458B2 (en) Image output apparatus and image output method
US20120198134A1 (en) Memory control apparatus that controls data writing into storage, control method and storage medium therefor, and image forming apparatus
JP3888010B2 (en) Disk controller
US20060132958A1 (en) Fault diagnosis apparatus, recording medium recording fault diagnosis program and fault diagnosis method
US9007654B2 (en) Image forming apparatus
JP7802722B2 (en) Image forming apparatus, control method for image forming apparatus, and program
US11630586B2 (en) Information processing apparatus and method for controlling the same
JP4627244B2 (en) Image forming apparatus and method for protecting image forming apparatus
US8049912B2 (en) Image processing system, image processing program and image processing method
JP2002116931A (en) Storage medium controller, image formation apparatus using the same and control method therefor
JP4148834B2 (en) Data transfer apparatus, image forming apparatus, data transfer control method, computer program, and recording medium
JP2012226811A (en) Image forming apparatus, and control method and program of image forming apparatus
JPH1065891A (en) Picture processor
JP2009194662A (en) Image processing apparatus, image processing apparatus control method, control program, and recording medium
JP5057549B2 (en) Image forming apparatus
JP6292085B2 (en) Electronic apparatus and image forming apparatus
JP4150618B2 (en) Hard disk control device, image processing device, image forming device, and computer program
JPH08305502A (en) Access time measurement instrument for hard disk unit and method and instrument for diagnosing hard disk unit using the measurement device
JPH06218979A (en) Image forming apparatus
JP4752729B2 (en) Image forming apparatus and program
JP2009010756A (en) Image processing apparatus, self-diagnosis method, self-diagnosis program, and recording medium
JP2006351059A (en) Controller, control method and program
JPH07114438B2 (en) Image recorder
JP2006218623A (en) Image forming apparatus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060516

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060718

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060815

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061016

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061120

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101208

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111208

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111208

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121208

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121208

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131208

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees