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 PDF

Info

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
Application number
JP2002174144A
Other languages
Japanese (ja)
Inventor
Makoto Satake
佐竹 眞
Ryoji Kayatani
鹿屋谷 亮治
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2002174144A priority Critical patent/JP2004023355A/en
Publication of JP2004023355A publication Critical patent/JP2004023355A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve following problems that consistency in state information at a recording section returned according to a reverse request cannot be obtained since both of driver software in an external device and a main control section inside facsimile equipment request the registration of state information items at a recording section, the items of state information at the recording section that have been already registered for monitoring the inside of the facsimile equipment are overwritten, and the items required by the external device and those required for monitoring the inside of the facsimile equipment differ in the facsimile equipment that adopts USBs as a physical interface and is connected to an external device. <P>SOLUTION: The state information items requested from the external equipment are matched with those for monitoring the inside for registering at the record section in the facsimile equipment, and the state information items for external and internal uses are stored in a memory of the facsimile equipment. By utilizing the stored state information items, only required information is extracted from the state information returned from the record section by the external device, or state information for monitoring the inside is extracted and processed. <P>COPYRIGHT: (C)2004,JPO

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 image processing apparatus 100 constituting the image processing system will be described in detail. FIG. 1 is a block diagram illustrating a schematic configuration of an image processing apparatus 100 included in an image processing system according to an embodiment of the present invention.
[0015]
In the image processing apparatus 100, the CPU 101 is a system control unit, and controls the entire image processing apparatus 100.
[0016]
The ROM 102 stores a control program executed by the CPU 101, an embedded operating system (OS) program, and the like. In the above embodiment, each control program stored in the ROM 102 performs software control such as scheduling and a task switch under the management of the embedded OS stored in the ROM 102.
[0017]
The RAM 103 is composed of an SRAM or the like, stores program control variables and the like, stores set values registered by an operator, management data of the image processing apparatus 100, and the like, and is provided with various work buffer areas.
[0018]
The image memory 104 includes a DRAM or the like, and stores image data. The data conversion unit 105 performs conversion of image data such as analysis of a page description language (PDL) and the like, and CG expansion of character data.
[0019]
The reading control unit 106 reads the image signal obtained by the reading unit 107 optically reading the original with a CIS image sensor (contact image sensor) and converting the image signal into electrical image data via an image processing control unit (not shown). Various image processing such as binarization processing and halftone processing are performed, and high-definition image data is output. In the above-described embodiment, the reading control unit 106 supports both a sheet reading control method for reading while transporting a document and a book reading control method for scanning a document on a document table.
[0020]
The operation display unit 108 includes a numerical input key, a character input key, a one-touch telephone number key, a mode setting key, an enter key, a cancel key, and the like, so that the user can determine image transmission destination data and register setting data. , An operation unit, various keys, an LED (light emitting diode), an LCD (liquid crystal display), and the like, and a display unit for performing various input operations by an operator and displaying an operation status and a status status of the image processing apparatus 100. .
[0021]
The communication control unit 109 includes a MODEM (modulator / demodulator), an NCU (network controller), and the like. In the above-described embodiment, the communication control unit 109 is connected to the analog communication line (PSTN) 131, and performs communication control according to the T30 protocol and line control such as outgoing and incoming calls for the communication line.
[0022]
The resolution conversion processing unit 110 performs resolution conversion control such as millimeter-inch resolution conversion of image data. Note that the resolution conversion unit 110 can also perform image data scaling processing.
[0023]
The encoding / decoding processing unit 111 performs encoding / decoding processing on image data (MH, MR, MMR, JBIG, JPEG, etc.) handled by the image processing apparatus 100, and performs scaling processing. The recording control unit 112 performs various types of image processing such as smoothing processing, recording density correction processing, and color correction on the image data to be printed via an image processing control unit (not shown) to convert the image data into high-definition image data. , To the USB host control unit 114 (described later). In addition, by controlling the USB host control unit 114, it also plays a role of periodically acquiring status information data of the recording unit 115.
[0024]
The USB function control unit 113 performs communication control of the USB interface, performs protocol control according to the USB communication standard, converts data from a USB control task executed by the CPU 101 into a packet, and converts the data into a packet. Then, a USB packet is transmitted, or conversely, a USB packet from an external information processing terminal is converted into data and transmitted to the CPU 101.
[0025]
The USB host control unit 114 is a control unit for performing communication using a protocol defined by the USB communication standard. The USB communication standard is a standard that enables high-speed bidirectional data communication, and a plurality of hubs or functions (slaves) can be connected to one host (master). The USB host control unit 114 has a host function in USB communication.
[0026]
The recording unit 115 is a printing device as a data processing unit including a laser beam printer, an inkjet printer, and the like, and prints color image data or monochrome image data on a printing member. The communication with the USB host control unit 114 is performed according to a protocol defined by the USB communication standard. In particular, the recording unit 115 has a function function.
[0027]
FIG. 1B is a block diagram illustrating a schematic configuration of the recording unit 115 in FIG. 1A. The CPU 116 controls the operation of the recording unit 115. The ROM 117 stores a control program executed by the CPU 116 and the like.
[0028]
The RAM 118 is constituted by a DRAM or the like, functions as a work memory when the CPU 116 executes a control program stored in the ROM 117, and stores items of recording unit status information.
[0029]
The print control unit 119 controls the operation of the print unit 120 according to a command from the CPU. The printing unit 120 includes, for example, mechanical members such as various rollers in a laser beam printer, an exposure mechanism, and a photosensitive drum, and mechanical members such as a sheet feeder (paper feed mechanism) and a print head member in an inkjet printer.
[0030]
The USB interface 121 is connected to the USB host control unit 114 and performs the above-described data communication.
[0031]
In the present embodiment, the USB communication of the recording function uses a one-to-one connection mode. The components 101 to 106 and 108 to 114 are interconnected via a CPU bus 132 managed by the CPU 101. In the recording section, the above components 116 to 119 and 121 are connected to each other via a CPU bus 133.
[0032]
Next, the outline of the external processing device 200 included in the image processing system will be described in detail. FIG. 2 is a block diagram illustrating a schematic configuration of the external processing device 200 included in the image processing system according to the embodiment of the present invention.
[0033]
The CPU 201 controls the overall operation of the external processing device 200 via a system bus according to a program read from a program stored in the ROM 202, the RAM 203, or the internal storage device 204 and the external storage device (205). is there. The ROM 202 stores a control program for the CPU 201 and the like.
[0034]
The RAM 203 temporarily stores programs and image data, and operates the external processing device 200 at high speed. The internal storage device 204 stores an operating system, various application programs, image data, and the like. The internal storage device 204 includes application software, printer driver software, scanner driver software, facsimile driver software for transmitting and receiving various control commands and data to and from the image processing apparatus 100, including the character data processing step in this embodiment. It is assumed that USB class driver software and USB bus driver software for each function are installed. Normally, these application software and driver software receive data from another computer-readable medium in which they are stored by an external storage disk 206 (floppy (registered trademark) disk, CD-ROM medium) and control the external storage device 205. To install. Further, the application unit and the driver software can be received by the communication unit 209 (network or modem) via a communication line and installed in the internal storage device 204.
[0035]
The operation unit 207 controls a keyboard and a mouse (not shown) as means for inputting instructions from an operator. Normally, the keyboard and the mouse of the operation unit 207 are used to start printing.
[0036]
The display unit 208 performs various displays for the operator. When starting printing by the external processing terminal 200, a confirmation dialog or the like is displayed on the display unit 208 to prompt the operator to input. During the execution of the printing operation, information indicating the printing status is provided to the operator.
[0037]
The communication unit 209 connects to a network (not shown), connects to an Internet provider through a communication line, and communicates data, image information, and the like with a partner communication device. A known method is used for connection to a network or a communication line, and will not be described in detail.
[0038]
The USB host control unit 209 performs communication control of the USB interface, converts data from the CPU 201 into a packet according to the USB communication standard, transmits a USB packet to the image processing apparatus 100, and conversely, A USB packet from the image processing apparatus 100 is converted into data and transmitted to the CPU 201. As for the communication control method, a known method is used and will not be described in detail.
[0039]
FIG. 3 is a conceptual diagram showing a configuration of the USB interface of the USB function control unit 113 of the image processing apparatus 100 shown here.
[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 recording unit 115 will be described in detail. FIG. 4 is a conceptual diagram illustrating a configuration of the recording unit 115 of the image processing apparatus 100 in the USB interface.
[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 image processing apparatus 100 of the image processing system will be described. FIG. 5 is a flowchart illustrating an initialization process of the image processing apparatus 100 according to the embodiment of the present invention.
[0050]
When the image processing apparatus 100 is turned on, in step 501, peripheral circuits connected to the CPU bus 121 are initialized.
[0051]
In step 502, a recording unit status information acquisition task for acquiring status information (recording unit status information) of the recording unit 115 for internal monitoring is started. Details will be described later.
[0052]
Subsequently, in step 503, it is determined whether the initialization of the recording unit 115 managed by another CPU (not shown) different from the CPU 101 has been completed. If completed, the process proceeds to step 503, and if not completed, step 503 is repeated. The end of the initialization of the recording unit 115 can be detected by the USB interface of the USB host control unit 114. Further, it is also possible to detect by directly connecting a monitoring line between the CPU 101 and the recording unit 115.
[0053]
In step 504, the CPU 101 acquires the device configuration of the recording unit 115 detected by the USB host control unit 114, and further, instructs the recording unit 115 to determine the device configuration for enabling the recording unit 115 (Set). Configuration command). The USB interface is used to acquire the device configuration of the recording unit 115. The device configuration data is transmitted and received by the logical channel used for device control of the endpoint 0 (403) shown in FIG. The data (attribute information) indicating the device configuration of the recording unit 115 includes the above-described device descriptor, configuration descriptor, interface descriptor, endpoint descriptor (1, 2), and the like. Manufacturer name string, product name string, serial number string, etc. The USB interface is used for the device configuration determination transmission to the recording unit 115.
[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 image processing apparatus 100, the image processing apparatus 100 can be reliably initialized. Furthermore, when notifying the external processing device 200 of data indicating the device configuration of the entire image processing device 100 (described later), it is possible to quickly respond to a device configuration acquisition command from the external processing device 200.
[0055]
In step 505, an apparatus configuration of the entire image processing apparatus 100 is generated. The device configuration data is transmitted and received by the logical channel used for device control of the endpoint 0 (303) shown in FIG. Data indicating the device configuration of the entire image processing device 100 includes the above-described device descriptor, configuration descriptor, interface descriptor (0 to 2), endpoint descriptor (1 to 8), and the like. There are a manufacturer name character string, a product name character string, a serial number character string, and the like of the entire image processing apparatus 100. As a part of the data indicating the apparatus configuration of the entire image processing apparatus 100, a part of the data indicating the apparatus configuration of the recording unit 115 acquired in step 504 is used.
[0056]
For example, the print data received by the image processing apparatus 100 from the external processing apparatus 200 via the USB interface can be directly transferred to the recording section 115 via the USB interface, and the USB host control section 114 transmits the print data from the recording section 115 via the USB interface. The interface descriptor 0 (304) for the printer in FIG. 3 is the same as the interface descriptor received from the recording unit 115 in step 504 so that the received print status data can be transferred to the external processing apparatus 200 as it is via the USB interface. Is formed. In addition, the serial number character string data received from the recording unit 115 may be used as it is as the nonvolatile data such as the manufacturing serial number character string of the apparatus.
[0057]
By performing the above control, the image processing apparatus 100 that does not depend on the model of the recording unit 115 can be configured. That is, even if the recording unit 115 is changed to the latest recording unit, there is no need to change the processing of this flowchart.
[0058]
In step 506, the USB function control unit 113 is shifted to a communication enabled state in order to permit communication between the image processing apparatus 100 and the external processing apparatus 200. The initialization of the entire image processing apparatus 100 is completed in the steps up to this point, and the image processing apparatus 100 enters a waiting state for an event.
[0059]
In step 507, it is determined whether the image processing apparatus 100 has been connected to the external processing apparatus 200. If connected, the process proceeds to step 507, and if not connected, step 507 is repeated. The connection with the external processing device 200 can be detected by the USB interface of the USB function control unit 113.
[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 external processing apparatus 200 to which the image processing apparatus 100 is connected. Judge. If so, the process proceeds to step 509; otherwise, step 508 is repeated.
[0061]
In step 509, the data indicating the device configuration of the entire image processing device 100 generated in step 505 is notified to the external processing device 200. The device configuration data is transmitted by a logical channel used for device control of endpoint 0 (303) shown in FIG.
[0062]
In step 510, it is determined whether or not the image processing apparatus 100 has received a device configuration determination command (Set Configuration command) from the external processing device 200. If so, the process proceeds to step 511; otherwise, step 510 is repeated. The device configuration determination command is received by the logical channel used for device control of endpoint 0 (303) shown in FIG.
[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 image processing device 100 in step 510 in the external processing device 200, the external processing device 200 Do not send device configuration command. Then, the external processing device 200 notifies the user that the connected image processing device 100 cannot be controlled, and requests an error check and installation of corresponding driver software.
[0064]
In step 511, the image processing apparatus 100 makes the apparatus configuration available, and shifts to a print data reception waiting state. If any error such as no ink, no toner, no recording paper, or no recording paper jam occurs in the recording unit 115 and the recording unit 115 is not ready to receive the print data, the USB function control is performed. The state in which the unit 113 is not ready to receive print data is also set in the external processing apparatus 200.
[0065]
For example, when the recording unit 115 detects a fatal error inside the recording unit 115 when the recording unit 115 is initialized in step 503, the recording unit 115 sets a state in which the recording unit 115 cannot receive print data. The CPU 101 that has detected the state via the USB host control unit 114 sets the USB function control unit 113 to a state in which preparation for receiving print data is not completed. With this control, the print data from the external processing device 200 does not accumulate in the image memory 104 and does not stay, and the external processing device 200 knows that the recording unit is not ready to receive the print data. It is possible to avoid malfunctions.
[0066]
In addition, even when the same error as described above occurs in the recording unit 115 during the initialization or the standby after the end of the recording operation, the USB function control unit 113 is set to a state in which it is not ready to receive the print data. By doing so, a similar effect can be obtained.
[0067]
The same applies to a case where the recording unit 115 is not ready to transmit data indicating the printing status. That is, if some error such as no ink, no toner, no recording paper, or no recording paper jam occurs in the recording unit 115, and the recording unit 115 is not ready to transmit data indicating the printing status, The USB function control unit 113 also sets a state in which it is not ready to transmit data indicating the printing status to the external processing device 200. For example, if the recording unit 115 detects a fatal error inside the recording unit 115 at the time of initialization of the recording unit 115 in step 503, the recording unit 115 determines that the recording unit 115 cannot transmit data indicating the printing status. Set.
[0068]
When the CPU 101 detects the state via the USB host control unit 114, the CPU 101 sets the USB function control unit 113 to a state in which it is not ready to transmit data indicating the printing status. With this control, even when a request to transfer data indicating the printing status is received from the external processing device 200, the external processing device 200 can know that the recording unit is not ready to receive the data indicating the printing status. Therefore, it is possible to avoid a malfunction of the processing. Further, even when the same error occurs in the recording unit 115 during the initialization or the standby after the end of the recording operation, the USB function control unit 113 is not ready to receive the data indicating the printing status. Similar effects can be obtained by setting the state.
[0069]
Steps 504 and 505 need not necessarily be performed immediately after step 503. For example, steps 504 and 505 may be performed immediately after the connection between the image processing apparatus 100 and the external processing apparatus 200 is confirmed in step 507. In this case, the power-on initialization processing of the image processing apparatus 100 can be reduced, and the time from when the image processing apparatus 100 is turned on until the image processing apparatus 100 becomes usable can be shortened. Steps 504 and 505 may be performed immediately after receiving the device configuration acquisition command from the external processing device 200 to which the image processing device 100 is connected in step 508. In this case, it is not necessary to obtain the device configuration of the recording unit 115 and generate the device configuration of the entire image processing apparatus 100 until the device configuration obtaining command is received, so that the algorithm of the control program can be simplified. Become.
[0070]
In step 504, it is not always necessary to simultaneously perform the acquisition of the device configuration from the recording unit 115 and the transmission of the device configuration determination to the recording unit 115. For example, the device configuration determination transmission to the recording unit 115 may be executed at the timing when print data is received from the external processing device 200. In this case, by separating the acquisition of the device configuration from the recording unit 115 and the transmission of the device configuration determination to the recording unit 115, an effect of clarifying the algorithm of the control program can be expected.
[0071]
Next, an example of the operation of the recording unit status information acquisition task of the recording unit 115 for internal monitoring of the image processing apparatus 100 in step 502 in FIG. 5 will be described in detail. FIG. 6 is a diagram illustrating a state in which the CPU 101 acquires status information of the recording unit 115, which is necessary for recording data created (read) inside the image processing apparatus 100 such as a copy operation in the embodiment of the present invention. It is a flowchart which shows operation | movement of a task.
[0072]
In step 601, the CPU 101 designates an item (status information item) of the recording unit status information requested for internal monitoring, instructs the recording unit 115 to register the status information item, and causes the recording unit 115 to execute a registration process. . In order for the image processing apparatus 100 to internally monitor the state of the recording unit necessary to execute functions of the apparatus alone such as copying and report output, the recording control unit 112 periodically sends the recording unit state to the recording unit 115. Since information is requested, the status information items required for internal monitoring by the CPU 101 are registered in advance.
[0073]
The status information item is registered in the RAM or ROM in the recording unit 115, and the registration command of the status information item is transmitted / received via the endpoint 1 which is a logical interface of the USB interface shown in FIG. Here, the status information items include, for example, the operation status of the recording unit 115, the status of the toner amount, the status of the recording paper, the error status, the status of the B / Y / C / M ink amount, and the like.
[0074]
In step 602, the state information items requested by the CPU 101 for internal monitoring are stored in the RAM 103.
[0075]
In step 603, the recording control unit 112 requests the recording unit 115 to return the recording unit status information for the status information items already registered in the recording unit 115 for internal monitoring. The recording unit status return request is transmitted by the logical channel used for transmitting the print status of the endpoint 2 (306) shown in FIG. Transmission of the print status notification request does not mean transmission of actual data, but transmission of an IN packet conforming to the USB communication standard. In response to the return request (IN packet), the recording unit 115 returns the registered recording unit status information to the recording control unit 112 via the endpoint 2 of the USB interface.
[0076]
In step 604, it is monitored whether or not a reply of the status information has arrived from the recording unit 115. If the reply has come, the process proceeds to step 605. In step 605, only the information corresponding to the status information item stored in the RAM 103 in step 602 is extracted from the storage unit status information returned from the storage unit 115, and stored and updated in the RAM 103 as a database in step 606.
[0077]
Subsequently, in step 607, an error check of the recording unit 115 is performed based on the updated database. If the CPU 101 performs internal monitoring periodically, steps 603 to 607 may be repeated.
[0078]
Subsequently, an operation of printing data created (read) inside the image processing apparatus 100, such as a copy operation, by the CPU 101 will be described in detail. FIG. 7 is a flowchart illustrating an operation of the CPU 101 for printing data created (read) inside the image processing apparatus 100, such as a copy operation, according to an embodiment of the present invention.
[0079]
First, in step 701, it is determined whether or not print data exists in the image memory 104 in the image processing apparatus 100. If there is print data, the process proceeds to step 702; otherwise, the process proceeds to step 703.
[0080]
In step 702, a process for transmitting the print data temporarily stored in the image memory 104 in the image processing apparatus 100 to the recording unit 115 is performed. Details regarding transmission of print data will be described later. When the processing in step 702 ends, the processing moves to step 703.
[0081]
In step 703, the status of the recording unit 115 is checked. For this state check, the recording unit state information acquired by the recording unit state information acquisition task described with reference to FIG. 6 and stored and updated as a database in the RAM 103 is used.
[0082]
In step 704, as a result of checking the state of the recording unit 115 in step 703, if an error has occurred in the recording unit 115, the process proceeds to step 707. If no error has occurred, the process proceeds to step 705. I do.
[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 operation display unit 108 or the display unit 208, and the like. .
[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 operation display unit 108 or the display unit 208, and the like. .
[0086]
Next, an operation performed by the image processing apparatus 100 based on data received from the external processing apparatus 200 will be described in detail. FIG. 8 is a flowchart corresponding to the embodiment of the present invention, showing an operation of the image processing apparatus 100 executed by the CPU 101 based on data received from the external processing apparatus 200.
[0087]
First, in step 801, the image processing apparatus 100 determines whether or not data has been received from the external processing apparatus 200. If so, the process proceeds to step 802; otherwise, the process returns to step 801. Data received from the external processing device 200 is received by the logical channel used for controlling the endpoint 1 (305) or the endpoint 2 and receiving data shown in FIG.
[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 recording unit 115 to register an external status information item, The flow shifts to step 803, and if not a status information item registration command, the flow shifts to step 805.
[0089]
In step 803, the state information item for internal monitoring stored in the RAM 103 in step 602 in FIG. 6 and the external state information item for which registration has been instructed in the received state information item registration command are combined as a new item. , A new status information item registration command is created and transmitted to the recording unit 115 via the internal USB interface. Upon receiving this, the recording unit 115 registers the status information item for which registration has been instructed.
[0090]
In step 804, the external status information item in the status information item registration command received in S801 is stored in the RAM 103. At this time, the status information item for internal monitoring stored in the RAM 103 in the step of FIG.
[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 recording unit 115 via the internal USB interface. The recording unit 115 receives this, and returns recording unit status information corresponding to the status information item registered in the recording unit 115 in step 803.
[0093]
In step 807, it is monitored that the item of the status information of the recording unit arrives from the recording unit 115, and when it arrives, the process proceeds to step 808.
[0094]
In step 808, only the storage unit status information corresponding to the external status information item designated by the external processing device 200 stored in the RAM 103 in step 804 is extracted from the returned storage unit status information, and is extracted from the external USB. A reply is sent to the external processing device 200 via the interface. When the external processing device 200 receives the returned recording unit status information, it analyzes the received information, and displays an error status, an ink status, a cover open, and the like according to the analysis result.
[0095]
In step 809, if the data received in step 801 is print data, the flow shifts to step 809; otherwise, the flow returns to step 801. The print data to be received is received in a packet format divided into a certain length.
[0096]
In step 810, the received print data is temporarily stored in the image memory 104 in the image processing apparatus 100, and then transmitted to the recording unit 115 sequentially. The recording unit 115 receives the transmitted print data and performs printing.
[0097]
Next, a detailed description will be given when transferring the print data. FIG. 9 is a flowchart when the print data of the image processing apparatus 100 executed by the CPU 101 is transmitted according to the embodiment of the present invention.
[0098]
In step 901, the print data temporarily stored in the image memory 104 in the image processing apparatus 100 is transmitted to a logical channel used for controlling the endpoint 1 (405) and receiving print data shown in FIG. At this time, the CPU 101 does not edit or process the content of the print data transferred from the endpoint 1 (305) to the endpoint 1 (405), and transmits the print data as it is. The print data to be transmitted is transmitted in a packet format divided into a certain length.
[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 external processing device 200 is no different from the case where the external processing device 200 and the recording unit 115 are directly connected via the USB interface, and the recording unit 115 is diverted from another product. In this case, the printer driver software can be used as it is.
[0100]
In the above embodiment, an example of the status information items is listed assuming that the recording unit 115, which is the data processing unit, is a printer. However, for example, in the case of a scanner, an operation status, an error status, a document status, and a sensor status are described. And in the case of a digital camera, an operation status, an error status, a media status, and the like.
[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 recording unit 115 in the image processing apparatus 100 according to the embodiment of the present invention.
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 image processing apparatus 100 according to the embodiment of the present invention.
FIG. 4 is a conceptual diagram illustrating an example of a USB configuration of a recording unit 115 according to the embodiment of the present invention.
FIG. 5 is a flowchart of an initialization processing operation of the image processing apparatus 100 according to the embodiment of the present invention.
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 external processing device 200 in the image processing device 100 according to the embodiment of the present invention.
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インタフェース手段と、第2の論理チャネルを有するデータ処理部を接続する第2インタフェース手段と、前記データ処理部を制御する副制御部とを有する画像処理装置であって、
前記データ処理部に対する命令を前記第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に記載の画像処理装置。The main control unit extracts, from the status information returned from the data processing unit, external status information corresponding to the external status information item stored in the storage unit, and extracts the extracted external status information. The image processing apparatus according to claim 1, wherein the status information is transmitted to the external processing apparatus via the first interface. 前記送信命令手段による前記データ処理部に対する前記状態情報の送信の命令が、前記命令受信手段による前記データ処理部の状態に関連する状態情報の返信を命令する状態情報返信命令の受信に基づくことを特徴とする請求項1又は請求項2に記載の画像処理装置。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. The image processing device according to claim 1 or 2, wherein 前記送信命令手段は、前記主制御部による前記データ処理部の監視要求に応じて前記データ処理部に対して前記状態情報の送信を命令することを特徴とする請求項1に記載の画像処理装置。2. The image processing apparatus according to claim 1, wherein the transmission command unit instructs the data processing unit to transmit the status information in response to a request from the main control unit to monitor the data processing unit. . 前記データ処理部から返信された前記状態情報から、前記格納手段に格納された前記内部用の状態情報項目に対応する内部用の状態情報を抽出し、前記抽出した内部用の状態情報に基づいて前記データ処理部の監視を行うことを特徴とする請求項4に記載の画像処理装置。From the status information returned from the data processing unit, extract internal status information corresponding to the internal status information item stored in the storage unit, based on the extracted internal status information The image processing apparatus according to claim 4, wherein monitoring of the data processing unit is performed. 前記第1インタフェース手段は、ユニバーサルシリアルバス通信規格に対応していることを特徴とする請求項1乃至請求項5のいずれか1項に記載の画像処理装置。The image processing apparatus according to claim 1, wherein the first interface unit is compliant with a universal serial bus communication standard. 前記第2インタフェース手段はユニバーサルシリアルバス通信規格に対応していることを特徴とする請求項1乃至請求項6のいずれか1項に画像処理装置。7. An image processing apparatus according to claim 1, wherein said second interface means conforms to a universal serial bus communication standard. 主制御部と、第1の論理チャネルを有し外部処理装置に接続する第1インタフェース部と、第2の論理チャネルを有するデータ処理部を接続する第2インタフェース部と、前記データ処理部を制御する副制御部と、所定のデータを格納する格納部とを有する画像処理装置の制御方法であって、
前記データ処理部に対する命令を前記第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.
前記主制御部が、前記データ処理部から返信された前記状態情報から、前記格納部に格納された前記外部用の状態情報項目に対応する外部用の状態情報を抽出し、前記抽出した外部用の状態情報を前記外部処理装置へ前記第1のインタフェースを介して送信することを特徴とする請求項8に記載の画像処理装置の制御方法。The main control unit extracts, from the status information returned from the data processing unit, external status information corresponding to the external status information item stored in the storage unit, and extracts the extracted external status information. 9. The method according to claim 8, wherein the status information is transmitted to the external processing device via the first interface. 前記送信命令工程による前記データ処理部に対する前記状態情報の送信の命令が、前記命令受信工程による前記データ処理部の状態に関連する状態情報の返信を命令する状態情報返信命令の受信に基づくことを特徴とする請求項8又は請求項9に記載の画像処理装置の制御方法。The instruction of transmitting the state information to the data processing unit in the transmission instruction step is based on the reception of a state information return instruction instructing the return of state information related to the state of the data processing unit in the instruction receiving step. The control method for an image processing apparatus according to claim 8 or 9, wherein 前記送信命令工程は、前記主制御部による前記データ処理部の監視要求に応じて前記データ処理部に対して前記状態情報の送信を命令することを特徴とする請求項8に記載の画像処理装置の制御方法。9. The image processing apparatus according to claim 8, wherein the transmission instruction step instructs the data processing unit to transmit the state information in response to a request from the main control unit to monitor the data processing unit. Control method. 前記データ処理部から返信された前記状態情報から、前記格納部に格納された前記内部用の状態情報項目に対応する内部用の状態情報を抽出し、前記抽出した内部用の状態情報に基づいて前記データ処理部の監視を行うことを特徴とする請求項11に記載の画像処理装置の制御方法。From the status information returned from the data processing unit, extract internal status information corresponding to the internal status information item stored in the storage unit, based on the extracted internal status information The method according to claim 11, wherein the monitoring of the data processing unit is performed. 請求項8乃至請求項12のいずれか1項に記載の画像処理装置の制御方法をコンピュータに実行させるための画像処理装置の制御プログラム。A control program for an image processing apparatus for causing a computer to execute the control method for an image processing apparatus according to claim 8. 請求項13に記載の画像処理装置の制御プログラムを格納したコンピュータが読取り可能な情報記憶媒体。A computer-readable information storage medium storing the control program for the image processing apparatus according to claim 13.
JP2002174144A 2002-06-14 2002-06-14 Image processing apparatus, its control method, program, and information record medium Withdrawn JP2004023355A (en)

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)

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