JP2004023355A - Image processing apparatus, its control method, program, and information record medium - Google Patents
Image processing apparatus, its control method, program, and information record medium Download PDFInfo
- Publication number
- JP2004023355A JP2004023355A JP2002174144A JP2002174144A JP2004023355A JP 2004023355 A JP2004023355 A JP 2004023355A JP 2002174144 A JP2002174144 A JP 2002174144A JP 2002174144 A JP2002174144 A JP 2002174144A JP 2004023355 A JP2004023355 A JP 2004023355A
- Authority
- JP
- Japan
- Prior art keywords
- status information
- unit
- data processing
- external
- command
- 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.)
- Withdrawn
Links
Images
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、画像処理装置及び画像処理装置の制御方法、プログラム及び情報記憶媒体に関する。
【0002】
【従来の技術】
従来、パーソナルコンピュータ等の情報処理端末に接続可能なファクシミリ装置として、図10に示すような構成を採る画像処理システムが知られている。このような従来の画像処理システムでは、ファクシミリ装置と情報処理端末との接続形態は、単一の物理インタフェース上には、単一の論理インタフェースしか設けていなかった。また、主制御部が記録部に印刷させるために画像データを送信する片方向の物理インタフェースと、これとは別に記録部の状態情報を取得するための双方向の物理インタフェースを設ける必要があった。そのため製品設計作業の増大、制御の複雑さが問題となっていた。
【0003】
このような問題を解決するために、情報処理端末とファクシミリ装置の物理インタフェースにユニバーサルシリアルバス(USB)を採用し、ファクシミリ装置内の制御部と記録部の物理インタフェースにもUSBを採用し、USB規格で定める複数の論理チャネルを設ける(USB複合デバイス)ことで、主制御部が画像データを記録部に送信するインタフェースとは別に記録部の状態情報を取得するための物理インタフェースを設ける必要がなくなり、設計工数の削減、安易な流用、データ透過性の向上が期待できる。
【0004】
また、一般に、外部情報処理端末から記録部(プリンタ)に画像データを記録出力させる場合、外部情報処理端末上でドライバソフトを起動し、USBを介して記録部の状態情報を獲得する必要がある。この場合、USB接続時にUSBホストからUSBの論理チャネルであるエンドポイント1(Bulk−Out)を使用して、記録部情報登録コマンドを送信し、獲得したい記録部の状態情報の項目を記録部に登録し、状態情報を獲得したいタイミングでUSBホストからUSBの論理チャネルであるエンドポイント2(Bulk−In)を使用したリバース要求(Inトークン)を送信し、これに応じて、記録部のUSBファンクション部からエンドポイント2を使用して、初期設定時に登録された項目についての情報を返信させている。
【0005】
上記画像処理システムにおいても、外部情報処理端末とファクシミリ装置をUSBを介して接続し、画像データの記録出力をさせようとする場合、上記方法と同様に、情報処理端末上で起動されるドライバソフトから送信された記録部情報登録コマンドをファクシミリ装置内の制御部が受信し、このコマンドを内部USBホストのエンドポイント1を経由して記録部に転送することで、ドライバソフトが獲得したい記録部の状態情報の項目を記録部に登録しておく。そして、記録部の状態情報を獲得する場合には、ファクシミリ装置内の制御部がUSBホストからエンドポイント2を使用したリバース要求を送信し、これに応じて、記録部のUSBファンクション部からエンドポイント2を使用して、登録された項目についての情報を返信させることで、情報処理端末上のドライバソフトに必要な記録部の情報を提供できる。この方法では、記録部に搭載されたプリンタ用のドライバソフトをそのまま流用することが出来、記録部の制御部分も流用が容易にできるというメリットがある。
【0006】
また、コピーやファクシミリ受信記録などの機能を動作させるために、ファクシミリ内部的にも、制御部はUSBを介して定期的に記録部の状態を監視する必要がある。そこで上記の方法と同様に、電源投入時に、ファクシミリ装置内部の制御部がUSBホストからエンドポイント1を使用して記録部情報登録コマンドを送信し、記録部の状態情報の項目を登録しておく。情報を獲得したい時には、ファクシミリ装置内の制御部がUSBホストからエンドポイント2を使用したリバース要求を送信し、これに応じて、記録部のUSBファンクション部からエンドポイント2を使用して、登録された項目についての情報を返信させるような制御方法が容易に考えられる。この方法によると、記録部の状態情報獲得における制御部分の共通化が図れるというメリットがある。
【0007】
【発明が解決しようとする課題】
しかしながら、上記のような構成にした場合、情報処理端末上のドライバソフトとファクシミリ内部の主制御部との両方から記録部の状態情報が要求されるため、両者が同様の方法、同様の論理チャネルで記録部の状態情報を獲得するシステムでは、情報処理端末を接続しドライバソフトから記録部の状態情報を登録しようとした場合に、電源投入時にファクシミリ内部監視用にすでに登録してあった記録部の状態情報の項目が上書きされてしまい、また、記録部は到来したリバース要求が記録部からのものか外部情報端末からのものか区別ができないため、情報処理端末が必要とし登録した項目と、ファクシミリ装置内部監視用に必要とし登録した項目とが異なる場合に、リバース要求に応じて返信された記録部の状態情報の整合性がとれなくなるという不具合が生じてしまう。
【0008】
【課題を解決するための手段】
上記の課題を解決するために、本発明は以下の手段を提供する。主制御部と、第1の論理チャネルを有し外部処理装置に接続する第1インタフェース手段と、第2の論理チャネルを有するデータ処理部を接続する第2インタフェース手段と、前記データ処理部を制御する副制御部とを有する画像処理装置であって、前記データ処理部に対する命令を前記第1インタフェース手段を介して前記外部処理装置から受信する命令受信手段と、前記命令受信手段により受信した命令が、前記データ処理部の状態に関連する状態情報の項目の登録を命令する第1の状態情報項目登録命令であった場合に、前記第1の状態情報項目登録命令から前記外部処理装置が要求する外部用の状態情報項目を抽出する項目抽出手段と、前記主制御部が前記データ処理部の状態監視において必要とする内部用の状態情報項目と前記外部用の状態情報項目とに基づいて、前記データ処理部に対し第2インタフェース手段を介して第2の状態情報項目登録命令を送信する登録命令送信手段と、前記内部用の状態情報項目と前記外部用の状態情報の項目とを格納する格納手段と、前記データ処理部に対し第2インタフェース手段を介して前記状態情報の送信を命令する送信命令手段とを備え、前記データ処理部が前記送信命令に応じて、前記第2の状態情報項目登録命令における状態情報項目に対応する状態情報を前記副制御部へ第2インタフェース手段を介して返信する。
【0009】
ここで、前記主制御部は、前記データ処理部から返信された前記状態情報から、前記格納手段に格納された前記外部用の状態情報項目に対応する外部用の状態情報を抽出し、前記抽出した外部用の状態情報を前記外部処理装置へ前記第1のインタフェースを介して送信してもよい。また、前記送信命令手段による前記データ処理部に対する前記状態情報の送信の命令が、前記命令受信手段による前記データ処理部の状態に関連する状態情報の返信を命令する状態情報返信命令の受信に基づくものであってもよい。
【0010】
さらに、前記送信命令手段は、前記主制御部による前記データ処理部の監視要求に応じて前記データ処理部に対して前記状態情報の送信を命令し、前記データ処理部から返信された前記状態情報から、前記格納手段に格納された前記内部用の状態情報項目に対応する内部用の状態情報を抽出し、前記抽出した内部用の状態情報に基づいて前記データ処理部の監視を行う。
【0011】
本発明において、前記第1インタフェース手段及び第2インタフェース手段は、ユニバーサルシリアルバス通信規格に対応する。
【0012】
以上のような手段を用いて、ファクシミリ装置内の制御部が要求する記録部の状態情報の項目と外部情報処理端末が登録を要求した記録部の状態情報の項目が異なっている場合にも、互いの要求どおりの記録部の状態情報を獲得することが可能となり、整合性がとれなくなるなどの不具合を防止することが可能となる。
【0013】
また、上記解決手段は、方法的、あるいは当該方法をコンピュータに実行させるためのプログラム及び当該プログラムを格納する情報記憶媒体によっても提供可能であり、同様に上記課題を解決可能であることは言うまでもない。
【0014】
【発明の実施の形態】
まず、画像処理システムを構成する画像処理装置100の概略を詳細に説明する。図1は、本発明の実施形態である画像処理システムを構成する画像処理装置100の概略構成を示すブロック図である。
【0015】
画像処理装置100において、CPU101は、システム制御部であり、画像処理装置100の全体を制御する。
【0016】
ROM102は、CPU101が実行する制御プログラムや組み込みオペレーティングシステム(OS)プログラム等を格納する。上記実施形態では、ROM102に格納されている各制御プログラムは、ROM102に格納されている組み込みOSの管理下で、スケジューリングやタスクスイッチ等のソフトウエア制御を行う。
【0017】
RAM103は、SRAM等で構成され、プログラム制御変数等を格納し、また、オペレータが登録した設定値や画像処理装置100の管理データ等を格納し、各種ワーク用バッファ領域が設けられている。
【0018】
画像メモリ104は、DRAM等で構成され、画像データを蓄積する。データ変換部105は、ページ記述言語(PDL)等の解析や、キャラクタデータのCG展開等、画像データの変換を行う。
【0019】
読取制御部106は、読取部107が、CISイメージセンサ(密着型イメージセンサ)によって原稿を光学的に読み取り、電気的な画像データに変換した画像信号を、図示しない画像処理制御部を介して、2値化処理や中間調処理等の各種画像処理を施し、高精細な画像データを出力する。なお、上記実施形態では、読取制御部106は、原稿を搬送しながら読み取りを行うシート読取制御方式と、原稿台にある原稿をスキャンするブック読取制御方式の両制御方式に対応している。
【0020】
操作表示部108は、数値入力キー、文字入力キー、ワンタッチ電話番号キー、モード設定キー、決定キー、取り消しキー等を備え、ユーザが画像送信相手先データの決定や設定データの登録動作を行うための操作部と、各種キー、LED(発光ダイオード)とLCD(液晶ディスプレイ)等によって構成され、オペレータによる各種入力操作や、画像処理装置100の動作状況、ステータス状況の表示等を行う表示部である。
【0021】
通信制御部109は、MODEM(変復調装置)や、NCU(網制御装置)等によって構成されている。上記実施形態では、通信制御部109は、アナログの通信回線(PSTN)131に接続され、T30プロトコルでの通信制御、通信回線に対する発呼と着呼等の回線制御を行っている。
【0022】
解像度変換処理部110は、画像データのミリ−インチ解像度変換等の解像度変換制御を行う。なお、解像度変換部110において、画像データの拡大縮小処理も可能である。
【0023】
符号復号化処理部111は、画像処理装置100で扱う画像データ(MH、MR、MMR、JBIG、JPEG等)を符号復号化処理したり、拡大縮小処理を行う。記録制御部112は、印刷される画像データに対し、図示しない画像処理制御部を介して、スムージング処理や記録濃度補正処理、色補正等の各種画像処理を施し、高精細な画像データに変換し、USBホスト制御部114(後述)に出力する。また、USBホスト制御部114を制御することにより、定期的に記録部115の状態情報データを取得する役割も果たす。
【0024】
USBファンクション制御部113は、USBインタフェースの通信制御を行うものであり、USB通信規格に従って、プロトコル制御を行い、CPU101が実行するUSB制御タスクからのデータを、パケットに変換し、外部の情報処理端末に、USBパケット送信を行ったり、逆に、外部の情報処理端末からのUSBパケットを、データに変換してCPU101に対し送信を行ったりする。
【0025】
USBホスト制御部114は、USB通信規格で定められたプロトコルで通信を行う為の制御部である。USB通信規格は、双方向のデータ通信を高速に行うことが出来る規格であり、1台のホスト(マスター)に対し、複数のハブまたはファンクション(スレーブ)を接続することが出来る。USBホスト制御部114は、USB通信におけるホストの機能を有する。
【0026】
記録部115は、レーザビームプリンタやインクジェットプリンタ等からなるデータ処理部としての印刷装置であり、カラー画像データ、またはモノクロ画像データを印刷部材に印刷する。USBホスト制御部114とは、USB通信規格で定められたプロトコルで通信を行い、特に記録部115はファンクションの機能を有する。
【0027】
図1bは、図1aにおける記録部115の概略構成を示すブロック図である。CPU116は、記録部115の動作を制御する。ROM117は、CPU116が実行する制御プログラム等を格納する。
【0028】
RAM118は、DRAM等で構成され、CPU116がROM117に格納された制御プログラムを実行する際のワークメモリとして機能するとともに、記録部状態情報の項目を記憶する。
【0029】
印字制御部119は、CPUからの命令に従い印字部120の動作を制御する。印字部120は、例えば、レーザービームプリンタにおける各種ローラー、露光機構、感光ドラム等の機構部材、及び、インクジェットプリンタにおけるシートフィーダー(供給紙機構)、プリントヘッド部材等の機構部材が含まれる。
【0030】
USBインタフェース121は、USBホスト制御部114と接続され上述のデータ通信を行なう。
【0031】
本実施形態においては、記録機能のUSB通信は1対1の接続形態を用いる。上記構成要素101〜106、108〜114は、CPU101が管理するCPUバス132を介して、相互に接続されている。また、記録部においては、CPUバス133を介して、上記構成要素116から119及び121が相互に接続されている。
【0032】
続いて、画像処理システムを構成する外部処理装置200の概略を詳細に説明する。図2は、本発明の実施形態である画像処理システムを構成する外部処理装置200の概略構成を示すブロック図である。
【0033】
CPU201は、ROM202、RAM203、または、内部記憶装置204、外部記憶装置(205)に記憶されたプログラムから読み出されたプログラムに従って、システムバスを介して外部処理装置200全体の動作を制御するものである。ROM202は、CPU201の制御プログラム等を格納している。
【0034】
RAM203は、一時的にプログラムや画像データを記憶し、外部処理装置200の処理を高速に動作させるためのものである。内部記憶装置204は、オペレーティング・システム、各種アプリケーションプログラムや画像データ等が格納されるている。内部記憶装置204には、本実施形態における文字データ処理工程を含む、画像処理装置100に対する各種制御命令やデータの送受信を行うためのアプリケーションソフト、プリンタドライバソフト、スキャナドライバソフト、ファクシミリドライバソフト、各機能毎のUSBクラスドライバソフトおよびUSBバスドライバソフト等がインストールされているものとする。通常、これらのアプリケーションソフトおよびドライバソフトは、これらが記憶された他のコンピュータ可読媒体から外部記憶ディスク206(フロッピー(登録商標)ディスク、CD−ROMメディア)によりデータを受け取り、外部記憶装置205を制御することによりインストールを行う。また、通信回線によって通信部209(ネットワークやモデム)でアプリケーションソフトおよびドライバソフトを受け取り、内部記憶装置204にインストールすることも可能である。
【0035】
操作部207は、オペレータからの指示入力手段としてのキーボードやマウス(不図示)を制御するものである。印刷の実行起動は通常、操作部207のキーボードやマウスが使用される。
【0036】
表示部208は、オペレータに各種表示を行うものである。外部処理端末200で印刷の実行起動をかける場合は、確認ダイヤログ等を表示部208に表示し、オペレータに入力を促す。また印刷動作の実行中は、印刷状況を示す情報をオペレータに提供する。
【0037】
通信部209は、図示しないネットワークに接続したり、通信回線を通してインターネットプロバイダへの接続や、相手通信装置との間でのデータや画像情報等の通信を行う。ネットワークや通信回線への接続に関しては、公知の方法を使用するものとし、詳述しない。
【0038】
USBホスト制御部209は、USBインタフェースの通信制御を行うものであり、USB通信規格に従って、CPU201からのデータを、パケットに変換し、画像処理装置100に、USBパケットを送信したり、逆に、画像処理装置100からのUSBパケットを、データに変換してCPU201に送信したりする。通信制御方法に関しては、公知の方法を使用するものとし、詳述しない。
【0039】
図3は、ここで示す画像処理装置100のUSBファンクション制御部113のUSBインタフェースにおける構成を示す概念図である。
【0040】
最も大きい枠で示されるデバイス(301)は、USB通信規格において1つだけ定義することができ、装置全体の属性を示している。デバイス(301)の属性は、デバイス 記述子で表現され、デバイス記述子には、装置の製造者ID、製品ID、リリース番号、コンフィギュレーション数などが含まれている。
【0041】
デバイス(301)の中には、コンフィギュレーションが1つ(コンフィギュレーション1(302))だけ定義されている。コンフィギュレーション1(302)の属性は、コンフィギュレーション 記述子で表現され、コンフィギュレーション 記述子には、そのコンフィギュレーションの中のインタフェース数などが含まれている。
【0042】
コンフィギュレーション1(302)の中には、インタフェースが3つ(インタフェース0〜2(304、307、311))だけ定義されている。インタフェース0〜2(304、307、311)の属性は、インタフェース記述子で表現され、インタフェース 記述子には、そのインタフェースの中のエンドポイント数、クラスコードなどが含まれている。
【0043】
プリンタ用に使用するインタフェース0(304)の中には、エンドポイントが2つ(エンドポイント1、2(305、306))だけ定義されている。エンドポイント1、2(305、306)の属性は、エンドポイント 記述子で表現され、エンドポイント 記述子には、そのエンドポイントのエンドポイント番号、通信方向、転送タイプ、パケットサイズなどが含まれている。エンドポイント1(305)は、主に制御データ受信や印刷データ受信のために使用される。エンドポイント2(306)は、主に受信した印刷データの印刷状況を送信するために使用される。
【0044】
スキャナ用のインタフェース1(307),FAX用のインタフェース2(311)でも上記のプリンタの場合と同様に、それぞれのエンドポイント(エンドポイント3(308)、4(309)、5(310)、6(312)、7(313)、8(314))に各機能が割り振られている(図3参照)。
【0045】
続いて、記録部115のUSBインタフェースにおける構成を詳細に説明する。図4は、画像処理装置100の記録部115のUSBインタフェースにおける構成を示す概念図である。
【0046】
最も大きい枠で示されるデバイス(401)は、USB通信規格において1つだけ定義することができ、装置全体の属性を示している。デバイス(401)の属性は、デバイス記述子で表現され、デバイス記述子には、装置の製造者ID、製品ID、リリース番号、コンフィギュレーション数などが含まれている。
【0047】
デバイス(401)の中には、コンフィギュレーションが1つ(コンフィギュレーション1(402))だけ定義されている。コンフィギュレーション1(402)の属性は、コンフィギュレーション 記述子で表現され、コンフィギュレーション 記述子には、そのコンフィギュレーションの中のインタフェース数などが含まれている。コンフィギュレーション1(402)の中には、インタフェースが1つ(インタフェース0(404))だけ定義されている。インタフェース0(404)の属性は、インタフェース記述子で表現され、インタフェース 記述子には、そのインタフェースの中のエンドポイント数、クラスコードなどが含まれている。
【0048】
印刷用に使用するインタフェース0(404)の中には、エンドポイントが2つ(エンドポイント1、2(405、406))だけ定義されている。エンドポイント1、2(405、406)の属性は、エンドポイント 記述子で表現され、エンドポイント 記述子には、そのエンドポイントのエンドポイント番号、通信方向、転送タイプ、パケットサイズなどが含まれている。エンドポイント1(405)は、主に制御データ受信や印刷データ受信のために使用される。エンドポイント2(406)は、主に受信した印刷データの印刷状況を送信するために使用される。
【0049】
次に、画像処理システムの画像処理装置100の初期化処理について示す。図5は、本発明の実施形態である画像処理装置100の初期化処理を示すフローチャートである。
【0050】
画像処理装置100の電源が投入されると、ステップ501において、CPUバス121に接続される周辺回路の初期化を行う。
【0051】
ステップ502において、内部監視用に記録部115の状態情報(記録部状態情報)を獲得するための記録部状態情報獲得タスクを起動する。詳細は後述する。
【0052】
続いてステップ503において、CPU101と異なる別CPU(図示せず)が管理する記録部115の初期化が終了したか判断する。終了していれば、処理はステップ503へ移行し、終了してなければステップ503を繰り返す。記録部115の初期化の終了は、USBホスト制御部114のUSBインタフェースによって検出することが可能である。またCPU101と記録部115の間を直接、監視線を接続することにより検出することも可能である。
【0053】
ステップ504において、CPU101は、USBホスト制御部114が検出した記録部115の装置構成を取得し、さらには記録部115に対し、記録部115を使用可能にするための装置構成決定の命令(Set Configuration命令)を送信する。記録部115の装置構成取得には、USBインタフェースを使用する。装置の構成データは、図4で示すエンドポイント0(403)の装置制御用に用いられる論理チャネルによって送受信される。記録部115の装置構成を示すデータ(属性情報)には、上述のデバイス記述子、コンフィギュレーション 記述子、インタフェース 記述子、エンドポイント 記述子(1、2)等が存在し、さらには記録部115の製造者名文字列、製品名文字列、シリアル番号文字列などがある。記録部115に対する装置構成決定送信には、USBインタフェースを使用する。
【0054】
装置構成決定の送信データは、図4で示すエンドポイント0(403)の装置制御用に用いられる論理チャネルによって送信される。本ステップを画像処理装置100の電源投入初期化時に実行することにより、画像処理装置100の初期化を確実に行うことが可能になる。さらには画像処理装置100全体の装置構成を示すデータを外部処理装置200に通知する際(後述)に、外部処理装置200からの装置構成取得命令に対し、素早く応答することが可能になる。
【0055】
ステップ505において、画像処理装置100全体の装置構成(コンフィギュレーション)を生成する。装置の構成データは、図3で示すエンドポイント0(303)の装置制御用に用いられる論理チャネルによって送受信される。画像処理装置100全体の装置構成を示すデータには、上述のデバイス記述子、コンフィギュレーション記述子、インタフェース 記述子(0〜2)、エンドポイント記述子(1〜8)等が存在し、さらには画像処理装置100全体の製造者名文字列、製品名文字列、シリアル番号文字列などがある。画像処理装置100全体の装置構成を示すデータの一部には、ステップ504で取得した記録部115の装置構成を示すデータの一部が使用される。
【0056】
例えば、画像処理装置100がUSBインタフェース経由で外部処理装置200から受信する印刷データをそのまま記録部115にUSBインタフェース経由で転送できるように、またUSBホスト制御部114がUSBインタフェース経由で記録部115から受信する印刷状況データをそのまま外部処理装置200にUSBインタフェース経由で転送できるように、図3のプリンタ用のインタフェース記述子0(304)は、ステップ504で記録部115から受信したインタフェース記述子のそのままの構成で形成される。また、装置の製造シリアル番号文字列などの不揮発データを、記録部115から受信するシリアル番号文字列データをそのまま使用するようにしても良い。
【0057】
以上の制御を行うことにより、記録部115の機種に依存しない画像処理装置100を構成することが出来る。すなわち、たとえ記録部115が最新の記録部に変更になった場合でも、本フローチャート処理を変更する必要はない。
【0058】
ステップ506において、画像処理装置100と外部処理装置200の通信を許可するために、USBファンクション制御部113を通信有効の状態に移行させる。ここまでのステップで画像処理装置100全体の初期化が終了し、待機状態としてイベント待ちの状態となる。
【0059】
ステップ507において、画像処理装置100が外部処理装置200に接続されたか否か判断する。接続されれば、処理はステップ507へ移行し、接続されていなければステップ507を繰り返す。外部処理装置200との接続検出は、USBファンクション制御部113のUSBインタフェースによって可能である。
【0060】
ステップ508において、画像処理装置100が接続された外部処理装置200から、装置構成の取得命令(Get Device Descriptor命令、Get ConfigurationDescriptor命令、Get String Descriptor命令、Get Device ID命令など)を受信したか否かを判断する。受信していれば、処理はステップ509へ移行し、受信してなければステップ508を繰り返す。
【0061】
ステップ509において、ステップ505で生成した画像処理装置100全体の装置構成を示すデータを外部処理装置200に通知する。装置の構成データは、図3で示すエンドポイント0(303)の装置制御用に用いられる論理チャネルによって送信される。
【0062】
ステップ510では、画像処理装置100が外部処理装置200から、装置構成決定の命令(Set Configuration命令)を受信したか否かを判断する。もし受信していれば、処理はステップ511へ移行し、受信していなければステップ510を繰り返す。装置構成決定の命令は、図3で示すエンドポイント0(303)の装置制御用に用いられる論理チャネルによって受信される。
【0063】
この際、外部処理装置200にステップ510で画像処理装置100から送信された装置構成を示すデータが示す機種に対応するドライバソフトウェアが存在していなかった場合、外部処理装置200は画像処理装置100に装置構成決定の命令を送信しない。そして外部処理装置200はユーザに接続された画像処理装置100の制御ができないことを通知し、エラーのチェックや対応ドライバソフトウェアのインストールを要求する。
【0064】
ステップ511において、画像処理装置100はその装置構成(コンフィギュレーション)を使用可能にし、印刷データの受信待ち状態へ移行する。ここでもし記録部115にインク無し、トナー無し、記録紙無し、記録紙ジャムなどのなんらかしらのエラーが発生し、記録部115が印刷データを受信する準備が整っていない場合は、USBファンクション制御部113も外部処理装置200に対し、印刷データを受信する準備が整っていない状態が設定される。
【0065】
例えば、記録部115は、ステップ503における記録部115の初期化時に、記録部115内部に致命的なエラーを検出した場合、記録部115は印刷データを受信することが出来ない状態を設定する。その状態をUSBホスト制御部114経由で検出したCPU101は、USBファンクション制御部113に対し、印刷データを受信する準備が整っていない状態を設定する。この制御により、外部処理装置200からの印刷データが、画像メモリ104に蓄積されず滞留することが無くなり、外部処理装置200は記録部が印刷データを受信する準備が整っていないことを知ることをできるので動作不具合を回避することが可能になる。
【0066】
また、初期化後や記録動作終了後の待機中においても記録部115に上記と同様なエラーが発生した場合も、USBファンクション制御部113に対し印刷データを受信する準備が整っていない状態を設定することで同様な効果が得られる。
【0067】
さら、記録部115が印刷状況を示すデータを送信する準備が整っていない場合も同様である。すなわち、もし記録部115にインク無し、トナー無し、記録紙無し、記録紙ジャムなどのなんらかしらのエラーが発生し、記録部115が印刷状況を示すデータを送信する準備が整っていない場合は、USBファンクション制御部113も外部処理装置200に対し、印刷状況を示すデータを送信する準備が整っていない状態が設定される。例えば、記録部115は、ステップ503における記録部115の初期化時に、記録部115内部に致命的なエラーを検出した場合、記録部115は印刷状況を示すデータを送信することが出来ない状態を設定する。
【0068】
その状態をUSBホスト制御部114経由で検出したCPU101は、USBファンクション制御部113に対し、印刷状況を示すデータを送信する準備が整っていない状態を設定する。この制御により、外部処理装置200から印刷状況を示すデータの転送要求が来た場合でも、外部処理装置200は記録部が印刷状況を示すデータを受信する準備が整っていないことを知ることをできるので処理の動作不具合を回避することが可能になる。また、初期化後や記録動作終了後の待機中においても記録部115に上記と同様なエラーが発生した場合も、USBファンクション制御部113に対し印刷状況を示すデータを受信する準備が整っていない状態を設定することで同様な効果が得られる。
【0069】
ステップ504とステップ505は、必ずしもステップ503の直後に行う必要はない。例えば、ステップ507で画像処理装置100と外部処理装置200の接続が確認された直後にステップ504とステップ505を行っても構わない。その場合、画像処理装置100の電源投入初期化処理を軽減することが可能であり、画像処理装置100の電源投入から使用可能になるまでの時間を短縮することが可能になる。また、ステップ508で画像処理装置100が接続された外部処理装置200から、装置構成の取得命令を受信した直後にステップ504とステップ505を行っても構わない。その場合、装置構成の取得命令を受信するまでは、記録部115の装置構成取得、画像処理装置100全体の装置構成生成を行う必要がないため、制御プログラムのアルゴリズムを簡素化することが可能になる。
【0070】
また、ステップ504において、必ずしも記録部115からの装置構成取得と、記録部115への装置構成決定送信を同時に行う必要はない。例えば、記録部115への装置構成決定送信を、外部処理装置200から印刷データを受信したタイミングで実行してもかまわない。その場合、記録部115からの装置構成取得と、記録部115への装置構成決定送信を分離することにより、制御プログラムのアルゴリズムの明確化効果が期待できる。
【0071】
続いて、図5のステップ502における画像処理装置100の内部監視用の記録部115の記録部状態情報獲得タスクの動作の一例を詳細に説明する。図6は、本発明の実施形態において、CPU101がコピー動作などの画像処理装置100の内部で作成(読取)したデータを記録するために必要となる、記録部115の状態情報を獲得するためのタスクの動作を示すフローチャートである。
【0072】
ステップ601において、CPU101が内部監視用に要求する記録部状態情報の項目(状態情報項目)を指定して当該状態情報項目の登録を記録部115に命令し、記録部115に登録処理を実行させる。画像処理装置100はコピーやレポート出力など装置単体での機能を実行させるために必要な記録部の状態を内部的に監視するために、記録制御部112が記録部115へ定期的に記録部状態情報を要求するので、CPU101が内部監視用に必要とする状態情報項目をあらかじめ登録させておく。
【0073】
当該状態情報項目は、記録部115内のRAMもしくはROM内に登録され、状態情報項目の登録命令は図4に示すUSBインタフェースの論理インタフェースであるエンドポイント1を経由して送受信される。ここで、状態情報項目には、例えば記録部115の動作状況、トナー量の状況、記録紙の状況、エラー状況、B/Y/C/Mインク量の状況などが含まれる。
【0074】
ステップ602において、CPU101が内部監視用に要求する状態情報項目をRAM103に格納する。
【0075】
ステップ603において、記録制御部112は、内部監視用にすでに記録部115に登録されている状態情報項目について、記録部状態情報の返信要求を記録部115に対して行う。なお、記録部状態返信要求は、図3で示すエンドポイント2(306)の印刷状況送信用に用いられる論理チャネルによって送信される。印刷状況の通知要求の送信とは、実際のデータを送信するわけではなく、USB通信規格のINパケットを送信することである。記録部115はこの返信要求(INパケット)を受けて、すでに登録してある記録部状態情報をUSBインタフェースのエンドポイント2を経由して記録制御部112に返信する。
【0076】
ステップ604において、記録部115から状態情報の返信が到来したかどうかを監視し、到来した場合ステップ605へ移行する。ステップ605において、記録部115から返信された記録部状態情報のうちステップ602でRAM103に記憶した状態情報項目に対応する情報のみを抽出し、ステップ606においてデータベースとしてRAM103に保存、更新しておく。
【0077】
続いてステップ607において、更新されたデータベースに基づいた記録部115のエラーチェックを行う。なお、CPU101が定期的に内部監視を行う場合は、ステップ603からステップ607を繰り返せばよい。
【0078】
続いて、CPU101がコピー動作などの画像処理装置100の内部で作成(読取)したデータを印刷する動作を詳細に説明する。図7は、本発明の実施形態であり、CPU101がコピー動作などの画像処理装置100の内部で作成(読取)したデータを印刷する動作を示すフローチャートである。
【0079】
まず、ステップ701において、画像処理装置100内の画像メモリ104に印刷データがあるかどうかを判断する。印刷データがあれば、処理はステップ702へ移行し、印刷データがなければステップ703へ移行する。
【0080】
ステップ702において、画像処理装置100内の画像メモリ104に一時保存してあった印刷データを記録部115へ送信する処理を行う。印刷データの送信に関する詳細は後述する。ステップ702の処理が終了すると、処理はステップ703へ移行する。
【0081】
ステップ703において、記録部115の状態チェックを行う。当該状態チェックには、図6と関連して説明した、記録部状態情報獲得タスクにより獲得されRAM103内のデータベースとして保存、更新されている記録部状態情報を利用する。
【0082】
ステップ704において、ステップ703で記録部115の状態をチェックした結果、記録部115にエラーが発生していた場合にはステップ707へ移行し、エラーが発生していなかった場合にはステップ705へ移行する。
【0083】
ステップ705において、印刷終了の命令を受けた場合にはステップ706へ移行し、終了命令を受けていない場合にはステップ701へ戻る。
【0084】
ステップ706において、印刷動作の正常終了処理を行う。印刷動作の正常終了処理には、例えば、印刷部材の機構外への排出、不図示のスピーカによる印刷動作終了音の鳴動、操作表示部108または表示部208による印刷動作終了の通知などが含まれる。
【0085】
ステップ707において、印刷動作の異常終了処理を行う。印刷動作の異常終了処理には、例えば、印刷部材の機構外への排出、不図示のスピーカによるエラー終了音の鳴動、操作表示部108または表示部208による印刷動作エラー終了の通知などが含まれる。
【0086】
続いて、外部処理装置200から到来したデータに基づいて画像処理装置100が実行する動作を詳細に説明する。図8は、外部処理装置200から到来したデータに基づいてCPU101が実行する画像処理装置100の動作を示す本発明の実施形態に対応したフローチャートである。
【0087】
まず、ステップ801において、画像処理装置100は外部処理装置200からデータを受信したか否かを判断する。受信していれば、処理はステップ802へ移行し、受信してなければステップ801へ戻る。外部処理装置200から到来したデータの受信は、図3で示すエンドポイント1(305)またはエンドポイント2の制御、データ受信用に用いられる論理チャネルによって受信される。
【0088】
ステップ802において、ステップ801で受信したデータを解析し、解析した結果、受信したデータが、記録部115に対して外部用の状態情報項目の登録を命令する状態情報項目登録命令だった場合にはステップ803に移行し、状態情報項目登録命令ではなかった場合にはステップ805へ移行する。
【0089】
ステップ803において、図6のステップ602でRAM103に格納した内部監視用の状態情報項目と、受信した状態情報項目登録命令において登録が命令された外部用の状態情報項目とを合わせて新たな項目として、状態情報項目登録命令を新規に作成し、内部USBインタフェースを経由して記録部115に送信する。これを受信した記録部115は登録が指示された状態情報項目の登録を行う。
【0090】
ステップ804において、S801において受信した状態情報項目登録命令における外部用の状態情報項目をRAM103に格納する。このとき、図6のステップでRAM103に格納した内部監視用の状態情報項目とは識別可能に登録する。
【0091】
ステップ805において、受信したデータが記録部状態返信要求だった場合にはステップ806へ移行し、記録部状態返信要求でなかった場合にはステップ809へ移行する。なお、記録部状態返信要求は、図3で示すエンドポイント2(306)の印刷状況送信用に用いられる論理チャネルによって受信される。記録部状態返信要求の受信とは、実際のデータを受信するわけではなく、USB通信規格のINパケットを受信することである。
【0092】
ステップ806において、受信した記録部状態返信要求を内部USBインタフェースを経由して記録部115に転送する。記録部115はこれを受信し、ステップ803で記録部115に登録された状態情報項目に対応する記録部状態情報を返信する。
【0093】
ステップ807において、記録部115から記録部の状態情報の項目が到来するのを監視し、到来した場合にはステップ808へ移行する。
【0094】
ステップ808において、返信された記録部状態情報から、ステップ804でRAM103に格納した外部処理装置200から指示された外部用の状態情報項目に対応する記録部状態情報のみを抽出し、これを外部USBインタフェースを経由して外部処理装置200に返信する。外部処理装置200は返信された記録部状態情報を受信するとこれを解析し、その結果に応じてエラー状態の表示、インク状態の表示、カバーオープンの表示などを行う。
【0095】
ステップ809において、ステップ801で受信したデータが印刷データだった場合にはステップ809へ移行し、そうでない場合はステップ801へ戻る。また、受信する印刷データは、ある一定の長さに区切られたパケット形式で受信する。
【0096】
ステップ810において、受信した印刷データは、一時的に画像処理装置100内の画像メモリ104へ保存され、その後順次記録部115へ送信する。記録部115は送信された印刷データを受信し印刷を行う。
【0097】
続いて、印刷データを転送する際の詳細な説明を行う。図9は、本発明の実施形態であり、CPU101が実行する画像処理装置100の印刷データを送信する際のフローチャートである。
【0098】
ステップ901において、一時的に画像処理装置100内の画像メモリ104へ保存された印刷データを、図4で示すエンドポイント1(405)の制御、印刷データ受信用に用いられる論理チャネルへ送信する。この際、CPU101はエンドポイント1(305)からエンドポイント1(405)へ転送する印刷データの内容の編集、加工を一切行わず、そのままの印刷データを送信する。また、送信する印刷データは、ある一定の長さに区切られたパケット形式で送信する。
【0099】
また、図3で示すデバイス(301)内のインタフェース0(304)と、図4で示すデバイス(401)内のインタフェース0(404)は、互いに透過的に使用される。したがって、外部処理装置200にインストールされているプリンタドライバソフトの処理は、外部処理装置200と記録部115が、USBインタフェース経由で直接接続される場合となんら変わりなく、記録部115を他製品から流用した場合に、プリンタドライバソフトもそのまま流用することが可能になる。
【0100】
上記実施形態においては、データ処理部である記録部115がプリンターの場合を想定して状態情報項目を一例を列挙したが、例えばスキャナーの場合には動作状況、エラー状況、原稿の状況、センサ状況などが含まれるし、デジタルカメラの場合には、動作状況、エラー状況、メディア状況などが含まれる。
【0101】
以上に説明した本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0102】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0103】
【発明の効果】
以上詳細に説明したように、本発明によれば、ファクシミリ装置内の主制御部が要求する記録部の状態情報の項目と外部情報処理端末が登録を要求した記録部の状態情報の項目が異なっている場合にも、互いの要求どおりの記録部の状態情報を獲得することが可能となり、整合性がとれなくなるなどの不具合を防止することが可能となる。
【図面の簡単な説明】
【図1a】本発明の実施形態における画像処理装置の構成の一例を示すブロック図である。
【図1b】本発明の実施形態に対応した画像処理装置100における記録部115の構成の一例を示すブロック図である。
【図2】本発明の実施形態における外部処理装置の構成の一例を示すブロック図である。
【図3】本発明の実施形態における画像処理装置100のUSB構成の一例を示す概念図である。
【図4】本発明の実施形態における記録部115のUSB構成の一例を示す概念図である。
【図5】本発明の実施形態における画像処理装置100の初期化処理動作のフローチャートである。
【図6】本発明の実施形態に対応した記録部状態情報獲得タスクにおけるフローチャートである。
【図7】本発明の実施形態における印刷動作処理のフローチャートである。
【図8】本発明の実施形態に対応した、外部処理装置200から受信したデータの画像処理装置100における処理のフローチャートである。
【図9】本発明の実施形態における印刷データの転送処理のフローチャートである。
【図10】従来の画像処理装置の構成例を示すブロック図である。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus, a control method for the image processing apparatus, a program, and an information storage medium.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, as a facsimile apparatus connectable to an information processing terminal such as a personal computer, an image processing system having a configuration as shown in FIG. 10 has been known. In such a conventional image processing system, the connection form between the facsimile machine and the information processing terminal is such that only a single logical interface is provided on a single physical interface. In addition, it is necessary to provide a one-way physical interface for transmitting image data for the main control unit to cause the recording unit to print, and a two-way physical interface for separately acquiring status information of the recording unit. . Therefore, an increase in product design work and complexity of control have been problems.
[0003]
In order to solve such a problem, a universal serial bus (USB) is adopted as a physical interface between the information processing terminal and the facsimile device, and a USB is adopted as a physical interface between a control unit and a recording unit in the facsimile device. By providing a plurality of logical channels defined by the standard (USB composite device), there is no need to provide a physical interface for acquiring status information of the recording unit separately from an interface for the main control unit to transmit image data to the recording unit. In addition, reduction in design man-hours, easy diversion, and improvement in data transparency can be expected.
[0004]
Generally, when image data is recorded and output from an external information processing terminal to a recording unit (printer), it is necessary to start driver software on the external information processing terminal and acquire the state information of the recording unit via USB. . In this case, at the time of USB connection, a recording unit information registration command is transmitted from the USB host using endpoint 1 (Bulk-Out), which is a USB logical channel, and the status information item of the recording unit to be acquired is recorded in the recording unit. At the timing of registering and acquiring the state information, the USB host transmits a reverse request (In token) using the endpoint 2 (Bulk-In), which is a USB logical channel, and in response thereto, the USB function of the recording unit. Using the endpoint 2 from the department, information about items registered at the time of initial setting is returned.
[0005]
In the above image processing system, when an external information processing terminal and a facsimile apparatus are connected via a USB to record and output image data, similarly to the above method, driver software started on the information processing terminal The control section in the facsimile apparatus receives the recording section information registration command transmitted from the facsimile apparatus, and transfers this command to the recording section via the internal USB host endpoint 1, so that the driver software can obtain the recording section information to be acquired. The items of the status information are registered in the recording unit. When acquiring the status information of the recording unit, the control unit in the facsimile apparatus transmits a reverse request using the endpoint 2 from the USB host, and the USB function unit of the recording unit transmits the reverse request in response to the request. By using 2 to return information on the registered items, it is possible to provide information on the recording unit necessary for the driver software on the information processing terminal. This method has an advantage that the driver software for the printer mounted on the recording unit can be diverted as it is, and the control unit of the recording unit can be easily diverted.
[0006]
Further, in order to operate functions such as copying and facsimile reception recording, the control unit also needs to periodically monitor the state of the recording unit via the USB inside the facsimile. Therefore, similarly to the above method, when the power is turned on, the control unit inside the facsimile apparatus transmits a recording unit information registration command from the USB host using the endpoint 1, and registers the items of the status information of the recording unit. . When it is desired to obtain information, the control unit in the facsimile apparatus transmits a reverse request using the endpoint 2 from the USB host, and in response, the registration is performed using the endpoint 2 from the USB function unit of the recording unit. A control method that causes information about the item to be returned is easily considered. According to this method, there is an advantage that the control part in acquiring the state information of the recording unit can be shared.
[0007]
[Problems to be solved by the invention]
However, in the case of the above configuration, since the status information of the recording unit is requested from both the driver software on the information processing terminal and the main control unit inside the facsimile, the two use the same method and the same logical channel. In the system that acquires the status information of the recording unit by using the information processing terminal, if the user tries to register the status information of the recording unit from the driver software, the recording unit that has already been registered for facsimile internal monitoring when the power is turned on. The status information item is overwritten, and the recording unit cannot distinguish whether the arriving reverse request is from the recording unit or from the external information terminal. When the registered items that are necessary for the internal monitoring of the facsimile machine are different from the registered items, the status information of the recording unit returned in response to the reverse request is consistent. There arises a problem of Kunar.
[0008]
[Means for Solving the Problems]
In order to solve the above problems, the present invention provides the following means. A main control unit, a first interface unit having a first logical channel and connected to an external processing device, a second interface unit connecting a data processing unit having a second logical channel, and controlling the data processing unit An image processing device having a sub-control unit that performs a command to the data processing unit from the external processing device via the first interface unit; and a command received by the command receiving unit. If the first status information item registration command instructs registration of an item of status information related to the status of the data processing unit, the external processing device requests the first status information item registration command. Item extraction means for extracting an external status information item; an internal status information item required by the main control unit to monitor the status of the data processing unit; Registration command transmitting means for transmitting a second status information item registration command to the data processing unit via second interface means based on the status information items for internal use, the internal status information items and the external Storage means for storing an item of status information for use, and transmission command means for instructing the data processing unit to transmit the status information via second interface means, wherein the data processing unit transmits the transmission command. The status information corresponding to the status information item in the second status information item registration command is returned to the sub control unit via the second interface means.
[0009]
Here, the main control unit extracts external status information corresponding to the external status information item stored in the storage unit from the status information returned from the data processing unit. The external state information may be transmitted to the external processing device via the first interface. Further, the command for transmitting the status information to the data processing unit by the transmission command unit is based on the reception of a status information return command for returning the status information related to the status of the data processing unit by the command receiving unit. It may be something.
[0010]
Further, the transmission command means instructs the data processing unit to transmit the state information in response to the monitoring request of the data processing unit by the main control unit, and transmits the state information returned from the data processing unit. Then, the internal state information corresponding to the internal state information item stored in the storage unit is extracted, and the data processing unit is monitored based on the extracted internal state information.
[0011]
In the present invention, the first interface means and the second interface means correspond to a universal serial bus communication standard.
[0012]
Using the means as described above, even when the item of the status information of the recording unit requested by the control unit in the facsimile apparatus and the item of the status information of the recording unit that the external information processing terminal has requested registration are different, It is possible to acquire the status information of the recording unit as requested by each other, and it is possible to prevent problems such as inconsistency.
[0013]
Further, the above solution can be provided by a method or a program for causing a computer to execute the method and an information storage medium storing the program, and it is needless to say that the above problem can be similarly solved. .
[0014]
BEST MODE FOR CARRYING OUT THE INVENTION
First, the outline of the
[0015]
In the
[0016]
The
[0017]
The
[0018]
The
[0019]
The
[0020]
The
[0021]
The
[0022]
The resolution
[0023]
The encoding /
[0024]
The USB
[0025]
The USB
[0026]
The
[0027]
FIG. 1B is a block diagram illustrating a schematic configuration of the
[0028]
The
[0029]
The
[0030]
The
[0031]
In the present embodiment, the USB communication of the recording function uses a one-to-one connection mode. The
[0032]
Next, the outline of the
[0033]
The
[0034]
The
[0035]
The
[0036]
The
[0037]
The
[0038]
The USB
[0039]
FIG. 3 is a conceptual diagram showing a configuration of the USB interface of the USB
[0040]
Only one device (301) indicated by the largest frame can be defined in the USB communication standard, and indicates the attributes of the entire apparatus. The attribute of the device (301) is expressed by a device descriptor, and the device descriptor includes a device manufacturer ID, a product ID, a release number, a configuration number, and the like.
[0041]
Only one configuration (configuration 1 (302)) is defined in the device (301). The attribute of the configuration 1 (302) is represented by a configuration descriptor, and the configuration descriptor includes the number of interfaces in the configuration.
[0042]
Only three interfaces (interfaces 0 to 2 (304, 307, 311)) are defined in the configuration 1 (302). The attributes of interfaces 0 to 2 (304, 307, 311) are represented by interface descriptors, and the interface descriptors include the number of endpoints in the interface, class codes, and the like.
[0043]
In the interface 0 (304) used for the printer, only two endpoints (endpoints 1, 2 (305, 306)) are defined. The attributes of endpoints 1 and 2 (305 and 306) are expressed by endpoint descriptors, and the endpoint descriptor includes the endpoint number of the endpoint, communication direction, transfer type, packet size, and the like. I have. The endpoint 1 (305) is mainly used for receiving control data and print data. The endpoint 2 (306) is mainly used to transmit the print status of the received print data.
[0044]
In the interface 1 (307) for the scanner and the interface 2 (311) for the facsimile, the respective endpoints (endpoints 3 (308), 4 (309), 5 (310), 6 (312), 7 (313), and 8 (314)) are assigned to respective functions (see FIG. 3).
[0045]
Next, the configuration of the USB interface of the
[0046]
Only one device (401) indicated by the largest frame can be defined in the USB communication standard, and indicates the attributes of the entire apparatus. The attribute of the device (401) is represented by a device descriptor, and the device descriptor includes a manufacturer ID, a product ID, a release number, a configuration number, and the like of the device.
[0047]
Only one configuration (configuration 1 (402)) is defined in the device (401). The attribute of the configuration 1 (402) is expressed by a configuration descriptor, and the configuration descriptor includes the number of interfaces in the configuration. Only one interface (interface 0 (404)) is defined in the configuration 1 (402). The attribute of the interface 0 (404) is represented by an interface descriptor, and the interface descriptor includes the number of endpoints in the interface, a class code, and the like.
[0048]
Only two endpoints (endpoints 1 and 2 (405 and 406)) are defined in the interface 0 (404) used for printing. The attributes of the endpoints 1 and 2 (405 and 406) are represented by endpoint descriptors, and the endpoint descriptor includes the endpoint number, communication direction, transfer type, packet size, and the like of the endpoint. I have. The endpoint 1 (405) is mainly used for receiving control data and print data. The endpoint 2 (406) is mainly used to transmit the print status of the received print data.
[0049]
Next, an initialization process of the
[0050]
When the
[0051]
In step 502, a recording unit status information acquisition task for acquiring status information (recording unit status information) of the
[0052]
Subsequently, in
[0053]
In step 504, the
[0054]
The transmission data for determining the device configuration is transmitted by a logical channel used for device control of the endpoint 0 (403) shown in FIG. By executing this step at the time of power-on initialization of the
[0055]
In step 505, an apparatus configuration of the entire
[0056]
For example, the print data received by the
[0057]
By performing the above control, the
[0058]
In step 506, the USB
[0059]
In step 507, it is determined whether the
[0060]
In step 508, whether or not an apparatus configuration acquisition command (Get Device Descriptor command, Get Configuration Descriptor command, Get String Descriptor command, Get Device ID command, etc.) has been received from the
[0061]
In
[0062]
In step 510, it is determined whether or not the
[0063]
At this time, if there is no driver software corresponding to the model indicated by the data indicating the device configuration transmitted from the
[0064]
In
[0065]
For example, when the
[0066]
In addition, even when the same error as described above occurs in the
[0067]
The same applies to a case where the
[0068]
When the
[0069]
Steps 504 and 505 need not necessarily be performed immediately after
[0070]
In step 504, it is not always necessary to simultaneously perform the acquisition of the device configuration from the
[0071]
Next, an example of the operation of the recording unit status information acquisition task of the
[0072]
In
[0073]
The status information item is registered in the RAM or ROM in the
[0074]
In
[0075]
In step 603, the
[0076]
In step 604, it is monitored whether or not a reply of the status information has arrived from the
[0077]
Subsequently, in step 607, an error check of the
[0078]
Subsequently, an operation of printing data created (read) inside the
[0079]
First, in step 701, it is determined whether or not print data exists in the
[0080]
In
[0081]
In step 703, the status of the
[0082]
In
[0083]
In step 705, if a print end command has been received, the process proceeds to step 706; otherwise, the process returns to step 701.
[0084]
In step 706, normal end processing of the printing operation is performed. The normal end processing of the printing operation includes, for example, discharging of the printing member to the outside of the mechanism, sounding of a printing operation end sound by a speaker (not shown), notification of the end of the printing operation by the
[0085]
In step 707, abnormal termination processing of the printing operation is performed. The abnormal termination processing of the printing operation includes, for example, ejection of the printing member out of the mechanism, sounding of an error termination sound by a speaker (not shown), notification of the termination of the printing operation by the
[0086]
Next, an operation performed by the
[0087]
First, in step 801, the
[0088]
In step 802, if the data received in step 801 is analyzed, and the analysis result indicates that the received data is a status information item registration instruction for instructing the
[0089]
In step 803, the state information item for internal monitoring stored in the
[0090]
In step 804, the external status information item in the status information item registration command received in S801 is stored in the
[0091]
In step 805, if the received data is a recording unit status return request, the process proceeds to step 806; otherwise, the process proceeds to step 809. Note that the recording unit status return request is received by the logical channel used for transmitting the print status of the endpoint 2 (306) shown in FIG. Receiving the recording unit status return request does not mean that actual data is received, but rather that it receives an IN packet of the USB communication standard.
[0092]
In step 806, the received recording unit status reply request is transferred to the
[0093]
In step 807, it is monitored that the item of the status information of the recording unit arrives from the
[0094]
In step 808, only the storage unit status information corresponding to the external status information item designated by the
[0095]
In
[0096]
In
[0097]
Next, a detailed description will be given when transferring the print data. FIG. 9 is a flowchart when the print data of the
[0098]
In step 901, the print data temporarily stored in the
[0099]
The interface 0 (304) in the device (301) shown in FIG. 3 and the interface 0 (404) in the device (401) shown in FIG. 4 are used transparently to each other. Therefore, the processing of the printer driver software installed in the
[0100]
In the above embodiment, an example of the status information items is listed assuming that the
[0101]
An object of the present invention described above is to supply a storage medium (or a recording medium) in which software program codes for realizing the functions of the above-described embodiments are recorded to a system or an apparatus, and to provide a computer (or It is needless to say that the present invention can also be achieved by a CPU or an MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.
[0102]
Further, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is executed based on the instruction of the program code. It goes without saying that the CPU included in the expansion card or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
[0103]
【The invention's effect】
As described above in detail, according to the present invention, the item of the status information of the recording unit requested by the main control unit in the facsimile apparatus differs from the item of the status information of the recording unit requested by the external information processing terminal to register. Also in this case, it is possible to acquire the status information of the recording unit as requested by each other, and it is possible to prevent problems such as inconsistency being obtained.
[Brief description of the drawings]
FIG. 1A is a block diagram illustrating an example of a configuration of an image processing apparatus according to an embodiment of the present invention.
FIG. 1B is a block diagram showing an example of a configuration of a
FIG. 2 is a block diagram illustrating an example of a configuration of an external processing device according to an embodiment of the present invention.
FIG. 3 is a conceptual diagram illustrating an example of a USB configuration of the
FIG. 4 is a conceptual diagram illustrating an example of a USB configuration of a
FIG. 5 is a flowchart of an initialization processing operation of the
FIG. 6 is a flowchart of a recording unit state information acquisition task corresponding to the embodiment of the present invention.
FIG. 7 is a flowchart of a printing operation process according to the embodiment of the present invention.
FIG. 8 is a flowchart of processing of data received from the
FIG. 9 is a flowchart of print data transfer processing according to the embodiment of the present invention.
FIG. 10 is a block diagram illustrating a configuration example of a conventional image processing apparatus.
Claims (14)
前記データ処理部に対する命令を前記第1インタフェース手段を介して前記外部処理装置から受信する命令受信手段と、
前記命令受信手段により受信した命令が、前記データ処理部の状態に関連する状態情報の項目の登録を命令する第1の状態情報項目登録命令であった場合に、前記第1の状態情報項目登録命令から前記外部処理装置が要求する外部用の状態情報項目を抽出する項目抽出手段と、
前記主制御部が前記データ処理部の状態監視において必要とする内部用の状態情報項目と前記外部用の状態情報項目とに基づいて、前記データ処理部に対し第2インタフェース手段を介して第2の状態情報項目登録命令を送信する登録命令送信手段と、
前記内部用の状態情報項目と前記外部用の状態情報の項目とを格納する格納手段と、
前記データ処理部に対し第2インタフェース手段を介して前記状態情報の送信を命令する送信命令手段と
を備え、
前記データ処理部が前記送信命令に応じて、前記第2の状態情報項目登録命令における状態情報項目に対応する状態情報を前記副制御部へ第2インタフェース手段を介して返信することを特徴とする画像処理装置。A main control unit, a first interface unit having a first logical channel and connected to an external processing device, a second interface unit connecting a data processing unit having a second logical channel, and controlling the data processing unit An image processing apparatus having a sub-control unit that performs
Command receiving means for receiving a command for the data processing unit from the external processing device via the first interface means;
If the command received by the command receiving means is a first status information item registration command instructing registration of a status information item related to the status of the data processing unit, the first status information item registration Item extraction means for extracting an external status information item requested by the external processing device from a command,
Based on the internal status information items and the external status information items required by the main control unit in monitoring the status of the data processing unit, a second interface is provided to the data processing unit via second interface means. Registration command transmitting means for transmitting a status information item registration command of
Storage means for storing the internal status information item and the external status information item;
Transmission instruction means for instructing the data processing unit to transmit the state information via second interface means,
The data processing unit returns status information corresponding to the status information item in the second status information item registration command to the sub-control unit via the second interface means in response to the transmission command. Image processing device.
前記データ処理部に対する命令を前記第1インタフェース部を介して前記外部処理装置から受信する命令受信工程と、
前記命令受信工程により受信した命令が、前記データ処理部の状態に関連する状態情報の項目の登録を命令する第1の状態情報項目登録命令であった場合に、前記第1の状態情報項目登録命令から前記外部処理装置が要求する外部用の状態情報項目を抽出する項目抽出工程と、
前記主制御部が前記データ処理部の状態監視において必要とする内部用の状態情報項目と前記外部用の状態情報項目とに基づいて、前記データ処理部に対し第2インタフェース部を介して第2の状態情報項目登録命令を送信する登録命令送信工程と、
前記内部用の状態情報項目と前記外部用の状態情報の項目とを前記格納部に格納する格納工程と、
前記データ処理部に対し第2インタフェース部を介して前記状態情報の送信を命令する送信命令工程と
を備え、
前記データ処理部が前記送信命令に応じて、前記第2の状態情報項目登録命令における状態情報項目に対応する状態情報を前記副制御部へ第2インタフェース部を介して返信することを特徴とする画像処理装置の制御方法。A main control unit, a first interface unit having a first logical channel and connected to an external processing device, a second interface unit connecting a data processing unit having a second logical channel, and controlling the data processing unit A control method for an image processing apparatus having a sub-controller that performs, and a storage that stores predetermined data,
A command receiving step of receiving a command for the data processing unit from the external processing device via the first interface unit;
If the command received in the command receiving step is a first status information item registration command instructing registration of an item of status information related to the status of the data processing unit, the first status information item registration An item extracting step of extracting an external state information item requested by the external processing device from a command;
Based on the internal status information items and the external status information items required by the main control unit for monitoring the status of the data processing unit, a second interface is provided to the data processing unit via a second interface unit. A registration command transmitting step of transmitting a status information item registration command of
A storing step of storing the internal state information item and the external state information item in the storage unit;
A transmission instruction step of instructing the data processing unit to transmit the state information via a second interface unit,
The data processing unit returns status information corresponding to the status information item in the second status information item registration command to the sub-control unit via a second interface unit in response to the transmission command. A method for controlling an image processing apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002174144A JP2004023355A (en) | 2002-06-14 | 2002-06-14 | Image processing apparatus, its control method, program, and information record medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002174144A JP2004023355A (en) | 2002-06-14 | 2002-06-14 | Image processing apparatus, its control method, program, and information record medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004023355A true JP2004023355A (en) | 2004-01-22 |
Family
ID=31173194
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002174144A Withdrawn JP2004023355A (en) | 2002-06-14 | 2002-06-14 | Image processing apparatus, its control method, program, and information record medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004023355A (en) |
-
2002
- 2002-06-14 JP JP2002174144A patent/JP2004023355A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7295338B2 (en) | Status information acquisition from plural functions included in image processing apparatus | |
JP3817494B2 (en) | Image processing apparatus and control method thereof | |
US7626714B2 (en) | Internal interface in image processing apparatus and control thereof | |
JP3787535B2 (en) | Image processing apparatus and control method thereof | |
US20050231750A1 (en) | Image output apparatus and method of controlling same | |
JP2004259153A (en) | Information processor, method of controlling the same, and control program | |
JP2004023355A (en) | Image processing apparatus, its control method, program, and information record medium | |
JP2004032536A (en) | Printing control method in image processing apparatus, program, storage medium, and image processing apparatus | |
JP2005100064A (en) | Image processor and image processing method and its program | |
JP2003198779A (en) | Image processor and controlling method | |
JP2006338232A (en) | Communication system | |
JP3880431B2 (en) | Composite device and control method thereof | |
JP2004015214A (en) | Image processing device, its control method, program, and information storage medium | |
JP2004023478A (en) | Image processing apparatus, control method for image processing apparatus, program and information storage medium | |
JP2004032539A (en) | Control method, program, and storage medium of image processing apparatus, as well as image processing apparatus | |
JP2003304367A (en) | Record control apparatus and control method for the same | |
JP2004164310A (en) | Image processor and control method therefor | |
US20030189719A1 (en) | Recording control apparatus and control method using the same recording control apparatus | |
JP2006159438A (en) | Image processor | |
JP2004021493A (en) | Image processor and method for controlling image processor and its program and information storage medium | |
JP2005078591A (en) | Image processing system and image processing method therefor | |
JP2004050726A (en) | Image processor | |
JP2004248041A (en) | Image forming apparatus, and control method and program thereof | |
JP5058023B2 (en) | Image processing apparatus, image processing system, and image processing method | |
JP2004064338A (en) | Image processing apparatus and its control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20050906 |