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 PDF

Info

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
print
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
Application number
JP2007193077A
Other languages
Japanese (ja)
Other versions
JP4877127B2 (en
Inventor
Tsutomu Otani
勤 大谷
Yasuhiro Arai
康博 荒井
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007193077A priority Critical patent/JP4877127B2/en
Publication of JP2009031899A publication Critical patent/JP2009031899A/en
Application granted granted Critical
Publication of JP4877127B2 publication Critical patent/JP4877127B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To more surely detect a printer corresponding to a specific protocol. <P>SOLUTION: A print client performs printing by using a printer connected through a network. This print client is provided with a first printer search part for searching a printer according to a first network protocol and a second printer search part for searching the printer according to a second network protocol whose use priority order is higher than that of the first network protocol. The print client is provided with a printer re-search part for re-searching a first protocol compatible printer according to a second network protocol prior to printing by the first protocol compatible printer detected by the first search part, and not detected by the second printer search part. <P>COPYRIGHT: (C)2009,JPO&INPIT

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.

特開2003−8610号公報JP 2003-8610 A 特開2005−311773号公報JP-A-2005-311773 特開2006−302165号公報JP 2006-302165 A

しかしながら、検索要求と検索要求に対する応答は、通常、再送制御が行われない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 network system 10 to which the first embodiment is applied. In the network system 10, a video game apparatus 100, a personal computer 200, a print server 300, and a network printer PRT3 are connected to each other via a local area network LAN. A printer PRT1 is connected to the video game apparatus 100 via a USB (Universal Serial Bus). Similarly, a printer PRTL is connected to the personal computer 200, and a printer PR2 is connected to the print server 300.

プリンタ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 personal computer 200 receives the common control command CCP and controls the printer PRTL. Specifically, the personal computer 200 generates a unique control command CLP from the common control command CCP, and supplies the unique control command CLP to the printer PRTL, thereby controlling the printer PRTL.

ビデオゲーム装置100は、これらのプリンタPRT1〜PRT3とパーソナルコンピュータ200のいずれかに対して、共通制御コマンドCCPを転送する。これにより、ビデオゲーム装置100は、プリンタPRT1〜PRT3,PRTLにおける印刷モードの設定と、プリンタPRT1〜PRT3,PRTLからの種々の情報の取得と、プリンタPRT1〜PRT3,PRTLでの画像の印刷を行う。なお、ビデオゲーム装置100からプリンタPRT1〜PRT3およびパーソナルコンピュータ200に転送される共通制御コマンドCCPと、その転送方法については、後述する。   The video game apparatus 100 transfers the common control command CCP to any one of these printers PRT1 to PRT3 and the personal computer 200. As a result, the video game apparatus 100 sets the print mode in the printers PRT1 to PRT3 and PRTL, acquires various information from the printers PRT1 to PRT3 and PRTL, and prints images on the printers PRT1 to PRT3 and PRTL. . The common control command CCP transferred from the video game apparatus 100 to the printers PRT1 to PRT3 and the personal computer 200 and the transfer method will be described later.

ビデオゲーム装置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 video game apparatus 100 perform various processes such as a color conversion process and a halftone process based on the print mode set in advance by the common control command CCP. Is applied to the intermediate image data. The printers PRT1 to PRT3 perform processing corresponding to each printer on the intermediate image data, thereby generating print data corresponding to a print engine (not shown) included in each of the printers PRT1 to PRT3. The generated print data is supplied to the print engine, and an image represented by the intermediate image data is formed on the print medium.

パーソナルコンピュータ200は、プリンタPRT1〜PRT3と同様に、予め共通制御コマンドCCPにより設定された印刷モードに基づいて、色変換処理やハーフトーン処理等の種々の処理を中間画像データに施し、プリンタPRTLで印刷を行うための印刷データPDを生成する。生成された印刷データPDとプリンタPRTLを制御するための固有制御コマンドCLPをプリンタPRTLに供給することにより、中間画像データにより表される画像が印刷媒体上に形成される。   Similar to the printers PRT1 to PRT3, the personal computer 200 performs various processing such as color conversion processing and halftone processing on the intermediate image data based on the printing mode set in advance by the common control command CCP. Print data PD for printing is generated. By supplying the generated print data PD and a unique control command CLP for controlling the printer PRTL to the printer PRTL, an image represented by the intermediate image data is formed on the print medium.

ビデオゲーム装置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 video game apparatus 100, according to the content of the common control command CCP, status information indicating the status of the printers PRT1 to PRT3. Or medium information indicating the type of print medium that can be used. The generated status information and medium information are transferred to the video game apparatus 100.

パーソナルコンピュータ200は、プリンタPRT1〜PRT3と同様に、プリンタの状態や使用可能な印刷媒体を問い合わせる共通制御コマンドCCPを受け取ると、プリンタPRTLから種々の情報を取得するための固有制御コマンドCLPを生成する。そして、生成した固有制御コマンドCLPをプリンタPRTLに供給することにより、プリンタPRTLから情報を取得する。パーソナルコンピュータ200は、取得した情報に基づいて共通制御コマンドCCPに対して応答する情報を生成し、生成した情報を転送する。   Similar to the printers PRT1 to PRT3, when the personal computer 200 receives the common control command CCP inquiring about the printer status and usable print media, the personal computer 200 generates a unique control command CLP for acquiring various information from the printer PRTL. . Then, by supplying the generated unique control command CLP to the printer PRTL, information is acquired from the printer PRTL. The personal computer 200 generates information that responds to the common control command CCP based on the acquired information, and transfers the generated information.

なお、このように、パーソナルコンピュータ200とプリンタPRTLを組み合わせることにより、共通制御コマンドCCPによって制御されるプリンタPRT1〜PRT3と同様に機能する。そのため、以下では、共通制御コマンドCCPを受け付けるプリンタPRT1〜PRT3と、プリンタPRTLが接続されたパーソナルコンピュータ200と、を「プリンタPRT」と総称する。   As described above, the combination of the personal computer 200 and the printer PRTL functions in the same manner as the printers PRT1 to PRT3 controlled by the common control command CCP. Therefore, hereinafter, the printers PRT1 to PRT3 that receive the common control command CCP and the personal computer 200 to which the printer PRTL is connected are collectively referred to as “printer PRT”.

図2は、第1実施例におけるビデオゲーム装置100とプリンタPRTとの機能的な構成を示すブロック図である。なお、図2では、ローカルエリアネットワークLANとプリンタPRT3との間のデータの授受を仲介するプリントサーバ300(図1)の図示を省略している。   FIG. 2 is a block diagram showing a functional configuration of the video game apparatus 100 and the printer PRT in the first embodiment. In FIG. 2, the illustration of the print server 300 (FIG. 1) that mediates exchange of data between the local area network LAN and the printer PRT3 is omitted.

ビデオゲーム装置100は、アプリケーション1100、共通モジュール1200、およびデバイスドライバ1300としての機能を備えている。これらの機能1100,1200,1300は、ビデオゲーム装置100が有する図示しないCPUがメモリや外部記憶装置(いずれも図示しない)に格納されたプログラムを実行することにより実現される。   The video game apparatus 100 has functions as an application 1100, a common module 1200, and a device driver 1300. These functions 1100, 1200, and 1300 are realized when a CPU (not shown) included in the video game apparatus 100 executes a program stored in a memory or an external storage device (all not shown).

共通モジュール1200は、アプリケーション・プログラム・インタフェース(API)1210と、制御コマンド生成部1220と、データ転送部1230と、を有している。デバイスドライバ1300は、USBデバイスドライバ1310とネットワークデバイスドライバ1320とを有している。   The common module 1200 includes an application program interface (API) 1210, a control command generation unit 1220, and a data transfer unit 1230. The device driver 1300 includes a USB device driver 1310 and a network device driver 1320.

USBデバイスドライバ1310は、プリンタクラスドライバ1312とUSBドライバ1314とを備えており、ビデオゲーム装置100と、USBで接続されたプリンタPRT1(図1)と、の間でのデータの授受を行う。なお、プリンタクラスドライバ1312とUSBドライバ1314との個別の機能は、本発明とは関連しないので、ここではその説明を省略する。   The USB device driver 1310 includes a printer class driver 1312 and a USB driver 1314, and exchanges data between the video game apparatus 100 and the printer PRT1 (FIG. 1) connected via USB. Note that the individual functions of the printer class driver 1312 and the USB driver 1314 are not related to the present invention, and thus description thereof is omitted here.

USBデバイスドライバ1310は、プリンタPRT1の接続先のUSBポートが変更された場合においても、ポートの変更に追随してプリンタPRT1とのデータの授受が可能なように構成されている。具体的には、USBデバイスドライバ1310は、USBポートに接続されたプリンタPRT1のプリンタ名を取得し、プリンタPRT1を使用する際に再度取得したプリンタ名と比較する。そして、先に取得したプリンタ名と再度取得したプリンタ名とが異なっている場合、もしくは、プリンタ名の再取得が失敗した場合、USBポートに接続されたデバイスからその名前を取得することにより、プリンタPRT1を再検索する。   The USB device driver 1310 is configured to be able to exchange data with the printer PRT1 following the port change even when the USB port to which the printer PRT1 is connected is changed. Specifically, the USB device driver 1310 acquires the printer name of the printer PRT1 connected to the USB port, and compares it with the printer name acquired again when using the printer PRT1. If the printer name acquired earlier is different from the printer name acquired again, or if re-acquisition of the printer name fails, the printer name is acquired from the device connected to the USB port. Re-search PRT1.

ネットワークデバイスドライバ1320は、ネットワークソケット1322とネットワークドライバ1324とを備えており、ビデオゲーム装置100と、ローカルエリアネットワークLAN(図1)を介して接続されたプリンタPRT2,PRT3と、の間でのデータの授受を行う。なお、ネットワークソケット1322とネットワークドライバ1324との個別の機能は、本発明とは関連しないので、個々ではその説明を省略する。   The network device driver 1320 includes a network socket 1322 and a network driver 1324. Data between the video game apparatus 100 and printers PRT2 and PRT3 connected via the local area network LAN (FIG. 1). Give and receive. Note that the individual functions of the network socket 1322 and the network driver 1324 are not related to the present invention, and thus the description thereof is omitted individually.

アプリケーション1100は、プリンタPRTにより印刷される画像(印刷画像)を表す画像データGDを生成する。生成された画像データGDは、アプリケーション1100がAPI1210を呼び出すことにより、共通モジュール1200に受け渡される。なお、第1実施例では、画像データGDとしてRGBデータを使用しているが、画像データGDは、印刷画像を表す所定の形式のデータであればよく、RGBデータ以外のデータであっても良い。画像データGDとしては、例えば、YCbCrデータを用いるものとしてもよい。ただし、RGBデータは、パーソナルコンピュータやプリンタなどにおける画像処理で一般的に使用されるデータ形式であるので、画像データGDとしてRGBデータを用いるのがより好ましい。   The application 1100 generates image data GD representing an image (print image) printed by the printer PRT. The generated image data GD is transferred to the common module 1200 when the application 1100 calls the API 1210. In the first embodiment, RGB data is used as the image data GD. However, the image data GD may be data in a predetermined format representing a print image, and may be data other than RGB data. . For example, YCbCr data may be used as the image data GD. However, since RGB data is a data format generally used in image processing in a personal computer, a printer, or the like, it is more preferable to use RGB data as the image data GD.

アプリケーション1100は、また、API1210を呼び出すことにより、プリンタPRTの印刷モードや印刷に使用する印刷媒体を設定するプリンタ設定指示IPSや、プリンタPRTからステータス情報PSTや媒体情報SMDを取得する情報取得指示IPQ等のプリンタ制御指示を、共通モジュール1200に与える。なお、第1実施例では、情報取得指示IPQにより、ステータス情報PSTや媒体情報SMDが取得されているが、これらの情報に加え、インクの残量を表す情報を取得するものとしてもよい。   The application 1100 also calls the API 1210 to set a printer setting instruction IPS for setting a printing mode of the printer PRT and a printing medium used for printing, and an information acquisition instruction IPQ for acquiring status information PST and medium information SMD from the printer PRT. Are given to the common module 1200. In the first embodiment, the status information PST and the medium information SMD are acquired by the information acquisition instruction IPQ. However, in addition to these information, information indicating the remaining amount of ink may be acquired.

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 device driver 1300. The device driver 1300 transfers the common control command CCP supplied using the USB device driver 1310 or the network device driver 1320 to the printer PRT according to the connection state of the printer to be used.

図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 device driver 1300. The common control command CCP includes a header 510, a class 520, a parameter length 530, a command name 540, and a parameter block 550 in this order.

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-byte class 520 following the header 510, a one-character alphabet is stored as its value. Characters stored in class 520 specify the type of parameter to be set or obtained. The 4-byte parameter length 530 specifies the length of the parameter block 550. A 4-byte command name 540 following the parameter length 530 stores a 4-character alphabet character string indicating the content of the instruction. The instruction content to the printer by the common control command CCP is specified by a value of class 520 and a 4-character alphabet character string in the command name 540.

中間画像データを転送するための共通制御コマンドCCPでは、クラス520に値「d」が格納され、コマンド名540には中間画像データを転送することを表す文字列(例えば、文字列「send」)が格納される。そして、パラメータブロック550には、中間画像データが格納される。   In the common control command CCP for transferring intermediate image data, the value “d” is stored in the class 520, and the command name 540 is a character string indicating transfer of the intermediate image data (for example, the character string “send”). Is stored. The parameter block 550 stores intermediate image data.

図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 video game apparatus 100, the printer PRT in FIG. 2 receives the status information PST and the medium information SMD in response to the common control command CCP. Transfer to device 100. The information PST and SMD are supplied to the common module 1200 via the device driver 1300. The status information PST and medium information SMD supplied to the common module 1200 are further supplied to the application 1100. Thus, by supplying the medium information SMD to the common module 1200 and the application 1100, the common module 1200 and the application 1100 can determine a print quality suitable for the type of print medium. Therefore, it becomes easy to print with the print quality suitable for the print medium.

プリンタ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 common module 1200 determines whether or not the printer PRT is compatible with the UPnP protocol, as will be described later. When it is determined that the printer PRT does not support the UPnP protocol, the common control command CCP is transferred according to the LPR protocol. That is, when the printer PRT is compatible with both the UPnP protocol and the LPR protocol, the UPnP protocol is preferentially used.

プリンタ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 video game apparatus 100. Specifically, as a UPnP message, an SSDP (Simple Service Discovery Protocol) search request for performing device search (discovery) is received, and an SSDP response indicating that a print service by the common control command CCP can be provided Send. The SSDP response is transferred using UDP (User Datagram Protocol) without retransmission control. For this reason, depending on the state of the local area network LAN, a message that is not subjected to retransmission control such as an SSDP response may be lost.

上述のように、プリンタ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 common module 1200 acquires status information PST and medium information SMD by transferring a message according to SNMP (Simple Network Management Protocol) to the printer PRT via the network device driver 1320. However, the common module 1200 of the video game apparatus 100 may not acquire the status information PST and the medium information SMD.

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 common module 1200 transfers a search request message (probe message) according to the ENPC (EPSON Network Peripheral Control) protocol via the network device driver 1320 in order to search for a printer that does not support the UPnP protocol. The printer that does not support the UPnP protocol is searched.

図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 application 1100 during execution of the processing shown in the sequence diagram of FIG.

図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 application 1100. This setting screen DGP is displayed when the user instructs printing in the application 1100. On the setting screen DGP, a printer PRT1 directly connected to the video game apparatus 100 is displayed. When the user operates the search button BFD on the setting screen, the application 1100 requests the common module 1200 to search for a printer.

図4のステップ[A100]において、共通モジュール1200が検索要求を受け付けると、共通モジュール1200は、ステップ[C110]において、SSDP検索要求メッセージをブロードキャストすることにより、UPnPプロトコルのディスカバリを実行する。共通モジュール1200は、ステップ[C110]においてディスカバリを行うとともに、ステップ[C120]において、ENPCプロトコルのプローブメッセージをブロードキャストすることことにより、プリンタの検索を行う。   When the common module 1200 receives a search request in step [A100] of FIG. 4, the common module 1200 performs discovery of the UPnP protocol by broadcasting an SSDP search request message in step [C110]. The common module 1200 performs discovery in step [C110] and searches for a printer by broadcasting a probe message of the ENPC protocol in step [C120].

プリンタ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 common module 1200 in response to the SSDP search request of the UPnP protocol (step [P110]). Similarly, if the printer PRT is compatible with the ENPC protocol, the printer PRT returns a probe response message to the common module 1200 in response to the probe message (step [P120]). In step [C130], the common module 1200 waits for a predetermined time (for example, 1 second) in order to obtain a response message returned from the printer PRT in response to each search request of the UPnP protocol and the ENPC protocol. .

ステップ[C130]における待機の後、共通モジュール1200は、プリンタPRTからの返信メッセージに基づいて、応答したプリンタを表す検索結果をアプリケーション1100に通知する(ステップ[C140])。また、共通モジュール1200は、ステップ[C140]における検索結果の通知とともに、応答したプリンタと、そのプリンタがUPnPプロトコルとENPCプロトコルとのいずれの返信メッセージを送信したかと、を対応づける情報を共通モジュール1200内に格納する。   After waiting in step [C130], the common module 1200 notifies the application 1100 of a search result representing the responding printer based on the reply message from the printer PRT (step [C140]). Further, the common module 1200 notifies the search result in step [C140], and also associates information associating the responding printer with which reply message of the UPnP protocol or the ENPC protocol is transmitted by the printer. Store in.

図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 application 1100 receives a notification of the search result, a newly discovered printer is added to the printer setting screen DGP before the search. When the user selects one of the displayed printers on the setting screen DGPa, the selected printer is highlighted as shown in FIG.

このようにユーザがプリンタを選択すると、図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 application 1100 notifies the common module 1200 of the printer selection in step [A200] in FIG. When the common module 1200 receives the selection notification, in step [C210], the common module 1200 determines whether or not the selected printer PRT has responded to the UPnP protocol search request. If it is determined that the printer PRT has responded to the UPnP protocol search request, control is transferred to step [C240]. On the other hand, if it is determined that the printer PRT has not responded to the UPnP protocol search request, control is transferred to step [C212].

ステップ[C212]において、共通モジュール1200は、プリンタPRTに対してSSDP検索要求メッセージをユニキャストする。具体的には、ステップ[P120]で受信したプローブ応答メッセージの送信元IPアドレスを用いて、SSDP検索要求メッセージをプリンタPRTに送信する。次いで、ステップ[C220]において、ステップ[C212]で送信したSSDP検索要求に応答するSSDPレスポンスメッセージの返信(ステップ[P212])を待機する。   In step [C212], the common module 1200 unicasts an SSDP search request message to the printer PRT. Specifically, the SSDP search request message is transmitted to the printer PRT using the source IP address of the probe response message received in step [P120]. Next, in step [C220], a reply of the SSDP response message in response to the SSDP search request transmitted in step [C212] (step [P212]) is waited.

ステップ[C230]において、共通モジュール1200は、選択されたプリンタPRTがUPnPプロトコルの検索要求に対して応答したか否かを判断する。プリンタPRTがUPnPプロトコルの検索要求に対して応答したと判断した場合、制御はステップ[C240]に移される。一方、プリンタPRTがUPnPプロトコルの検索要求に対して応答しなかったと判断した場合、制御はステップ[C250]に移される。   In step [C230], the common module 1200 determines whether or not the selected printer PRT has responded to the UPnP protocol search request. If it is determined that the printer PRT has responded to the UPnP protocol search request, control is transferred to step [C240]. On the other hand, if it is determined that the printer PRT has not responded to the UPnP protocol search request, control is transferred to step [C250].

ステップ[C240]において、共通モジュール1200は、プリンタPRTへの共通制御コマンドの転送モードをUPnPプロトコルを使用するUPnPモードに設定する。一方、ステップ[C250]において、共通モジュール1200は、プリンタPRTへの共通制御コマンドの転送モードをUPnPプロトコルを使用しない非UPnPモードに設定する。   In step [C240], the common module 1200 sets the transfer mode of the common control command to the printer PRT to the UPnP mode using the UPnP protocol. On the other hand, in step [C250], the common module 1200 sets the transfer mode of the common control command to the printer PRT to the non-UPnP mode that does not use the UPnP protocol.

共通制御コマンドの転送モードが設定された後、ユーザが図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 video game apparatus 100 to the printer PRT. The sequence diagram of FIG. 6 shows a state in which intermediate image data is transferred after various settings such as a print mode.

ステップ[A300]において、アプリケーション1100は、共通モジュール1200のAPI1210(図2)を呼び出すことにより、画像データを共通モジュール1200に受け渡す。共通モジュール1200は、ステップ[C300]において、受け渡された画像データを中間画像データに変換し、中間画像データを含む共通制御コマンドを生成する。   In step [A300], the application 1100 passes the image data to the common module 1200 by calling the API 1210 (FIG. 2) of the common module 1200. In step [C300], the common module 1200 converts the received image data into intermediate image data, and generates a common control command including the intermediate image data.

なお、以下では、中間画像データは、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 common module 1200 transfers the first band data to the printer PRT. Similarly, in steps [C304] and [C306], the common module 1200 transfers the second and third band data to the printer PRT.

図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 common module 1200 of the occurrence of an error in step [P312].

ステップ[P312]において、エラーの発生通知を受け取った共通モジュール1200は、転送が中止されたバンドデータの番号を共通モジュール1200に格納する。次いで、ステップ[C314]において、プリンタPRTにエラーの種類を問い合わせる。プリンタPRTは、ステップ[C314]の問い合わせに応答して、エラーコードを共通モジュール1200に転送する(ステップ[P314])。共通モジュール1200は、ステップ[C316]において、ステップ[P314]で受け取ったエラーコードに基づいて、プリンタPRTで発生したエラーからの復帰後に印刷の続行が可能なエラーか否かを判断する。そして、ステップ[C318]において、エラーの発生と、その印刷の続行が可能であるか否かと、をアプリケーション1100に通知する。   In step [P312], the common module 1200 that has received the error occurrence notification stores in the common module 1200 the number of the band data whose transfer has been stopped. Next, in step [C314], the printer PRT is inquired about the type of error. In response to the inquiry at Step [C314], the printer PRT transfers the error code to the common module 1200 (Step [P314]). In step [C316], the common module 1200 determines based on the error code received in step [P314] whether or not the error can be continued after returning from the error generated in the printer PRT. In step [C318], the application 1100 is notified of the occurrence of an error and whether or not the printing can be continued.

アプリケーション1100では、ステップ[C318]において受け取った通知に基づいて、ユーザにエラーを通知する。そして、印刷の続行が可能なエラーであった場合には、アプリケーション1100のユーザに対して、エラー復帰の後に印刷を続行するか否かを問い合わせる。   The application 1100 notifies the user of an error based on the notification received in step [C318]. If the error is such that printing can be continued, the user of the application 1100 is inquired whether or not to continue printing after returning from the error.

図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 application 1100 to the common module 1200 in step [A320].

共通モジュール1200は、ステップ[C320]において再送された画像データから中間画像データを生成し、生成した中間画像データを5つのバンドデータに分割する。そして、ステップ[P312]におけるエラーの発生通知の受取時に共通モジュール1200に格納されたバンドデータの番号に基づいて、転送が完了していない第3のバンドデータの転送を開始し(ステップ[C322])、ステップ[C324],[C326]において、第4と第5のバンドデータをプリンタPRTに転送する。   The common module 1200 generates intermediate image data from the image data retransmitted in step [C320], and divides the generated intermediate image data into five band data. Then, based on the band data number stored in the common module 1200 when the error occurrence notification is received in step [P312], transfer of the third band data that has not been completed is started (step [C322] In steps [C324] and [C326], the fourth and fifth band data are transferred to the printer PRT.

プリンタPRTは、5つのバンドデータのすべてを受け取ると、ステップ[P330]において、中間画像データの受信が完了したことを共通モジュール1200に通知する。共通モジュール1200は、ステップ[P330]において受信完了の通知を受け取ると、ステップ[C330]において、中間画像データの転送が終了したことをアプリケーション1100に通知する。   Upon receiving all the five band data, the printer PRT notifies the common module 1200 that the reception of the intermediate image data is completed in step [P330]. When the common module 1200 receives the notification of reception completion in step [P330], the common module 1200 notifies the application 1100 that the transfer of the intermediate image data is completed in step [C330].

図7は、ビデオゲーム装置100と、共通制御コマンドCCPを受け付けるプリンタPRTとして機能するパーソナルコンピュータ200およびプリンタPRTLとの機能的な構成を示すブロック図である。パーソナルコンピュータ200は、UPnP処理部2100と、ネットワークソケット2200と、デバイスサーバ2300と、プリンタドライバ2400と、を備えている。   FIG. 7 is a block diagram showing a functional configuration of the video game apparatus 100 and the personal computer 200 and printer PRTL that function as the printer PRT that receives the common control command CCP. The personal computer 200 includes a UPnP processing unit 2100, a network socket 2200, a device server 2300, and a printer driver 2400.

UPnP処理部2100は、ビデオゲーム装置100との間でUPnPメッセージの授受を行うことにより、パーソナルコンピュータ200に接続されたプリンタPRTLをUPnPプロトコルに対応したデバイスとして登録する。なお、プリンタPRTLの登録については、後述する。   The UPnP processing unit 2100 registers the printer PRTL connected to the personal computer 200 as a device compatible with the UPnP protocol by exchanging UPnP messages with the video game apparatus 100. The registration of the printer PRTL will be described later.

ビデオゲーム装置100のネットワークデバイスドライバ1320は、共通制御コマンドCCPの転送先であるパーソナルコンピュータ200が、図7の例に示すようにUPnPプロトコルに対応している場合、情報取得指示IPQをUPnPプロトコルのSOAP(Simple Object Access Protocol)に従ったアクション要求(SOAPアクション要求)としてパーソナルコンピュータ200に転送する。   When the personal computer 200 to which the common control command CCP is transferred corresponds to the UPnP protocol as shown in the example of FIG. 7, the network device driver 1320 of the video game apparatus 100 sends an information acquisition instruction IPQ to the UPnP protocol. The request is transferred to the personal computer 200 as an action request (SOAP action request) according to SOAP (Simple Object Access Protocol).

UPnP処理部2100は、プリンタのステータス情報PSTを含むメッセージや、媒体情報SMDを含むメッセージを、ビデオゲーム装置100から転送されるSOAPアクション要求に対するレスポンスとして、ビデオゲーム装置100に転送する。ビデオゲーム装置100のネットワークデバイスドライバ1320は、SOAPアクション要求に対するレスポンスとして転送されるステータス情報PSTや媒体情報SMDを取得する。なお、データ転送部1230は、ステータス情報PSTや媒体情報SMDを表すUPnPプロトコルで転送される文字列を、USBで使用されるデータ形式に変換する。   The UPnP processing unit 2100 transfers a message including the printer status information PST and a message including the medium information SMD to the video game apparatus 100 as a response to the SOAP action request transferred from the video game apparatus 100. The network device driver 1320 of the video game apparatus 100 acquires status information PST and medium information SMD transferred as a response to the SOAP action request. The data transfer unit 1230 converts a character string transferred by the UPnP protocol representing the status information PST and the medium information SMD into a data format used by the USB.

ネットワークソケット2200は、UPnPプロトコルとは別のプロトコルに従ってビデオゲーム装置100との間でデータの授受を行う。ネットワークソケット2200には、中間画像データMDやプリンタ設定指示IPSがネットワークデバイスドライバ1320から転送される。   The network socket 2200 exchanges data with the video game apparatus 100 according to a protocol different from the UPnP protocol. Intermediate image data MD and printer setting instruction IPS are transferred from the network device driver 1320 to the network socket 2200.

デバイスサーバ2300は、ネットワークソケット2200から供給された中間画像データMDをプリンタドライバ2400に供給する。プリンタドライバ2400は、中間画像データMDに色変換処理やハーフトーン処理等の種々の処理を施して、印刷データPDを生成する。デバイスサーバ2300は、また、UPnP処理部2100から供給された情報取得指示IPQと、ネットワークソケット2200から供給されたプリンタ設定指示IPSに基づいて、プリンタドライバ2400にプリンタPRTLを制御する固有制御コマンドCLPを生成させる。生成された印刷データPDと、固有制御コマンドCLPは、それぞれプリンタPRTLに供給される。   The device server 2300 supplies the intermediate image data MD supplied from the network socket 2200 to the printer driver 2400. The printer driver 2400 performs various processing such as color conversion processing and halftone processing on the intermediate image data MD to generate print data PD. The device server 2300 also sends a unique control command CLP for controlling the printer PRTL to the printer driver 2400 based on the information acquisition instruction IPQ supplied from the UPnP processing unit 2100 and the printer setting instruction IPS supplied from the network socket 2200. Generate. The generated print data PD and unique control command CLP are respectively supplied to the printer PRTL.

プリンタ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 printer driver 2400. As a result, an image represented by the intermediate image data MD is formed on the print medium. The printer PRTL also supplies status information PLI indicating the status of the printer PRTL to the printer driver 2400 in accordance with the unique control command CLP supplied from the printer driver 2400. The status information PLI supplied to the printer driver 2400 is transferred to the device server 2300. The device server 2300 generates status information PST and medium information SMD from the state information PLI. The generated information PST, SMD is supplied to the network device driver 1320 of the video game apparatus 100 via the UPnP processing unit 2100.

図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 personal computer 200. In FIG. 8, the network device driver 1320 (FIG. 7) provided in the video game apparatus 100 is not shown.

図8に示すように、パーソナルコンピュータ200は、図7で示したUPnP処理部2100と、ネットワークソケット2200と、デバイスサーバ2300と、プリンタドライバ2400の他に、デバイス登録部2310と、共通制御コマンド解析部2320と、スプーラ2500と、を備えている。   As shown in FIG. 8, the personal computer 200 includes a UPnP processing unit 2100, a network socket 2200, a device server 2300, a printer driver 2400, a device registration unit 2310, and a common control command analysis shown in FIG. A portion 2320 and a spooler 2500 are provided.

デバイス登録部2310は、デバイスサーバ2300が検出したプリンタ(検出プリンタ)をUPnPデバイスとして登録する。具体的には、デバイスサーバ2300から供給される検出プリンタの情報PDIに基づいて、検出プリンタをUPnPにおける標準的なプリンタとは異なる特定のUPnPデバイス(以下、「特定デバイス」とも呼ぶ)として登録する。デバイスサーバ2300が複数のプリンタを検出した場合には、個々の検出プリンタはそれぞれ別個の特定デバイスとして登録される。なお、特定デバイスを識別するためのデバイス名としては、例えば、パーソナルコンピュータ200のMACアドレスにプリンタ名を付加した名称が使用される。   The device registration unit 2310 registers the printer (detected printer) detected by the device server 2300 as a UPnP device. Specifically, based on the detected printer information PDI supplied from the device server 2300, the detected printer is registered as a specific UPnP device (hereinafter also referred to as “specific device”) different from a standard printer in UPnP. . When the device server 2300 detects a plurality of printers, each detected printer is registered as a separate specific device. As a device name for identifying a specific device, for example, a name obtained by adding a printer name to the MAC address of the personal computer 200 is used.

デバイス登録部2310により検出プリンタが特定デバイスとして登録された後、UPnP処理部2100がSSDP検索要求を受信すると、UPnP処理部2100は、特定デバイスが提供するサービスとして共通制御コマンドCCPによる印刷サービスが提供可能であることを示すSSDPレスポンスを返信する。   After the detected printer is registered as a specific device by the device registration unit 2310, when the UPnP processing unit 2100 receives an SSDP search request, the UPnP processing unit 2100 provides a print service using the common control command CCP as a service provided by the specific device. It returns an SSDP response indicating that it is possible.

図8に示すパーソナルコンピュータ200は、UPnPプロトコルに対応しているので、共通モジュール1200は、UPnPモードで共通制御コマンドCCPをパーソナルコンピュータ200に転送する。上述のように、共通制御コマンドCCPのうち、中間画像データMDとプリンタ設定指示IPSとを含む共通制御コマンドCCPは、ネットワークソケット2200を介してデバイスサーバ2300に供給される。デバイスサーバ2300は、ネットワークソケット2200から供給された共通制御コマンドCCPを、共通制御コマンド解析部2320に供給する。   Since the personal computer 200 shown in FIG. 8 supports the UPnP protocol, the common module 1200 transfers the common control command CCP to the personal computer 200 in the UPnP mode. As described above, the common control command CCP including the intermediate image data MD and the printer setting instruction IPS among the common control command CCP is supplied to the device server 2300 via the network socket 2200. The device server 2300 supplies the common control command CCP supplied from the network socket 2200 to the common control command analysis unit 2320.

共通制御コマンド解析部2320は、供給された共通制御コマンドCCPを順次解析することにより用紙サイズを表す用紙サイズ情報SPAを取得する。取得された用紙サイズ情報SPAは、デバイスサーバ2300に供給される。   The common control command analyzer 2320 sequentially analyzes the supplied common control command CCP to obtain paper size information SPA representing the paper size. The acquired paper size information SPA is supplied to the device server 2300.

デバイスサーバ2300は、用紙サイズ情報SPAに基づいて、1ページ分の中間画像データMDを格納する画像データ格納領域(図示しない)を確保する。そして、共通制御コマンドCCPに含まれる中間画像データMDを順次画像データ格納領域に格納する。デバイスサーバ2300は、1ページ分の中間画像データMDの取得が完了すると、中間画像データMDの大きさと用紙サイズとを比較して、用紙の周辺の画像が印刷されない領域(縁)の長さを算出する。そして、算出した縁の長さと、中間画像データMDと、をプリンタドライバ2400に供給する。このように中間画像データMDの転送はページ単位で行われるため、印刷ジョブはページ単位で生成されるのが好ましい。   The device server 2300 secures an image data storage area (not shown) for storing the intermediate image data MD for one page based on the paper size information SPA. Then, the intermediate image data MD included in the common control command CCP is sequentially stored in the image data storage area. When the acquisition of the intermediate image data MD for one page is completed, the device server 2300 compares the size of the intermediate image data MD with the paper size and determines the length of the area (edge) where the image around the paper is not printed. calculate. Then, the calculated edge length and intermediate image data MD are supplied to the printer driver 2400. Thus, since the transfer of the intermediate image data MD is performed in units of pages, it is preferable that the print job is generated in units of pages.

プリンタドライバ2400は、算出した縁の長さと中間画像データMDとから印刷データPDを生成し、生成した印刷データPDをスプーラ2500に供給する。スプーラ2500は、プリンタドライバ2400から供給された印刷データPDを蓄積し、プリンタPRTLにおける印刷が可能になると、順次蓄積した印刷データPDをプリンタPRTLに転送する。   The printer driver 2400 generates print data PD from the calculated edge length and intermediate image data MD, and supplies the generated print data PD to the spooler 2500. The spooler 2500 accumulates the print data PD supplied from the printer driver 2400. When printing in the printer PRTL becomes possible, the spooler 2500 sequentially transfers the accumulated print data PD to the printer PRTL.

デバイスサーバ2300は、複数の印刷ジョブを受け付けることができるように構成されている。そして、複数の印刷ジョブのうち、所定の時間(例えば、30秒)使用されていないと判断した印刷ジョブを消去する。具体的には、デバイスサーバ2300は、受け付けた印刷ジョブのうち、情報取得指示IPQや中間画像データMDの転送が所定の時間行われていない印刷ジョブを消去対象の印刷ジョブと判断する。   The device server 2300 is configured to accept a plurality of print jobs. Then, a print job that is determined not to be used for a predetermined time (for example, 30 seconds) is deleted from the plurality of print jobs. Specifically, the device server 2300 determines, among the received print jobs, a print job for which the information acquisition instruction IPQ or the intermediate image data MD has not been transferred for a predetermined time as a print job to be deleted.

上述のように、第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 common module 1200 determines whether a predetermined time T (for example, 1 second) has elapsed after receiving the probe response message of the ENPC protocol in step [P120] or the SSDP response from the printer PRT. Wait until receiving (step [P110]). In other words, when the common module 1200 receives the probe response message, the common module 1200 continues to wait for the SSDP response from the device having the same IP address as the transmission source device for the predetermined time T.

通常、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 video game apparatus 100 and the printer PRT1, the personal computer 200 and the printer PRTL, and the print server 300 and the printer PRT2 are connected by USB, but IEEE 1394, parallel port, etc. It is only necessary to be connected by an arbitrary communication channel different from the local area network LAN.

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 personal computer 200 so that the printer PRTL can be used on the network. Any device (print server) that can be used above can use a device different from the personal computer 200 to enable the local printer on the network.

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.

第1実施例を適用するネットワークシステムの概略構成を示す説明図。1 is an explanatory diagram showing a schematic configuration of a network system to which a first embodiment is applied. 第1実施例において、ビデオゲーム装置100から印刷を行うための機能的な構成を示すブロック図。FIG. 3 is a block diagram illustrating a functional configuration for performing printing from the video game apparatus 100 in the first embodiment. 制御コマンド生成部1220において生成される共通制御コマンドCCPの一例を示す説明図。Explanatory drawing which shows an example of the common control command CCP produced | generated in the control command production | generation part 1220. FIG. プリンタの検索と印刷先のプリンタの選択を行う際の処理の流れを示すシーケンス図。FIG. 6 is a sequence diagram showing a processing flow when searching for a printer and selecting a printer to be printed. アプリケーション1100により表示されるユーザインタフェースの一例を示す説明図。4 is an explanatory diagram illustrating an example of a user interface displayed by an application 1100. FIG. ビデオゲーム装置100からプリンタPRTに中間画像データが転送される様子を示すシーケンス図。FIG. 3 is a sequence diagram showing how intermediate image data is transferred from the video game apparatus 100 to a printer PRT. ビデオゲーム装置100と、共通制御コマンドCCPを受け付けるプリンタPRTとして機能するパーソナルコンピュータ200およびプリンタPRTLとの機能的な構成を示すブロック図。FIG. 2 is a block diagram showing a functional configuration of the video game apparatus 100, a personal computer 200 that functions as a printer PRT that receives a common control command CCP, and a printer PRTL. パーソナルコンピュータ200における、プリンタPRTLの登録機能と印刷ジョブの処理機能に関する構成を示すブロック図。FIG. 3 is a block diagram showing a configuration relating to a printer PRTL registration function and a print job processing function in the personal computer 200; 第2実施例において、プリンタの検索と印刷先のプリンタの選択を行う際の処理の流れを示すシーケンス図。FIG. 10 is a sequence diagram illustrating a processing flow when searching for a printer and selecting a printer to be printed in the second embodiment.

符号の説明Explanation of symbols

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 SYMBOLS 10 ... Network system 100 ... Video game device 200 ... Personal computer 300 ... Print server 1100 ... Application 1200 ... Common module 1210 ... API
1220: Control command generation unit 1230 ... Data transfer unit 1300 ... Device driver 1310 ... USB device driver 1312 ... Printer class driver 1314 ... USB driver 1320 ... Network device driver 1322 ... Network socket 1324 ... Network driver 2100 ... UPnP processing unit 2200 ... Network Socket 2300 ... Device server 2310 ... Device registration unit 2320 ... Common control command analysis unit 2400 ... Printer driver 2500 ... Spooler LAN ... Local area network

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.
請求項1記載の印刷クライアントであって、
前記第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.
請求項1または2記載の印刷クライアントであって、
前記第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.
請求項1ないし3のいずれか記載の印刷クライアントであって、
前記第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.
請求項5記載のプリントサーバであって、さらに、
前記ネットワークを介して前記ローカルプリンタにおいて印刷される画像を表す画像データを受信する画像データ受信部を備え、
前記画像データ受信部は、前記ネットワーク型プラグアンドプレイのプロトコルとは異なるネットワークプロトコルに従って前記画像データを受信する、
プリントサーバ。
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.
JP2007193077A 2007-07-25 2007-07-25 Print client and printer search method. Active JP4877127B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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