JP2009031899A - Print client, print server, printer search method, and print service providing method - Google Patents
Print client, print server, printer search method, and print service providing method Download PDFInfo
- Publication number
- JP2009031899A JP2009031899A JP2007193077A JP2007193077A JP2009031899A JP 2009031899 A JP2009031899 A JP 2009031899A JP 2007193077 A JP2007193077 A JP 2007193077A JP 2007193077 A JP2007193077 A JP 2007193077A JP 2009031899 A JP2009031899 A JP 2009031899A
- Authority
- JP
- Japan
- Prior art keywords
- printer
- protocol
- network
- search
- 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.)
- Granted
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
この発明は、ネットワーク上で使用可能なプリンタを検索する技術に関する。 The present invention relates to a technique for searching for a printer that can be used on a network.
ネットワーク上でプリンタを利用するために、ネットワークに接続されたプリンタを特定し、特定されたプリンタに対して予め定められたネットワークプロトコルに従って印刷のためのデータを転送することが行われる。ネットワークに接続されたプリンタを特定する場合、IPアドレスやプリンタ名などプリンタを特定する情報を直接入力することが行われてきたが、近年では、UPnP(Universal Plug and Play)プロトコルに従ったプリンタ検索要求をネットワークに送出することにより、UPnPプロトコルに対応したプリンタからの応答を検出し、検出結果に基づいてプリンタを特定することが行われるようになってきた。 In order to use a printer on a network, a printer connected to the network is specified, and data for printing is transferred to the specified printer according to a predetermined network protocol. When specifying a printer connected to a network, information for specifying the printer such as an IP address and a printer name has been directly input. Recently, however, a printer search according to the UPnP (Universal Plug and Play) protocol has been performed. By sending a request to a network, a response from a printer that supports the UPnP protocol is detected, and the printer is specified based on the detection result.
しかしながら、検索要求と検索要求に対する応答は、通常、再送制御が行われないUDPプロトコルに従って転送される。そのため、ネットワークの状態によっては、UPnPプロトコルの検索要求や応答が消失し、ネットワーク上で利用可能でUPnPに対応したプリンタを検出できないおそれがあった。なお、この問題は、プリンタが対応するプロトコルがUPnPプロトコルである場合に限らず、一般に、特定のプロトコルに対応したプリンタを検索する際に共通する。 However, the search request and the response to the search request are normally transferred according to the UDP protocol in which retransmission control is not performed. Therefore, UPnP protocol search requests and responses may be lost depending on the state of the network, and there is a possibility that a printer that can be used on the network and that supports UPnP cannot be detected. This problem is not limited to the case where the protocol supported by the printer is the UPnP protocol, but is generally common when searching for a printer corresponding to a specific protocol.
本発明は、上述した従来の課題を解決するためになされたものであり、ネットワーク上で利用可能で特定のプロトコルに対応したプリンタをより確実に検出する技術を提供することを目的とする。 SUMMARY An advantage of some aspects of the invention is to provide a technique for more reliably detecting a printer that can be used on a network and that supports a specific protocol.
本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態又は適用例として実現することが可能である。 SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.
[適用例1]
ネットワークを介して接続されたプリンタを使用して印刷を行う印刷クライアントであって、
第1のネットワークプロトコルに従ってプリンタを検索する第1のプリンタ検索部と、
前記第1のネットワークプロトコルよりも使用の優先順位の高い第2のネットワークプロトコルに従ってプリンタを検索する第2のプリンタ検索部と、
前記第1のプリンタ検索部により検出され、かつ、前記第2のプリンタ検索部により検出されなかった第1プロトコル対応プリンタを、前記第2のネットワークプロトコルに従って再検索するプリンタ再検索部と、
を備え、
前記プリンタ再検索部は、前記印刷クライアントが前記第1プロトコル対応プリンタを用いて印刷を行う前に、前記再検索を実行する、
印刷クライアント。
[Application Example 1]
A print client that prints using a printer connected via a network,
A first printer search unit for searching for a printer according to a first network protocol;
A second printer search unit for searching for a printer in accordance with a second network protocol having a higher priority of use than the first network protocol;
A printer re-search unit that re-searches a first protocol compatible printer that is detected by the first printer search unit and not detected by the second printer search unit according to the second network protocol;
With
The printer re-search unit executes the re-search before the print client performs printing using the first protocol compatible printer.
Print client.
この適用例によれば、第1と第2との2つのプリンタ検索部によりプリンタの検索が行われる。そして、第1のプリンタ検索部により検出されたプリンタであれば、第2のプリンタ検索部により検出されなかったプリンタであっても、プリンタ再検索部により第2のネットワークプロトコルに従って再検索される。そのため、優先順位の高い第2のネットワークプロトコルに対応したプリンタをより確実に検出することができる。 According to this application example, the printer search is performed by the first and second printer search units. If the printer is detected by the first printer search unit, the printer re-search unit searches again according to the second network protocol even if the printer is not detected by the second printer search unit. Therefore, it is possible to more reliably detect a printer corresponding to the second network protocol having a high priority.
[適用例2]
適用例1記載の印刷クライアントであって、
前記第2のネットワークプロトコルおけるプリンタの検索に対する応答は、再送制御が行われないメッセージにより前記印刷クライアントに転送される、
印刷クライアント。
[Application Example 2]
A print client according to application example 1,
The response to the printer search in the second network protocol is transferred to the print client by a message that is not subjected to retransmission control.
Print client.
この適用例によれば、プリンタの検索に対する応答が、再送制御の行われないメッセージにより印刷クライアントに転送されることで消失した場合においても、プリンタが第2のネットワークプロトコルに従って再検索される。そのため、優先順位の高い第2のネットワークプロトコルに対応したプリンタをより確実に検出することができる。 According to this application example, even when the response to the printer search is lost by being transferred to the print client by a message not subjected to retransmission control, the printer is searched again according to the second network protocol. Therefore, it is possible to more reliably detect a printer corresponding to the second network protocol having a high priority.
[適用例3]
適用例1または2記載の印刷クライアントであって、
前記第2のネットワークプロトコルは、ネットワーク型プラグアンドプレイのプロトコルであって、
前記第2のプリンタ検索部は、前記ネットワーク型プラグアンドプレイのプロトコルにおいて印刷サービスを提供する標準プリントデバイスとは異なる特定種類のデバイスを検索する、
印刷クライアント。
[Application Example 3]
A print client according to application example 1 or 2,
The second network protocol is a network type plug and play protocol,
The second printer search unit searches for a specific type of device different from a standard print device that provides a print service in the network type plug and play protocol.
Print client.
この適用例によれば、印刷クライアントは、ネットワーク型プラグアンドプレイプロトコルの標準プリントデバイスとは異なる特定種類のデバイスを検索する。そのため、印刷クライアントは、標準プリントデバイスと異なるサービス要求を受け付けることが可能なプリンタを検出することができる。 According to this application example, the print client searches for a specific type of device different from the standard print device of the network type plug and play protocol. Therefore, the print client can detect a printer that can accept a service request different from that of the standard print device.
[適用例4]
適用例1ないし3のいずれか記載の印刷クライアントであって、
前記第2のプリンタ検索部は、前記第1のプリンタ検索部により前記第1プロトコル対応プリンタが検出された場合、第2のネットワークプロトコルによる検索の実行から所定の待機時間を経過した後も、前記第1プロトコル対応プリンタからの応答から所定の時間が経過するまで、前記第1プロトコル対応プリンタからの前記第2のネットワークプロトコルに従った応答を待ち受ける、
印刷クライアント。
[Application Example 4]
The print client according to any one of Application Examples 1 to 3,
When the first printer search unit detects the printer compatible with the first protocol, the second printer search unit is configured to execute the search even after a predetermined waiting time has elapsed from the execution of the search using the second network protocol. Waiting for a response from the first protocol compatible printer according to the second network protocol until a predetermined time has elapsed since the response from the first protocol compatible printer;
Print client.
この適用例によれば、第1プロトコル対応プリンタからの応答から所定の時間が経過するまで、第2のネットワークプロトコルに従った応答が待ち受けられる。そのため、第2のネットワークプロトコルにおける応答の転送に時間がかかる場合であっても、印刷クライアントは、より確実に第2のネットワークプロトコルにおける応答を取得することができる。 According to this application example, a response according to the second network protocol is awaited until a predetermined time elapses from the response from the first protocol compatible printer. Therefore, even when it takes a long time to transfer a response in the second network protocol, the print client can acquire the response in the second network protocol more reliably.
[適用例5]
ネットワークとは異なる通信チャンネルを介して接続されたローカルプリンタをネットワーク上で使用可能にするプリントサーバであって、
ネットワーク型プラグアンドプレイのプロトコルに従ったデバイスの検索要求を受け付ける検索要求受付部と、
前記検索要求受付部が受け付けた検索要求に対して、前記ローカルプリンタの存在を通知する特定デバイス存在通知部と、
を備え、
前記検索要求受付部が受け付ける前記デバイスの検索要求は、前記ネットワーク型プラグアンドプレイのプロトコルにおいて印刷サービスを提供するプリントデバイスとは異なる特定種類のデバイスの検索要求である、
プリントサーバ。
[Application Example 5]
A print server that enables a local printer connected via a communication channel different from the network to be used on the network,
A search request accepting unit that accepts a search request for a device according to a network type plug and play protocol;
In response to the search request received by the search request reception unit, a specific device presence notification unit that notifies the presence of the local printer;
With
The search request for the device received by the search request receiving unit is a search request for a specific type of device different from a print device that provides a print service in the network type plug and play protocol.
Print server.
この適用例によれば、プリントサーバは、ネットワーク型プラグアンドプレイプロトコルの標準プリントデバイスとは異なる特定種類のデバイスとして、ローカルプリンタの存在を通知する。そのため、プリントサーバは、標準プリントデバイスと異なるサービス要求を受け付けることが可能となる。 According to this application example, the print server notifies the presence of the local printer as a specific type of device different from the standard print device of the network type plug and play protocol. Therefore, the print server can accept a service request different from that of the standard print device.
[適用例6]
適用例5記載のプリントサーバであって、さらに、
前記ネットワークを介して前記ローカルプリンタにおいて印刷される画像を表す画像データを受信する画像データ受信部を備え、
前記画像データ受信部は、前記ネットワーク型プラグアンドプレイのプロトコルとは異なるネットワークプロトコルに従って前記画像データを受信する、
プリントサーバ。
[Application Example 6]
The print server according to application example 5,
An image data receiving unit for receiving image data representing an image to be printed in the local printer via the network;
The image data receiving unit receives the image data according to a network protocol different from the network type plug and play protocol;
Print server.
この適用例によれば、画像データはネットワーク型プラグアンドプレイプロトコルとは異なるネットワークプロトコルに従って転送される。そのため、画像データの転送を行う際のネットワーク型プラグアンドプレイプロトコルで発生するオーバヘッドを低減することができる。 According to this application example, the image data is transferred according to a network protocol different from the network type plug and play protocol. Therefore, it is possible to reduce the overhead generated in the network type plug and play protocol when transferring image data.
なお、本発明は、種々の態様で実現することが可能である。例えば、印刷クライアントやプリントサーバ等の装置、プリンタ検索方法やプリントサービス提供方法等の方法、それらの装置の制御方法および制御装置、それらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体、そのコンピュータプログラムを含み搬送波内に具現化されたデータ信号、等の形態で実現することができる。 Note that the present invention can be realized in various modes. For example, a device such as a print client or a print server, a method such as a printer search method or a print service providing method, a control method and a control device for these devices, a computer program for realizing the functions of those methods or devices, The present invention can be realized in the form of a recording medium recording the program, a data signal including the computer program and embodied in a carrier wave, and the like.
次に、本発明の実施の形態を実施例に基づいて以下の順序で説明する。
A.第1実施例:
B.第2実施例:
C.変形例:
Next, embodiments of the present invention will be described in the following order based on examples.
A. First embodiment:
B. Second embodiment:
C. Variations:
A.第1実施例:
図1は、第1実施例を適用するネットワークシステム10の概略構成を示す説明図である。ネットワークシステム10では、ビデオゲーム装置100と、パーソナルコンピュータ200と、プリントサーバ300と、ネットワークプリンタPRT3と、がローカルエリアネットワークLANを介して互いに接続されている。ビデオゲーム装置100には、USB(Universal Serial Bus)を介してプリンタPRT1が接続されている。同様に、パーソナルコンピュータ200には、プリンタPRTLが接続されており、プリントサーバ300には、プリンタPRT2が接続されている。
A. First embodiment:
FIG. 1 is an explanatory diagram showing a schematic configuration of a
プリンタPRT1〜PRT3は、これらのプリンタPRT1〜PRT3に共通する特定の共通制御コマンドCCP(例えば、「ESC/P−R」に準拠したコマンド)を受け付け、その共通制御コマンドCCPに従って印刷を行う機能を有している。これらのプリンタPRT1〜PRT3が受け付ける共通制御コマンドCCPは、プリンタPRT1〜PRT3における印刷モードを設定するためのコマンドと、プリンタPRT1〜PRT3への転送のための所定の形式の画像データ(中間画像データ)を転送するコマンドと、プリンタPRT1〜PRT3にその状態や使用可能な印刷媒体を問い合わせるコマンドと、を含んでいる。 The printers PRT1 to PRT3 have a function of receiving a specific common control command CCP (for example, a command conforming to “ESC / PR”) common to these printers PRT1 to PRT3 and performing printing according to the common control command CCP. Have. The common control commands CCP received by these printers PRT1 to PRT3 are a command for setting a print mode in the printers PRT1 to PRT3, and image data (intermediate image data) in a predetermined format for transfer to the printers PRT1 to PRT3. And a command for inquiring the printers PRT1 to PRT3 about their status and usable print media.
プリンタPRTLは、共通制御コマンドCCPとは異なる固有制御コマンドCLPを受け付ける。パーソナルコンピュータ200は、共通制御コマンドCCPを受け付け、プリンタPRTLを制御する。具体的には、パーソナルコンピュータ200は、共通制御コマンドCCPから固有制御コマンドCLPを生成し、固有制御コマンドCLPをプリンタPRTLに供給することにより、プリンタPRTLを制御する。
The printer PRTL receives a unique control command CLP that is different from the common control command CCP. The
ビデオゲーム装置100は、これらのプリンタPRT1〜PRT3とパーソナルコンピュータ200のいずれかに対して、共通制御コマンドCCPを転送する。これにより、ビデオゲーム装置100は、プリンタPRT1〜PRT3,PRTLにおける印刷モードの設定と、プリンタPRT1〜PRT3,PRTLからの種々の情報の取得と、プリンタPRT1〜PRT3,PRTLでの画像の印刷を行う。なお、ビデオゲーム装置100からプリンタPRT1〜PRT3およびパーソナルコンピュータ200に転送される共通制御コマンドCCPと、その転送方法については、後述する。
The
ビデオゲーム装置100から中間画像データを含む共通制御コマンドCCPを受け取ったプリンタPRT1〜PRT3は、予め共通制御コマンドCCPにより設定された印刷モードに基づいて、色変換処理やハーフトーン処理等の種々の処理を中間画像データに施す。プリンタPRT1〜PRT3は、各プリンタに対応する処理を中間画像データに施すことにより、プリンタPRT1〜PRT3のそれぞれが有するプリントエンジン(図示しない)に対応した印刷データを生成する。生成された印刷データは、プリントエンジンに供給され、中間画像データにより表される画像が印刷媒体上に形成される。
The printers PRT1 to PRT3 that have received the common control command CCP including the intermediate image data from the
パーソナルコンピュータ200は、プリンタPRT1〜PRT3と同様に、予め共通制御コマンドCCPにより設定された印刷モードに基づいて、色変換処理やハーフトーン処理等の種々の処理を中間画像データに施し、プリンタPRTLで印刷を行うための印刷データPDを生成する。生成された印刷データPDとプリンタPRTLを制御するための固有制御コマンドCLPをプリンタPRTLに供給することにより、中間画像データにより表される画像が印刷媒体上に形成される。
Similar to the printers PRT1 to PRT3, the
ビデオゲーム装置100からプリンタの状態や使用可能な印刷媒体を問い合わせる共通制御コマンドCCPを受け取ったプリンタPRT1〜PRT3は、その共通制御コマンドCCPの内容に応じて、プリンタPRT1〜PRT3の状態を表すステータス情報や、使用可能な印刷媒体の種類を表す媒体情報を生成する。生成されたステータス情報および媒体情報は、ビデオゲーム装置100に転送される。
The printers PRT1 to PRT3 that have received the common control command CCP inquiring about the printer status and available print media from the
パーソナルコンピュータ200は、プリンタPRT1〜PRT3と同様に、プリンタの状態や使用可能な印刷媒体を問い合わせる共通制御コマンドCCPを受け取ると、プリンタPRTLから種々の情報を取得するための固有制御コマンドCLPを生成する。そして、生成した固有制御コマンドCLPをプリンタPRTLに供給することにより、プリンタPRTLから情報を取得する。パーソナルコンピュータ200は、取得した情報に基づいて共通制御コマンドCCPに対して応答する情報を生成し、生成した情報を転送する。
Similar to the printers PRT1 to PRT3, when the
なお、このように、パーソナルコンピュータ200とプリンタPRTLを組み合わせることにより、共通制御コマンドCCPによって制御されるプリンタPRT1〜PRT3と同様に機能する。そのため、以下では、共通制御コマンドCCPを受け付けるプリンタPRT1〜PRT3と、プリンタPRTLが接続されたパーソナルコンピュータ200と、を「プリンタPRT」と総称する。
As described above, the combination of the
図2は、第1実施例におけるビデオゲーム装置100とプリンタPRTとの機能的な構成を示すブロック図である。なお、図2では、ローカルエリアネットワークLANとプリンタPRT3との間のデータの授受を仲介するプリントサーバ300(図1)の図示を省略している。
FIG. 2 is a block diagram showing a functional configuration of the
ビデオゲーム装置100は、アプリケーション1100、共通モジュール1200、およびデバイスドライバ1300としての機能を備えている。これらの機能1100,1200,1300は、ビデオゲーム装置100が有する図示しないCPUがメモリや外部記憶装置(いずれも図示しない)に格納されたプログラムを実行することにより実現される。
The
共通モジュール1200は、アプリケーション・プログラム・インタフェース(API)1210と、制御コマンド生成部1220と、データ転送部1230と、を有している。デバイスドライバ1300は、USBデバイスドライバ1310とネットワークデバイスドライバ1320とを有している。
The
USBデバイスドライバ1310は、プリンタクラスドライバ1312とUSBドライバ1314とを備えており、ビデオゲーム装置100と、USBで接続されたプリンタPRT1(図1)と、の間でのデータの授受を行う。なお、プリンタクラスドライバ1312とUSBドライバ1314との個別の機能は、本発明とは関連しないので、ここではその説明を省略する。
The
USBデバイスドライバ1310は、プリンタPRT1の接続先のUSBポートが変更された場合においても、ポートの変更に追随してプリンタPRT1とのデータの授受が可能なように構成されている。具体的には、USBデバイスドライバ1310は、USBポートに接続されたプリンタPRT1のプリンタ名を取得し、プリンタPRT1を使用する際に再度取得したプリンタ名と比較する。そして、先に取得したプリンタ名と再度取得したプリンタ名とが異なっている場合、もしくは、プリンタ名の再取得が失敗した場合、USBポートに接続されたデバイスからその名前を取得することにより、プリンタPRT1を再検索する。
The
ネットワークデバイスドライバ1320は、ネットワークソケット1322とネットワークドライバ1324とを備えており、ビデオゲーム装置100と、ローカルエリアネットワークLAN(図1)を介して接続されたプリンタPRT2,PRT3と、の間でのデータの授受を行う。なお、ネットワークソケット1322とネットワークドライバ1324との個別の機能は、本発明とは関連しないので、個々ではその説明を省略する。
The
アプリケーション1100は、プリンタPRTにより印刷される画像(印刷画像)を表す画像データGDを生成する。生成された画像データGDは、アプリケーション1100がAPI1210を呼び出すことにより、共通モジュール1200に受け渡される。なお、第1実施例では、画像データGDとしてRGBデータを使用しているが、画像データGDは、印刷画像を表す所定の形式のデータであればよく、RGBデータ以外のデータであっても良い。画像データGDとしては、例えば、YCbCrデータを用いるものとしてもよい。ただし、RGBデータは、パーソナルコンピュータやプリンタなどにおける画像処理で一般的に使用されるデータ形式であるので、画像データGDとしてRGBデータを用いるのがより好ましい。
The
アプリケーション1100は、また、API1210を呼び出すことにより、プリンタPRTの印刷モードや印刷に使用する印刷媒体を設定するプリンタ設定指示IPSや、プリンタPRTからステータス情報PSTや媒体情報SMDを取得する情報取得指示IPQ等のプリンタ制御指示を、共通モジュール1200に与える。なお、第1実施例では、情報取得指示IPQにより、ステータス情報PSTや媒体情報SMDが取得されているが、これらの情報に加え、インクの残量を表す情報を取得するものとしてもよい。
The
API1210は、受け取った画像データGDとプリンタ制御指示IPS,IPQとを制御コマンド生成部1220に供給する。制御コマンド生成部1220は、画像データGDから印刷解像度のRGB画像である中間画像データMDを生成する。制御コマンド生成部1220は、生成した中間画像データMDやプリンタ制御指示IPS,IPQを含む共通制御コマンドCCPを生成する。 The API 1210 supplies the received image data GD and printer control instructions IPS and IPQ to the control command generation unit 1220. The control command generation unit 1220 generates intermediate image data MD that is an RGB image having a print resolution from the image data GD. The control command generator 1220 generates a common control command CCP including the generated intermediate image data MD and printer control instructions IPS and IPQ.
制御コマンド生成部1220において生成された共通制御コマンドCCPは、デバイスドライバ1300に供給される。デバイスドライバ1300は、使用するプリンタの接続状態に応じて、USBデバイスドライバ1310あるいはネットワークデバイスドライバ1320を用いて供給された共通制御コマンドCCPをプリンタPRTに転送する。
The common control command CCP generated by the control command generation unit 1220 is supplied to the
図3は、制御コマンド生成部1220において生成され、デバイスドライバ1300を介してプリンタPRTに供給される共通制御コマンドCCPの一例を示す説明図である。共通制御コマンドCCPは、ヘッダ510と、クラス520と、パラメータ長530と、コマンド名540と、パラメータブロック550と、をこの順に含んでいる。
FIG. 3 is an explanatory diagram showing an example of the common control command CCP generated by the control command generator 1220 and supplied to the printer PRT via the
1バイトのヘッダ510には、転送されるデータが共通制御コマンドCCPであることを表す数値(マジックナンバ)が格納される。ヘッダ510に続く1バイトのクラス520には、その値として1文字のアルファベットが格納される。クラス520に格納される文字は、設定または取得されるパラメータの種別を指定する。4バイトのパラメータ長530は、パラメータブロック550の長さを指定する。パラメータ長530に続く4バイトのコマンド名540には、指示の内容を表す4文字のアルファベット文字列が格納される。共通制御コマンドCCPによるプリンタへの指示内容は、クラス520の値と、コマンド名540に4文字のアルファベット文字列により特定される。
The 1-byte header 510 stores a numerical value (magic number) indicating that the transferred data is a common control command CCP. In the 1-
中間画像データを転送するための共通制御コマンドCCPでは、クラス520に値「d」が格納され、コマンド名540には中間画像データを転送することを表す文字列(例えば、文字列「send」)が格納される。そして、パラメータブロック550には、中間画像データが格納される。
In the common control command CCP for transferring intermediate image data, the value “d” is stored in the
図2のプリンタPRTは、ビデオゲーム装置100から供給される共通制御コマンドCCPに情報取得指示IPQが含まれている場合、共通制御コマンドCCPに応答して、ステータス情報PSTや媒体情報SMDをビデオゲーム装置100に転送する。これらの情報PST,SMDは、デバイスドライバ1300を介して共通モジュール1200に供給される。共通モジュール1200に供給されたステータス情報PSTと媒体情報SMDは、さらに、アプリケーション1100に供給される。このように、共通モジュール1200とアプリケーション1100とに媒体情報SMDが供給されることにより、共通モジュール1200やアプリケーション1100は、印刷媒体の種類に応じて適した印刷品質を決定することができる。そのため、印刷媒体に適した印刷品質で印刷することが、容易となる。
When the information acquisition instruction IPQ is included in the common control command CCP supplied from the
プリンタPRTは、UPnP(Universal Plug and Play:UPnPは UPnP Implementers Corporationの商標)プロトコルと、LPR(Line PRinter daemon)プロトコルと、の少なくとも一方に対応している。共通モジュール1200は、後述するように、プリンタPRTがUPnPプロトコルに対応しているか否かを判断する。そして、プリンタPRTがUPnPプロトコルに対応していないと判断された場合、共通制御コマンドCCPの転送は、LPRプロトコルに従って行われる。すなわち、プリンタPRTがUPnPプロトコルとLPRプロトコルとの双方に対応している場合には、UPnPプロトコルが優先的に使用される。
The printer PRT corresponds to at least one of UPnP (Universal Plug and Play: UPnP is a trademark of UPnP Implementers Corporation) protocol and LPR (Line PRinter daemon) protocol. The
プリンタPRTがUPnPプロトコルに対応している場合、プリンタPRTは、ビデオゲーム装置100との間でUPnPプロトコルに準拠したメッセージ(UPnPメッセージ)の授受を行う。具体的には、UPnPメッセージとして、デバイスの検索(ディスカバリ)を行うためのSSDP(Simple Service Discovery Protocol)検索要求を受信し、共通制御コマンドCCPによる印刷サービスを提供可能であることを示すSSDPレスポンスを送信する。なお、SSDPレスポンスは、再送制御が行われないUDP(User Datagram Protocol)を用いて転送される。そのため、ローカルエリアネットワークLANの状態によっては、SSDPレスポンス等の再送制御が行われないメッセージは消失するおそれがある。
When the printer PRT is compatible with the UPnP protocol, the printer PRT exchanges a message (UPnP message) conforming to the UPnP protocol with the
上述のように、プリンタPRTがUPnPプロトコルに対応しておらず、LPRプロトコルにのみ対応している場合には、共通制御コマンドCCPは、LPRプロトコルに従って転送される。しかしながら、LPRプロトコルは、ステータス情報PSTや媒体情報SMDを転送する機能を有していない。そのため、共通モジュール1200は、ネットワークデバイスドライバ1320を介して、SNMP(Simple Network Management Protocol)に従ったメッセージをプリンタPRTに転送することにより、ステータス情報PSTや媒体情報SMDを取得する。ただし、ビデオゲーム装置100の共通モジュール1200が、ステータス情報PSTや媒体情報SMDを取得しないものとしてもよい。
As described above, when the printer PRT does not support the UPnP protocol but only supports the LPR protocol, the common control command CCP is transferred according to the LPR protocol. However, the LPR protocol does not have a function of transferring status information PST and medium information SMD. Therefore, the
LPRプロトコルは、また、プリンタの検索要求を転送し、転送された検索要求に応答する機能を有していない。そこで、共通モジュール1200は、UPnPプロトコルに対応していないプリンタを検索するため、ネットワークデバイスドライバ1320を介してENPC(EPSON Network Peripheral Control)プロトコルに従った検索要求メッセージ(プローブメッセージ)を転送することにより、UPnPプロトコルに対応していないプリンタの検索を行う。
The LPR protocol also has a function of transferring a printer search request and responding to the transferred search request. Therefore, the
図4は、プリンタの検索と印刷先のプリンタの選択を行う際の処理の流れを示すシーケンス図である。図5は、図4のシーケンス図に示す処理の実行中に、アプリケーション1100により表示されるユーザインタフェースの一例を示す説明図である。
FIG. 4 is a sequence diagram showing a flow of processing when searching for a printer and selecting a printer as a printing destination. FIG. 5 is an explanatory diagram showing an example of a user interface displayed by the
図5(a)は、アプリケーション1100により表示される出力先プリンタの設定画面DGPを示している。この設定画面DGPは、アプリケーション1100において、ユーザが印刷を指示した際に表示される。設定画面DGPには、ビデオゲーム装置100に直接接続されているプリンタPRT1が表示されている。ユーザが設定画面の検索ボタンBFDを操作すると、アプリケーション1100は、共通モジュール1200にプリンタの検索を要求する。
FIG. 5A shows an output destination printer setting screen DGP displayed by the
図4のステップ[A100]において、共通モジュール1200が検索要求を受け付けると、共通モジュール1200は、ステップ[C110]において、SSDP検索要求メッセージをブロードキャストすることにより、UPnPプロトコルのディスカバリを実行する。共通モジュール1200は、ステップ[C110]においてディスカバリを行うとともに、ステップ[C120]において、ENPCプロトコルのプローブメッセージをブロードキャストすることことにより、プリンタの検索を行う。
When the
プリンタPRTがUPnPプロトコルに対応している場合、プリンタPRTは、UPnPプロトコルのSSDP検索要求に応答してSSDPレスポンスメッセージを共通モジュール1200に返信する(ステップ[P110])。同様に、プリンタPRTがENPCプロトコルに対応している場合、プリンタPRTは、プローブメッセージに応答してプローブ応答メッセージを共通モジュール1200に返信する(ステップ[P120])。ステップ[C130]において、共通モジュール1200は、UPnPプロトコルとENPCプロトコルとのそれぞれの検索要求に応答してプリンタPRTから返信される応答メッセージを取得するため、所定の時間(例えば、1秒)待機する。
When the printer PRT is compatible with the UPnP protocol, the printer PRT returns an SSDP response message to the
ステップ[C130]における待機の後、共通モジュール1200は、プリンタPRTからの返信メッセージに基づいて、応答したプリンタを表す検索結果をアプリケーション1100に通知する(ステップ[C140])。また、共通モジュール1200は、ステップ[C140]における検索結果の通知とともに、応答したプリンタと、そのプリンタがUPnPプロトコルとENPCプロトコルとのいずれの返信メッセージを送信したかと、を対応づける情報を共通モジュール1200内に格納する。
After waiting in step [C130], the
図5(b)は、プリンタの検索後の設定画面DGPaを示している。図5(b)のプリンタ設定画面DGPaでは、アプリケーション1100が検索結果の通知を受けることにより、検索前のプリンタ設定画面DGPに新たに発見されたプリンタが追加されている。設定画面DGPaにおいて、ユーザが表示されたプリンタのいずれかを選択すると、図5(c)に示すように選択されたプリンタは反転表示される。
FIG. 5B shows a setting screen DGPa after searching for a printer. In the printer setting screen DGPa of FIG. 5B, when the
このようにユーザがプリンタを選択すると、図4のステップ[A200]において、アプリケーション1100は、共通モジュール1200にプリンタの選択を通知する。共通モジュール1200が選択通知を受け取ると、ステップ[C210]において、共通モジュール1200は、選択されたプリンタPRTがUPnPプロトコルの検索要求に対して応答したか否かを判断する。プリンタPRTがUPnPプロトコルの検索要求に対して応答したと判断した場合、制御はステップ[C240]に移される。一方、プリンタPRTがUPnPプロトコルの検索要求に対して応答しなかったと判断した場合、制御はステップ[C212]に移される。
When the user selects the printer in this way, the
ステップ[C212]において、共通モジュール1200は、プリンタPRTに対してSSDP検索要求メッセージをユニキャストする。具体的には、ステップ[P120]で受信したプローブ応答メッセージの送信元IPアドレスを用いて、SSDP検索要求メッセージをプリンタPRTに送信する。次いで、ステップ[C220]において、ステップ[C212]で送信したSSDP検索要求に応答するSSDPレスポンスメッセージの返信(ステップ[P212])を待機する。
In step [C212], the
ステップ[C230]において、共通モジュール1200は、選択されたプリンタPRTがUPnPプロトコルの検索要求に対して応答したか否かを判断する。プリンタPRTがUPnPプロトコルの検索要求に対して応答したと判断した場合、制御はステップ[C240]に移される。一方、プリンタPRTがUPnPプロトコルの検索要求に対して応答しなかったと判断した場合、制御はステップ[C250]に移される。
In step [C230], the
ステップ[C240]において、共通モジュール1200は、プリンタPRTへの共通制御コマンドの転送モードをUPnPプロトコルを使用するUPnPモードに設定する。一方、ステップ[C250]において、共通モジュール1200は、プリンタPRTへの共通制御コマンドの転送モードをUPnPプロトコルを使用しない非UPnPモードに設定する。
In step [C240], the
共通制御コマンドの転送モードが設定された後、ユーザが図5(c)に示す設定画面DGPb上の印刷ボタンBPRを操作すると、設定された転送モードに従って、共通制御コマンドが選択されたプリンタPRTに転送される。そして、共通制御コマンドが転送されたプリンタPRTにより、印刷が実行される。 After the common control command transfer mode is set, when the user operates the print button BPR on the setting screen DGPb shown in FIG. 5C, the common control command is transferred to the selected printer PRT according to the set transfer mode. Transferred. Then, printing is executed by the printer PRT to which the common control command is transferred.
図6は、ビデオゲーム装置100からプリンタPRTに中間画像データが転送される様子を示すシーケンス図である。図6のシーケンス図は、印刷モード等の種々の設定の後、中間画像データが転送されている状態を示している。
FIG. 6 is a sequence diagram showing how intermediate image data is transferred from the
ステップ[A300]において、アプリケーション1100は、共通モジュール1200のAPI1210(図2)を呼び出すことにより、画像データを共通モジュール1200に受け渡す。共通モジュール1200は、ステップ[C300]において、受け渡された画像データを中間画像データに変換し、中間画像データを含む共通制御コマンドを生成する。
In step [A300], the
なお、以下では、中間画像データは、5つのバンド画像データ(以下、「バンドデータ」とも呼ぶ)に分割され、各バンドデータを含む共通制御コマンドを転送することにより中間画像データが転送される。ただし、中間画像データの分割数は、必ずしも5つに限らない。中間画像データの分割数は、中間画像データの大きさによって適宜設定される。また、中間画像データを分割することなく、単一の共通制御コマンドで1ページ分の中間画像データを転送するものとしてもよい。 In the following, the intermediate image data is divided into five band image data (hereinafter also referred to as “band data”), and the intermediate image data is transferred by transferring a common control command including each band data. However, the number of divisions of the intermediate image data is not necessarily limited to five. The number of divisions of the intermediate image data is appropriately set depending on the size of the intermediate image data. Further, intermediate image data for one page may be transferred by a single common control command without dividing the intermediate image data.
ステップ[C302]において、共通モジュール1200は、第1のバンドデータをプリンタPRTに転送する。同様に、ステップ[C304],[C306]において、共通モジュール1200は、第2と第3のバンドデータをプリンタPRTに転送する。
In step [C302], the
図6の例では、ステップ[C306]における第3のバンドデータの転送時に、プリンタPRTにおいてエラーが発生している(ステップ[P310])。そのため、第3のバンドデータの転送が中止されるとともに、プリンタPRTは、ステップ[P312]において、エラーの発生を共通モジュール1200に通知する。
In the example of FIG. 6, an error has occurred in the printer PRT during the transfer of the third band data in step [C306] (step [P310]). Therefore, the transfer of the third band data is stopped, and the printer PRT notifies the
ステップ[P312]において、エラーの発生通知を受け取った共通モジュール1200は、転送が中止されたバンドデータの番号を共通モジュール1200に格納する。次いで、ステップ[C314]において、プリンタPRTにエラーの種類を問い合わせる。プリンタPRTは、ステップ[C314]の問い合わせに応答して、エラーコードを共通モジュール1200に転送する(ステップ[P314])。共通モジュール1200は、ステップ[C316]において、ステップ[P314]で受け取ったエラーコードに基づいて、プリンタPRTで発生したエラーからの復帰後に印刷の続行が可能なエラーか否かを判断する。そして、ステップ[C318]において、エラーの発生と、その印刷の続行が可能であるか否かと、をアプリケーション1100に通知する。
In step [P312], the
アプリケーション1100では、ステップ[C318]において受け取った通知に基づいて、ユーザにエラーを通知する。そして、印刷の続行が可能なエラーであった場合には、アプリケーション1100のユーザに対して、エラー復帰の後に印刷を続行するか否かを問い合わせる。
The
図6の例では、ステップ[P310]で発生したエラーは印刷の続行が可能なエラーであり、ユーザは復帰後の印刷の続行を選択している。そのため、エラー復帰処理の後、ステップ[A320]において、アプリケーション1100から画像データが共通モジュール1200に再送されている。
In the example of FIG. 6, the error that has occurred in step [P310] is an error that allows printing to continue, and the user has selected to continue printing after returning. Therefore, after the error recovery process, the image data is retransmitted from the
共通モジュール1200は、ステップ[C320]において再送された画像データから中間画像データを生成し、生成した中間画像データを5つのバンドデータに分割する。そして、ステップ[P312]におけるエラーの発生通知の受取時に共通モジュール1200に格納されたバンドデータの番号に基づいて、転送が完了していない第3のバンドデータの転送を開始し(ステップ[C322])、ステップ[C324],[C326]において、第4と第5のバンドデータをプリンタPRTに転送する。
The
プリンタPRTは、5つのバンドデータのすべてを受け取ると、ステップ[P330]において、中間画像データの受信が完了したことを共通モジュール1200に通知する。共通モジュール1200は、ステップ[P330]において受信完了の通知を受け取ると、ステップ[C330]において、中間画像データの転送が終了したことをアプリケーション1100に通知する。
Upon receiving all the five band data, the printer PRT notifies the
図7は、ビデオゲーム装置100と、共通制御コマンドCCPを受け付けるプリンタPRTとして機能するパーソナルコンピュータ200およびプリンタPRTLとの機能的な構成を示すブロック図である。パーソナルコンピュータ200は、UPnP処理部2100と、ネットワークソケット2200と、デバイスサーバ2300と、プリンタドライバ2400と、を備えている。
FIG. 7 is a block diagram showing a functional configuration of the
UPnP処理部2100は、ビデオゲーム装置100との間でUPnPメッセージの授受を行うことにより、パーソナルコンピュータ200に接続されたプリンタPRTLをUPnPプロトコルに対応したデバイスとして登録する。なお、プリンタPRTLの登録については、後述する。
The
ビデオゲーム装置100のネットワークデバイスドライバ1320は、共通制御コマンドCCPの転送先であるパーソナルコンピュータ200が、図7の例に示すようにUPnPプロトコルに対応している場合、情報取得指示IPQをUPnPプロトコルのSOAP(Simple Object Access Protocol)に従ったアクション要求(SOAPアクション要求)としてパーソナルコンピュータ200に転送する。
When the
UPnP処理部2100は、プリンタのステータス情報PSTを含むメッセージや、媒体情報SMDを含むメッセージを、ビデオゲーム装置100から転送されるSOAPアクション要求に対するレスポンスとして、ビデオゲーム装置100に転送する。ビデオゲーム装置100のネットワークデバイスドライバ1320は、SOAPアクション要求に対するレスポンスとして転送されるステータス情報PSTや媒体情報SMDを取得する。なお、データ転送部1230は、ステータス情報PSTや媒体情報SMDを表すUPnPプロトコルで転送される文字列を、USBで使用されるデータ形式に変換する。
The
ネットワークソケット2200は、UPnPプロトコルとは別のプロトコルに従ってビデオゲーム装置100との間でデータの授受を行う。ネットワークソケット2200には、中間画像データMDやプリンタ設定指示IPSがネットワークデバイスドライバ1320から転送される。
The network socket 2200 exchanges data with the
デバイスサーバ2300は、ネットワークソケット2200から供給された中間画像データMDをプリンタドライバ2400に供給する。プリンタドライバ2400は、中間画像データMDに色変換処理やハーフトーン処理等の種々の処理を施して、印刷データPDを生成する。デバイスサーバ2300は、また、UPnP処理部2100から供給された情報取得指示IPQと、ネットワークソケット2200から供給されたプリンタ設定指示IPSに基づいて、プリンタドライバ2400にプリンタPRTLを制御する固有制御コマンドCLPを生成させる。生成された印刷データPDと、固有制御コマンドCLPは、それぞれプリンタPRTLに供給される。
The
プリンタPRTLは、プリンタドライバ2400から供給される印刷データPDに基づいて印刷を実行する。これにより、印刷媒体上には、中間画像データMDにより表される画像が形成される。プリンタPRTLは、また、プリンタドライバ2400から供給される固有制御コマンドCLPに応じて、プリンタPRTLの状態を表す状態情報PLIをプリンタドライバ2400に供給する。プリンタドライバ2400に供給された状態情報PLIは、デバイスサーバ2300に転送される。デバイスサーバ2300は、状態情報PLIからステータス情報PSTと媒体情報SMDとを生成する。生成された情報PST,SMDは、UPnP処理部2100を介して、ビデオゲーム装置100のネットワークデバイスドライバ1320に供給される。
The printer PRTL executes printing based on the print data PD supplied from the
図8は、パーソナルコンピュータ200における、プリンタPRTLの登録機能と印刷ジョブの処理機能に関する構成を示すブロック図である。図8では、ビデオゲーム装置100が備えるネットワークデバイスドライバ1320(図7)の図示を省略している。
FIG. 8 is a block diagram showing a configuration related to the printer PRTL registration function and the print job processing function in the
図8に示すように、パーソナルコンピュータ200は、図7で示したUPnP処理部2100と、ネットワークソケット2200と、デバイスサーバ2300と、プリンタドライバ2400の他に、デバイス登録部2310と、共通制御コマンド解析部2320と、スプーラ2500と、を備えている。
As shown in FIG. 8, the
デバイス登録部2310は、デバイスサーバ2300が検出したプリンタ(検出プリンタ)をUPnPデバイスとして登録する。具体的には、デバイスサーバ2300から供給される検出プリンタの情報PDIに基づいて、検出プリンタをUPnPにおける標準的なプリンタとは異なる特定のUPnPデバイス(以下、「特定デバイス」とも呼ぶ)として登録する。デバイスサーバ2300が複数のプリンタを検出した場合には、個々の検出プリンタはそれぞれ別個の特定デバイスとして登録される。なお、特定デバイスを識別するためのデバイス名としては、例えば、パーソナルコンピュータ200のMACアドレスにプリンタ名を付加した名称が使用される。
The
デバイス登録部2310により検出プリンタが特定デバイスとして登録された後、UPnP処理部2100がSSDP検索要求を受信すると、UPnP処理部2100は、特定デバイスが提供するサービスとして共通制御コマンドCCPによる印刷サービスが提供可能であることを示すSSDPレスポンスを返信する。
After the detected printer is registered as a specific device by the
図8に示すパーソナルコンピュータ200は、UPnPプロトコルに対応しているので、共通モジュール1200は、UPnPモードで共通制御コマンドCCPをパーソナルコンピュータ200に転送する。上述のように、共通制御コマンドCCPのうち、中間画像データMDとプリンタ設定指示IPSとを含む共通制御コマンドCCPは、ネットワークソケット2200を介してデバイスサーバ2300に供給される。デバイスサーバ2300は、ネットワークソケット2200から供給された共通制御コマンドCCPを、共通制御コマンド解析部2320に供給する。
Since the
共通制御コマンド解析部2320は、供給された共通制御コマンドCCPを順次解析することにより用紙サイズを表す用紙サイズ情報SPAを取得する。取得された用紙サイズ情報SPAは、デバイスサーバ2300に供給される。
The common
デバイスサーバ2300は、用紙サイズ情報SPAに基づいて、1ページ分の中間画像データMDを格納する画像データ格納領域(図示しない)を確保する。そして、共通制御コマンドCCPに含まれる中間画像データMDを順次画像データ格納領域に格納する。デバイスサーバ2300は、1ページ分の中間画像データMDの取得が完了すると、中間画像データMDの大きさと用紙サイズとを比較して、用紙の周辺の画像が印刷されない領域(縁)の長さを算出する。そして、算出した縁の長さと、中間画像データMDと、をプリンタドライバ2400に供給する。このように中間画像データMDの転送はページ単位で行われるため、印刷ジョブはページ単位で生成されるのが好ましい。
The
プリンタドライバ2400は、算出した縁の長さと中間画像データMDとから印刷データPDを生成し、生成した印刷データPDをスプーラ2500に供給する。スプーラ2500は、プリンタドライバ2400から供給された印刷データPDを蓄積し、プリンタPRTLにおける印刷が可能になると、順次蓄積した印刷データPDをプリンタPRTLに転送する。
The
デバイスサーバ2300は、複数の印刷ジョブを受け付けることができるように構成されている。そして、複数の印刷ジョブのうち、所定の時間(例えば、30秒)使用されていないと判断した印刷ジョブを消去する。具体的には、デバイスサーバ2300は、受け付けた印刷ジョブのうち、情報取得指示IPQや中間画像データMDの転送が所定の時間行われていない印刷ジョブを消去対象の印刷ジョブと判断する。
The
上述のように、第1実施例では、UPnPプロトコルにおける検索要求(ディスカバリ)に対するプリンタPRTからの応答(SSDPレスポンス)がない場合、プリンタPRTを選択した際に、ENPCプロトコルにおける検索要求への応答メッセージ(プローブ応答メッセージ)の送信元(プリンタPRT)に対してSSDP検索要求を転送する。このように、SSDP検索要求を再度プリンタPRTに転送することにより、プリンタPRTがUPnPプロトコルに対応している場合、プリンタPRTからは、SSDPレスポンスが再送される。そのため、プリンタの検索を行った際にSSDPレスポンスを取得できなかったUPnPプロトコル対応のプリンタPRTに対しても、UPnPモードで共通制御コマンドCCPを転送することができるようになるので、印刷を行う際の利便性が向上する。 As described above, in the first embodiment, when there is no response (SSDP response) from the printer PRT to the search request (discovery) in the UPnP protocol, a response message to the search request in the ENPC protocol when the printer PRT is selected. The SSDP search request is transferred to the transmission source (printer PRT) of the (probe response message). In this way, by transferring the SSDP search request to the printer PRT again, if the printer PRT supports the UPnP protocol, the SSDP response is retransmitted from the printer PRT. For this reason, the common control command CCP can be transferred in the UPnP mode even to a printer PRT compatible with the UPnP protocol that cannot obtain the SSDP response when searching for the printer. Improved convenience.
B.第2実施例:
図9は、第2実施例において、プリンタの検索と印刷先のプリンタの選択を行う際の処理の流れを示すシーケンス図である。図4に示す第1実施例とは、プリンタPRTから返信されるSSDPレスポンスメッセージの受信を待機する期間が異なっている。具体的には、共通モジュール1200は、ステップ[P120]におけるENPCプロトコルのプローブ応答メッセージの受信の後、所定の時間T(例えば、1秒)が経過するか、もしくは、プリンタPRTからのSSDPレスポンスを受信する(ステップ[P110])まで待機する。言い換えれば、共通モジュール1200は、プローブ応答メッセージを受信した場合、その送信元デバイスと同一のIPアドレスを有するデバイスからのSSDPレスポンスを所定の時間Tにわたって待ち続ける。
B. Second embodiment:
FIG. 9 is a sequence diagram showing the flow of processing when searching for a printer and selecting a printer as a printing destination in the second embodiment. 4 is different from the first embodiment shown in FIG. 4 in the period of waiting for reception of the SSDP response message returned from the printer PRT. Specifically, the
通常、ENPCのプロトコル処理はUPnPのプロトコル処理よりもより簡便であるので、ENPCプロトコルのプローブ応答メッセージは、UPnPプロトコルのSSDPレスポンスよりも速やかに返信される。そのため、UPnPのプロトコル処理に時間がかかることによって、UPnPプロトコルのディスカバリ(ステップ[C110])からの経過時間が長くなり、待機時間中(ステップ[C130])にSSDPレスポンスを受け取ることが出来ない場合であっても、プローブ応答メッセージの受信から所定の時間が経過するまでSSDPレスポンスを待ち続けることにより、より確実にSSDPレスポンスを受信することができる。 Normally, the ENPC protocol process is simpler than the UPnP protocol process, and therefore the ENPC protocol probe response message is returned more quickly than the UPnP protocol SSDP response. Therefore, when the UPnP protocol processing takes time, the elapsed time from discovery of the UPnP protocol (step [C110]) becomes longer, and the SSDP response cannot be received during the standby time (step [C130]). Even so, the SSDP response can be received more reliably by continuing to wait for the SSDP response until a predetermined time has elapsed since the reception of the probe response message.
C.変形例:
なお、この発明は上記実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
C. Variations:
In addition, this invention is not restricted to the said Example and embodiment, It can implement in a various aspect in the range which does not deviate from the summary, For example, the following deformation | transformation is also possible.
C1.変形例1:
上記実施例では、本発明をビデオゲーム装置100(図1)に適用しているが、本発明はネットワークを介して接続されたプリンタを利用して印刷を行う任意の装置(「印刷クライアント」とも呼ばれる)に適用することが可能である。本発明は、印刷クライアントとしての機能が実現可能であれば、オーディオ・ビジュアル機器、情報端末、PDAや携帯電話等の携帯機器、パーソナルコンピュータ、コピー機やファックス装置等の事務機器、医療機器、制御機器などの工場用機器など、種々の装置に適用することができる。
C1. Modification 1:
In the above embodiment, the present invention is applied to the video game apparatus 100 (FIG. 1). However, the present invention can be applied to any apparatus (a “print client”) that performs printing using a printer connected via a network. Can be applied). As long as the function as a print client can be realized, the present invention is an audio / visual device, an information terminal, a portable device such as a PDA or a mobile phone, a personal computer, an office device such as a copier or a fax machine, a medical device, or a control. The present invention can be applied to various devices such as factory equipment such as equipment.
C2.変形例2:
上記実施例では、図1に示すように、ビデオゲーム装置100とプリンタPRT1、パーソナルコンピュータ200とプリンタPRTL、および、プリントサーバ300とプリンタPRT2は、USBにより接続されているが、IEEE1394やパラレルポート等、ローカルエリアネットワークLANとは異なる任意の通信チャンネルによって接続されていればよい。
C2. Modification 2:
In the above embodiment, as shown in FIG. 1, the
C3.変形例3:
上記実施例では、図1に示すプリンタPRTL(「ローカルプリンタ」とも呼ばれる)をパーソナルコンピュータ200を介してネットワークLANに接続することで、プリンタPRTLをネットワーク上で使用可能としているが、ローカルプリンタをネットワーク上で使用可能にすることができる装置(プリントサーバ)であれば、パーソナルコンピュータ200とは異なる装置を使用してローカルプリンタをネットワーク上で使用可能にすることができる。
C3. Modification 3:
In the above embodiment, the printer PRTL (also referred to as “local printer”) shown in FIG. 1 is connected to the network LAN via the
C4.変形例4:
上記実施例では、UPnPによるプリンタの再検索をプリンタの選択時に行っているが、プリンタの再検索は、プリンタを使用する前に実行されればよい。例えば、プリンタに対する印刷要求の転送に先だってプリンタの再検索を行うものとしてもよい。
C4. Modification 4:
In the above embodiment, the printer search by UPnP is performed when the printer is selected, but the printer search may be executed before using the printer. For example, the printer may be searched again prior to the transfer of the print request to the printer.
C5.変形例5:
上記実施例では、本発明をUPnPプロトコルに対応したプリンタに適用しているが、本発明は、UPnPの将来のバージョンに対応したプリンタにも適用可能である。一般に、本発明は、種々のネットワーク型プラグアンドプレイプロトコルに従ったディスカバリが可能なプリンタであれば、任意のプリンタに適用することができる。
C5. Modification 5:
In the above embodiment, the present invention is applied to a printer that supports the UPnP protocol. However, the present invention can also be applied to a printer that supports future versions of UPnP. In general, the present invention can be applied to any printer as long as it can perform discovery according to various network-type plug and play protocols.
C6.変形例6:
上記実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部をハードウェアに置き換えるようにしてもよい。
C6. Modification 6:
In the above embodiment, a part of the configuration realized by hardware may be replaced with software, and conversely, a part of the configuration realized by software may be replaced by hardware.
10…ネットワークシステム
100…ビデオゲーム装置
200…パーソナルコンピュータ
300…プリントサーバ
1100…アプリケーション
1200…共通モジュール
1210…API
1220…制御コマンド生成部
1230…データ転送部
1300…デバイスドライバ
1310…USBデバイスドライバ
1312…プリンタクラスドライバ
1314…USBドライバ
1320…ネットワークデバイスドライバ
1322…ネットワークソケット
1324…ネットワークドライバ
2100…UPnP処理部
2200…ネットワークソケット
2300…デバイスサーバ
2310…デバイス登録部
2320…共通制御コマンド解析部
2400…プリンタドライバ
2500…スプーラ
LAN…ローカルエリアネットワーク
DESCRIPTION OF
1220: Control command generation unit 1230 ...
Claims (8)
第1のネットワークプロトコルに従ってプリンタを検索する第1のプリンタ検索部と、
前記第1のネットワークプロトコルよりも使用の優先順位の高い第2のネットワークプロトコルに従ってプリンタを検索する第2のプリンタ検索部と、
前記第1のプリンタ検索部により検出され、かつ、前記第2のプリンタ検索部により検出されなかった第1プロトコル対応プリンタを、前記第2のネットワークプロトコルに従って再検索するプリンタ再検索部と、
を備え、
前記プリンタ再検索部は、前記印刷クライアントが前記第1プロトコル対応プリンタを用いて印刷を行う前に、前記再検索を実行する、
印刷クライアント。 A print client that prints using a printer connected via a network,
A first printer search unit for searching for a printer according to a first network protocol;
A second printer search unit for searching for a printer in accordance with a second network protocol having a higher priority of use than the first network protocol;
A printer re-search unit that re-searches a first protocol compatible printer that is detected by the first printer search unit and not detected by the second printer search unit according to the second network protocol;
With
The printer re-search unit executes the re-search before the print client performs printing using the first protocol compatible printer.
Print client.
前記第2のネットワークプロトコルおけるプリンタの検索に対する応答は、再送制御が行われないメッセージにより前記印刷クライアントに転送される、
印刷クライアント。 The print client according to claim 1, comprising:
The response to the printer search in the second network protocol is transferred to the print client by a message that is not subjected to retransmission control.
Print client.
前記第2のネットワークプロトコルは、ネットワーク型プラグアンドプレイのプロトコルであって、
前記第2のプリンタ検索部は、前記ネットワーク型プラグアンドプレイのプロトコルにおいて印刷サービスを提供する標準プリントデバイスとは異なる特定種類のデバイスを検索する、
印刷クライアント。 The print client according to claim 1 or 2,
The second network protocol is a network type plug and play protocol,
The second printer search unit searches for a specific type of device different from a standard print device that provides a print service in the network type plug and play protocol.
Print client.
前記第2のプリンタ検索部は、前記第1のプリンタ検索部により前記第1プロトコル対応プリンタが検出された場合、第2のネットワークプロトコルによる検索の実行から所定の待機時間を経過した後も、前記第1プロトコル対応プリンタからの応答から所定の時間が経過するまで、前記第1プロトコル対応プリンタからの前記第2のネットワークプロトコルに従った応答を待ち受ける、
印刷クライアント。 The print client according to any one of claims 1 to 3,
When the first printer search unit detects the printer compatible with the first protocol, the second printer search unit is configured to execute the search even after a predetermined waiting time has elapsed from the execution of the search using the second network protocol. Waiting for a response from the first protocol compatible printer according to the second network protocol until a predetermined time has elapsed since the response from the first protocol compatible printer;
Print client.
ネットワーク型プラグアンドプレイのプロトコルに従ったデバイスの検索要求を受け付ける検索要求受付部と、
前記検索要求受付部が受け付けた検索要求に対して、前記ローカルプリンタの存在を通知する特定デバイス存在通知部と、
を備え、
前記検索要求受付部が受け付ける前記デバイスの検索要求は、前記ネットワーク型プラグアンドプレイのプロトコルにおいて印刷サービスを提供する標準プリントデバイスとは異なる特定種類のデバイスの検索要求である、
プリントサーバ。 A print server that enables a local printer connected via a communication channel different from the network to be used on the network,
A search request accepting unit that accepts a search request for a device according to a network type plug and play protocol;
In response to the search request received by the search request reception unit, a specific device presence notification unit that notifies the presence of the local printer;
With
The search request for the device received by the search request reception unit is a search request for a specific type of device different from a standard print device that provides a print service in the network type plug and play protocol.
Print server.
前記ネットワークを介して前記ローカルプリンタにおいて印刷される画像を表す画像データを受信する画像データ受信部を備え、
前記画像データ受信部は、前記ネットワーク型プラグアンドプレイのプロトコルとは異なるネットワークプロトコルに従って前記画像データを受信する、
プリントサーバ。 The print server according to claim 5, further comprising:
An image data receiving unit for receiving image data representing an image to be printed in the local printer via the network;
The image data receiving unit receives the image data according to a network protocol different from the network type plug and play protocol;
Print server.
(a)第1のネットワークプロトコルに従ってプリンタを検索する工程と、
(b)第1のネットワークプロトコルよりも使用の優先順位の高い第2のネットワークプロトコルに従ってプリンタを検索する工程と、
(c)前記工程(a)において検出され、かつ、前記工程(b)において検出されなかった第1プロトコル対応プリンタの使用に先立って、前記第1プロトコル対応プリンタを前記第2のネットワークプロトコルに従って再検索する工程と、
を備える、
プリンタ検索方法。 A printer search method for searching for a printer connected via a network,
(A) searching for a printer according to a first network protocol;
(B) searching for a printer according to a second network protocol having a higher priority of use than the first network protocol;
(C) Prior to use of the first protocol compatible printer that was detected in step (a) but not detected in step (b), the first protocol compatible printer is re-established according to the second network protocol. Searching, and
Comprising
Printer search method.
(a)ネットワーク型プラグアンドプレイのプロトコルに従ったデバイスの検索要求を受け付ける工程と、
(b)前記工程(a)において受け付けた検索要求に対して、前記ローカルプリンタの存在を通知する工程と、
を備え、
前記工程(a)は、前記ネットワーク型プラグアンドプレイのプロトコルにおいて印刷サービスを提供する標準プリントデバイスとは異なる特定種類のデバイスの検索要求を受け付ける、
プリントサービス提供方法。 A print service providing method for enabling a local printer connected via a communication channel different from a network to be used on the network,
(A) receiving a device search request according to a network type plug and play protocol;
(B) a step of notifying the presence of the local printer in response to the search request received in the step (a);
With
The step (a) accepts a search request for a specific type of device different from a standard print device that provides a print service in the network type plug and play protocol.
How to provide print service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007193077A JP4877127B2 (en) | 2007-07-25 | 2007-07-25 | Print client and printer search method. |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007193077A JP4877127B2 (en) | 2007-07-25 | 2007-07-25 | Print client and printer search method. |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009031899A true JP2009031899A (en) | 2009-02-12 |
JP4877127B2 JP4877127B2 (en) | 2012-02-15 |
Family
ID=40402363
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007193077A Active JP4877127B2 (en) | 2007-07-25 | 2007-07-25 | Print client and printer search method. |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4877127B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010239462A (en) * | 2009-03-31 | 2010-10-21 | Canon Inc | Information processing apparatus, information processing method, and program |
JP2015114842A (en) * | 2013-12-11 | 2015-06-22 | キヤノン株式会社 | Information processing device, control method thereof, and program |
EP3098705B1 (en) * | 2015-05-29 | 2021-03-03 | Canon Kabushiki Kaisha | Information processing apparatus, control method of information processing apparatus, and computer program |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10308790A (en) * | 1997-05-09 | 1998-11-17 | Canon Inc | Information processor, information processing method and information processing system |
JPH1141317A (en) * | 1997-07-17 | 1999-02-12 | Nec Eng Ltd | Method and system for controlling protocol |
JP2004248072A (en) * | 2003-02-14 | 2004-09-02 | Toshiba Corp | Device, system, method and program for providing service, and device, method and program for using service |
JP2005157612A (en) * | 2003-11-25 | 2005-06-16 | Canon Inc | Information processor and network device management method |
JP2005309617A (en) * | 2004-04-19 | 2005-11-04 | Canon Inc | Network device management device, its control method, computer program and copy readable storage medium |
-
2007
- 2007-07-25 JP JP2007193077A patent/JP4877127B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10308790A (en) * | 1997-05-09 | 1998-11-17 | Canon Inc | Information processor, information processing method and information processing system |
JPH1141317A (en) * | 1997-07-17 | 1999-02-12 | Nec Eng Ltd | Method and system for controlling protocol |
JP2004248072A (en) * | 2003-02-14 | 2004-09-02 | Toshiba Corp | Device, system, method and program for providing service, and device, method and program for using service |
JP2005157612A (en) * | 2003-11-25 | 2005-06-16 | Canon Inc | Information processor and network device management method |
JP2005309617A (en) * | 2004-04-19 | 2005-11-04 | Canon Inc | Network device management device, its control method, computer program and copy readable storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010239462A (en) * | 2009-03-31 | 2010-10-21 | Canon Inc | Information processing apparatus, information processing method, and program |
JP2015114842A (en) * | 2013-12-11 | 2015-06-22 | キヤノン株式会社 | Information processing device, control method thereof, and program |
US10069923B2 (en) | 2013-12-11 | 2018-09-04 | Canon Kabushiki Kaisha | Information processing apparatus, control method therefor and computer-readable storage medium |
EP3098705B1 (en) * | 2015-05-29 | 2021-03-03 | Canon Kabushiki Kaisha | Information processing apparatus, control method of information processing apparatus, and computer program |
Also Published As
Publication number | Publication date |
---|---|
JP4877127B2 (en) | 2012-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9413591B2 (en) | Network Management | |
US9213514B2 (en) | Non-transitory computer-readable medium, communication relaying method, information processing apparatus, and image processing apparatus | |
JP3754974B2 (en) | Network printer control method, network printer control apparatus, and program | |
JP2006270193A (en) | Image forming system and method, and image forming apparatus | |
US9088488B2 (en) | Information processing apparatus, control method therefor, image processing apparatus, and control method therefor | |
JP6402638B2 (en) | Image forming system, image forming apparatus, image forming method, and program | |
JP2010239462A (en) | Information processing apparatus, information processing method, and program | |
US9019529B2 (en) | Print server and control method for facilitating printing with an unregistered device | |
JP5879987B2 (en) | Information processing apparatus, information processing apparatus control method, control program, and image forming system | |
US20110138081A1 (en) | Network-connected apparatus and network connection method | |
JP5929107B2 (en) | Information processing program, information processing apparatus, and information processing apparatus control method | |
KR101337151B1 (en) | Information processing apparatus that identifies transmission source, and control method therefor | |
JP5882855B2 (en) | Method, system and program for protecting a host device | |
JP4877127B2 (en) | Print client and printer search method. | |
US8761615B2 (en) | Image forming apparatus, host device and print controlling method | |
JP2009284410A (en) | Information processing apparatus, method for controlling thereof and computer program | |
JP2023016993A (en) | Information processing device and information processing method | |
US10901666B2 (en) | Method of controlling information processing device that responds to search request, information processing device, and program storage medium | |
JP2014238790A (en) | Communication system, information communication terminal, and information processing apparatus | |
JP5845826B2 (en) | Information processing program, information processing apparatus, and information processing apparatus control method | |
US20190215255A1 (en) | Communication apparatus, control method, and storage medium | |
JP6477108B2 (en) | Image forming apparatus, image forming system, and program | |
JP4720708B2 (en) | Printing apparatus and printing method | |
KR20140130855A (en) | Printing device connected to a printer by a network and method for controlling the same | |
JP2002023983A (en) | Network terminal device and network system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20091021 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20091105 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20091113 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110817 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110830 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110908 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20111101 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20111114 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4877127 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141209 Year of fee payment: 3 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |