JP2004070610A - Printer device, digital camera and control program for digital camera - Google Patents

Printer device, digital camera and control program for digital camera Download PDF

Info

Publication number
JP2004070610A
JP2004070610A JP2002228028A JP2002228028A JP2004070610A JP 2004070610 A JP2004070610 A JP 2004070610A JP 2002228028 A JP2002228028 A JP 2002228028A JP 2002228028 A JP2002228028 A JP 2002228028A JP 2004070610 A JP2004070610 A JP 2004070610A
Authority
JP
Japan
Prior art keywords
digital camera
printer
printer device
dsc
ncdp
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
JP2002228028A
Other languages
Japanese (ja)
Inventor
Masahiro Sato
佐藤 政弘
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 JP2002228028A priority Critical patent/JP2004070610A/en
Publication of JP2004070610A publication Critical patent/JP2004070610A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem wherein when a digital camera is connected to a printer device for direct print, the printer device needs to operate as a host, and if the digital camera as a device operationally requires its own power source in the form of a removable battery, battery exhaustion during printing causes a shutdown during printing. <P>SOLUTION: A digital camera is connectable direct to a printer device via communication means. The digital camera comprises notifying means for notifying the printer device of authentication information showing whether there is a direct print function or not via the communication means in an initial stage of connection to the printer device, and power receiving means for receiving power supply from the printer device according to authentication by the printer device responding to the authentication information notification. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明はデジタルカメラ、プリンタ、並びにプリンタシステムに関するものである。なお、本明細書中においてはデジタルカメラを仮にDSCと略して記述することとするが、静止画撮影に限るという意味ではなく、デジタルビデオカメラのような動画も取れるカメラもデジタルカメラ(DSC)に含まれたことが前提で本説明はなされるものとする。
【0002】
【従来の技術】
通常、デジタルカメラで撮影した映像を、プリントする場合、そのデジタルカメラに記憶された画像をパーソナルコンピュータ(以下、PC)で読取り、PC上のアプリケーションを用いて、接続されたプリンタで印刷するという作業を踏む。
【0003】
つまり、画像データの流れとしては、DSC→PC→プリンタという手順になり、PCの所有を必須としている。また、DSCに記憶されている画像を印刷するのに、一々PCを起動しなければならないという問題もある。
【0004】
かかる点に着目し、DSCとプリンタとをダイレクトに接続し、DSCが通常備えている表示器上でプリント指示を与える提案(以下、フォトダイレクトプリントという)を既にいくつか行っている。
【0005】
上記フォトダイレクトプリントシステムを採用することのメリットは、PCを起動せずとも、手軽に印刷できる点は勿論であるが、PCを必須とするものでもないから、システム構築が安価にできる点が挙げられる。また、プリンタにDSCを接続した際、各種指示、特に、印刷させようとする画像を確認するための手段として、DSCが通常備える表示器を利用するので、プリンタ側に画像確認のための格別な表示器を必要とせず、更に、コストを更に削減できることも見逃せないメリットとなる。
【0006】
【発明が解決しようとする課題】
ところで、昨今のDSCの多くは、PCと接続するための汎用の通信手段を備えている。典型的にはUSB(Universal Serial Bus)であるが、このUSBを用いての接続の場合、DSCはスレーブ、PCはホストとして通信が確立する。PC側から見れば、DSCは、あたかも単純な外部ストレージデバイスと同様に扱えるようになる。
【0007】
かかるUSBを用いてプリンタにダイレクトに接続し、ダイレクトプリントシステムを構築する場合、PCにとってのDSCとは異なり、DSCを単なるストレージデバイスとして扱うだけでなく、システムとしてのユーザインターフェース装置として使用することが望まれる。
【0008】
従って、プリンタにとっては、接続されたデバイスがかかる機能を有するデジタルカメラであるかどうかを判定しなければならない。換言すれば、デジタルカメラに、接続されたプリンタがダイレクトプリント機能を有することを通知する必要がでてくる。
【0009】
プリンタに接続されるデジタルカメラがダイレクトプリント機能を有する/有さないに変わらず、本発明のプリントシステムを提供する際、デジタルカメラはUSBデバイスとして動作するために、プリント装置はホストとして動作する必要がある。デバイスであるデジタルカメラが着脱可能なバッテリで電力要件として自己電源で動く場合は、印刷作業中のバッテリ切れによりプリント作業中にシャットダウンしてしまう場合が考えられる。
【0010】
本発明はかかる問題点に鑑みなされたものであり、デジタルカメラはバス電源から供給される最大電力要件(たとえば500mA以下)で動作することが可能な場合、自己電源で動作可能なデバイスであっても電力要件をバス電源としV busから供給される電力で動作する事でプリンタ装置が電力供給できるかぎりはプリントシステムとしての構成が破綻しないデジタルカメラを提供しようとするものである。
【0011】
また、該デジタルカメラがバス電源で動作するデバイスであり、プリントシステムが構築されている状態の中で該デジタルカメラがある静的状態の場合に、現在動作に必要な電力がMax Power要件よりも少ない電力であれば、プリントシステムのデバイスとして動作している間に該デジタルカメラに装着したバッテリを充電するシステムを構築する事により、プリント中にデジタルカメラとして使用する際に使用されるバッテリを充電できるデジタルカメラを提供しようとするものである。
【0012】
【課題を解決するための手段】
上記の課題を解決するために、本発明によれば、デジタルカメラと通信手段を介してダイレクトに接続可能なプリンタ装置であって、前記デジタルカメラと接続した初期段階において、前記通信手段を介して前記デジタルカメラにおけるダイレクトプリント機能の有無の認証を行う認証手段と、前記認証手段による認証結果に基づき、前記通信手段を介して、前記デジタルカメラへと電力を供給可能な電力供給手段とを備えたプリンタ装置を特徴とする。
【0013】
また前記通信手段は、USBインターフェースによって通信する手段であり、前記デジタルカメラは、バス電源で動作するUSBデバイスとして動作するプリンタ装置を特徴とする。
【0014】
また本発明によれば、プリンタ装置と通信手段を介してダイレクトに接続可能なデジタルカメラであって、前記プリンタ装置と接続した初期段階において、前記通信手段を介してダイレクトプリント機能の有無を示す認証情報を前記プリンタ装置へと通知する通知手段と、前記認証情報の通知に対する前記プリンタ装置側における認証に基づいて、前記プリンタ装置側より電力供給を受ける電力受信手段とを備えたデジタルカメラを特徴とする。
【0015】
また前記通信手段は、USBインターフェースによって通信する手段であり、前記デジタルカメラは、バス電源で動作するUSBデバイスとして動作するデジタルカメラを特徴とする。
【0016】
また前記通信手段を介して前記プリンタ装置より供給されるバス電源からの供給電力の余力で装着されているバッテリを充電する充電手段を備えたデジタルカメラを特徴とする。
【0017】
【発明の実施の形態】
以下、添付図面に従って本発明に係る実施形態を説明する。
【0018】
図1は、本発明の実施の形態に係るフォトダイレクトプリンタ装置(以下、PDプリンタ装置)1000の概観斜視図である。このPDプリンタ装置1000は、ホストコンピュータ(PC)からデータを受信して印刷する通常のPCプリンタとしての機能と、メモリカードなどの記憶媒体に記憶されている画像データを直接読取って印刷したり、或いはデジタルカメラからの画像データを受信して印刷する機能を備えている。
【0019】
図1において、本実施の形態に係るPDプリンタ装置1000の外殻をなす本体は、ケースM1001、上ケース1002、アクセスカバー1003及び排出トレイ1004の外装部材を有している。また、下ケース1001は、PDプリンタ装置1000の略下半部を、上ケース1002は本体の略上半部をそれぞれ形成しており、両ケースの組合せによって内部に後述の各機構を収納する収納空間を有する中空体構造をなし、その上面部及び前面部にはそれぞれ開口部が形成されている。さらに、排出トレイ1004は、その一端部が下ケース1001に回転自在に保持され、その回転によって下ケース1001の前面部に形成される開口部を開閉させ得るようになっている。このため、記録動作を実行させる際には、排出トレイ1004を前面側へと回転させて開口部を開成させることにより、ここから記録シートが排出可能となると共に、排出された記録シートを順次積載し得るようになっている。また、排紙トレイ1004には、2枚の補助トレイ1004a,1004bが収納されており、必要に応じて各トレイを手前に引き出すことにより、用紙の支持面積を3段階に拡大、縮小させ得るようになっている。
【0020】
アクセスカバー1003は、その一端部が上ケース1002に回転自在に保持され、上面に形成される開口部を開閉し得るようになっており、このアクセスカバー1003を開くことによって本体内部に収納されている記録ヘッドカートリッジ(不図示)あるいはインクタンク(不図示)等の交換が可能となる。なお、ここでは特に図示しないが、アクセスカバー1003を開閉させると、その裏面に形成された突起がカバー開閉レバーを回転させるようになっており、そのレバーの回転位置をマイクロスイッチなどで検出することにより、アクセスカバーの開閉状態を検出し得るようになっている。
【0021】
また、上ケース1002の上面には、電源キー1005が押下可能に設けられている。また、上ケース1002の右側には、液晶表示部1006や各種キースイッチ等を備える操作パネル1010が設けられている。この操作パネル1010の構造は、図2を参照して詳しく後述する。1007は自動給送部で、記録シートを装置本体内へと自動的に給送する。1008は紙間選択レバーで、プリントヘッドと記録シートとの間隔を調整するためのレバーである。1009はカードスロットで、ここにメモリカードを装着可能なアダプタが挿入され、このアダプタを介してメモリカードに記憶されている画像データを直接取り込んで印刷することができる。このメモリカード(PC)としては、例えばコンパクトフラッシュ(登録商標)メモリ、スマートメディア、メモリスティック等がある。1011はビューワ(液晶表示部)で、このPDプリンタ装置1000の本体に着脱可能であり、PCカードに記憶されている画像の中からプリントしたい画像を検索する場合などに、1コマ毎の画像やインデックス画像などを表示するのに使用される。1012は後述するデジタルカメラを接続するためのUSB端子である。また、このPD装置1000の後面には、パーソナルコンピュータ(PC)を接続するためのUSBコネクタが設けられている。
【0022】
図2は、本実施の形態に係るPDプリンタ装置1000の操作パネル1010の概観図である。
【0023】
同図において、液晶表示部1006には、その左右に印刷されている項目に関するデータを各種設定するためのメニュー項目が表示される。ここに表示される項目としては、例えば、印刷したい範囲の先頭写真番号、指定コマ番号(開始コマ指定/印刷コマ指定)、印刷を終了した範囲の最後の写真番号(終了)、印刷部数(部数)、印刷に使用する用紙(記録シート)の種類(用紙種類)、1枚の用紙に印刷する写真の枚数設定(レイアウト)、印刷の品位の指定(品位)、撮影した日付を印刷するかどうかの指定(日付印刷)、写真を補正して印刷するかどうかの指定(画像補正)、印刷に必要な用紙枚数の表示(用紙枚数)等がある。これら各項目は、カーソルキー2001を用いて選択、或いは指定される。2002はモードキーで、このキーを押下する毎に、印刷の種類(インデックス印刷、全コマ印刷、1コマ印刷等)を切り替えることができ、これに応じてLED2003の対応するLEDが点灯される。2004はメンテナンスキーで、プリントヘッドのクリーニング等、プリンタのメンテナンスを行わせるためのキーである。2005は印刷開始キーで、印刷の開始を指示する時、或いはメンテナンスの設定を確立する際に押下される。2006は印刷中止キーで、印刷を中止させる時や、メンテナンスの中止を指示する際に押下される。
【0024】
次に図3を参照して、本実施の形態に係るPDプリンタ装置1000の制御に係る主要部の構成を説明する。尚、この図3において、前述の図面と共通する部分は同じ記号を付与して、それらの説明を省略する。
【0025】
図3において、3000は制御部(制御基板)を示している。3001はASIC(専用カスタムLSI)を示し、その構成は図4のブロック図を参照して詳しく後述する。3002はDSP(デジタル信号処理プロセッサ)で、内部にCPUを有し、後述する各種制御処理及び、輝度信号(RGB)から濃度信号(CMYK)への変換、スケーリング、ガンマ変換、誤差拡散等の画像処理等を担当している。3003はメモリで、DSP3002のCPUの制御プログラムを記憶するプログラムメモリ3003a、及び実行時のプログラムを記憶するRAMエリア、画像データなどを記憶するワークメモリとして機能するメモリエリアを有している。3004はプリンタエンジンで、ここでは、複数色のカラーインクを用いてカラー画像を印刷するインクジェットプリンタのプリンタエンジンが搭載されている。3005はデジタルカメラ(DSC)3012を接続するためのポートとしてのUSBコネクタである。3006はビューワ1011を接続するためのコネクタである。3008はUSBハブ(USB HUB)で、このPDプリンタ装置1000がPC3010からの画像データに基づいて印刷を行う際には、PC3010からのデータをそのままスルーし、USB3021を介してプリンタエンジン3004に出力する。これにより、接続されているPC3010は、プリンタエンジン3004と直接、データや信号のやり取りを行って印刷を実行することができる(一般的なPCプリンタとして機能する)。3009は電源コネクタで、電源3011により、商用ACから変換された直流電圧を入力している。PC3010は一般的なパーソナルコンピュータ、3011は前述したメモリカード(PCカード)、3012はデジタルカメラ(DSC:Digital Still Camera)である。
【0026】
尚、この制御部3000とプリンタエンジン3004との間の信号のやり取りは、前述したUSB3021又はIEEE1284バス3022を介して行われる。
【0027】
図4は、ASIC3001の構成を示すブロック図で、この図4においても、前述の図面と共通する部分は同じ記号を付与して、それらの説明を省略する。
【0028】
4001はPCカードインターフェース部で、装着されたPCカード3011に記憶されている画像データを読取ったり、或いはPCカード3011へのデータの書き込み等を行う。4002はIEEE1284インターフェース部で、プリンタエンジン3004との間のデータのやり取りを行う。このIEEE1284インターフェース部4002は、デジタルカメラ3012或いはPCカード3011に記憶されている画像データを印刷する場合に使用されるバスである。4003はUSBインターフェース部で、PC3010との間でのデータのやり取りを行う。4004はUSBホストインターフェース部で、デジタルカメラ3012との間でのデータのやり取りを行う。4005は操作パネル・インターフェース部で、操作パネル1010からの各種操作信号を入力したり、表示部1006への表示データの出力などを行う。4006はビューワ・インターフェース部で、ビューワ1011への画像データの表示を制御している。4007は各種スイッチやLED4009等との間のインターフェースを制御するインターフェース部である。4008はCPUインターフェース部で、DSP3002との間でのデータのやり取りの制御を行っている。4010はこれら各部を接続する内部バス(ASICバス)である。
【0029】
図26は実施形態におけるDSC3012のブロック構成図である。なお、ハードウェアそのものは、公知であるので簡単に説明する(ファームウェアはNCDP対応になっている)。
【0030】
同図において、31はDSC全体の制御を司るCPUであり、32はCPU31の処理手順(ファームウェア)を記憶しているROMである(ただし、ファームウェアは適宜バージョンアップが行われることを想定し、書き込み可能な不揮発性メモリ、例えばフラッシュメモリで構成される)。33はCPU33のワークエリアとして使用されるRAMであり、34は各種操作を行うスイッチ群である。35は液晶表示器であり、撮像した画像を確認したり、各種設定を行う際のメニューを表示するために使用される。これら34、35は、本実施形態では、ダイレクトプリントシステムとして機能した場合、システム全体としてユーザインターフェースとして機能するようになる。36は光学ユニットであり、主としてレンズ及びその駆動系で構成される。37はCCD素子であり、38はCPU31の制御下において光学ユニット36を制御するドライバである。39は記憶媒体40(コンパクトフラッシュ(登録商標)メモリカード、スマートメディア等)を接続するためのコネクタであり、41はPC或いは実施形態におけるPDプリンタ1000と接続するためのUSBインターフェース(USBのスレーブ側)である。
【0031】
以上が実施形態におけるPDプリンタ及びDSCの構成の説明である。以下、かかる構成に基づく動作概要を以下に説明する。
【0032】
<通常のPCプリンタモード>
これはPC3010から送られてくる印刷データに基づいて画像を印刷する印刷モードである。
【0033】
このモードでは、PC3010からのデータがUSBコネクタ1013(図3)を介して入力されると、USBハブ3008、USB3021を介して直接プリンタエンジン3004に送られ、PC3010からのデータに基づいて印刷が行われる。
【0034】
<PCカードからの直接プリントモード>
PCカード3011がカードスロット1009に装着或いは脱着されると割り込みが発生し、これによりDSP3002はPCカード3011が装着されたか或いは脱着(取り外された)されたかを検知できる。PCカード3011が装着されると、そのPCカード3011に記憶されている圧縮された(例えばJPEG圧縮)画像データを読込んでメモリ3003に記憶する。その後、その圧縮された画像データを解凍して再度メモリ3003に格納する。次に、操作パネル101を使用して、その格納した画像データの印刷が指示されると、RGB信号からYMCK信号への変換、ガンマ補正、誤差拡散等を実行してプリンタエンジン3004で印刷可能な記録データに変換し、IEEE1284インターフェース部4002を介してプリンタエンジン3004に出力することにより印刷を行う。
<カメラからの直接プリントモード>
図5は本実施の形態に係るPDプリンタ装置1000とデジタルカメラ3012とを接続する状態を示す図である。
【0035】
図において、ケーブル5000は、PDプリンタ装置1000のコネクタ1012と接続されるコネクタ5001と、デジタルカメラ3012の接続用コネクタ5003と接続するためのコネクタ5002とを備えており、また、デジタルカメラ3012は、内部のメモリに保存している画像データを、接続用コネクタ5003を介して出力可能に構成されている。なお、デジタルカメラ3012の構成としては、内部に記憶手段としてのメモリを備えるものや、取外し可能なメモリを装着するためのスロットを備えたものなど、種々の構成を採用することができる。このように、図5に示すケーブル5000を介してPDプリンタ装置1000とデジタルカメラ3012とを接続することにより、デジタルカメラ3012からの画像データを直接PDプリンタ装置1000で印刷することができる。
【0036】
ここで図5に示すように、PDプリンタ装置1000にデジタルカメラ3012が接続され、ネゴシエーションの結果、ダイレクトプリントモードへ移行した場合は、操作パネル1010の表示部1006にはカメラマークのみが表示され、操作パネル1010における表示及び操作が無効になり、又ビューワ1011への表示も無効になる。従って、これ以降はデジタルカメラ3012でのキー操作及びデジタルカメラ3012の表示部(不図示)への画像表示のみが有効になるので、ユーザはそのデジタルカメラ3012を使用して印刷指定を行うことができる。また、デジタルカメラ3012とプリンタの操作部とを同時に操作してしまうことに起因するエラーも防止できる。
【0037】
本実施の形態では、複数のメーカのデジタルカメラを接続してプリントすることができるPDプリンタ装置を提供することを目的とし、本実施の形態に係るPDプリンタ装置1000とデジタルカメラとを接続してプリントを行なう場合の通信規約について詳しく説明すると共に、通信中の充電手法について説明する。
【0038】
本実施の形態においては、PDプリンタ装置とデジタルカメラとの間の通信制御を汎用ファイル、汎用フォーマットを用いて行い、インターフェースに依存しないNCDP(New Camera Direct Print)を提案する。
【0039】
図6は、このNCDPの構成の一例を示す図である。
【0040】
同図において、600はUSBによるインターフェース、601はブルーツース(Bluetooth)によるインターフェースを示している。602はNCDPによるシステムを構築する際に組込まれるアプリケーションレイヤを示している。603は既存のプロトコル及びインターフェースを実行するためのレイヤで、ここではPTP(Picture Transfer Protocol),SCSI及びブルーツースのBIP(Basic Image Profile),USBインターフェース等が実装されている。本実施の形態に係るNCDPは、このようなプロトコルレイヤ等のアーキテクチャが実装されていて、その上にアプリケーションとして実装されることが前提である。ここではPDプリンタ装置1000はUSBホスト、カメラ3012はUSBデバイスとして規定されており、図6に示すように、それぞれ同じNCDP構成となっている。
【0041】
詳細は後述するが、実施形態におけるNCDPを用いることのメリットは、PDプリンタ装置1000とDSC3012が互いにNCDPへの移行する際、及び移行した後において、互いに情報のやりとりを行う場合には、一連の情報、一連の動作手順をスクリプトで記述したファイル(テキストファイル)を生成し、それを相手側デバイスに送信し、受信側では受信したスクリプトを解釈して処理することにある。この結果、或る情報を相手側に伝えたい場合において、その情報が複数の要素で構成されている場合、1つ1つの要素をハンドシェークでやりとりすることが少なくでき、情報伝達に係るオーバーヘッドがなくなり、情報伝達の効率が向上するからである。例えば、DSC3012側で、印刷させたい画像が複数存在する場合、その印刷させたい画像を好きなだけ選択し、それぞれに対して印刷条件を設定した場合、その一連の処理手順がスクリプトとして記述されてPDプリンタ装置1000に通知することが可能になる。PDプリンタ装置1000側では、受信したスクリプトを解釈し、処理することになる。
【0042】
図7は、本実施の形態に係るNCDPによる、PDプリンタ装置1000とデジタルカメラ(DSC)3012との間での通信手順の流れを説明する図である。
【0043】
ここでは、図5に示すようにUSBケーブル5000によりPDプリンタ装置1000とDSC3012とが接続されたことが検知されると、これら機器間での通信が可能になる。これにより、これら機器に実装されているアプリケーションが実行されてNCDPによる手順701への移行が開始される。702はNCDPの初期状態を示し、ここでは互いの機種がNCDPを実行可能かどうかを判断し、可能であればNCDPによる手順701に移行している。もしここで、DSC3012がNCDPを実装していない場合には、NCDPによる通信制御は実行されない。こうしてNCDPに移行した後、703で示すように、DSC3012から「基本手順」による画像データの転送/印刷が指示されると、DSC3012から画像ファイルをPDプリンタ装置1000に転送して印刷する簡易印刷モードに移行する。また704で示すように、DSC3012から「推奨手順」による画像データの転送/印刷が指示されると、DSC3012とPDプリンタ装置1000との間で各種ネゴシエーションを行ってその印刷条件等を決定した後、画像ファイルをDSC3012からPDプリンタ装置1000に転送して印刷するより多彩な印刷モードに移行する。また705は「拡張手順」による指示がDSC3012によりなされると、例えばDPOF,XHTML−print,SVG等の高度レイアウト機能、及び各社ベンダーユニークな仕様での印刷を行うモードが設定される。尚、この「拡張手順」による詳細仕様に関しては、DSCのメーカ各社個別の拡張仕様書で規定されるので、ここでは特に説明しない。尚、これら「基本手順」及び「推奨手順」による画像印刷に関しては、図9乃至図11を参照して後述する。
【0044】
図8は、本実施の形態に係るNCDPにおいてプリントを行うために規定したコマンドを説明する図である。
【0045】
図8において、「対応モード」はDSC3012から指示される、前述した「基本手順」、「推奨手順」及び「拡張手順」に対応している。「推奨手順」では全てのコマンドが使用できるのに対し、「基本手順」は簡易印刷モードであるため、NCDPへの移行及びその終了、「基本手順」、「推奨手順」及び「拡張手順」の各モードへの移行コマンド及びカメラ3012からの画像データの取得及びカメラ3012よりの印刷命令のみが使用可能である。尚、「拡張手順」では、NCDPへの移行及びその終了、「基本手順」、「推奨手順」及び「拡張手順」の各モードへの移行コマンドだけが用いられるように記載されているが、前述のように、各社の仕様に応じて他のコマンドが用いられても良いことはいうまでもない。
【0046】
以下、前述した「基本手順」及び「推奨手順」による画像印刷について説明すると共に、通信中の充電シーケンス例について説明する。
【0047】
図9は、「基本手順」による画像印刷を行う場合のNCDPの通信手順を説明する図である。この「基本手順」は、DSCからPDプリンタ装置1000に対して1枚の画像ファイルを転送して印刷するだけの簡易印刷モードであり、対応している画像フォーマットとしては、VGAサイズ(640×480画素)のRGB画像、VGAサイズ(640×480画素)のJPEG画像とし、DSC3012はPDプリンタ装置1000がサポートしている画像フォーマットで送信する。この場合はエラーハンドリングを実行しない。
【0048】
まず900で、PDプリンタ装置1000からDSC3012に対してNCDPへの移行を指示するコマンド(NCDP Start)を送信する。ここでDSC3012がNCDPを実装していればOKが返送される(901)。尚、このNCDPの確認手順を行う場合の一例としてPTPを用いた場合の具体例に関しては、図14を参照して詳しく後述する。
【0049】
こうして互いにNCDPが実装されていることが確認されると、PDプリンタ装置1000からモードに移行するように命令(Procedure Start)がDSC3012に送信される(902)。これに対して903で、DSC3012から簡易印刷モードである「基本手順」が送られてくると、これ以降は「基本手順」による印刷モードに移行する。この場合は、DSC3012における操作により印刷したい画像が選択されて印刷が指示されると、印刷の開始を指示するコマンド(Job Start)がDSC3012からPDプリンタ装置1000に送られる(904)。これによりPDプリンタ装置1000は簡易印刷モードとなり、DSC3012に対してコマンド(Get Image)を送信してJPEG画像を要求する(905)。これによりDSC3012からJPEG画像がPDプリンタ装置1000に送信され(906)、PDプリンタ装置1000における印刷処理が開始される。
【0050】
この際、デジタルカメラは、印刷時のプリント装置のエラーか、ユーザのDSC3012でのキー操作(不図示)による印刷の中止あるいは、指示された画像の印刷が終了すると印刷ジョブの終了を示すPDプリンタ装置1000からDSC3012に送信される(907)コマンド(Job End)のいずれかを待つ静的状態となる(ステータス変動のない状態)ため本実施例ではこの画像要求に応答し画像データの転送が終了してからプリンタ装置が印刷終了するまでの期間充電処理を行う。
【0051】
この処理の詳細を図29に示す。同図において、まず要求された画像データを転送し終えたかどうかを監視する(S60)。続いて転送終了確認した後バッテリの充電状況を確認し(S61)充電が充分でない場合はV bus電力を使ったバッテリ充電(S62)を開始する。尚、充電量に問題がない場合には充電処理シーケンスは開始されない。
【0052】
そして充電は、充電完了(S64)、プリンタ装置の印刷完了(S65)、ユーザのプリント中止命令(S66)を認識するまで継続し、充電完了又はプリント処理の終了により充電処理を中止する。
【0053】
そこで、これに対してDSC3012から肯定応答(OK)が返送されると(908)、この「基本手順」による印刷処理が完了する。
【0054】
この様にカメラからモード指定することは、プリント操作を行うべき装置からモードを指定することになるので、カメラを操作する使用者の意図に沿ったモードを指定しやすい。
【0055】
図10は、「推奨手順」による画像印刷を行う場合のNCDPの通信手順を説明する図で、前述の図9と共通する手順には同じ番号を付して、その説明を省略する。この「推奨手順」では、PDプリンタ装置1000とDSC3012との間でのネゴシエーションを前提とした「より多彩な印刷」モードが設定でき、複数枚の写真印刷やレイアウト印刷が可能になる。また、エラーハンドリングも実行可能となる。
【0056】
図10において、図9の場合と同様にして、互いにNCDPが実装されていることを確認した後、この場合では、DSC3012から「推奨手順」が指示される(910)。この後はこの「推奨手順」による手順が実行される。まず911で示すように、PDプリンタ装置1000は、自機の備えている機能及び用紙設定等を含む機能をCapability情報として生成し、その全てをDSC3012に伝える。このCapability情報は、スクリプト形式(一連の手順や情報をテキスト形
式で記述されたファイル)でDSC3012に送信される。
【0057】
このCapability情報の一例を図12に示す。
【0058】
図12に示すように、このCapability情報は、印刷可能な用紙の種類及びサイズ、印刷品位、画像データのフォーマット、日付印刷の有無、ファイル名印刷の有無、レイアウト、画像補正の有無、更にはオプションとして、各カメラメーカの仕様に対応した機能の有無等の情報を含んでいる。
【0059】
このようにCapability情報をスクリプト表記とし、更にこの表記をXML準拠とすることにより、他の通信プロトコルのアーキテクチャへの移植を簡単にし、このような機能情報のやり取りを、より標準化し易くしている。この理由は、例えば1つ1つの要素を、それぞれ専用のコマンドで記述した場合と比較すると判りやすい。例えば、図12における、PDプリンタ装置1000が処理可能なイメージタイプを通知する記述を「<Image Type=…>」にDSC3012に通知する際にそれ専用のコマンドが必要になるし、そもそも将来、新たに付加される機能について考慮した場合に備えてコマンドを用意しておくのは無理がある。スクリプトで記述することで、一連の情報を複数行のテキストとして記述できるし、もし解釈できない要素があったとしても無視すれば良いので、発展性が否定されることはない。これは他のスクリプトについても同じことが言えることを付言しておく。
【0060】
さて、このようなCapability情報を受信したDSC3012は、そのPDプリンタ装置1000が備えている機能の内のいずれを使用して印刷を行うかを判定できるようになる。そして、DSC3012は、この結果に応じたメニューをユーザに提示し、印刷したい画像を選択させると共に、その画像の印刷条件をそのPDプリンタ装置1000の有している機能(印刷条件)の中から選択し、決定することになる。こうして印刷したい画像及び印刷条件などが決定されて印刷開始が指示されるとプリント命令(Job Start)がPDプリンタ装置1000に送られる。これによりPDプリンタ装置1000から、その画像データを要求するコマンド(Get Image xn)が発行され(912)、それに応答してDSC3012から、対応する画像データが、PDプリンタ装置1000が受信可能な画像フォーマット(Tiff,JPEG,RGBなど)で送信される(913)。ここで1枚の画像印刷に対して複数の画像データを送信できるようになっているのは、例えば2×2等のレイアウト印刷が指定されている場合は、1枚の用紙に対して4枚分の画像データを送信する必要があるためである。こうして、指示された画像の印刷が終了すると印刷ジョブの終了を示すコマンド(Job End)がPDプリンタ装置1000からDSC3012に送信される(907)。これに対してDSC3012から肯定応答(OK)が返送されると(908)、再び、この「推奨手順」による、次に画像の選択・印刷処理に移行する。
【0061】
図11は、前述の「推奨手順」による画像印刷を行う場合のNCDPの通信手順において、PDプリンタ装置1000でエラーが発生した場合の通信手順を説明する図で、前述の図10と共通する手順には同じ番号を付して、その説明を省略する。
【0062】
この例では、「推奨手順」での印刷処理の実行中に、PDプリンタ装置1000において給紙エラーが発生した場合の例を示している。この場合には914で、PDプリンタ装置1000からDSC3012に対して給紙エラーを示すステータス情報(Status)が送信される。これに対してDSC3012のユーザによる判断による指示内容に基づいて、その印刷処理を継続するか(Job Continue)、中止するか(Job Abort)を示すコマンドがPDプリンタ装置1000に送信される(915)。これによりPDプリンタ装置1000では、中止の場合はその印刷処理を中止してプリントジョブの終了通知(Job End)を送信して印刷を中止する。或いは継続が指示された場合には、その給紙エラーの修復を待って、印刷処理を継続するように動作する。この場合の充電シーケンス(図30)は以下となる。
【0063】
デバイスはプリンタ装置(HOST)のWarningを受信(S63)すると、充電を中断し(S68)、Warning内容をデジタルカメラ3012の表示部(不図示)へ表示する(S69)。ユーザは表示された内容に対応した復帰作業を行うか印刷を中止するか選択し、デジタルカメラ3012でのキー操作部(不図示)を押す。継続ボタンが押された場合(S70)は印刷再開である事と判断し、充電作業を再開(S71)すると共にプリンタ装置へ印刷再開が選択された事を報告し基本の充電処理に戻る。印刷作業中止ボタンが押された場合(S72)は、充電処理を終了し、中止ボタンが押された事をホストに報告する。
【0064】
次に、前述した処理手順を図13のフローチャートを参照して説明する。図13は、図7に示す処理手順を説明するフローチャートである。
【0065】
まずステップS1で、デジタルカメラ(DSC)3012とPDプリンタ装置1000との間の通信を確立する(700)。
【0066】
図28にステップS1でのUSBのエニュメレーション処理のデバイス遷移を示す。図5に示す構成で接続されると、装着状態(S55)、電力状態(S56)を経てデバイスはリセット信号を確認しデフォルト状態(S57)となる。次にホストからアドレスを割り当てられアドレス状態(S58)となり、続いてコンフィギュレーション状態にするためにホストはデバイスのコンフィギュレーションディスクリプタを読み込みコンフィギュレーション状態に移行が可能なことを確認した後デバイスをコンフィギュレーション状態(S59)としUSBでの論理的通信フローが可能になる。
この際に当該デジタルカメラは、USBデバイスとしてCONFIGURATIONディスクリプタのbm Attributesでバス電源デバイスである事を宣言し、Max Powerとして該デジタルカメラが動作に必要な最大電力量あるいは、電力供給として設定可能な最大電流500mAを宣言する。
次にステップS2で、これら機器がNCDPを実装済みかどうかを判定し、実装済みであればNCDPに移行する。次にステップS3に進み、DSC3012からの手順指示を受信して、その指示された手順に移行する。ここで「基本手順」が指示された時はステップS4からステップS5に進み、「基本手順」による印刷処理を実行する。また「推奨手順」が指示された時はステップS6からステップS7に進み、前述した「推奨手順」による印刷処理を実行する。更に「拡張手順」が指示された時はステップS8からステップS9に進み、各ベンダーに応じた「拡張手順」による印刷処理を実行する。それ以外の場合はステップS10に進み、このPDプリンタ装置1000とDSC3012とによる独自のモードでの印刷を実行する。
【0067】
次に上述したNCDPにおける各種コマンド(図8)を、画像転送のためにPIMA(Photographic and Imaging Manufacturers Association)にて定められた標準プロトコルPTPを用いて実現した(PTPによるラッパー)例を説明する。尚、本実施の形態では、PTPを用いたNCDPの場合で説明するが本発明はこれに限定されるものではなく、例えば、他のインターフェース、他のクラス(Class)上でダイレクトプリントサービスAPIを実装しても良い。
【0068】
[NCDP Start]
図14は、NCDP手順の開始を指示する命令(NCDP Start)を、標準画像転送プロトコルPTPを用いて実現した例を説明する図である。より詳しくは、図7における「NCDPへ移行」を決定付づけるため、DSC3012とPDプリンタ装置が、実施形態で説明するフォトダイレクトプリントシステムとして機能できるか否かのネゴシエーションの手順を示している。
【0069】
まず手順1400で、PDプリンタ装置1000からDSC3012に対してPTPコマンドGet Device Infoが送信され、DSC3012に対して、その保持しているオブジェクトに関する情報が要求される。これは、PDプリンタに接続されたデバイスが何であるのか問い合わせるものであると言えば判りやすい。これに対してDSC3012は、Device Info Datasetにより、DSC3012に関する情報をPDプリンタ装置1000に送信(通知)する。ただし、この情報はPTP規格で規定されているカメラに関する属性情報であり、ダイレクトプリントに関する情報を含むものではない。次に手順1402で、PTPコマンドOpen Sessionにより、DSC3012をリソースとして割り当て、必要に応じてデータオブジェクトにハンドルをアサインしたり、特別な初期化を行うための手順が開始される。
【0070】
手順1403では、DSC3012に対してハンドルを要求する。これは、PDプリンタ装置1000にとっては、DSCが有する未知のオブジェクト(撮影画像やスクリプト等である)を特定するため、そのオブジェクトにユニークに付けられた番号を要求するものである。この要求により、手順1404で、DSC3012に保持されているハンドルリストが返送される(何個のオブジェクトがあるかを通知することと等価)。
【0071】
以上の結果、PDプリンタ装置1000は、DSCが幾つのオブジェクトを保持しているのかが判明する。ネゴシエーションでは、双方がNCDPへの移行が行える機能を有するものであるのか否かを判定することが重要である。そして、この判定はパスワード、例えば、一方は“NCDP_CAMERA”、もう一方は“NCDP_PRINTER”なるパスワードを記述したスクリプトを投げかけ、双方が、相手より意図した結果が返ってきた場合に、NCDPによるダイレクトプリントモードに移行する。
【0072】
従って、上記のようにして、PDプリンタ1000側としては、DSC3012が保持しているオブジェクトの中で、その属性がスクリプトである属性を有するオブジェクトを探し出す必要がある。
【0073】
このため、PDプリンタ装置1000は、先ず、ハンドル“1”についてのオブジェクトについてその属性が何であるのかを問い合わせるためのPTPコマンドGet Object Info(Handle i)をDSC3012に出力し(この場合、i=1となる)、その結果、返送されてくるi番目の属性(Object Info i Dataset)を受信することを、1乃至オブジェクトの最大数まで行う。より正確には、属性として画像ではなく、パスワード(合言葉)が記述されているスクリプトであるオブ
ジェクトを探し出すと考えれば判りやすい。PTPコマンドGet Object Infoではオプションとしてオブジェクトのタイプを指定することができるが、デジタルカメラによってはこのオプションがサポートされていない場合を想定しなければならないため、このようにスクリプトオブジェクトの検索が必要になる。
【0074】
PDプリンタ装置1000側がスクリプトであるオブジェクトのハンドル(仮にハンドル“j”)を検出すると、そのハンドル“j”で示されるデータを要求するPTPコマンド「Get Object(Handle j)」を、DSC3012に出力する。この結果、DCS3012は「Object j Data」として、パスワード“NCDP_CAMERA”が記述されたスクリプトをPDプリンタ装置1000に出力する。
【0075】
PDプリンタ装置1000は、この結果、接続中のDSC3012がNCDP対応のデジタルカメラであることを知ることができる。そこで、今度はPDプリンタ装置1000がNCDP対応プリンタであることを示すパスワード“NCDP_PRINTER”を通知することになるが、それに先立って送信するオブジェクトの属性情報をSend Object Infoによって送信する。そして、Send Objectによってパスワード“NCDP_PRINTER”をDSC3012に通知する。なお、ここでのパスワードは一例であって、上記に限らないのは勿論である。
【0076】
以上の手順の結果、双方ともNCDPに対応するデバイスであることがわかり、これ以降は、実施形態におけるNCDPによるフォトダイレクトプリントモードへ移行することになる。
【0077】
以上説明した手順をフローチャートとして示すと図25に示すような手順となる。
【0078】
先ず、PDプリンタ装置1000(以下、単にPD)は先ずステップS21において、デバイス情報要求(Get Device Info)をDSC3012に出力する(DSCはこの要求に対して、ステップS41で、自身のデバイスの属性を示す情報をPD1000に通知する(Device Info Data Set))。
【0079】
次に、PD1000はステップS22でセッションを開始を宣言し(Open Session)、DSC3012はこの宣言を受け取り、ステップS42でPD1000にOKの通知を行う。
【0080】
PD1000は、ステップS23において、DSC3012が保持しているオブジェクトのハンドルを要求する(Get Object Handles)。これにより、DSC3012は、ステップS43において、自身が保持しているオブジェクト(画像やスクリプト)をPD1000に通知し(Object Handle Array)、PD1000はこれを受信する(ステップS24)。
【0081】
次に、PD1000は受信した情報からハンドル数がわかるので、ステップS25で、初期値としてハンドルを示す変数iに“1”と代入し、ステップS26でi番目のオブジェクトに対する属性を要求する(Get Object(Handle i))。この結果、DSC3012からは該当するオブジェクトの属性を送信してくるので(Object Info i Dataset)、それを受信し、スクリプトであるか否かを判断する(ステップS27)。もし、スクリプト以外である(撮像画像である)と判断した場合には、ステップS28で変数iを1つインクリメントし、ステップS26の処理を繰り返す。
【0082】
さて、i番目のオブジェクトがスクリプトであると判断した場合、処理はステップS27に進んで、i番目のオブジェクトの内容の転送を要求する(Get Object(Handle i))。すなわち、パスワード(合言葉)を期待して、それを要求することになる。この結果、DSC3012は、ステップS45で、指定されたオブジェクトの内容をPD1000に通知する(Object i Data)ので、PD1000はそれがパスワード“NCDP_CAMERA”であるかどうかを判断する(ステップS29)。もし、“NCDP_CAMERA”でなく、別なスクリプトがたまたま返送されてきたと判断した場合には、ステップS31で変数iが最後のものであるか否かを判断し、否であればステップS28に戻り、上記処理を繰り返す。こうして、最後のハンドラに到達しても、パスワード“NCDP_CAMERA”をDSCが通知してこないと判断した場合、接続中のDSC3012はNCDP未対応のデジタルカメラであると判断し、これ以上の処理を打ち切るため、例えばエラー通知を操作部に備えられたLEDを点灯させたり、ネゴシエーション失敗を意味するメッセージを表示させ、本処理を終了する。
【0083】
一方、DSCよりパスワード“NCDP_CAMERA”が通知された場合、処理はステップS33に進み、PD1000がNCDP対応であること示す手順(Send Object Infoの送信及びOKの受信)を経て、パスワード“NCDP_PRINTER”を記述したスクリプトをDSC3012に通知(Send Object)し、DSC3012より受信したスクリプトはもはや不要であるので、そのスクリプトを削除し、NCDPモードに移行する。
【0084】
DSC3012側は、パスワード“NCDP_PRINTER”を受信したことは判明すると(ステップS46)、ステップS47に済んで、PD1000より受信したスクリプトを削除し、NCDPモードへ移行する。
【0085】
ネゴシエーションの処理手順は以上であるが、上記例はPDプリンタ装置1000及びDSC3012の双方がNCDPをサポートしている場合のものである点に注意されたい。
【0086】
実施形態におけるネゴシエーションはPTPを利用しているわけであるから、NCDP未対応のUSB接続機能を有するデジタルカメラであっても、ステップS41から、ステップS44、S45、S46の処理が実行される。ただし、S45の処理は存在しないので、無意味なデータ(スクリプト)であるものとして、単純にそのデータを受信し、保存し、S44、S45を繰り返すだけとなる。
【0087】
ここで、特に注目したい点は、実施形態の場合、パスワードの発信元となるのは必ずDSC3012側になることである(DSC3012がNCDP未対応であっても、最初のスクリプトを送信する側であることに変わりはない)。つまり、パスワード“NCDP_CAMERA”に応えるパスワード“NCDP_PRINTER”を発するのはPDプリンタ装置1000側であって、しかも、最初のパスワード“NCDP_CAMERA”があってはじめて、それに応えるパスワード“NCDP_PRINTER”を発するようにした。
【0088】
かかる手順にした理由は、もし、最初のパスワードをPDプリンタ装置1000が発するようにしてしまうと、DSC3012がNCDPに対応である場合には問題は発生しないが、もしDSCがNCDP未対応である場合には、ステップS47の処理に進むことができないわけであるから、意味のないスクリプトファイル(ゴミファイル)を受信しては、記憶されてしまうからである。
【0089】
かかる点、上記のように、互いに認証する際の最初の認証情報(上記のパスワード又は合言葉)を出力する側がDSC側とし、PDプリンタ装置1000がそれに応える認証情報を出力することで、PDプリンタ装置1000に接続してるデバイスが如何なるものであったしても、そのデバイスにゴミが蓄積してしまうことを回避できるようになる。なぜなら、PDプリンタ装置1000は、DSCからのスクリプト中に、期待している認証情報が存在しない場合は、それに応える認証情報は出力しないからである。
【0090】
また、上記処理によれば、NCDP対応のデジタルカメラであれば、パスワードを記述しているスクリプトを保持しているので、必ず、NCDPによるプリントシステムへの移行が約束される。ただし、上記から容易に想到できるように、ネゴシエーションを高速化させるには、DSC3012側が有するオブジェクトのうち、その小さいハンドル番号に認証情報(合言葉)を含むスクリプトを割り当てることである。すなわち、DSC3012がNCDP対応である場合には、ハンドル要求(Get Object Handles)を受信した場合、合言葉を含むスクリプト(認証情報)に対してハンドル番号“1”を割り当て、それ以降に撮像し記憶保持している画像についてハンドル番号を割り当て、その結果をPDプリンタ装置1000に通知する。
【0091】
この結果、ステップS26乃至S28のループ処理、或いは、ステップS26乃至S31、S28のループ処理が実質的になくなり、一気にステップS33、S34へと処理が進むことになり、ネゴシエーションを高速なものとすることができる。
【0092】
DSC3012側の処理としては、例えば、図27に示す手順で処理すれば良いであろう(同手順のプログラムはDSC3012内のROM32に格納されている)。なお、同図の処理は、PDプリンタ装置1000より、ハンドル要求コマンド(Get Object Handles)を受信した場合の処理であって、このコマンドを受信したとき、上位処理からコールされるものである。従って、Get Object Handlesを受信したか否かの判断は、既に上位処理で行われていることに注意されたい。
【0093】
先ず、ステップS51で、RAM33内に、オブジェクトとハンドルとを対応させるためのテーブル(もしは変数領域)を確保する。次いで、ステップS52に進んで、NCDP対応であることを示すスクリプトを記述しているオブジェクトを先頭のハンドルに割り当てるべく、テーブルにセットする。この後、ステップS53で、残りのオブジェクト(通常は撮像して記憶保持されている画像データ)に対するハンドラを割り当て、テーブルにセットし、その結果を、Object Handle ArrayとしてPDプリンタ装置1000に通知する。
【0094】
この結果、DSC3012及びPDプリンタ装置1000間で、オブジェクトを指し示す際の情報の共有(共通)化が可能となり、これ以降の処理においては、DSC3012内のオブジェクトをハンドルを用いてやりとりがなされることになる。
【0095】
なお、PDプリンタ装置1000側が、DSC3012に対してスクリプトであるか否かを判断する順序を、最終ハンドルから遡るように処理する場合には、DSC3012がハンドルをPDプリンタ装置1000に通知するとき、最後のハンドルにパスワードとなるスクリプトを割り当てれば良いであろう。
【0096】
なお、NCDP対応であることを示すスクリプトを記述しているオブジェクトに対するハンドル番号を最初にすることが、もっとも効果的であるが、必ずしも最初でなくとも、最初の番号付近であれば十分効果的である。つまり、NCDP対応であることを示すスクリプトを記述しているオブジェクトを最後の番号に対応させてしまわないようにすれば、最後の番号に対応させる場合よりも、高速化を図ることが出来る。
【0097】
[Procedure Start]
図15は、DSC3012からの、モードへの移行手順を指示する命令を受信して、そのモードに移行するための命令(Procedure Start)をPTPアーキテクチャを用いて実現した例を説明する図である。
【0098】
ここではまず1501で、PDプリンタ装置1000がサポートしている手続「基本手順」、「推奨手順」、「拡張手順」をDSC3012に通知するためにPTPコマンドSend Object Infoにより、DSC3012に対して送信したいオブジェクト情報があることを伝える。これに対して肯定応答(OK)がDSC3012から送られてくると、1502でPTPコマンドSend Objectによりオブジェクトを送信する旨をDSC3012に伝え、次の1503のObject Dataで、この
PDプリンタ装置1000がサポートしている手続に関する情報を送信する。次に1504で、DSC3012からPDプリンタ装置1000に対して、PTPで定義されるイベント通知Request Data Transferをカメラが発行し、PTPコマンドGet Object動作を起動したい旨を伝える。これにより1505で、PDプリンタ装置1000からオブジェクト情報に関する情報を受信する旨が伝えられると(Get Object Info)、1506で、Object Info Datasetにより、その情報が返送され、次に1507で、そのオブジェクト情報を指定してオブジェクト情報そのものが要求されると、Object Datasetにより、DSC3012が使用する手続(「基本」、「推奨」、「拡張」等)をPDプリンタ装置1000に知らせる(1508)。
【0099】
これにより、DSC3012からPDプリンタ装置1000に対して、画像の印刷モードを指定することができる。
【0100】
[NCDP End]
図16は、本実施の形態に係るNCDPにおける通信制御手順を終了する命令(NCDP End)をPTPアーキテクチャを用いて実現した例を説明する図である。
【0101】
この手順では、1600において、PDプリンタ装置1000からDSC3012に対して送信したいオブジェクト情報があることを伝え、Object Dataにより、DSC3012に対してNCDPのモードから抜けることを通知する。これに対して肯定応答(OK)を受信すると、1601でPTPコマンドClose Sessionを送信して、この通信を終了させる。これによりNCDPによる通信手順を終了する。
【0102】
[Capability]
図17は、本実施の形態に係るNCDPにおける、PDプリンタ装置1000の機能をDSC3012に通知するCapability命令における通信手順をPTPプロトコルを用いて実現した例を説明する図である。
【0103】
この手順では、1700において、PDプリンタ装置1000からDSC3012に対して送信したいオブジェクト情報があることをPTPコマンドSend Object Infoにより伝える。そして1701で、PTPコマンドSend ObjectによりDSC3012に対してオブジェクト情報の伝送を伝え、続くObject Dataにより、PDプリンタ装置1000が有している機能をスクリプト(Script)形式(図12)でDSC3012に送信する。
【0104】
[Get Image]
図18は、本実施の形態に係るNCDPにおける、PDプリンタ装置1000がDSC3012に保持されている画像データ(JPEG画像)を取得する(Get Image)通信手順をPTPプロトコルを用いて実現した例を説明する図である。
【0105】
まず1800で、DSC3012が保持しているオブジェクトに関する情報を要求すると、1801で、そのオブジェクトに関する情報(Object Dataset)がDSC3012からPDプリンタ装置1000に送られる。次に、1802で、そのオブジェクトを指定して取得要求(Get Object)を発行すると、1803で、その要求された画像ファイル(Object Dataset)がDSC3012からPDプリンタ装置1000に対して送信される。この様にしてPDプリンタ装置1000は、DSC3012から所望の画像ファイルを取得することができる。
【0106】
[Status Send]
図19は、本実施の形態に係るNCDPにおける、PDプリンタ装置1000からDSC3012に対してエラー状態などを通知する(Status Send)通信手順をPTPプロトコルを用いて実現した例を説明する図である。
【0107】
まず1900で、PDプリンタ装置1000からDSC3012に対して送信したいオブジェクト情報がある旨をPTPコマンドSend Object Infoにより通知する。そして1901で、そのオブジェクト情報に関する情報セット(Object Dataset)をDSC3012に送信し、DSC3012からの肯定応答(OK)に対して、PDプリンタ装置1000におけるエラー等のステータス情報をPTPコマンドSend ObjectおよびObject Datasetにより送信する。
【0108】
[Page End]
図20は、本実施の形態に係るNCDPにおける、PDプリンタ装置1000からDSC3012に対して、1ページのプリント処理が終了したことを通知する(Page End)通信手順をプロトコルを用いて実現した例を説明する図である。
【0109】
[Job End]
図21は、本実施の形態に係るNCDPにおける、PDプリンタ装置1000からDSC3012に対して、プリントジョブが終了したことを通知する(Job End)通信手順をPTPプロトコルを用いて実現した例を説明する図である。 図20,図21においては、図19の1900乃至1901の手順実行後、図20の1910で、PDプリンタ装置1000からDSC3012に対して1ページ印刷処理が終了したことが通知され、図21の1911では、PDプリンタ装置1000からDSC3012に対して印刷ジョブが終了したことが通知される。
【0110】
[Job Start]
図22は、本実施の形態に係るNCDPにおける、DSC3012からPDプリンタ装置1000に対して、プリントジョブの開始を通知する(Job Start)通信手順をPTPプロトコルを用いて実現した例を説明する図である。
【0111】
まず2200において、DSC3012からPDプリンタ装置1000に対してPTPで定義されるイベント通知Request Object Transferを送り、PDプリンタ装置1000がPTPコマンドGet Objectコマンドを発行するように促す。これにより2201で、PDプリンタ装置1000からPTPコマンドGet Object Infoが発行されると、DSC3012は送信したいオブジェクト情報に関する情報を送信し、これに対してPDプリンタ装置1000からオブジェクト情報が要求されると(Get Object:2203)、2204で、Object Datasetを送信して、DSC3012からPDプリンタ装置1000に対して印刷命令を発行する。
【0112】
[Job Abort]
図23は、本実施の形態に係るNCDPにおける、DSC3012からPDプリンタ装置1000に対してプリント中止命令を発行する(Job Abort)通信手順をPTPプロトコルを用いて実現した例を説明する図である。
【0113】
[Job Continue]
図24は、本実施の形態に係るNCDPにおける、DSC3012からPDプリンタ装置1000に対してプリント再開命令を発行する(Job Continue)通信手順をPTPプロトコルを用いて実現した例を説明する図である。
【0114】
図23及び図24において、図22の2200乃至2203の手順を実行した後、図23の2301で、DSC3012からPDプリンタ装置1000に対して印刷中止命令が発行され、図24の2401では、DSC3012からPDプリンタ装置1000に対して印刷再開命令が通知される。
【0115】
なお本発明は、複数の機器(例えばホストコンピュータ、インターフェース機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
【0116】
また、本発明の目的は、前述した実施形態の機能(カメラ側で行われる処理、プリンタ側で行われる各種印刷処理)を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても達成される。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。
【0117】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれる。
【0118】
また、実施形態では、フォトダイレクトプリントシステムを構築する際に、プリンタ装置がUSBホスト、DSCがUSBデバイスとして説明した。上記の如く、昨今のデジタルカメラの多くは、PCとの通信のためにUSBデバイス機能を搭載しているという状況、プリンタメーカー数よりもデジタルカメラメーカーの数が多い点、更に、ホスト役となる装置が電源の心配の少ない点について考察した場合、プリンタ側がホスト役を担った方が、各メーカにとって負担が少なく、本発明の目的とするシステムを構築する際に各メーカにとってもメリットが十分にあり、ひいてはエンドユーザにとっても好ましい形態である。
【0119】
以上のように、本発明によれば、デジタルカメラは、プリントシステムを構築するために図5に示す構成で接続され、コンフィグレーション状態に移行した後はプリントシステムとして使用する電源はVbus電源のみを使用して動作するシステム機能を備える。
【0120】
そして、更には、システム動作として使用する電力がMax Powerからある電力要件以下で安定する状態、例えば印刷中のデータ転送時のUIを受け付けない状態等などに、V busからはMax Powerの供給を受けシステムが使用していない余剰電力を該デジカメ本体に装着されているバッテリの充電用電力として使用する充電機能を備える。
【0121】
【発明の効果】
以上説明したように、ダイレクトプリントシステムを構築している際にデジタルカメラはバス電源で動作するデバイスとして動く事で、プリント処理等行っている際にデバイス側の電力要件によってシステムが終了する事による、設定の無効化やプリント中断が起きないようになる事が可能になる。
【0122】
また、さらにダイレクトプリントシステム構築中にデジタルカメラのバッテリ充電を行う事で、デジタルカメラのバッテリ充電に必要な時間を低減する事が可能となる。
【図面の簡単な説明】
【図1】本発明の実施の形態に係るPDプリンタ装置の概観斜視図である。
【図2】本実施の形態に係るPDプリンタ装置の操作パネルの概観図である。
【図3】本実施の形態に係るPDプリンタ装置の制御に係る主要部の構成を示すブロック図である。
【図4】本実施の形態に係るPDプリンタ装置のASICの構成を示すブロック図である。
【図5】本実施の形態に係るPDプリンタ装置とデジタルカメラとを接続した状態を示す図である。
【図6】本実施の形態に係るNCDPを実装したPDプリンタ装置とデジタルカメラのソフトウェア構成を説明する概念図である。
【図7】本実施の形態に係るNCDP通信手順の概要を説明する図である。
【図8】本実施の形態に係るNCDPにおけるコマンドを説明する図である。
【図9】本実施の形態に係るNCDPにおける「基本手順」による印刷手順を説明する図である。
【図10】本実施の形態に係るNCDPにおける「推奨手順」による印刷手順を説明する図である。
【図11】本実施の形態に係るNCDPにおける「推奨手順」におけるエラー発生時の印刷手順を説明する図である。
【図12】本実施の形態に係るNCDPで送信されるCapabilityの一例を説明する図である。
【図13】本実施の形態に係るNCDP通信手順の概要を説明するフローチャートである。
【図14】NCDP手順の開始を指示する命令(NCDP Start)をPTPアーキテクチャを用いて実現した例を説明する図である。
【図15】NCDP手順において、カメラから各手順への移行命令を受取る(Procedure Start)手順をPTPアーキテクチャを用いて実現した例を説明する図である。
【図16】NCDP手順の終了を指示する命令(NCDP End)をPTPアーキテクチャを用いて実現した例を説明する図である。
【図17】NCDP手順においてPDプリンタ装置からカメラに対してCapabilityを送信する命令(Capability)をPTPアーキテクチャを用いて実現した例を説明する図である。
【図18】NCDP手順において、PDプリンタ装置からカメラに保持されている画像ファイルを取得する命令(Get Imge)の手順をPTPアーキテクチャを用いて実現した例を説明する図である。
【図19】NCDP手順において、PDプリンタ装置からカメラに対してエラーステータスを送信する命令(Status Send)の手順をPTPアーキテクチャを用いて実現した例を説明する図である。
【図20】NCDP手順において、PDプリンタ装置からカメラに対して1ページの印刷終了を送信する命令(Page End)の手順をPTPアーキテクチャを用いて実現した例を説明する図である。
【図21】NCDP手順において、PDプリンタ装置からカメラに対して印刷ジョブの終了命令(Job End)を発行する手順をPTPアーキテクチャを用いて実現した例を説明する図である。
【図22】NCDP手順において、カメラからPDプリンタ装置に対して印刷命令の発行(Job Start)する手順をPTPアーキテクチャを用いて実現した例を説明する図である。
【図23】NCDP手順において、カメラからPDプリンタ装置に対して印刷の中止命令(Job Abort)を発行する手順をPTPアーキテクチャを用いて実現した例を説明する図である。
【図24】NCDP手順において、カメラからPDプリンタ装置に対して印刷再開命令(Job Continue)を発行する手順をPTPアーキテクチャを用いて実現した例を説明する図である。
【図25】実施形態におけるネゴシエーションの手順を示すフローチャートである。
【図26】実施形態におけるデジタルカメラDSCのブロック構成図である。
【図27】実施形態におけるデジタルカメラDSCが所有するオブジェクトの問い合わせ(Get Object Handles)があった場合の、DSC側の処理手順を示すフローチャートである。
【図28】本実施形態におけるコンフィギュレーション状態までに移行手順を示すフローチャートである。
【図29】実施形態におけるバッテリ充電の一例を示すフローチャートである。
【図30】本実施形態におけるプリンタ装置でのワーニング発生時のバッテリ充電処理シーケンスを示すフローチャートである。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a digital camera, a printer, and a printer system. In this specification, a digital camera is tentatively abbreviated as DSC, but this does not mean that the present invention is limited to still image shooting. This description will be made on the premise that it is included.
[0002]
[Prior art]
Normally, when printing a video taken by a digital camera, an image stored in the digital camera is read by a personal computer (hereinafter, PC) and printed by a connected printer using an application on the PC. Step on.
[0003]
In other words, the flow of image data is in the order of DSC → PC → printer, and it is necessary to possess a PC. There is also a problem that the PC must be started one by one to print an image stored in the DSC.
[0004]
Focusing on this point, some proposals (hereinafter referred to as photo-direct printing) for directly connecting a DSC to a printer and giving a print instruction on a display normally provided in the DSC have already been made.
[0005]
The advantage of adopting the above-mentioned photo direct print system is that, of course, printing can be easily performed without starting up a PC, but the system can be constructed at low cost because a PC is not essential. Can be Further, when the DSC is connected to the printer, various indicators, particularly, a display device normally provided in the DSC is used as a means for confirming an image to be printed. It is also an advantage that a display is not required and the cost can be further reduced.
[0006]
[Problems to be solved by the invention]
By the way, many recent DSCs have general-purpose communication means for connecting to a PC. Typically, it is a USB (Universal Serial Bus), but in the case of connection using this USB, communication is established as a DSC as a slave and a PC as a host. From the viewpoint of the PC, the DSC can be handled as if it were a simple external storage device.
[0007]
When a direct print system is constructed by directly connecting to a printer using such a USB, unlike a DSC for a PC, the DSC can be used not only as a simple storage device but also as a user interface device as a system. desired.
[0008]
Therefore, the printer must determine whether the connected device is a digital camera having such a function. In other words, it is necessary to notify the digital camera that the connected printer has the direct print function.
[0009]
When providing the printing system of the present invention regardless of whether a digital camera connected to a printer has or does not have a direct print function, the printing apparatus needs to operate as a host because the digital camera operates as a USB device. There is. When the digital camera, which is a device, operates on its own power supply as a power requirement with a detachable battery, the battery may be shut down during the printing operation due to running out of the battery during the printing operation.
[0010]
The present invention has been made in view of such a problem, and a digital camera is a device that can operate on its own power when it can operate with a maximum power requirement (for example, 500 mA or less) supplied from a bus power supply. The present invention also aims to provide a digital camera in which the configuration as a printing system does not break down as long as the printer device can supply power by operating with power supplied from V bus using a power supply as a bus power supply.
[0011]
Further, when the digital camera is a device that operates on a bus power source and the digital camera is in a static state in a state where a printing system is being constructed, the power required for the current operation is smaller than the Max Power requirement. If the power is low, the battery used when using it as a digital camera during printing can be charged by building a system that charges the battery attached to the digital camera while operating as a device of the printing system The aim is to provide a digital camera that can do so.
[0012]
[Means for Solving the Problems]
According to an embodiment of the present invention, there is provided a printer that can be directly connected to a digital camera via a communication unit, and at an initial stage connected to the digital camera, via the communication unit. An authentication unit for authenticating the presence or absence of a direct print function in the digital camera; and a power supply unit capable of supplying power to the digital camera via the communication unit based on an authentication result by the authentication unit. A printer device is characterized.
[0013]
Further, the communication means is means for communicating by a USB interface, and the digital camera is characterized by a printer device operating as a USB device operated by a bus power supply.
[0014]
Further, according to the present invention, there is provided a digital camera which can be directly connected to a printer device via a communication unit, and at the initial stage of connection with the printer device, authentication indicating presence / absence of a direct print function via the communication unit. A digital camera comprising: a notifying unit that notifies information to the printer device; and a power receiving unit that receives power supply from the printer device side based on authentication on the printer device side for the notification of the authentication information. I do.
[0015]
Further, the communication means is means for communicating with a USB interface, and the digital camera is characterized in that the digital camera operates as a USB device operated by a bus power supply.
[0016]
The digital camera further includes a charging unit configured to charge the mounted battery with a surplus of power supplied from the bus power supply supplied from the printer device via the communication unit.
[0017]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an embodiment according to the present invention will be described with reference to the accompanying drawings.
[0018]
FIG. 1 is a schematic perspective view of a photo direct printer (hereinafter, PD printer) 1000 according to an embodiment of the present invention. The PD printer 1000 functions as a normal PC printer that receives and prints data from a host computer (PC), and directly reads and prints image data stored in a storage medium such as a memory card. Alternatively, it has a function of receiving and printing image data from a digital camera.
[0019]
In FIG. 1, the main body forming the outer shell of the PD printer 1000 according to the present embodiment has a case M1001, an upper case 1002, an access cover 1003, and a discharge tray 1004 as exterior members. The lower case 1001 forms a substantially lower half of the PD printer 1000, and the upper case 1002 forms a substantially upper half of the main body. It has a hollow body structure having a space, and an opening is formed in each of the upper surface and the front surface thereof. Further, one end of the discharge tray 1004 is rotatably held by the lower case 1001 so that the opening formed on the front surface of the lower case 1001 can be opened and closed by the rotation. Therefore, when the recording operation is performed, the recording sheet can be discharged from here by rotating the discharge tray 1004 to the front side to open the opening, and the discharged recording sheets are sequentially stacked. It is possible to do. The paper discharge tray 1004 accommodates two auxiliary trays 1004a and 1004b. By pulling out each tray as needed, the sheet support area can be expanded or reduced in three stages. It has become.
[0020]
One end of the access cover 1003 is rotatably held by the upper case 1002 so that an opening formed on the upper surface can be opened and closed. When the access cover 1003 is opened, the access cover 1003 is housed inside the main body. It is possible to replace a recording head cartridge (not shown) or an ink tank (not shown). Although not particularly shown here, when the access cover 1003 is opened and closed, a projection formed on the back surface rotates the cover opening / closing lever, and the rotation position of the lever is detected by a micro switch or the like. Thus, the open / closed state of the access cover can be detected.
[0021]
A power key 1005 is provided on the upper surface of the upper case 1002 so as to be able to be pressed. On the right side of the upper case 1002, an operation panel 1010 including a liquid crystal display portion 1006, various key switches, and the like is provided. The structure of the operation panel 1010 will be described later in detail with reference to FIG. An automatic feeding unit 1007 automatically feeds a recording sheet into the apparatus main body. Reference numeral 1008 denotes a paper interval selection lever for adjusting the interval between the print head and the recording sheet. Reference numeral 1009 denotes a card slot into which an adapter into which a memory card can be inserted is inserted, through which image data stored in the memory card can be directly read and printed. Examples of the memory card (PC) include a compact flash (registered trademark) memory, a smart media, a memory stick, and the like. Reference numeral 1011 denotes a viewer (liquid crystal display unit) which can be attached to and detached from the main body of the PD printer apparatus 1000. When searching for an image to be printed from images stored in a PC card, an image for each frame or the like is displayed. Used to display index images. Reference numeral 1012 denotes a USB terminal for connecting a digital camera described later. A USB connector for connecting a personal computer (PC) is provided on the rear surface of the PD device 1000.
[0022]
FIG. 2 is a schematic view of operation panel 1010 of PD printer 1000 according to the present embodiment.
[0023]
In the figure, a liquid crystal display unit 1006 displays menu items for variously setting data on items printed on the left and right sides. The items displayed here include, for example, the first photo number of the range to be printed, the designated frame number (start frame designation / print frame designation), the last photograph number of the range where printing has been completed (end), the number of copies (number of copies) ), Type of paper (recording sheet) used for printing (paper type), setting of number of photos to be printed on one sheet (layout), designation of print quality (quality), whether to print the date of shooting (Print date), whether to correct and print a photo (image correction), display the number of sheets required for printing (number of sheets), and the like. Each of these items is selected or designated using the cursor key 2001. Reference numeral 2002 denotes a mode key. Each time this key is pressed, the type of printing (index printing, full-frame printing, 1-frame printing, etc.) can be switched, and the corresponding LED of the LED 2003 is turned on accordingly. Reference numeral 2004 denotes a maintenance key for performing printer maintenance such as cleaning of a print head. A print start key 2005 is pressed when instructing the start of printing or when establishing maintenance settings. Reference numeral 2006 denotes a print stop key which is pressed when printing is stopped or when maintenance stop is instructed.
[0024]
Next, with reference to FIG. 3, a configuration of a main part related to control of the PD printer 1000 according to the present embodiment will be described. Note that, in FIG. 3, the same parts as those in the above-described drawings are denoted by the same reference numerals, and description thereof will be omitted.
[0025]
In FIG. 3, reference numeral 3000 denotes a control unit (control board). Reference numeral 3001 denotes an ASIC (dedicated custom LSI), the configuration of which will be described later in detail with reference to the block diagram of FIG. Reference numeral 3002 denotes a DSP (Digital Signal Processor) which has a CPU therein and performs various control processing to be described later and conversion of a luminance signal (RGB) to a density signal (CMYK), scaling, gamma conversion, error diffusion, and the like. I am in charge of processing. Reference numeral 3003 denotes a memory having a program memory 3003a for storing a control program of the CPU of the DSP 3002, a RAM area for storing a program at the time of execution, and a memory area functioning as a work memory for storing image data and the like. Reference numeral 3004 denotes a printer engine, in which a printer engine of an inkjet printer that prints a color image using a plurality of color inks is mounted. Reference numeral 3005 denotes a USB connector as a port for connecting a digital camera (DSC) 3012. Reference numeral 3006 denotes a connector for connecting the viewer 1011. Reference numeral 3008 denotes a USB hub (USB HUB). When the PD printer 1000 performs printing based on image data from the PC 3010, the data from the PC 3010 is passed through as it is and output to the printer engine 3004 via the USB 3021. . Thus, the connected PC 3010 can perform printing by directly exchanging data and signals with the printer engine 3004 (functioning as a general PC printer). A power supply connector 3009 receives a DC voltage converted from a commercial AC by a power supply 3011. The PC 3010 is a general personal computer, 3011 is the above-mentioned memory card (PC card), and 3012 is a digital camera (DSC: Digital Still Camera).
[0026]
Note that signals are exchanged between the control unit 3000 and the printer engine 3004 via the USB 3021 or the IEEE1284 bus 3022 described above.
[0027]
FIG. 4 is a block diagram showing the configuration of the ASIC 3001. Also in FIG. 4, the same reference numerals are given to parts common to the above-described drawings, and the description thereof will be omitted.
[0028]
Reference numeral 4001 denotes a PC card interface unit that reads image data stored in the attached PC card 3011 or writes data to the PC card 3011. Reference numeral 4002 denotes an IEEE1284 interface for exchanging data with the printer engine 3004. The IEEE 1284 interface unit 4002 is a bus used when printing image data stored in the digital camera 3012 or the PC card 3011. A USB interface unit 4003 exchanges data with the PC 3010. A USB host interface unit 4004 exchanges data with the digital camera 3012. An operation panel interface unit 4005 inputs various operation signals from the operation panel 1010 and outputs display data to the display unit 1006. Reference numeral 4006 denotes a viewer interface unit, which controls display of image data on the viewer 1011. Reference numeral 4007 denotes an interface unit that controls an interface between various switches, an LED 4009, and the like. Reference numeral 4008 denotes a CPU interface unit which controls data exchange with the DSP 3002. Reference numeral 4010 denotes an internal bus (ASIC bus) for connecting these units.
[0029]
FIG. 26 is a block diagram of the DSC 3012 according to the embodiment. Note that the hardware itself is well-known and will be briefly described (firmware is NCDP-compatible).
[0030]
In the figure, reference numeral 31 denotes a CPU that controls the entire DSC, and 32 denotes a ROM that stores the processing procedure (firmware) of the CPU 31 (however, it is assumed that the firmware is updated as appropriate, A possible non-volatile memory, for example a flash memory). Reference numeral 33 denotes a RAM used as a work area of the CPU 33, and reference numeral 34 denotes a group of switches for performing various operations. Reference numeral 35 denotes a liquid crystal display, which is used for confirming a captured image and displaying a menu for performing various settings. In the present embodiment, when these functions 34 and 35 function as a direct print system, the entire system functions as a user interface. An optical unit 36 mainly includes a lens and a drive system thereof. Reference numeral 37 denotes a CCD element, and reference numeral 38 denotes a driver that controls the optical unit 36 under the control of the CPU 31. 39 is a connector for connecting a storage medium 40 (compact flash (registered trademark) memory card, smart media, etc.), and 41 is a USB interface (USB slave side) for connecting to a PC or the PD printer 1000 in the embodiment. ).
[0031]
The above is the description of the configuration of the PD printer and the DSC in the embodiment. Hereinafter, an outline of the operation based on such a configuration will be described below.
[0032]
<Normal PC printer mode>
This is a print mode for printing an image based on print data sent from the PC 3010.
[0033]
In this mode, when data from the PC 3010 is input via the USB connector 1013 (FIG. 3), the data is sent directly to the printer engine 3004 via the USB hub 3008 and USB 3021, and printing is performed based on the data from the PC 3010. Is
[0034]
<Direct print mode from PC card>
When the PC card 3011 is inserted into or removed from the card slot 1009, an interrupt occurs, whereby the DSP 3002 can detect whether the PC card 3011 has been inserted or removed (removed). When the PC card 3011 is inserted, the compressed (eg, JPEG-compressed) image data stored in the PC card 3011 is read and stored in the memory 3003. After that, the compressed image data is decompressed and stored in the memory 3003 again. Next, when printing of the stored image data is instructed using the operation panel 101, conversion from RGB signals to YMCK signals, gamma correction, error diffusion, and the like are executed, and printing can be performed by the printer engine 3004. Printing is performed by converting the data into print data and outputting the print data to the printer engine 3004 via the IEEE1284 interface unit 4002.
<Direct print mode from camera>
FIG. 5 is a diagram showing a state in which the PD printer 1000 and the digital camera 3012 according to the present embodiment are connected.
[0035]
In the figure, a cable 5000 includes a connector 5001 connected to a connector 1012 of the PD printer 1000 and a connector 5002 for connecting to a connection connector 5003 of a digital camera 3012. Image data stored in an internal memory can be output via the connection connector 5003. Note that the digital camera 3012 can have various configurations, such as a configuration having a memory as a storage unit therein and a configuration having a slot for mounting a removable memory. As described above, by connecting the PD printer 1000 and the digital camera 3012 via the cable 5000 shown in FIG. 5, image data from the digital camera 3012 can be printed directly by the PD printer 1000.
[0036]
Here, as shown in FIG. 5, when the digital camera 3012 is connected to the PD printer 1000 and the mode is shifted to the direct print mode as a result of the negotiation, only the camera mark is displayed on the display unit 1006 of the operation panel 1010, The display and operation on the operation panel 1010 are invalidated, and the display on the viewer 1011 is also invalidated. Therefore, only the key operation on the digital camera 3012 and the display of an image on the display unit (not shown) of the digital camera 3012 are valid thereafter, so that the user can use the digital camera 3012 to specify printing. it can. Further, it is possible to prevent an error caused by operating the digital camera 3012 and the operation unit of the printer at the same time.
[0037]
In the present embodiment, an object is to provide a PD printer device capable of connecting and printing with digital cameras of a plurality of manufacturers, and connecting the PD printer device 1000 according to the present embodiment to a digital camera. The communication protocol for printing will be described in detail, and a charging method during communication will be described.
[0038]
In the present embodiment, communication control between the PD printer device and the digital camera is performed using a general-purpose file and a general-purpose format, and an interface-independent NCDP (New Camera Direct Print) is proposed.
[0039]
FIG. 6 is a diagram showing an example of the NCDP configuration.
[0040]
In the figure, reference numeral 600 denotes a USB interface, and 601 denotes a Bluetooth interface. Reference numeral 602 denotes an application layer incorporated when a system based on NCDP is constructed. Reference numeral 603 denotes a layer for executing an existing protocol and interface. Here, PTP (Picture Transfer Protocol), SCSI and Bluetooth BIP (Basic Image Profile), a USB interface, and the like are mounted. The NCDP according to the present embodiment is premised on that such an architecture such as a protocol layer is implemented, and is implemented as an application thereon. Here, the PD printer 1000 is defined as a USB host, and the camera 3012 is defined as a USB device, and has the same NCDP configuration as shown in FIG.
[0041]
Although details will be described later, the advantage of using NCDP in the embodiment is that when the PD printer 1000 and the DSC 3012 mutually transfer to NCDP, and when they exchange information with each other after the transfer, a series of A file (text file) in which information and a series of operation procedures are described by a script is generated, transmitted to a partner device, and the receiving side interprets and processes the received script. As a result, when it is desired to transmit certain information to the other party, if the information is composed of a plurality of elements, it is possible to reduce the number of exchanges of each element by handshaking, and eliminate the overhead associated with information transmission. This is because the efficiency of information transmission is improved. For example, when there are a plurality of images to be printed on the DSC 3012, as many images as desired to be printed are selected, and printing conditions are set for each of the images, a series of processing procedures are described as a script. It is possible to notify the PD printer 1000. The PD printer 1000 interprets and processes the received script.
[0042]
FIG. 7 is a diagram illustrating a flow of a communication procedure between the PD printer 1000 and the digital camera (DSC) 3012 by NCDP according to the present embodiment.
[0043]
Here, when the connection between the PD printer 1000 and the DSC 3012 is detected by the USB cable 5000 as shown in FIG. 5, communication between these devices becomes possible. As a result, the applications mounted on these devices are executed, and the transition to the procedure 701 by NCDP is started. Numeral 702 indicates the initial state of NCDP. Here, it is determined whether or not each model can execute NCDP. If possible, the process proceeds to NCDP procedure 701. Here, if the DSC 3012 does not implement NCDP, communication control by NCDP is not executed. After shifting to NCDP in this way, as shown at 703, when the DSC 3012 instructs transfer / print of image data according to the “basic procedure”, the DSC 3012 transfers the image file to the PD printer 1000 and prints it. Move to Further, as indicated by reference numeral 704, when the DSC 3012 instructs the transfer / print of the image data according to the “recommended procedure”, various negotiations are performed between the DSC 3012 and the PD printer 1000 to determine the printing conditions and the like. The image file is transferred from the DSC 3012 to the PD printer 1000 for printing, and the mode shifts to a more versatile print mode. When an instruction based on the “extended procedure” is issued by the DSC 3012, an advanced layout function such as, for example, DPOF, XHTML-print, and SVG, and a mode for performing printing with specifications unique to each vendor are set. Note that the detailed specifications based on the “extended procedure” are specified in the extended specifications of each DSC manufacturer, and therefore are not specifically described here. The image printing according to the “basic procedure” and the “recommended procedure” will be described later with reference to FIGS. 9 to 11.
[0044]
FIG. 8 is a diagram illustrating commands defined for performing printing in NCDP according to the present embodiment.
[0045]
In FIG. 8, the “corresponding mode” corresponds to the “basic procedure”, “recommended procedure”, and “extended procedure” instructed by the DSC 3012. While all commands can be used in the "recommended procedure", the "basic procedure" is in the simple print mode, so the transition to NCDP and its termination, and the "basic procedure", "recommended procedure" and "extended procedure" Only the command for shifting to each mode, the acquisition of image data from the camera 3012, and the print command from the camera 3012 can be used. In the “extended procedure”, it is described that the transition to NCDP and its termination, and only the commands to transition to the respective modes of “basic procedure”, “recommended procedure” and “extended procedure” are used. Needless to say, other commands may be used according to the specifications of each company.
[0046]
Hereinafter, image printing according to the above-described “basic procedure” and “recommended procedure” will be described, and a charging sequence example during communication will be described.
[0047]
FIG. 9 is a diagram for explaining the NCDP communication procedure when performing image printing according to the “basic procedure”. The “basic procedure” is a simple print mode in which a single image file is transferred from the DSC to the PD printer 1000 and printed, and the corresponding image format is a VGA size (640 × 480). (Pixels) RGB images and VGA size (640 × 480 pixels) JPEG images, and the DSC 3012 transmits the images in an image format supported by the PD printer 1000. In this case, no error handling is performed.
[0048]
First, at 900, the PD printer 1000 transmits a command (NCDP Start) for instructing the DSC 3012 to shift to NCDP. Here, if the DSC 3012 implements NCDP, OK is returned (901). It should be noted that a specific example in which PTP is used as an example of performing the NCDP confirmation procedure will be described later in detail with reference to FIG.
[0049]
When it is confirmed that the NCDP is mounted on each other, a command (Procedure Start) is transmitted from the PD printer 1000 to the DSC 3012 to shift to the mode (902). On the other hand, if the “basic procedure”, which is the simple print mode, is sent from the DSC 3012 in 903, the process shifts to the print mode based on the “basic procedure” thereafter. In this case, when an image to be printed is selected by an operation on the DSC 3012 and printing is instructed, a command (Job Start) for instructing start of printing is sent from the DSC 3012 to the PD printer 1000 (904). As a result, the PD printer 1000 enters the simple print mode, transmits a command (Get Image) to the DSC 3012, and requests a JPEG image (905). As a result, the JPEG image is transmitted from the DSC 3012 to the PD printer 1000 (906), and the printing process in the PD printer 1000 is started.
[0050]
At this time, the digital camera issues a PD printer indicating the end of the print job when an error of the printing apparatus at the time of printing, printing stop by user's key operation (not shown) on the DSC 3012, or printing of the designated image is finished. In this embodiment, the image data transfer is completed in response to this image request in a static state (a state in which there is no status change) waiting for one of (907) commands (Job End) transmitted from the apparatus 1000 to the DSC 3012 (907). After that, the charging process is performed during a period from when the printing is completed by the printer device.
[0051]
The details of this processing are shown in FIG. In the figure, first, it is monitored whether or not the requested image data has been transferred (S60). Subsequently, after confirming the completion of the transfer, the charge status of the battery is checked (S61). If the charge is not sufficient, the battery charge using the V bus power (S62) is started. If there is no problem in the charge amount, the charge processing sequence is not started.
[0052]
Then, the charging is continued until the charging is completed (S64), the printing by the printer device is completed (S65), and the print stop command (S66) is recognized by the user, and the charging process is stopped when the charging is completed or the print process ends.
[0053]
Then, when an affirmative response (OK) is returned from the DSC 3012 (908), the printing process according to the “basic procedure” is completed.
[0054]
Specifying the mode from the camera in this way means specifying the mode from the device to which the print operation is to be performed, so that it is easy to specify the mode according to the intention of the user who operates the camera.
[0055]
FIG. 10 is a diagram for explaining the NCDP communication procedure when performing image printing according to the "recommended procedure". The same steps as those in FIG. 9 are denoted by the same reference numerals, and description thereof will be omitted. In this “recommended procedure”, a “more versatile printing” mode can be set on the premise of negotiation between the PD printer 1000 and the DSC 3012, and printing of a plurality of photos and layout printing can be performed. Also, error handling can be executed.
[0056]
In FIG. 10, similarly to the case of FIG. 9, after confirming that the NCDP is mounted on each other, in this case, the “recommended procedure” is instructed from the DSC 3012 (910). Thereafter, the procedure according to the “recommended procedure” is executed. First, as indicated by reference numeral 911, the PD printer apparatus 1000 generates functions included in the PD printer apparatus and functions including paper settings as Capability information, and transmits all of the Capability information to the DSC 3012. The Capability information is in a script format (a series of procedures and information are described in a text format).
(A file described by a formula).
[0057]
FIG. 12 shows an example of this Capability information.
[0058]
As shown in FIG. 12, this Capability information includes the type and size of printable paper, print quality, image data format, date printing, file name printing, layout, image correction, and optional Includes information such as the presence or absence of a function corresponding to the specifications of each camera manufacturer.
[0059]
By making the Capability information a script notation and making this notation XML-compliant, porting to other communication protocol architectures is simplified and the exchange of such function information is more easily standardized. . The reason for this is easy to understand, for example, in comparison with a case where each element is described using a dedicated command. For example, a dedicated command is required when notifying the DSC 3012 of a description for notifying an image type that can be processed by the PD printer apparatus 1000 to “<Image Type =...” In FIG. It is impossible to prepare a command in case the function added to the file is considered. By describing the information in a script, a series of information can be described as a multi-line text, and even if there is an element that cannot be interpreted, it can be ignored, so that the developability is not denied. Note that this is the same for other scripts.
[0060]
The DSC 3012 that has received such Capability information can determine which of the functions of the PD printer 1000 to perform printing. Then, the DSC 3012 presents a menu corresponding to the result to the user, selects an image to be printed, and selects a print condition of the image from the functions (print conditions) of the PD printer apparatus 1000. And decide. When an image to be printed, printing conditions, and the like are determined in this way, and printing is instructed, a print command (Job Start) is sent to the PD printer 1000. As a result, a command (Get Image xn) requesting the image data is issued from the PD printer 1000 (912), and in response thereto, the DSC 3012 converts the corresponding image data into an image format that can be received by the PD printer 1000. (Tiff, JPEG, RGB, etc.) (913). Here, a plurality of image data can be transmitted for one image printing, for example, when layout printing such as 2 × 2 is specified, four sheets are printed for one sheet. This is because it is necessary to transmit the image data for minutes. When the printing of the designated image is completed, a command (Job End) indicating the end of the print job is transmitted from the PD printer 1000 to the DSC 3012 (907). On the other hand, when an affirmative response (OK) is returned from the DSC 3012 (908), the process shifts to the next image selection / printing process according to the “recommended procedure” again.
[0061]
FIG. 11 is a diagram for explaining a communication procedure when an error occurs in the PD printer 1000 in the NCDP communication procedure when performing image printing according to the above-mentioned “recommended procedure”. Are given the same numbers, and descriptions thereof are omitted.
[0062]
In this example, an example is shown in which a paper feed error has occurred in the PD printer apparatus 1000 during execution of print processing in the “recommended procedure”. In this case, at 914, the PD printer 1000 transmits status information (Status) indicating a paper feed error to the DSC 3012. On the other hand, based on the instruction content determined by the user of the DSC 3012, a command indicating whether to continue the print processing (Job Continue) or to cancel (Job Abort) is transmitted to the PD printer 1000 (915). . Thus, in the case of the stop, the PD printer 1000 stops the printing process, transmits a print job end notification (Job End), and stops the printing. Alternatively, when the continuation is instructed, the operation is performed so as to continue the printing process after waiting for the restoration of the paper feeding error. The charging sequence in this case (FIG. 30) is as follows.
[0063]
Upon receiving the warning of the printer (HOST) (S63), the device suspends charging (S68) and displays the contents of the warning on a display unit (not shown) of the digital camera 3012 (S69). The user selects whether to perform a return operation or stop printing corresponding to the displayed content, and presses a key operation unit (not shown) of the digital camera 3012. If the continuation button is pressed (S70), it is determined that printing is to be restarted, the charging operation is restarted (S71), and the fact that printing restart is selected is reported to the printer device, and the process returns to the basic charging process. If the print operation stop button is pressed (S72), the charging process is terminated, and the fact that the stop button is pressed is reported to the host.
[0064]
Next, the above-described processing procedure will be described with reference to the flowchart of FIG. FIG. 13 is a flowchart illustrating the processing procedure illustrated in FIG.
[0065]
First, in step S1, communication between the digital camera (DSC) 3012 and the PD printer 1000 is established (700).
[0066]
FIG. 28 shows the device transition of the USB enumeration process in step S1. When the device is connected by the configuration shown in FIG. 5, the device confirms the reset signal through the mounting state (S55) and the power state (S56), and enters the default state (S57). Next, an address is assigned by the host, the address state (S58) is reached, and then the host reads the configuration descriptor of the device to confirm that it is possible to shift to the configuration state in order to enter the configuration state, and then configures the device. The state (S59) is set, and a logical communication flow in USB becomes possible.
At this time, the digital camera declares that the digital camera is a bus power device in the bm Attributes of the CONFIGURATION descriptor as a USB device, and the maximum power required for the digital camera to operate or the maximum power that can be set as power supply as Max Power. Declares a current of 500 mA.
Next, in step S2, it is determined whether or not these devices have NCDP installed, and if so, the process proceeds to NCDP. Next, the procedure proceeds to step S3, where a procedure instruction from the DSC 3012 is received, and the procedure shifts to the instructed procedure. Here, when the "basic procedure" is instructed, the process proceeds from step S4 to step S5, and the printing process according to the "basic procedure" is executed. When the "recommended procedure" is instructed, the process proceeds from step S6 to step S7, and the printing process according to the above-described "recommended procedure" is executed. Further, when the "extended procedure" is instructed, the process proceeds from step S8 to step S9, and the printing process according to the "extended procedure" corresponding to each vendor is executed. Otherwise, the process proceeds to step S10, and the PD printer 1000 and the DSC 3012 execute printing in a unique mode.
[0067]
Next, an example in which the above-described various commands in NCDP (FIG. 8) are implemented using a standard protocol PTP defined by PIMA (Photographic and Imaging Manufacturers Association) for image transfer (wrapper using PTP) will be described. In the present embodiment, the case of NCDP using PTP will be described. However, the present invention is not limited to this. For example, the direct print service API can be used on another interface or another class (Class). May be implemented.
[0068]
[NCDP Start]
FIG. 14 is a diagram illustrating an example in which a command (NCDP Start) for instructing the start of the NCDP procedure is realized using the standard image transfer protocol PTP. More specifically, FIG. 7 illustrates a negotiation procedure for determining whether or not the DSC 3012 and the PD printer device can function as the photo direct print system described in the embodiment in order to determine “transition to NCDP” in FIG.
[0069]
First, in step 1400, the PTP command Get Device Info is transmitted from the PD printer 1000 to the DSC 3012, and the DSC 3012 is requested to provide information on the held object. This is easy to understand if it is an inquiry about what the device connected to the PD printer is. On the other hand, the DSC 3012 transmits (notifies) information on the DSC 3012 to the PD printer 1000 by using Device Info Dataset. However, this information is attribute information on the camera specified by the PTP standard and does not include information on direct printing. Next, in step 1402, a procedure for allocating the DSC 3012 as a resource, assigning a handle to a data object as needed, or performing special initialization is started by the PTP command Open Session.
[0070]
In step 1403, a handle is requested to the DSC 3012. In order to specify an unknown object (a captured image, a script, or the like) of the DSC, the PD printer 1000 requests a number uniquely assigned to the object. In response to this request, in step 1404, the handle list held in the DSC 3012 is returned (equivalent to notifying how many objects are present).
[0071]
As a result, the PD printer 1000 determines how many objects the DSC holds. In the negotiation, it is important to determine whether or not both have a function capable of shifting to NCDP. This determination is made using a password, for example, a script describing a password "NCDP_CAMERA" on one side and "NCDP_PRINTER" on the other side. When both sides return the intended result from the other party, a direct print mode by NCDP is performed. Move to
[0072]
Therefore, as described above, it is necessary for the PD printer 1000 to search for an object having an attribute whose attribute is a script from the objects held by the DSC 3012.
[0073]
Therefore, the PD printer 1000 first outputs to the DSC 3012 a PTP command Get Object Info (Handle i) for inquiring about the attribute of the object with the handle “1” (in this case, i = 1) As a result, the received i-th attribute (Object Info i Dataset) is received from 1 to the maximum number of objects. More precisely, an object that is a script that describes a password (password) instead of an image as an attribute
It is easy to understand if you think of finding a project. In the PTP command Get Object Info, an object type can be specified as an option. However, depending on the digital camera, it is necessary to assume that this option is not supported. .
[0074]
When the PD printer 1000 detects the handle (tentatively, handle “j”) of an object that is a script, the PD printer 1000 outputs a PTP command “Get Object (Handle j)” requesting data indicated by the handle “j” to the DSC 3012. . As a result, the DCS 3012 outputs a script in which the password “NCDP_CAMERA” is described to the PD printer 1000 as “Object j Data”.
[0075]
As a result, the PD printer apparatus 1000 can know that the connected DSC 3012 is an NCDP-compatible digital camera. Therefore, this time, the password “NCDP_PRINTER” indicating that the PD printer apparatus 1000 is an NCDP-compatible printer is notified, but prior to that, the attribute information of the object to be transmitted is transmitted by Send Object Info. Then, the password “NCDP_PRINTER” is notified to the DSC 3012 by Send Object. Note that the password here is merely an example, and is not limited to the above.
[0076]
As a result of the above procedure, both devices are found to be NCDP-compatible devices, and thereafter, the mode shifts to the NCDP photodirect print mode in the embodiment.
[0077]
If the above-described procedure is shown as a flowchart, the procedure is as shown in FIG.
[0078]
First, in step S21, the PD printer apparatus 1000 (hereinafter simply referred to as PD) outputs a device information request (Get Device Info) to the DSC 3012. (The DSC responds to this request in step S41 to change the attributes of its own device. The information to be indicated is notified to the PD 1000 (Device Info Data Set)).
[0079]
Next, the PD 1000 declares the start of a session in step S22 (Open Session), the DSC 3012 receives this declaration, and notifies the PD 1000 of OK in step S42.
[0080]
In step S23, the PD 1000 requests a handle of an object held by the DSC 3012 (Get Object Handles). Accordingly, in step S43, the DSC 3012 notifies the object (image or script) held by the DSC 3012 to the PD 1000 (Object Handle Array), and the PD 1000 receives the object (step S24).
[0081]
Next, since the number of handles can be known from the received information, the PD 1000 substitutes “1” for a variable i indicating a handle as an initial value in step S25, and requests an attribute for the i-th object in step S26 (Get Object). (Handle i)). As a result, since the attribute of the corresponding object is transmitted from the DSC 3012 (Object Info i Dataset), the DSC 3012 receives the attribute and determines whether it is a script (step S27). If it is determined that it is not a script (a captured image), the variable i is incremented by one in step S28, and the process in step S26 is repeated.
[0082]
If it is determined that the i-th object is a script, the process proceeds to step S27 to request the transfer of the contents of the i-th object (Get Object (Handle i)). That is, the user expects the password (password) and requests it. As a result, the DSC 3012 notifies the contents of the specified object to the PD 1000 in step S45 (Object i Data), and therefore, the PD 1000 determines whether or not the password is “NCDP_CAMERA” (step S29). If it is not "NCDP_CAMERA" and it is determined that another script has happened to be returned, it is determined in step S31 whether or not the variable i is the last one. If not, the flow returns to step S28. The above process is repeated. In this way, even if the DSC reaches the last handler, if the DSC does not notify the password "NCDP_CAMERA", it determines that the connected DSC 3012 is a digital camera that does not support NCDP, and terminates further processing. For this reason, for example, an error notification is turned on by an LED provided in the operation unit, a message indicating that negotiation has failed is displayed, and the present process ends.
[0083]
On the other hand, if the password “NCDP_CAMERA” has been notified from the DSC, the process proceeds to step S33, and the password “NCDP_PRINTER” is described through a procedure (transmission of Send Object Info and reception of OK) indicating that the PD 1000 is NCDP compliant. The DSC 3012 notifies the DSC 3012 of the completed script (Send Object), and the script received from the DSC 3012 is no longer needed.
[0084]
When it is determined that the DSC 3012 has received the password “NCDP_PRINTER” (step S46), the process proceeds to step S47, deletes the script received from the PD 1000, and shifts to the NCDP mode.
[0085]
Although the procedure of the negotiation has been described above, it should be noted that the above example is a case where both the PD printer 1000 and the DSC 3012 support NCDP.
[0086]
Since the negotiation in the embodiment uses PTP, even in a digital camera having a USB connection function that does not support NCDP, the processing of steps S41 to S44, S45, and S46 is performed. However, since the process in S45 does not exist, the data is simply received and stored as meaningless data (script), and S44 and S45 are simply repeated.
[0087]
Here, it should be particularly noted that in the case of the embodiment, the source of the password is always the DSC 3012 side (even if the DSC 3012 does not support NCDP, it is the side that transmits the first script). That is no different). That is, the password "NCDP_PRINTER" in response to the password "NCDP_CAMERA" is issued by the PD printer 1000, and the password "NCDP_PRINTER" in response to the password "NCDP_CAMERA" is issued only when the first password "NCDP_CAMERA" is present.
[0088]
The reason for this procedure is that if the PD printer 1000 issues the first password, no problem occurs if the DSC 3012 is NCDP compliant, but if the DSC is not NCDP compliant. The reason for this is that it is not possible to proceed to the processing of step S47, so that a meaningless script file (garbage file) is received and stored.
[0089]
In this regard, as described above, the side that outputs the first authentication information (the password or the password) when authenticating each other is the DSC side, and the PD printer apparatus 1000 outputs the corresponding authentication information. Whatever the device connected to the device 1000, it is possible to prevent dust from accumulating in the device. This is because, if the expected authentication information does not exist in the script from the DSC, the PD printer 1000 does not output the authentication information corresponding to the authentication information.
[0090]
According to the above-described processing, since the NCDP-compatible digital camera holds the script describing the password, it is guaranteed that the NCDP-compatible digital camera will be transferred to the print system using NCDP. However, as can be easily conceived from the above, in order to speed up the negotiation, a script including authentication information (password) is assigned to a small handle number among the objects possessed by the DSC 3012. That is, when the DSC 3012 is NCDP-compliant, when a handle request (Get Object Handles) is received, a handle number “1” is assigned to a script (authentication information) including a secret word, and the image is captured and stored thereafter. A handle number is assigned to the image being processed, and the result is notified to the PD printer 1000.
[0091]
As a result, the loop processing of steps S26 to S28 or the loop processing of steps S26 to S31 and S28 is substantially eliminated, and the processing proceeds to steps S33 and S34 at a stretch, and the negotiation is performed at high speed. Can be.
[0092]
The processing on the DSC 3012 side may be performed, for example, according to the procedure shown in FIG. 27 (the program of the procedure is stored in the ROM 32 in the DSC 3012). It should be noted that the processing in FIG. 13 is processing when a handle request command (Get Object Handles) is received from the PD printer 1000. When this command is received, the processing is called from a higher-level processing. Therefore, it should be noted that the determination as to whether or not Get Object Handles has been received has already been made in the upper-level processing.
[0093]
First, in step S51, a table (if a variable area) for associating an object with a handle is secured in the RAM 33. Next, in step S52, an object describing a script indicating NCDP correspondence is set in the table so as to be assigned to the first handle. Thereafter, in step S53, a handler is assigned to the remaining objects (usually image data that is captured and stored), set in the table, and the result is notified to the PD printer 1000 as an Object Handle Array.
[0094]
As a result, it is possible to share (common) information when pointing an object between the DSC 3012 and the PD printer 1000. In the subsequent processing, the object in the DSC 3012 is exchanged using the handle. Become.
[0095]
When the PD printer 1000 processes the DSC 3012 to determine whether or not the script is a script, so as to go back from the last handle, when the DSC 3012 notifies the PD printer 1000 of the handle, the last All you need to do is assign a script to the handle of your password.
[0096]
It is most effective to set the handle number to the object describing the script indicating that it is NCDP-compatible first, but it is not necessarily the first, but it is sufficiently effective if it is near the first number. is there. In other words, if the object describing the script indicating NCDP correspondence is not made to correspond to the last number, it is possible to achieve higher speed than in the case where the object is made to correspond to the last number.
[0097]
[Procedure Start]
FIG. 15 is a diagram illustrating an example in which a command for instructing a procedure for shifting to a mode is received from the DSC 3012, and a command (Procedure Start) for shifting to the mode is implemented using the PTP architecture.
[0098]
Here, first, at 1501, it is desired to transmit to the DSC 3012 by the PTP command Send Object Info to notify the DSC 3012 of the procedures “basic procedure”, “recommended procedure”, and “extended procedure” supported by the PD printer 1000. Notify that there is object information. On the other hand, when an acknowledgment (OK) is sent from the DSC 3012, the fact that the object is to be transmitted is transmitted to the DSC 3012 by the PTP command Send Object at 1502, and the object data at the next 1503 is
The information about the procedure supported by the PD printer 1000 is transmitted. Next, in step 1504, the camera issues an event notification Request Data Transfer defined by PTP to the PD printer 1000 from the DSC 3012 to inform the PD printer 1000 that it wants to start the PTP command Get Object operation. In response to this, at 1505, when the information about the object information is received from the PD printer 1000 (Get Object Info), at 1506, the information is returned by Object Info Dataset, and then at 1507, the object information is returned. Is specified and the object information itself is requested, the PD Printer 1000 notifies the PD Printer 1000 of the procedures (“basic”, “recommended”, “extended”, etc.) used by the DSC 3012 by Object Dataset (1508).
[0099]
This allows the DSC 3012 to specify the image print mode to the PD printer 1000.
[0100]
[NCDP End]
FIG. 16 is a diagram illustrating an example in which an instruction (NCDP End) for ending the communication control procedure in NCDP according to the present embodiment is implemented using the PTP architecture.
[0101]
In this procedure, in step 1600, the PD printer 1000 notifies the DSC 3012 that there is object information to be transmitted, and notifies the DSC 3012 of exiting the NCDP mode by using Object Data. When an acknowledgment (OK) is received, a PTP command Close Session is transmitted in 1601 to end the communication. This ends the NCDP communication procedure.
[0102]
[Capability]
FIG. 17 is a diagram illustrating an example in which the communication procedure in the Capability command for notifying the DSC 3012 of the function of the PD printer 1000 in the NCDP according to the present embodiment is realized using the PTP protocol.
[0103]
In this procedure, in 1700, the fact that there is object information to be transmitted from the PD printer apparatus 1000 to the DSC 3012 is notified by the PTP command Send Object Info. In step 1701, the transmission of object information is transmitted to the DSC 3012 by the PTP command Send Object, and the function of the PD printer 1000 is transmitted to the DSC 3012 in the script (Script) format (FIG. 12) by the following Object Data. .
[0104]
[Get Image]
FIG. 18 illustrates an example in which the PD printer apparatus 1000 implements a communication procedure (Get Image) for acquiring image data (JPEG image) stored in the DSC 3012 using the PTP protocol in NCDP according to the present embodiment. FIG.
[0105]
First, at 1800, when information about an object held by the DSC 3012 is requested, at 1801, information (Object Dataset) about the object is sent from the DSC 3012 to the PD printer 1000. Next, in 1802, when an acquisition request (Get Object) is issued by designating the object, in 1803, the requested image file (Object Dataset) is transmitted from the DSC 3012 to the PD printer 1000. In this manner, the PD printer 1000 can obtain a desired image file from the DSC 3012.
[0106]
[Status Send]
FIG. 19 is a diagram illustrating an example in which a communication procedure for notifying an error state or the like from the PD printer apparatus 1000 to the DSC 3012 (Status Send) in NCDP according to the present embodiment is implemented using the PTP protocol.
[0107]
First, at 1900, the PTP command Send Object Info notifies the DSC printer 3012 that there is object information to be transmitted from the PD printer apparatus 1000 to the DSC 3012. In 1901, an information set (Object Dataset) relating to the object information is transmitted to the DSC 3012, and in response to an acknowledgment (OK) from the DSC 3012, status information such as an error in the PD printer 1000 is transmitted using PTP commands Send Object and Object Dataset. Send by
[0108]
[Page End]
FIG. 20 illustrates an example in which the PD Printer 1000 notifies the DSC 3012 of the end of one page print processing (Page End) in the NCDP according to the present embodiment using a protocol. FIG.
[0109]
[Job End]
FIG. 21 illustrates an example in which the PD printer apparatus 1000 notifies the DSC 3012 of the end of the print job (Job End) in the NCDP according to the present embodiment using the PTP protocol. FIG. In FIGS. 20 and 21, after execution of the procedures of 1900 to 1901 in FIG. 19, the PD printer 1000 notifies the DSC 3012 of the end of the one-page printing process in 1910 in FIG. Then, the PD printer 1000 notifies the DSC 3012 that the print job has been completed.
[0110]
[Job Start]
FIG. 22 is a diagram illustrating an example in which the DSC 3012 notifies the PD printer 1000 of the start of a print job (Job Start) communication procedure using the PTP protocol in NCDP according to the present embodiment. is there.
[0111]
First, at 2200, the DSC 3012 sends an event notification Request Object Transfer defined by PTP to the PD printer 1000, and urges the PD printer 1000 to issue a PTP command Get Object command. As a result, when the PTP command Get Object Info is issued from the PD printer 1000 in 2201, the DSC 3012 transmits information about the object information to be transmitted, and when the object information is requested from the PD printer 1000 ( In Get Object: 2203) and 2204, the object data is transmitted, and the DSC 3012 issues a print command to the PD printer 1000.
[0112]
[Job Abort]
FIG. 23 is a diagram illustrating an example in which a communication procedure for issuing a print stop command from the DSC 3012 to the PD printer 1000 (Job Abort) using the PTP protocol in NCDP according to the present embodiment.
[0113]
[Job Continue]
FIG. 24 is a diagram illustrating an example in which the DSC 3012 issues a print resume command (Job Continue) communication procedure to the PD printer 1000 using the PTP protocol in NCDP according to the present embodiment.
[0114]
23 and 24, after executing the procedures of 2200 to 2203 in FIG. 22, a print stop command is issued from the DSC 3012 to the PD printer 1000 in 2301 in FIG. 23, and in 2401 in FIG. A print restart command is notified to the PD printer 1000.
[0115]
The present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), but also to an apparatus including one device (for example, a copying machine, a facsimile machine, etc.). May be.
[0116]
Further, an object of the present invention is to provide a storage medium (or a recording medium) storing software program codes for realizing the functions of the above-described embodiment (processing performed on the camera side, various printing processing performed on the printer side). This is also achieved by supplying the program or the program code stored in the storage medium to a computer or CPU (MPU) of the system or the apparatus. 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. This also includes a case where some or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.
[0117]
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 of the program is performed based on the instruction of the program code. This includes the case where the CPU provided 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.
[0118]
In the embodiment, when the photo direct print system is constructed, the printer device is described as a USB host and the DSC is a USB device. As described above, most of the recent digital cameras are equipped with a USB device function for communication with a PC, the number of digital camera manufacturers is larger than the number of printer manufacturers, and furthermore, they serve as a host. When considering that the device has less concern about power supply, it is less burdensome for each maker if the printer plays the role of host, and there is sufficient advantage for each maker when constructing the system aimed at by the present invention. Yes, and thus a preferred form for the end user.
[0119]
As described above, according to the present invention, the digital camera is connected in the configuration shown in FIG. 5 to construct a print system, and after transition to the configuration state, only the Vbus power supply is used as the power supply used as the print system. It has system functions that operate using it.
[0120]
Further, in a state in which the power used as a system operation is stabilized below a certain power requirement from Max Power, for example, in a state in which a UI during data transfer during printing is not accepted, the supply of Max Power from V bus is performed. A charging function is provided for using surplus power not used by the receiving system as power for charging a battery mounted on the digital camera body.
[0121]
【The invention's effect】
As described above, the digital camera operates as a device that operates on the bus power when constructing a direct print system, and the system terminates due to power requirements on the device side when performing print processing etc. It is possible to prevent invalidation of settings and interruption of printing.
[0122]
Further, by charging the battery of the digital camera during the construction of the direct print system, the time required for charging the battery of the digital camera can be reduced.
[Brief description of the drawings]
FIG. 1 is a schematic perspective view of a PD printer device according to an embodiment of the present invention.
FIG. 2 is a schematic view of an operation panel of the PD printer device according to the present embodiment.
FIG. 3 is a block diagram illustrating a configuration of a main part related to control of the PD printer device according to the present embodiment.
FIG. 4 is a block diagram illustrating a configuration of an ASIC of the PD printer device according to the present embodiment.
FIG. 5 is a diagram showing a state where the PD printer device and the digital camera according to the present embodiment are connected.
FIG. 6 is a conceptual diagram illustrating a software configuration of a PD printer and a digital camera in which NCDP according to the present embodiment is mounted.
FIG. 7 is a diagram illustrating an outline of an NCDP communication procedure according to the present embodiment.
FIG. 8 is a diagram illustrating commands in NCDP according to the present embodiment.
FIG. 9 is a diagram illustrating a printing procedure based on a “basic procedure” in NCDP according to the present embodiment.
FIG. 10 is a diagram illustrating a printing procedure based on a “recommended procedure” in NCDP according to the present embodiment.
FIG. 11 is a diagram illustrating a printing procedure when an error occurs in a “recommended procedure” in NCDP according to the present embodiment.
FIG. 12 is a diagram illustrating an example of Capability transmitted by NCDP according to the present embodiment.
FIG. 13 is a flowchart illustrating an outline of an NCDP communication procedure according to the present embodiment.
FIG. 14 is a diagram illustrating an example in which an instruction (NCDP Start) for instructing start of an NCDP procedure is implemented using a PTP architecture.
FIG. 15 is a diagram illustrating an example in which a procedure start procedure (Procedure Start) for receiving a transition instruction from a camera to each procedure is implemented using a PTP architecture in the NCDP procedure.
FIG. 16 is a diagram illustrating an example in which an instruction (NCDP End) for instructing the end of the NCDP procedure is realized using the PTP architecture.
FIG. 17 is a diagram illustrating an example in which a command (Capability) for transmitting Capability from the PD printer device to the camera in the NCDP procedure is realized using the PTP architecture.
FIG. 18 is a diagram illustrating an example in which the procedure of an instruction (Get Image) for acquiring an image file held in a camera from a PD printer device is implemented using a PTP architecture in the NCDP procedure.
FIG. 19 is a diagram illustrating an example in which the procedure of a command (Status Send) for transmitting an error status from the PD printer device to the camera in the NCDP procedure is realized using the PTP architecture.
FIG. 20 is a diagram illustrating an example in which, in the NCDP procedure, a procedure of a command (Page End) for transmitting the end of printing one page from the PD printer to the camera is realized using the PTP architecture.
FIG. 21 is a diagram illustrating an example in which a procedure for issuing a print job end command (Job End) from the PD printer device to the camera in the NCDP procedure is realized using the PTP architecture.
FIG. 22 is a diagram illustrating an example in which a procedure for issuing a print command (Job Start) from a camera to a PD printer device in the NCDP procedure is realized using a PTP architecture.
FIG. 23 is a diagram illustrating an example in which a procedure of issuing a print stop command (Job Abort) from a camera to a PD printer device in the NCDP procedure is realized using a PTP architecture.
FIG. 24 is a diagram illustrating an example in which a procedure for issuing a print resume command (Job Continue) from a camera to a PD printer device in the NCDP procedure is realized using a PTP architecture.
FIG. 25 is a flowchart illustrating a negotiation procedure in the embodiment.
FIG. 26 is a block diagram of a digital camera DSC according to the embodiment.
FIG. 27 is a flowchart illustrating a processing procedure on the DSC side when there is an inquiry (Get Object Handles) of an object owned by the digital camera DSC in the embodiment.
FIG. 28 is a flowchart illustrating a procedure for shifting to a configuration state according to the present embodiment.
FIG. 29 is a flowchart illustrating an example of battery charging in the embodiment.
FIG. 30 is a flowchart illustrating a battery charging processing sequence when a warning occurs in the printer device according to the present embodiment.

Claims (12)

デジタルカメラと通信手段を介してダイレクトに接続可能なプリンタ装置であって、
前記デジタルカメラと接続した初期段階において、前記通信手段を介して前記デジタルカメラにおけるダイレクトプリント機能の有無の認証を行う認証手段と、
前記認証手段による認証結果に基づき、前記通信手段を介して、前記デジタルカメラへと電力を供給可能な電力供給手段と、
を有することを特徴とするプリンタ装置。
A printer device that can be directly connected to a digital camera via communication means,
At an initial stage of connection with the digital camera, an authentication unit that performs authentication of the presence or absence of a direct print function in the digital camera via the communication unit,
A power supply unit that can supply power to the digital camera via the communication unit based on an authentication result by the authentication unit;
A printer device comprising:
請求項1において、
前記通信手段は、USBインターフェースによって通信する手段であり、前記デジタルカメラは、バス電源で動作するUSBデバイスとして動作することを特徴とするプリンタ装置。
In claim 1,
The printer device, wherein the communication unit is a unit that performs communication by a USB interface, and the digital camera operates as a USB device that operates on a bus power supply.
請求項1において、
前記認証手段は、前記通信手段を介して、前記デジタルカメラが前記ダイレクトプリント機能を有するか否かを認証するため、接続中の前記デジタルカメラに対して所有している情報を要求し、当該要求に対し、前記デジタルカメラより通知された情報に、ダイレクトプリント機能を有する認証情報が記述されている場合、当該デバイスはダイレクトプリント機能を有するデジタルカメラであると判定するように構成されていることを特徴とするプリンタ装置。
In claim 1,
The authentication unit requests, via the communication unit, information owned by the connected digital camera to authenticate whether the digital camera has the direct print function. On the other hand, if the information notified by the digital camera includes authentication information having a direct print function, the device is configured to determine that the device is a digital camera having a direct print function. Characteristic printer device.
プリンタ装置と通信手段を介してダイレクトに接続可能なデジタルカメラであって、
前記プリンタ装置と接続した初期段階において、前記通信手段を介してダイレクトプリント機能の有無を示す認証情報を前記プリンタ装置へと通知する通知手段と、
前記認証情報の通知に対する前記プリンタ装置側における認証に基づいて、前記プリンタ装置側より電力供給を受ける電力受信手段と、
を備えたことを特徴とするデジタルカメラ。
A digital camera that can be directly connected to a printer device via communication means,
Notifying means for notifying the printer device of authentication information indicating the presence or absence of a direct print function via the communication means at an initial stage of connection with the printer device,
Power receiving means for receiving power supply from the printer device based on the authentication on the printer device side for the notification of the authentication information,
A digital camera comprising:
請求項4において、
前記通信手段は、USBインターフェースによって通信する手段であり、前記デジタルカメラは、バス電源で動作するUSBデバイスとして動作することを特徴とするデジタルカメラ。
In claim 4,
The digital camera according to claim 1, wherein the communication unit is a unit that performs communication via a USB interface, and the digital camera operates as a USB device that operates on a bus power supply.
請求項4において、
前記通知手段は、前記プリンタ装置より受信した前記デジタルカメラが前記ダイレクトプリント機能を有するか否かを認証するための要求に対し、ダイレクトプリント機能を有する認証情報を記述して通知することを特徴とするデジタルカメラ。
In claim 4,
The notifying means, in response to a request for authenticating whether or not the digital camera has the direct print function received from the printer device, describes and notifies authentication information having a direct print function. Digital camera.
請求項5において、
前記通信手段を介して前記プリンタ装置より供給されるバス電源からの供給電力の余力で装着されているバッテリを充電する充電手段を備えたことを特徴とするデジタルカメラ。
In claim 5,
A digital camera, comprising: charging means for charging a mounted battery with a surplus of power supplied from a bus power supply supplied from the printer device via the communication means.
請求項7において、
前記充電手段は、前記デジタルカメラが、所定の消費電力以下で動作する状態にあるとき、前記バッテリを充電するように動作することを特徴とするデジタルカメラ。
In claim 7,
The digital camera according to claim 1, wherein the charging unit operates to charge the battery when the digital camera is in a state of operating at a predetermined power consumption or less.
プリンタ装置と通信手段を介してダイレクトに接続可能なデジタルカメラを制御する制御プログラムであって、
前記プリンタ装置と接続した初期段階において、前記通信手段を介してダイレクトプリント機能の有無を示す認証情報を前記プリンタ装置へと通知する処理と、
前記認証情報の通知に対する前記プリンタ装置側における認証に基づいて、前記プリンタ装置側より電力供給を受けるよう制御する処理とを、
実行させることを特徴とするデジタルカメラの制御プログラム。
A control program for controlling a digital camera that can be directly connected to the printer device via communication means,
At the initial stage of connection with the printer device, a process of notifying the printer device of authentication information indicating the presence or absence of a direct print function via the communication unit,
A process of controlling to receive power supply from the printer device based on the authentication on the printer device side with respect to the notification of the authentication information,
A digital camera control program characterized by being executed.
請求項9において、
前記通信手段は、USBインターフェースによって通信する手段であり、前記デジタルカメラは、バス電源で動作するUSBデバイスとして動作することを特徴とするデジタルカメラの制御プログラム。
In claim 9,
The control program for a digital camera, wherein the communication unit is a unit that performs communication via a USB interface, and the digital camera operates as a USB device that operates on a bus power supply.
請求項9において、
前記認証情報を前記プリンタ装置へと通知する処理は、前記プリンタ装置より受信した前記デジタルカメラが前記ダイレクトプリント機能を有するか否かを認証するための要求に対し、ダイレクトプリント機能を有する認証情報を記述して通知することを特徴とするデジタルカメラの制御プログラム。
In claim 9,
The processing of notifying the authentication information to the printer device includes, in response to a request for authenticating whether the digital camera has the direct print function received from the printer device, authentication information having a direct print function. A control program for a digital camera, which is described and notified.
請求項9において、
前記通信手段を介して前記プリンタ装置より供給されるバス電源からの供給電力の余力で装着されているバッテリを充電する処理を実行させることを特徴とするデジタルカメラの制御プログラム。
In claim 9,
A control program for a digital camera, which executes a process of charging a mounted battery with a surplus of power supplied from a bus power supply supplied from the printer device via the communication unit.
JP2002228028A 2002-08-05 2002-08-05 Printer device, digital camera and control program for digital camera Withdrawn JP2004070610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002228028A JP2004070610A (en) 2002-08-05 2002-08-05 Printer device, digital camera and control program for digital camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002228028A JP2004070610A (en) 2002-08-05 2002-08-05 Printer device, digital camera and control program for digital camera

Publications (1)

Publication Number Publication Date
JP2004070610A true JP2004070610A (en) 2004-03-04

Family

ID=32014827

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002228028A Withdrawn JP2004070610A (en) 2002-08-05 2002-08-05 Printer device, digital camera and control program for digital camera

Country Status (1)

Country Link
JP (1) JP2004070610A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006209170A (en) * 2005-01-25 2006-08-10 Canon Inc Repeater system, its control method, and printing system
JPWO2006022171A1 (en) * 2004-08-25 2008-07-31 キヤノン株式会社 Printing system, image supply device, printing apparatus and control method therefor
JP2010287115A (en) * 2009-06-12 2010-12-24 Nikon Corp Electronic equipment
JP2012218328A (en) * 2011-04-11 2012-11-12 Fuji Xerox Co Ltd Image forming apparatus, power supply device, and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2006022171A1 (en) * 2004-08-25 2008-07-31 キヤノン株式会社 Printing system, image supply device, printing apparatus and control method therefor
JP4726239B2 (en) * 2004-08-25 2011-07-20 キヤノン株式会社 Printing system, image supply device, printing apparatus and control method therefor
JP2006209170A (en) * 2005-01-25 2006-08-10 Canon Inc Repeater system, its control method, and printing system
JP2010287115A (en) * 2009-06-12 2010-12-24 Nikon Corp Electronic equipment
JP2012218328A (en) * 2011-04-11 2012-11-12 Fuji Xerox Co Ltd Image forming apparatus, power supply device, and program

Similar Documents

Publication Publication Date Title
JP3530847B2 (en) Printing apparatus, control method therefor, and printing system
KR100663209B1 (en) Printing system, control method therefor, and photo-direct printing apparatus
JP4136817B2 (en) Digital camera and printer
JP2004013349A (en) Imaging device, recording system, and recording control method thereof
JP4343714B2 (en) Communication device and communication control method thereof
JP4027161B2 (en) Printer apparatus and control method thereof
JP3728277B2 (en) DIGITAL CAMERA, ITS CONTROL METHOD, AND PRINT SYSTEM
KR20040004179A (en) Recording system and controlling method therefor
JP2004129218A (en) Digital camera and printer
JP2004254299A (en) Image supply device, recording system and its control method
JP2004070610A (en) Printer device, digital camera and control program for digital camera
KR100670214B1 (en) Recording system and controlling method therefor
JP2004066602A (en) Recording system, its controlling method, and direct printer
JP3652364B2 (en) Digital camera apparatus and control method thereof
JP3840258B1 (en) Digital camera, image output apparatus, image processing system, and control method thereof
JP3840252B2 (en) Printing apparatus, digital camera, and control method thereof
JP4266948B2 (en) Image supply device and control method thereof
JP4183259B2 (en) Printing apparatus and control method thereof
JP4111527B2 (en) Printing apparatus, digital camera, control method therefor, and printing system
JP4111528B2 (en) Printing apparatus, digital camera apparatus, control method therefor, and printing system
JP4367902B2 (en) Recording system, image supply device, printing apparatus, and control method therefor
JP4987104B2 (en) Printing apparatus and control method thereof
JP4612907B2 (en) Image supply apparatus and control method thereof
JP2006012118A (en) Image supply device, recording system, and recording control method
JP2005086270A (en) Recording apparatus, image supply apparatus, recording system, and control method thereof

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20051101