JP2021022166A - Information processing apparatus, control method, and program - Google Patents

Information processing apparatus, control method, and program Download PDF

Info

Publication number
JP2021022166A
JP2021022166A JP2019138244A JP2019138244A JP2021022166A JP 2021022166 A JP2021022166 A JP 2021022166A JP 2019138244 A JP2019138244 A JP 2019138244A JP 2019138244 A JP2019138244 A JP 2019138244A JP 2021022166 A JP2021022166 A JP 2021022166A
Authority
JP
Japan
Prior art keywords
print
print queue
port
printing device
information
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
JP2019138244A
Other languages
Japanese (ja)
Other versions
JP7374645B2 (en
Inventor
晃 仲村
Akira Nakamura
晃 仲村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2019138244A priority Critical patent/JP7374645B2/en
Publication of JP2021022166A publication Critical patent/JP2021022166A/en
Application granted granted Critical
Publication of JP7374645B2 publication Critical patent/JP7374645B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a more convenient method for handling a situation where an information processing apparatus cannot communicate with a printer.SOLUTION: An information processing apparatus includes: a first acquisition means for acquiring information on a printer over a network; a second acquisition means for acquiring information on print queues managed in the information processing apparatus; and specifying a means for specifying a print queue corresponding to the printer, when there is no print queue which can communicate with the printer in the print queues managed in the information processing apparatus, on the basis of the information acquired by the first acquisition means and the information acquired by the second acquisition means.SELECTED DRAWING: Figure 6

Description

本発明は、情報処理装置、制御方法、プログラムに関する。 The present invention relates to an information processing device, a control method, and a program.

情報処理装置と印刷装置とが同じネットワークに接続されている環境において、情報処理装置はネットワークを介して印刷装置を制御することが可能である。一方、情報処理装置と印刷装置がネットワークを介して通信できなくなった場合の解決方法が特許文献1に開示されている。 In an environment in which the information processing device and the printing device are connected to the same network, the information processing device can control the printing device via the network. On the other hand, Patent Document 1 discloses a solution when the information processing device and the printing device cannot communicate with each other via a network.

特許第4343673号公報Japanese Patent No. 4343673

近年、情報処理装置と印刷装置の通信ができなくなった状況の改善方法として、さらに利便性の高い改善方法が求められている。 In recent years, as a method for improving a situation in which communication between an information processing device and a printing device has become impossible, a more convenient improvement method is required.

上述のような課題を解決するために、本発明の情報処理装置は、印刷装置と通信可能な情報処理装置であって、前記印刷装置の情報をネットワークを介して取得する第1取得手段と、前記情報処理装置において管理されている印刷キューの情報を取得する第2取得手段と、前記情報処理装置において管理されている印刷キューの中に前記印刷装置と通信可能な印刷キューが無い場合、前記第1取得手段によって取得された情報と、前記第2取得手段によって取得された情報に基づいて、前記印刷装置に対応する印刷キューを特定する特定手段と、前記特定された印刷キューのポート設定情報を前記印刷装置と通信可能なポート設定情報に変更する変更手段を備えることを特徴とする。 In order to solve the above-mentioned problems, the information processing apparatus of the present invention is an information processing apparatus capable of communicating with a printing apparatus, and is a first acquisition means for acquiring information of the printing apparatus via a network. When there is no print queue that can communicate with the printing device among the second acquisition means for acquiring the information of the print queue managed by the information processing device and the print queue managed by the information processing device, the said Based on the information acquired by the first acquisition means and the information acquired by the second acquisition means, the specific means for specifying the print queue corresponding to the printing device, and the port setting information of the specified print queue. Is provided with a changing means for changing the port setting information capable of communicating with the printing device.

本発明により、より利便性の高い通信の改善を図ることが可能となる。 INDUSTRIAL APPLICABILITY According to the present invention, it is possible to improve communication with higher convenience.

機器構成の例を示す図である。It is a figure which shows the example of the apparatus configuration. 情報処理装置のハードウェア構成図である。It is a hardware block diagram of an information processing apparatus. 印刷装置のハードウェア構成図である。It is a hardware block diagram of a printing apparatus. 情報処理装置のソフトウェア構成図である。It is a software configuration diagram of an information processing apparatus. アプリケーションの機能構成図である。It is a functional block diagram of an application. 情報処理装置において実行される処理を示すフローチャートである。It is a flowchart which shows the process executed in an information processing apparatus. アプリケーションのUI画面の一例である。This is an example of the UI screen of the application. 印刷装置の情報と印刷キューの情報の比較処理を示すフローチャートである。It is a flowchart which shows the comparison process of the information of a printing apparatus and the information of a print queue. アプリケーションのUI画面の一例である。This is an example of the UI screen of the application. 修復対象印刷キューの決定処理を示すフローチャートである。It is a flowchart which shows the determination process of the print queue to be repaired. アプリケーションのUI画面の一例である。This is an example of the UI screen of the application. 第一の実施形態におけるポート修復処理を示すフローチャートである。It is a flowchart which shows the port repair process in 1st Embodiment. アプリケーションのUI画面の一例である。This is an example of the UI screen of the application. 通信可否判定処理を示すフローチャートである。It is a flowchart which shows the communication possibility determination processing. WSDポートの通信可否判定処理を示すフローチャートである。It is a flowchart which shows the communication possibility determination processing of a WSD port. ホスト名ポートの通信可否判定処理を示すフローチャートである。It is a flowchart which shows the communication possibility determination processing of a host name port. 修復優先順位の決定処理を示すフローチャートである。It is a flowchart which shows the determination process of the repair priority. アプリケーション内部の優先度決定パラメータの管理テーブルの一例である。This is an example of the management table of priority determination parameters inside the application. ポート作成処理を示すフローチャートである。It is a flowchart which shows the port creation process. ポート修復処理を示すフローチャートである。It is a flowchart which shows the port repair process. 通信可否判定処理を示すフローチャートである。It is a flowchart which shows the communication possibility determination processing. アプリケーションのUI画面の一例である。This is an example of the UI screen of the application.

以下、添付の図面を参照して、本実施形態について説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。 Hereinafter, the present embodiment will be described with reference to the accompanying drawings. The configuration shown in the following embodiments is only an example, and the present invention is not limited to the illustrated configuration.

まず、本実施形態に係る印刷システムの全体構成について説明する。図1の(a)及び(b)は、印刷装置とそのホスト機器である情報処理装置との接続態様が異なる印刷システムの全体構成をそれぞれ示している。 First, the overall configuration of the printing system according to the present embodiment will be described. FIGS. 1A and 1B show the overall configuration of a printing system in which the connection mode between the printing device and the information processing device which is the host device thereof is different.

図1(a)に示す印刷システムは、無線LAN(Local Area Network)通信機能を有する3台の印刷装置101〜103と、これら3台の印刷装置と無線LANによって通信可能な2台の情報処理装置104及び105とで構成されている。図1(a)においては、アクセスポイント106を経由して、印刷装置101〜103と情報処理装置104及び105とが無線LANに接続されており、各情報処理装置は、無線LANを介して印刷装置101〜103を制御できる。 The printing system shown in FIG. 1 (a) includes three printing devices 101 to 103 having a wireless LAN (Local Area Network) communication function, and two information processing units capable of communicating with these three printing devices via a wireless LAN. It is composed of devices 104 and 105. In FIG. 1A, the printing devices 101 to 103 and the information processing devices 104 and 105 are connected to the wireless LAN via the access point 106, and each information processing device prints via the wireless LAN. The devices 101 to 103 can be controlled.

図1(b)に示す印刷システムでは、3台の印刷装置101〜103と2台の情報処理装置104及び105とが、有線LANケーブル107を介して接続されている。 In the printing system shown in FIG. 1B, three printing devices 101 to 103 and two information processing devices 104 and 105 are connected via a wired LAN cable 107.

<印刷装置の構成>
図2は、印刷装置101〜103のハードウェア構成の一例を示す図である。
<Configuration of printing device>
FIG. 2 is a diagram showing an example of the hardware configuration of the printing devices 101 to 103.

各印刷装置は、ネットワークインタフェース201、USB(Universal Serial Bus)インタフェース202、RAM203、ROM204、CPU205、プリントエンジン206で構成される。そして、これら各部はシステムバス207を介して相互に接続されている。 Each printing device is composed of a network interface 201, a USB (Universal Serial Bus) interface 202, a RAM 203, a ROM 204, a CPU 205, and a print engine 206. Then, each of these parts is connected to each other via the system bus 207.

ネットワークインタフェース201は、アクセスポイント106を経由した無線LANへの接続或いは有線LANケーブル107を経由した有線LANへの接続を制御するインタフェースである。USBインタフェース202は、USBケーブルを経由したUSB接続を制御するインタフェースである。 The network interface 201 is an interface that controls the connection to the wireless LAN via the access point 106 or the connection to the wired LAN via the wired LAN cable 107. The USB interface 202 is an interface that controls a USB connection via a USB cable.

RAM203は、CPU205の主メモリ及びワークメモリとして用いられ、受信した印刷データを一旦保存するための受信バッファや各種データを保存するための格納領域として機能する。プリントエンジン206は、RAM203に保存された印刷データに基づき印刷を行う。なお、プリントエンジン206は、インクジェット方式で印刷処理を行っても良いし、電子写真方式で印刷処理を行っても良い。ROM204は、各種の制御プログラムや各制御プログラムが使用するデータが格納されており、CPU205はこれらの制御プログラムに従って印刷装置の各部を制御する。なお、上述したハードウェア構成は一例であり、印刷装置のハードウェア構成は上述の例に限定されるものではない。 The RAM 203 is used as a main memory and a work memory of the CPU 205, and functions as a reception buffer for temporarily storing received print data and a storage area for storing various data. The print engine 206 prints based on the print data stored in the RAM 203. The print engine 206 may perform the printing process by the inkjet method or the printing process by the electrophotographic method. The ROM 204 stores various control programs and data used by each control program, and the CPU 205 controls each part of the printing apparatus according to these control programs. The hardware configuration described above is an example, and the hardware configuration of the printing apparatus is not limited to the above example.

また、印刷装置101〜103は、TCP/IPプロトコルに対応すると共に、例えば他の装置との接続設定のための、プロトコルの機能や名前解決(コンピュータ名やドメイン名などからIPアドレスを特定する機能)を用いることができる。プロトコルの機能は、例えば、Windows(登録商標) OSの標準プロトコルであるWSD(WebService on Devices)の機能の1つであるWS−Discovery機能である。WS−Discoveryによれば、デバイスごとに一意に識別可能な識別子(UUID(Universally Unique Identifier))に基づいてネットワークに接続している装置を検出することができる。また、名前解決には、例えば、IPアドレスとドメイン名の対応を管理するDNS(Domain Name System)が用いられうる。また、ネットワークにDNSが存在しない場合に近隣のネットワークデバイスの名前解決ができるLLMNR(Link−Local Multicast Name Resolution)が用いられてもよい。なお、印刷装置101〜103のWSD機能、LLMNR機能、DNS機能は、ユーザが印刷装置101〜103を直接操作することによって、有効/無効が切り替え可能である。また、印刷装置101〜103にはUUIDが設定されており、UUIDのバージョンは、UUIDが印刷装置101〜103のMACアドレスとUUID生成時刻で構成される、「バージョン1」であるものとする。 In addition, the printing devices 101 to 103 support the TCP / IP protocol, and also have a protocol function and name resolution (a function of specifying an IP address from a computer name, a domain name, etc.) for setting a connection with another device, for example. ) Can be used. The function of the protocol is, for example, the WS-Discovery function which is one of the functions of WSD (Web Services on Devices) which is a standard protocol of Windows (registered trademark) OS. According to WS-Discovery, it is possible to detect a device connected to a network based on an identifier (UUID (Universally UUID) that can be uniquely identified for each device. Further, for name resolution, for example, DNS (Domain Name System) that manages the correspondence between the IP address and the domain name can be used. Further, LLMNR (Link-Local Multitactic Name Resolution) that can resolve the name of a neighboring network device when DNS does not exist in the network may be used. The WSD function, LLMNR function, and DNS function of the printing devices 101 to 103 can be enabled / disabled by the user directly operating the printing devices 101 to 103. Further, it is assumed that the UUID is set in the printing devices 101 to 103, and the UUID version is "version 1" in which the UUID is composed of the MAC address of the printing devices 101 to 103 and the UUID generation time.

<情報処理装置の構成>
図3は、情報処理装置104/105のハードウェア構成の一例を示す図である。情報処理装置104/105は、入力インタフェース301、CPU302、ROM303、RAM304、HDD等の外部記憶装置305、出力インタフェース306、ネットワークインタフェース307、及びUSBインタフェース308で構成される。そして、これら各部はシステムバス309を介して相互に接続されている。
<Configuration of information processing device>
FIG. 3 is a diagram showing an example of the hardware configuration of the information processing apparatus 104/105. The information processing device 104/105 is composed of an input interface 301, a CPU 302, a ROM 303, a RAM 304, an external storage device 305 such as an HDD, an output interface 306, a network interface 307, and a USB interface 308. Then, each of these parts is connected to each other via the system bus 309.

入力インタフェース301は、マウス等のポインティングデバイス310及びキーボード311といった入力装置との接続を制御するインタフェースである。出力インタフェース306は、液晶ディスプレイ等の表示部312との接続を制御するインタフェースである。ネットワークインタフェース307は、アクセスポイント106を経由した無線LANへの接続或いは有線LANケーブル107を経由した有線LANへの接続を制御するインタフェースである。USBインタフェース308は、USBケーブルを経由したUSB接続を制御するインタフェースである。 The input interface 301 is an interface that controls the connection with a pointing device 310 such as a mouse and an input device such as a keyboard 311. The output interface 306 is an interface that controls the connection with the display unit 312 of a liquid crystal display or the like. The network interface 307 is an interface that controls the connection to the wireless LAN via the access point 106 or the connection to the wired LAN via the wired LAN cable 107. The USB interface 308 is an interface that controls a USB connection via a USB cable.

ROM303には初期化プログラムが格納されており、外部記憶装置305にはアプリケーション群、OS(Operating System)、プリンタドライバやその他各種のデータが格納されている。RAM304は、CPU302が各種プログラムを実行する際のワークメモリとして使用される。なお、上述したハードウェア構成は一例であり、情報処理装置104/105のハードウェア構成は上述の例に限定されるものではない。 The initialization program is stored in the ROM 303, and the application group, the OS (Operating System), the printer driver, and various other data are stored in the external storage device 305. The RAM 304 is used as a work memory when the CPU 302 executes various programs. The above-mentioned hardware configuration is an example, and the hardware configuration of the information processing apparatus 104/105 is not limited to the above-mentioned example.

図4は、本実施形態における情報処理装置104および105のソフトウェア構成を示す図である。情報処理装置104は、情報処理装置104内で実行可能なアプリケーション501を備える。アプリケーション501は、送信先ポート設定の不良により印刷装置101〜103への印刷データの送信が不能となった印刷キューの送信先ポート設定を修復するためのソフトウェアである。アプリケーション501は、OS提供の印刷システム401を介して、使用可能な印刷キュー402を問い合わせ、問い合わせた結果に基づいて適切な印刷キュー402(nは、1〜Nのいずれか)にアクセスする。 FIG. 4 is a diagram showing software configurations of the information processing devices 104 and 105 according to the present embodiment. The information processing device 104 includes an application 501 that can be executed in the information processing device 104. The application 501 is software for repairing the destination port setting of the print queue in which the print data cannot be transmitted to the printing devices 101 to 103 due to a defect in the destination port setting. The application 501 queries the available print queue 402 via the print system 401 provided by the OS, and accesses the appropriate print queue 402 n (n is any of 1 to N) based on the result of the query.

また、アプリケーション501は、印刷システム401を介して、使用可能なプリンタドライバ405を問い合わせ、問い合わせた結果に基づいて適切なプリンタドライバ405(pは、1〜Pのいずれか)にアクセスする。プリンタドライバ405には、識別子として、印刷装置の機種名またはモデル名を含むサポート機種識別子406やGDI、XPS、FAXなどドライバ種別識別子407が含まれている。 Further, the application 501 queries the available printer driver 405 via the printing system 401, and accesses an appropriate printer driver 405 p (p is any of 1 to P) based on the result of the query. The printer driver 405 p includes a support model identifier 406 p including a model name or a model name of the printing device, and a driver type identifier 407 p such as GDI, XPS, and FAX as an identifier.

アプリケーション501は、印刷システム401を介して、使用可能なポート408を問い合わせ、問い合わせた結果に基づいて適切なポート408(mは、1〜Mのいずれか)にアクセスする。ポート408には、USB、TCP/IP、WSDなどポート種別識別子409やIPアドレスまたはホスト名などネットワーク識別子410が含まれている。 Application 501 queries the available ports 408 via the printing system 401 and accesses the appropriate port 408 m (m is any of 1 to M) based on the query results. The port 408 m includes a port type identifier 409 m such as USB, TCP / IP, and WSD, and a network identifier 410 m such as an IP address or a host name.

それぞれの印刷キュー402(nは、1〜Nのいずれか))は、プリンタドライバとポートと関連付けられている。印刷キュー402には、関連付けられているプリンタドライバとポートを特定するためのプリンタドライバ参照情報403とポート参照情報404を備える。 Each print queue 402 n (n is any of 1 to N) is associated with a printer driver and port. The print queue 402 n includes printer driver reference information 403 and port reference information 404 for identifying the associated printer driver and port.

図4では、一例として、プリンタドライバ参照情報403はプリンタドライバ405と関連付けられていることを示し、ポート参照情報404はポート408と関連付けられていることを示す。なお、プリンタドライバ参照情報403〜403は、それぞれプリンタドライバ405〜405と関連付いていることを示し、ポート参照情報404〜404は、それぞれポート408〜408と関連付いていることを示す。また、本実施形態においては、ポートのことをポート設定情報と呼ぶこともある。そして、アプリケーション501は、印刷キューに含まれるプリンタドライバ参照情報403により特定されるプリンタドライバ405の設定情報であるサポート機種識別子406、ドライバ種別識別子407を参照し、取得できる。また、アプリケーション501は、印刷キューに含まれるポート参照情報404により特定されるポート408の設定情報であるポート種別識別子409、ネットワーク識別子410を参照し、取得できる。 In Figure 4, as an example, the printer driver reference information 403 1 indicates to be associated with a printer driver 405 1, port reference information 404 1 indicates that associated with port 4081. Note that the printer driver reference information 403 1 to 403 N are associated with the printer drivers 405 1 to 405 P , respectively, and the port reference information 404 1 to 404 N are associated with the ports 408 1 to 408 M , respectively. Indicates that Further, in the present embodiment, the port may be referred to as port setting information. Then, the application 501 can refer to and acquire the support model identifier 406 p and the driver type identifier 407 p , which are the setting information of the printer driver 405 p specified by the printer driver reference information 403 n included in the print queue. Further, the application 501 can refer to and acquire the port type identifier 409 m and the network identifier 410 m , which are the setting information of the port 408 m specified by the port reference information 404 n included in the print queue.

また、ポート種別識別子409がWSDである場合、ポート408は「WSDポート」と定義される。「WSDポート」と定義されたポートは、ネットワーク識別子410に印刷装置のUUIDが設定される。 When the port type identifier 409 m is WSD, the port 408 m is defined as a "WSD port". For the port defined as the "WSD port", the UUID of the printing device is set to the network identifier 410 m .

また、ポート種別識別子409がTCP/IPであり、ネットワーク識別子410がIPアドレスである場合、ポート408は「固定IPアドレスポート」と定義される。ポート種別識別子409がTCP/IPであり、ネットワーク識別子410がDNSまたはLLMNRのホスト名である場合、ポート408は「ホスト名ポート」と定義される。なお、本実施形態において、情報処理装置104/105内のポートは上述の「WSDポート」「固定IPアドレスポート」「ホスト名ポート」のいずれかに分類されるものとして説明を行う。しかし、情報処理装置104/105内にその他の種類のポートが含まれていても何ら問題はない。 Further, when the port type identifier 409 m is TCP / IP and the network identifier 410 m is an IP address, the port 408 M is defined as a “fixed IP address port”. If the port type identifier 409 m is TCP / IP and the network identifier 410 m is the DNS or LLMNR host name, then port 408 m is defined as the "hostname port". In the present embodiment, the port in the information processing apparatus 104/105 will be described as being classified into any of the above-mentioned "WSD port", "fixed IP address port", and "host name port". However, there is no problem even if the information processing apparatus 104/105 includes other types of ports.

<アプリケーションの構成>
図5は、情報処理装置104/105のCPU302が例えば外部記憶装置305に記憶されているアプリケーション501を読み出して実行することによって実現される機能を示すブロック図である。アプリケーション501は、一例として、印刷装置検索機能502〜修復結果出力機能511を備える。CPU302は、アプリケーション501が備える各機能を使用することで、以降の処理を実行する。なお本実施形態における、ポート修復処理とは、ある印刷キュー402を使ってユーザが所望とする印刷装置との通信を回復する処理である。なお、アプリケーション501とは異なる文書作成アプリケーションや、表計算アプリケーションを起動して、ユーザは、アプリケーションデータを生成し、所望の印刷装置に対応する印刷キューを選択して印刷の指示を試みる。この際、ユーザが選択した印刷キューの設定情報によっては、所望の印刷装置と通信できないことがある。アプリケーション501は、こういったケースを修復するために使用される。
<Application configuration>
FIG. 5 is a block diagram showing a function realized by the CPU 302 of the information processing device 104/105 reading and executing the application 501 stored in the external storage device 305, for example. As an example, the application 501 includes a printing device search function 502 to a repair result output function 511. The CPU 302 executes the subsequent processing by using each function provided in the application 501. The port repair process in the present embodiment is a process of recovering communication with a printing device desired by the user by using a certain print queue 402 n . By starting a document creation application or a spreadsheet application different from the application 501, the user generates application data, selects a print queue corresponding to a desired printing device, and attempts a printing instruction. At this time, communication with a desired printing device may not be possible depending on the setting information of the print queue selected by the user. Application 501 is used to repair these cases.

<処理の流れ>
以下では、情報処理装置104/105が実行する処理の流れについて説明する。以下に示される処理例は、単独で用いられてもよいし、組み合わせて用いられてもよい。
<Processing flow>
Hereinafter, the flow of processing executed by the information processing apparatus 104/105 will be described. The processing examples shown below may be used alone or in combination.

なお、以下で説明する処理は、例えばCPU302が、外部記憶装置305に記憶されているアプリケーション501に対応するプログラムをRAM304にロードして実行することによって実現される。 The process described below is realized, for example, by the CPU 302 loading the program corresponding to the application 501 stored in the external storage device 305 into the RAM 304 and executing the program.

<第一の実施形態>
図6のフローチャートを用いて、本発明の第一の実施形態におけるアプリケーション501の処理の流れを説明する。本実施形態において、アプリケーション501は情報処理装置104で実行されるものとする。
<First Embodiment>
The processing flow of the application 501 according to the first embodiment of the present invention will be described with reference to the flowchart of FIG. In this embodiment, application 501 is executed by the information processing apparatus 104.

まず、CPU302は、S601において、現在情報処理装置104が接続しているネットワークに接続された印刷装置を検索して、検出する。印刷装置の検索には、例えば、SNMP(Simple Network Management Protocol)等のTCP/IPプロトコルによるデバイスの検索機能が用いられてもよい。印刷装置が検出されたら、CPU302は、S602において、検出された印刷装置の一覧を、ユーザによる選択が可能な形式で、表示部312に表示する。一覧表示のUI画面の一例を図7に示す。図7において、ユーザは修復を行いたい、つまり通信を回復したい印刷装置の左端のチェックボックスをオンにしてから[次へ]ボタン701をクリックする。本実施形態においては、印刷装置101が選択されたものとする。 First, in S601, the CPU 302 searches for and detects a printing device connected to the network to which the information processing device 104 is currently connected. For the search of the printing device, for example, a device search function by a TCP / IP protocol such as SNMP (Simple Network Management Protocol) may be used. When the printing device is detected, the CPU 302 displays a list of the detected printing devices on the display unit 312 in a format that can be selected by the user in S602. FIG. 7 shows an example of the UI screen for list display. In FIG. 7, the user selects the check box at the left end of the printing device for which he / she wants to repair, that is, wants to restore communication, and then clicks the [Next] button 701. In this embodiment, it is assumed that the printing device 101 is selected.

CPU302は、[次へ]ボタン701の押下を検知すると、S603において、選択された印刷装置101の詳細なネットワーク設定情報を取得する。例えば、印刷装置101のIPアドレス、MACアドレス、シリアル番号、機種名等が取得される。なお、これらの情報は、S601においてネットワークを介して取得されており情報処理装置104のメモリに保持されている。そして、CPU302が、選択された印刷装置101に対応する情報をメモリから取得することでS603の処理が実現される。なお、S603において、CPU302がネットワークを介してこれらの情報を取得しても良い。 When the CPU 302 detects that the [Next] button 701 is pressed, the CPU 302 acquires detailed network setting information of the selected printing device 101 in S603. For example, the IP address, MAC address, serial number, model name, etc. of the printing device 101 are acquired. It should be noted that these pieces of information are acquired in S601 via the network and are stored in the memory of the information processing apparatus 104. Then, the CPU 302 acquires the information corresponding to the selected printing device 101 from the memory, so that the processing of S603 is realized. In S603, the CPU 302 may acquire such information via the network.

続いて、CPU302は、S604において、情報処理装置104に登録されている全ての印刷キュー402の設定情報を取得する。例えば、CPU302は、印刷キュー402に設定されたプリンタドライバ参照情報403からサポート機種識別子406、ドライバ種別識別子407を取得する。さらに、CPU302は、ポート参照情報404からポート種別識別子409、ネットワーク識別子410を取得する。なお、S603において取得された印刷装置101のネットワーク設定情報は、S604において取得された印刷キュー402の設定情報の少なくとも一部の要素に対応する情報を含む。例えば、印刷装置101の機種名は、サポート機種識別子406と対応している。また、印刷装置101のIPアドレスは、ポート参照情報404から特定されるポート408が固定IPアドレスポートである場合のネットワーク識別子410と対応している。なお前述の一連のS601〜S603とS604の実行順序が逆の場合においても、同様の結果が得られる。 Subsequently, the CPU 302 acquires the setting information of all the print queues 402 registered in the information processing apparatus 104 in S604. For example, the CPU 302 acquires the support model identifier 406 p and the driver type identifier 407 p from the printer driver reference information 403 n set in the print queue 402 n . Further, the CPU 302 acquires the port type identifier 409 m and the network identifier 410 m from the port reference information 404 n . The network setting information of the printing apparatus 101 acquired in S603 includes information corresponding to at least some of the elements of the setting information of the obtained print queue 402 n in S604. For example, the model name of the printing apparatus 101 corresponds to the supported model identifier 406 p . Further, the IP address of the printing device 101 corresponds to the network identifier 410 m when the port 408 m specified from the port reference information 404 n is a fixed IP address port. The same result can be obtained even when the execution order of the series of S601 to S603 and S604 described above is reversed.

次に、CPU302は、S603において取得された印刷装置101のネットワーク設定情報と、S604において取得された印刷キュー402〜印刷キュー402の設定情報とを順次比較し、これらの情報が一致しているか否かを判定する(S605)。なお、S605については、図8のフローチャートを使って詳細に説明する。 Next, the CPU 302 sequentially compares the network setting information of the printing device 101 acquired in S603 with the setting information of the printing queue 402 1 to the printing queue 402 N acquired in S604, and these information match. Whether or not it is determined (S605). Note that S605 will be described in detail with reference to the flowchart of FIG.

S605の情報比較の結果、情報処理装置104内に印刷装置101で印刷可能な印刷キューがあると判定された場合(S606でYES)、CPU302は、S607において、印刷可能な印刷キューがあることを表示部312に表示する。この際のUI画面の一例を図9(a)に示す。図9(a)では、一例において、CPU302は、ユーザに印刷装置101で印刷可能な印刷キューを検出したことを示し、[OK]ボタン901が表示される。アプリケーション501は、[OK]ボタン901の押下を検知すると、プログラムを終了する。なお、図9(a)にはテスト印刷ボタンが含まれている。ユーザがテスト印刷ボタンを押下すると、CPU302は、S606でYesと判定された印刷キューに関連付けられているプリンタドライバを使ってテスト印刷用の印刷データを生成する。そして、CPU302は、S606でYesと判定された印刷キューに関連付けられているポートを使って印刷装置101にテスト印刷用の印刷データを送信する。また、図9(a)には、通常使うプリンタに設定するか否かの指定を受け付けるチェックボックスが含まれる。S606でYesと判定された印刷キューが通常使うプリンタとして指定されていない場合、初期値としてチェックボックスにチェックが入った図9(a)の画面が表示される。一方、S606でYesと判定された印刷キューが通常使うプリンタとして既に指定されている場合、チェックボックスおよび通常使うプリンタに設定というメッセージが非表示となっても良い。なお、図9(a)の状態でOKボタン901が押下された場合、S606でYesと判定された印刷キューが通常使うプリンタとしてOS内で管理される。 As a result of the information comparison in S605, when it is determined that the information processing device 104 has a print queue that can be printed by the printing device 101 (YES in S606), the CPU 302 determines that there is a printable print queue in S607. It is displayed on the display unit 312. An example of the UI screen at this time is shown in FIG. 9A. In FIG. 9A, in one example, the CPU 302 indicates to the user that the print queue that can be printed by the printing device 101 has been detected, and the [OK] button 901 is displayed. When the application 501 detects that the [OK] button 901 is pressed, the application 501 terminates the program. Note that FIG. 9A includes a test print button. When the user presses the test print button, the CPU 302 generates print data for test printing using the printer driver associated with the print queue determined to be Yes in S606. Then, the CPU 302 transmits the print data for test printing to the printing apparatus 101 using the port associated with the print queue determined to be Yes in S606. Further, FIG. 9A includes a check box for accepting a specification as to whether or not to set the printer to be normally used. If the print queue determined to be Yes in S606 is not specified as the printer to be normally used, the screen of FIG. 9A in which the check box is checked as the initial value is displayed. On the other hand, when the print queue determined to be Yes in S606 is already specified as the printer to be normally used, the check box and the message "Set as the printer to be normally used" may be hidden. When the OK button 901 is pressed in the state of FIG. 9A, the print queue determined to be Yes in S606 is managed in the OS as a printer to be normally used.

一方、S605での情報比較の結果、印刷装置101に対して印刷可能な印刷キューが情報処理装置104内に無いと判定された場合(S606でNO)の処理について説明する。CPU302は、S608において、情報処理装置104内の全ての印刷キュー402の中から修復対象となる印刷キューを検出する。S608については、図10のフローチャートを使って詳細に説明する。 On the other hand, as a result of the information comparison in S605, the process when it is determined that there is no print queue that can be printed by the printing device 101 in the information processing device 104 (NO in S606) will be described. In S608, the CPU 302 detects the print queue to be repaired from all the print queues 402 in the information processing apparatus 104. S608 will be described in detail with reference to the flowchart of FIG.

S608での検出の結果、CPU302が修復対象となる印刷キューを1つも検出できなかった場合(S609でNO)、CPU302は、S610において、印刷可能な印刷キューがないことを表示部312に表示する。この際のUI画面の一例を図9(b)に示す。図9(b)では、一例において、CPU302は、ユーザに印刷装置101に対応する印刷キューを検出できなかったことを示し、[OK]ボタン902が表示される。[OK]ボタン902の押下を検知すると、アプリケーション501は、プログラムを終了する。なお、この場合、ユーザは印刷装置101の印刷キューの新規生成から行う。 As a result of the detection in S608, when the CPU 302 cannot detect any print queue to be repaired (NO in S609), the CPU 302 displays on the display unit 312 that there is no printable print queue in S610. .. An example of the UI screen at this time is shown in FIG. 9B. In FIG. 9B, in one example, the CPU 302 indicates to the user that the print queue corresponding to the printing device 101 could not be detected, and the [OK] button 902 is displayed. When the press of the [OK] button 902 is detected, the application 501 terminates the program. In this case, the user starts from the new generation of the print queue of the printing device 101.

一方、S608での検出の結果、CPU302が修復対象となる印刷キューを1つ以上検出した場合(S609でYES)、CPU302は、S611において、印刷キューの設定が不一致であることを表示部312に表示する表示制御処理を行う。この際のUI画面の一例を図9(c)に示す。図9(c)では、一例において、CPU302は、印刷装置101に対応する印刷キューの設定が一致しないため印刷ができないことを示し、[次へ]ボタン903が表示される。[次へ]ボタン903の押下を検知すると、CPU302は、S612において、S608で検出された修復対象となる印刷キューの一覧を、ユーザによる選択が可能な形式で、表示部312に表示する。この際のUI画面の一例を図11(a)に示す。図11(a)では、一例において、CPU302は、修復対象の印刷キューをドロップダウンリストに一覧表示する。本画面において、ユーザは、修復したい印刷キューをドロップダウンから選択した状態で、画面の[次へ]ボタン1101をクリックする。CPU302は、[次へ]ボタン1101の押下を検知すると、修復対象となる印刷キューを特定する。なお、修復対象となる印刷キューが1つしか検出されなかった場合は、図11(b)に示すように、CPU302は、S608で検出された修復対象となる印刷キューを、選択形式ではない形式で表示しても良い。図11(b)では、修復対象の印刷キューと[次へ]ボタン1102を画面上に表示する。CPU302は、[次へ]ボタン1102の押下を検知すると、修復対象となる印刷キューを特定する。本実施形態においては、印刷キュー402が選択されたものとする。 On the other hand, when the CPU 302 detects one or more print queues to be repaired as a result of the detection in S608 (YES in S609), the CPU 302 informs the display unit 312 that the print queue settings do not match in S611. Performs display control processing to be displayed. An example of the UI screen at this time is shown in FIG. 9 (c). In FIG. 9C, in one example, the CPU 302 indicates that printing cannot be performed because the print queue settings corresponding to the printing device 101 do not match, and the [Next] button 903 is displayed. Upon detecting the pressing of the [Next] button 903, the CPU 302 displays a list of print queues to be repaired detected in S608 in S612 on the display unit 312 in a format that can be selected by the user. An example of the UI screen at this time is shown in FIG. 11 (a). In FIG. 11A, in one example, the CPU 302 lists the print queues to be repaired in a drop-down list. On this screen, the user clicks the [Next] button 1101 on the screen with the print queue to be repaired selected from the dropdown. When the CPU 302 detects that the [Next] button 1101 is pressed, it identifies the print queue to be repaired. If only one print queue to be repaired is detected, the CPU 302 selects the print queue to be repaired detected in S608 in a format other than the selected format, as shown in FIG. 11B. It may be displayed with. In FIG. 11B, the print queue to be repaired and the [Next] button 1102 are displayed on the screen. When the CPU 302 detects that the [Next] button 1102 is pressed, it identifies the print queue to be repaired. In this embodiment, it is assumed that the print queue 402 1 is selected.

修復対象となる印刷キュー402が特定された場合、CPU302は、S613において、選択された印刷キュー402の修復を行う。S613については、図12のフローチャートを使って詳細に説明する。なお、後述する図12の処理によりポートが作成された場合、CPU302は、修復対象となる印刷キュー402に含まれるポート参照情報404を、図12で作成されたポートを参照するように修正する。 When the print queue 402 1 to be repaired is specified, the CPU 302 repairs the selected print queue 402 1 in S613. S613 will be described in detail with reference to the flowchart of FIG. When a port is created by the process of FIG. 12, which will be described later, the CPU 302 modifies the port reference information 404 1 included in the print queue 402 1 to be repaired so as to refer to the port created in FIG. To do.

印刷キュー402の修復処理が終了した場合、CPU302は、S614において、修復の結果を表示部312に表示する。この際のUI画面の一例を図13(a)及び図13(b)に示す。なお、図19で後述する修復失敗フラグが有効化されている場合、CPU302は、図13(b)を表示する。一方、修復失敗フラグが有効化されていない場合、CPU302は、図13(a)を表示する。 When the repair process of the print queue 402 1 is completed, the CPU 302 displays the repair result on the display unit 312 in S614. An example of the UI screen at this time is shown in FIGS. 13 (a) and 13 (b). When the repair failure flag described later in FIG. 19 is enabled, the CPU 302 displays FIG. 13 (b). On the other hand, if the repair failure flag is not enabled, the CPU 302 displays FIG. 13A.

図13(a)は、印刷キュー402の修復処理が成功した場合に表示され、図13(b)は印刷キュー402の修復処理が失敗した場合に表示される。修復処理が成功した場合、一例において、CPU302は、S612においてユーザが選択した印刷キューが修復され、印刷装置101で印刷可能となったことを示し、[OK]ボタン1301を含む画面(図13(a))を表示する。[OK]ボタン1301の押下を検知すると、アプリケーション501は、プログラムを終了する。なお、修復処理が成功した後に再度アプリケーション501を実行した場合、上記の手順に従い、S605で、情報処理装置104内に印刷装置101で印刷可能な印刷キューがあると判定(S606でYES)される。なお、図13(a)には、通常使うプリンタに設定するか否かの指定を受け付けるチェックボックスが含まれる。例えば、修復対象の印刷キューが通常使うプリンタとして指定されていなかった場合、初期値としてチェックボックスにチェックが入った図13(a)の画面が表示される。一方、修復対象の印刷キューが通常使うプリンタとして既に指定されている場合、チェックボックスおよび通常使うプリンタに設定というメッセージが非表示となっても良い。なお、図13(a)の状態でOKボタン901が押下された場合、修復対象の印刷キューが通常使うプリンタとしてOS内で管理される。 FIG. 13 (a) is displayed when the repair process of the print queue 402 1 is successful, and FIG. 13 (b) is displayed when the repair process of the print queue 402 1 is unsuccessful. When the repair process is successful, in one example, the CPU 302 indicates that the print queue selected by the user in S612 has been repaired and can be printed by the printing device 101, and the screen including the [OK] button 1301 (FIG. 13 (FIG. 13). a)) is displayed. When the pressing of the [OK] button 1301 is detected, the application 501 terminates the program. When the application 501 is executed again after the repair process is successful, it is determined in S605 that there is a print queue that can be printed by the printing device 101 in the information processing device 104 (YES in S606) according to the above procedure. .. Note that FIG. 13A includes a check box for accepting a specification as to whether or not to set the printer to be normally used. For example, if the print queue to be repaired is not specified as the printer to be normally used, the screen of FIG. 13A with the check box checked as the initial value is displayed. On the other hand, if the print queue to be repaired is already specified as the default printer, the check box and the message "Set as default printer" may be hidden. When the OK button 901 is pressed in the state of FIG. 13A, the print queue to be repaired is managed in the OS as a printer normally used.

図13(b)では、一例において、CPU302は、S612においてユーザが選択した印刷キューの修復に失敗したことを示し、[OK]ボタン1302を表示する。[OK]ボタン1302の押下を検知すると、アプリケーション501は、プログラムを終了する。 In FIG. 13B, in one example, the CPU 302 indicates that the restoration of the print queue selected by the user in S612 has failed, and displays the [OK] button 1302. When the pressing of the [OK] button 1302 is detected, the application 501 terminates the program.

以上の処理により修復が終了した場合、例えば、ユーザは、アプリケーション501とは異なる他のアプリケーションを起動する。そして、修復後の印刷キューを選択して印刷を指示した場合、修復後の印刷キューに対応するプリンタドライバが、他のアプリケーションから出力されたデータに基づく印刷データを生成して印刷装置101に送信することが可能となる。 When the repair is completed by the above processing, for example, the user starts another application different from the application 501. Then, when the print queue after restoration is selected and printing is instructed, the printer driver corresponding to the print queue after restoration generates print data based on the data output from other applications and transmits the print data to the printing apparatus 101. It becomes possible to do.

図8は、図6のS605の処理を詳細に説明するためのフローチャートである。CPU302は、情報処理装置104内の全ての印刷キュー402に対して、以下に示すS802〜S804の処理を繰り返す(S801)。 FIG. 8 is a flowchart for explaining the process of S605 of FIG. 6 in detail. The CPU 302 repeats the processes of S802 to S804 shown below for all the print queues 402 in the information processing apparatus 104 (S801).

まず、S802において、CPU302は、S603において取得された印刷装置101の機種名と、S604にて取得された印刷キュー402のサポート機種識別子406に含まれる機種名を比較する。印刷装置101の機種名とサポート機種識別子406に含まれる機種名が一致しない場合(S802でNO)、CPU302は、選択された印刷キューが印刷装置101に対応した印刷キューではないと判断する。そして、CPU302は、次の印刷キュー402n+1を選択して、S802〜S804を実行する。 First, in S802, the CPU 302 compares the model name of the printing device 101 acquired in S603 with the model name included in the support model identifier 406 p of the print queue 402 n acquired in S604. If the model name and the model name included in support model identifier 406 p of the printing apparatus 101 does not match (NO in S802), CPU 302 determines that it is not the print queue the print queue is selected corresponding to the printing apparatus 101. Then, the CPU 302 selects the next print queue 402 n + 1 and executes S802 to S804.

一方、印刷装置101の機種名とサポート機種識別子406に含まれる機種名が一致する場合(S802でYES)の処理について説明する。CPU302は、S803において、印刷キュー402に設定されたポート参照情報404に対応したポート408を使って印刷装置101と通信できるか否かを判定する。S803については、図14のフローチャートを使って詳細に説明する。 On the other hand, the process when the model name of the printing apparatus 101 and the model name included in the supported model identifier 406 p match (YES in S802) will be described. In S803, the CPU 302 determines whether or not communication with the printing device 101 can be performed using the port 408 m corresponding to the port reference information 404 n set in the print queue 402 n . S803 will be described in detail with reference to the flowchart of FIG.

S803でポート408を使って印刷装置101と通信できないと判定された場合(S804でNO)、CPU302は、次の印刷キュー402n+1を選択して、S802〜S804を実行する。 When it is determined in S803 that communication with the printing apparatus 101 cannot be performed using the port 408 m (NO in S804), the CPU 302 selects the next print queue 402 n + 1 and executes S802 to S804.

一方、S803でポート408を使って印刷装置101と通信が可能であると判定された場合(S804でYES)、CPU302は、ループ処理を抜け、S805において、情報処理装置104内に印刷可能な印刷キューがある、と判定する。 On the other hand, when it is determined in S803 that communication with the printing device 101 is possible using the port 408 m (YES in S804), the CPU 302 exits the loop processing and can print in the information processing device 104 in S805. Determine that there is a print queue.

情報処理装置104内の全ての印刷キュー402の中でS804においてYESと判定される印刷キューが存在しない場合、S806において、CPU302は、情報処理装置104内に印刷可能な印刷キューはない、と判定する。 If there is no print queue determined to be YES in S804 among all the print queues 402 in the information processing device 104, the CPU 302 determines in S806 that there is no printable print queue in the information processing device 104. To do.

図14は、図8におけるS803の処理を詳細に説明するためのフローチャートである。ここでは、ポート408を使った処理として説明を行う。 FIG. 14 is a flowchart for explaining the process of S803 in FIG. 8 in detail. Here, the processing using the port 408 m will be described.

まず、S1401において、CPU302は、ポート408のポート種類を判断する。これは、ポート408に設定されたポート種別識別子409とネットワーク識別子410から判断する。ポート種別識別子409がWSDである場合、CPU302は、ポート408は「WSDポート」であると判断する。ポート種別識別子409がTCP/IPであり、ネットワーク識別子410がIPアドレスである場合、CPU302は、ポート408は「固定IPアドレスポート」であると判断する。ポート種別識別子409がTCP/IPであり、ネットワーク識別子410がDNSまたはLLMNRのホスト名である場合、CPU302は、ポート408は「ホスト名ポート」であると判断する。 First, in S1401, the CPU 302 determines the port type of the port 408 m . This is determined from the port type identifier 409 m and the network identifier 410 m set for the port 408 m . When the port type identifier 409 m is WSD, the CPU 302 determines that the port 408 m is a "WSD port". When the port type identifier 409 m is TCP / IP and the network identifier 410 m is an IP address, the CPU 302 determines that the port 408 m is a “fixed IP address port”. If the port type identifier 409 m is TCP / IP and the network identifier 410 m is the DNS or LLMNR host name, the CPU 302 determines that the port 408 m is the "host name port".

S1401でポート種類が「固定IPアドレスポート」であると判断された場合(S1402でYES)の処理について説明する。CPU302は、S1403において、S603において取得された印刷装置101のIPアドレスと、S604にて取得されたポート408のネットワーク識別子410であるIPアドレスを比較する。印刷装置101のIPアドレスとポート408のIPアドレスが一致する場合(S1404でYES)、S1405において、CPU302は、ポート408---を使って印刷装置101と通信可能であると判断する。 The process when the port type is determined to be "fixed IP address port" in S1401 (YES in S1402) will be described. In S1403, the CPU 302 compares the IP address of the printing apparatus 101 acquired in S603 with the IP address of the port 408 m acquired in S604, which is the network identifier 410 m . When the IP address of the printing device 101 and the IP address of the port 408 m match (YES in S1404), in S1405, the CPU 302 determines that the printing device 101 can communicate with the printing device 101 using the port 408 m .

一方、印刷装置101のIPアドレスとポート408のIPアドレスが一致しない場合(S1404でNO)、S1406において、CPU302は、ポート408m--を使って印刷装置101と通信不能と判断する。 On the other hand, when the IP address of the printing device 101 and the IP address of the port 408 m do not match (NO in S1404), in S1406, the CPU 302 determines that communication with the printing device 101 is impossible using the port 408 m ---.

S1401でポート種類が「WSDポート」であると判断された場合(S1402でNO、S1407でYES)、CPU302は、S1408において、WSDポート408を使って印刷装置101と通信できるか否かを判定する。S1408については、図15のフローチャートを用いて詳細に説明する。 When it is determined in S1401 that the port type is "WSD port" (NO in S1402, YES in S1407), the CPU 302 determines in S1408 whether or not it is possible to communicate with the printing device 101 using the WSD port 408 m. To do. S1408 will be described in detail with reference to the flowchart of FIG.

WSDポート408を用いて印刷装置101と通信可能であると判断された場合(S1409でYES)、S1410において、CPU302は、ポート408m---を使って印刷装置101と通信可能であると判断する。一方、WSDポート408を使って印刷装置101と通信不能であると判断された場合(S1409でNO)、S1411において、CPU302は、ポート408を使って印刷装置101と通信不能であると判断する。 When it is determined that the WSD port 408 m can communicate with the printing device 101 (YES in S1409), in S1410, the CPU 302 can communicate with the printing device 101 using the port 408 m ---. to decide. On the other hand, when it is determined that the WSD port 408 m cannot communicate with the printing device 101 (NO in S1409), the CPU 302 determines in S1411 that it cannot communicate with the printing device 101 using the port 408 m. To do.

S1401でポート種類が「ホスト名ポート」であると判断された場合(S1402でNO、S1407でNO)、S1412において、CPU302は、S603において取得された印刷装置101のLLMNR機能の有効/無効を判定する。印刷装置101のLLMNR機能が有効である場合(S1412でYES)、S1413において、CPU302は、ホスト名ポート408を使って印刷装置101と通信できるか否かを判定する。なお、S1413については、図16のフローチャートを用いて詳細に説明する。 When it is determined in S1401 that the port type is "host name port" (NO in S1402, NO in S1407), in S1412, the CPU 302 determines whether the LLMNR function of the printing apparatus 101 acquired in S603 is valid / invalid. To do. When the LLMNR function of the printing device 101 is enabled (YES in S1412), in S1413, the CPU 302 determines whether or not the host name port 408 m can be used to communicate with the printing device 101. Note that S1413 will be described in detail with reference to the flowchart of FIG.

ホスト名ポート408を使って印刷装置101と通信可能であると判断された場合(S1414でYES)、S1415において、CPU302は、ポート408を使って印刷装置101と通信可能であると判断する。一方、ホスト名ポート408を使って印刷装置101と通信不能であると判断された場合(S1414でNO)、または、印刷装置のLLMNR機能が無効である場合(S1412でNO)の処理について説明する。S1416において、CPU302は、S603において取得された印刷装置101のDNS機能の有効/無効を判定する。 When it is determined that the host name port 408 m can be used to communicate with the printing device 101 (YES in S1414), in S1415, the CPU 302 determines that the port 408 m can be used to communicate with the printing device 101. .. On the other hand, the processing when it is determined that communication with the printing device 101 using the host name port 408 m is impossible (NO in S1414) or when the LLMNR function of the printing device is invalid (NO in S1412) will be described. To do. In S1416, the CPU 302 determines whether the DNS function of the printing device 101 acquired in S603 is valid / invalid.

印刷装置101のDNS機能が有効である場合(S1416でYES)、S1417において、CPU302は、ホスト名ポート408を使って印刷装置101と通信可能か否かを判定する。なお、S1417については、図16のフローチャートを用いて詳細に説明する。 When the DNS function of the printing device 101 is enabled (YES in S1416), in S1417, the CPU 302 determines whether or not communication with the printing device 101 is possible using the host name port 408 m . Note that S1417 will be described in detail with reference to the flowchart of FIG.

ホスト名ポート408を使って印刷装置101と通信可能であると判断された場合(S1418でYES)、S1419において、CPU302は、ポート408を使って印刷装置101と通信可能であると判断する。一方、ホスト名ポート408を使って印刷装置101と通信不能であると判断された場合(S1418でNO)、または、印刷装置のDNS機能が無効である場合(S1416でNO)の処理について説明する。S1420において、CPU302は、ポート408を使って印刷装置101と-は通信不能であると判断する。上述の処理において、CPU302は、S1412及びS1416において印刷装置101のLLMNR/DNS機能の有効/無効の判定を行う。その結果、これらの判定がない場合と比較して、印刷装置101のLLMNR/DNS機能が無効の場合のホスト名ポートの通信可否判定を早く行うことが可能である。例えば、印刷装置101のLLMNR機能が無効化されていて、かつ、DNS機能が有効化されていたとする。ここで、S1412が実行されない場合、CPU302は、まずLLMNRにて印刷装置101と通信可能か否かの判定を行う。そして、CPU302は、印刷装置101のLLMNR機能が無効化されているため、通信不能と判定される。その後、CPU302は、DNSにて印刷装置101と通信可能か否かの判定を行う。つまり、印刷装置101のLLMNRが無効化されているか否かが不明であるため、CPU302が、無駄にLLMNRにて印刷装置101と通信可能か否かの判定を行うおそれがあり、この処理により通信可否の判定が長期化するおそれがあった。図14の処理は、この点をS1412およびS1416を実行することで解決している。ただし、S1412およびS1416の判定が行われない場合であっても、印刷装置101のLLMNR/DNSの機能が無効の場合にはS1414/S1418においてNOと判定される。その結果、ホスト名ポート408を使ってLLMNR/DNSで印刷装置101と通信不能であると判断される結果は同じである。 When it is determined that the host name port 408 m can be used to communicate with the printing device 101 (YES in S1418), in S1419, the CPU 302 determines that the port 408 m can be used to communicate with the printing device 101. .. On the other hand, the processing when it is determined that communication with the printing device 101 using the host name port 408 m is impossible (NO in S1418) or when the DNS function of the printing device is invalid (NO in S1416) will be described. To do. In S1420, the CPU 302 determines that the printing device 101 and-cannot communicate with each other using the port 408 m . In the above process, the CPU 302 determines whether the LLMNR / DNS function of the printing apparatus 101 is valid / invalid in S1412 and S1416. As a result, it is possible to determine whether or not the host name port can communicate faster when the LLMNR / DNS function of the printing device 101 is disabled, as compared with the case where these determinations are not made. For example, it is assumed that the LLMNR function of the printing device 101 is disabled and the DNS function is enabled. Here, when S1412 is not executed, the CPU 302 first determines whether or not it is possible to communicate with the printing device 101 by the LLMNR. Then, the CPU 302 is determined to be unable to communicate because the LLMNR function of the printing device 101 is disabled. After that, the CPU 302 determines whether or not it is possible to communicate with the printing device 101 by DNS. That is, since it is unknown whether or not the LLMNR of the printing device 101 is invalidated, the CPU 302 may uselessly determine whether or not the LLMNR can communicate with the printing device 101, and communication is performed by this process. There was a risk that the decision on whether or not to accept was prolonged. The process of FIG. 14 solves this point by executing S1412 and S1416. However, even when the determinations of S1412 and S1416 are not performed, NO is determined in S1414 / S1418 when the LLMNR / DNS function of the printing apparatus 101 is invalid. As a result, the result of determining that the LLMNR / DNS cannot communicate with the printing device 101 using the host name port 408 m is the same.

図15は、図14におけるS1408の処理を詳細に説明するためのフローチャートである。まず、S1501において、CPU302は、S603において取得された印刷装置101のWSD機能の有効/無効を判定する。印刷装置101のWSD機能が無効である場合(S1501でNO)、S1502において、CPU302は、WSDポート408を使って印刷装置101と通信不能であると判断する。一方、印刷装置101のWSD機能が有効である場合(S1501でYES)、S1503において、CPU302は、WSDポート408のネットワーク識別子410に設定されているUUIDからMACアドレスを取得する。続いて、S1504において、CPU302は、S603において取得された印刷装置101のMACアドレスと、S1503で取得したMACアドレスを比較する。これらが不一致の場合(S1505でNO)、S1502において、CPU302は、WSDポート408を使って印刷装置101と通信不能であると判断する。一方、印刷装置101のMACアドレスとS1503で取得したMACアドレスが一致する場合(S1505でYES)の処理について説明する。S1506において、CPU302は、WSDプロトコルに対応する検索モジュールを用いて、ネットワーク識別子410に設定されているUUIDに基づくユニキャスト通信で印刷装置101を検索する。 FIG. 15 is a flowchart for explaining the process of S1408 in FIG. 14 in detail. First, in S1501, the CPU 302 determines whether the WSD function of the printing device 101 acquired in S603 is valid / invalid. When the WSD function of the printing device 101 is invalid (NO in S1501), in S1502, the CPU 302 determines that communication with the printing device 101 is impossible using the WSD port 408 m . On the other hand, when the WSD function of the printing device 101 is enabled (YES in S1501), in S1503, the CPU 302 acquires the MAC address from the UUID set in the network identifier 410 m of the WSD port 408 m . Subsequently, in S1504, the CPU 302 compares the MAC address of the printing device 101 acquired in S603 with the MAC address acquired in S1503. If they do not match (NO in S1505), in S1502, the CPU 302 determines that it cannot communicate with the printing apparatus 101 using the WSD port 408 m . On the other hand, the process when the MAC address of the printing apparatus 101 and the MAC address acquired in S1503 match (YES in S1505) will be described. In S1506, the CPU 302 uses a search module corresponding to the WSD protocol to search the printing device 101 by unicast communication based on the UUID set in the network identifier 410 m .

S1506で印刷装置101が検出されない場合(S1507でNO)、S1502において、CPU302は、WSDポート408を用いて印刷装置101と通信不能であると判断する。一方、S1506で印刷装置101が検出された場合(S1507でYES)、S1508において、CPU302は、WSDポート408を使って印刷装置101と通信可能であると判断する。なお、S1501において、情報比較機能506が印刷装置101のWSD機能の有効/無効の判定を行うことで、この判定がない場合と比較して、印刷装置101のWSDの機能が無効の場合のWSDポートの通信可否判定を早く行うことが可能である。ただし、この判定を行わない場合であっても、印刷装置101のWSDの機能が無効の場合にはS1506において印刷装置101が検索されないことになる。そのため、最終的にS1502において、CPU302は、WSDポート408を用いて印刷装置101と通信不能であると判断する。 If the printing device 101 is not detected in S1506 (NO in S1507), the CPU 302 determines in S1502 that it cannot communicate with the printing device 101 using the WSD port 408 m . On the other hand, when the printing device 101 is detected in S1506 (YES in S1507), in S1508, the CPU 302 determines that it can communicate with the printing device 101 using the WSD port 408 m . In S1501, the information comparison function 506 determines whether the WSD function of the printing device 101 is valid / invalid, so that the WSD when the WSD function of the printing device 101 is invalid as compared with the case where this determination is not made. It is possible to quickly determine whether or not the port can communicate. However, even if this determination is not made, if the WSD function of the printing device 101 is invalid, the printing device 101 will not be searched for in S1506. Therefore, finally, in S1502, the CPU 302 determines that it cannot communicate with the printing device 101 using the WSD port 408 m .

図16は、図14におけるS1413及びS1417の処理を詳細に説明するためのフローチャートである。まず、S1601において、CPU302は、S603において取得された印刷装置101のLLMNR名(S1413の場合)またはDNS名(S1417の場合)と、ホスト名ポート408のネットワーク識別子410に設定されているホスト名を比較する。これらが一致しない場合(S1602でNO)、S1603において、CPU302は、ホスト名ポート408を用いて印刷装置101と通信不能であると判断する。一方、印刷装置101のLLMNR名またはDNS名と、ホスト名ポート408のネットワーク識別子410に設定されているホスト名が一致する場合(S1602でYES)、図16の処理はS1604へと進む。そして、CPU302は、ホスト名ポート408のネットワーク識別子410に設定されているホスト名で名前解決を試行する。例えば、CPU302は、ネットワーク識別子410に設定されているホスト名を指定してIPアドレスの問い合わせコマンドを、ネットワークを介したブロードキャストにて送信する。その結果、ホスト名に対応する印刷装置101がIPアドレスを応答コマンドとして送信する。この問い合わせコマンドの送信と、応答コマンドの受信が適切に実行された場合、名前解決が成功し、CPU302は、印刷装置101のIPアドレスを取得することができる。 FIG. 16 is a flowchart for explaining in detail the processes of S1413 and S1417 in FIG. First, in S1601, the CPU 302 sets the LLMNR name (in the case of S1413) or DNS name (in the case of S1417) of the printing device 101 acquired in S603 and the network identifier 410 m of the host name port 408 m . Compare names. If they do not match (NO in S1602), in S1603, the CPU 302 determines that it cannot communicate with the printing device 101 using the host name port 408 m . On the other hand, when the LLMNR name or DNS name of the printing device 101 and the host name set in the network identifier 410 m of the host name port 408 m match (YES in S1602), the process of FIG. 16 proceeds to S1604. Then, the CPU 302 attempts name resolution with the host name set in the network identifier 410 m of the host name port 408 m . For example, the CPU 302 specifies a host name set in the network identifier 410 m and transmits an IP address inquiry command by broadcasting via the network. As a result, the printing device 101 corresponding to the host name transmits the IP address as a response command. If the transmission of the inquiry command and the reception of the response command are properly executed, the name resolution is successful, and the CPU 302 can acquire the IP address of the printing device 101.

名前解決に失敗した場合(S1605でNO)、S1603において、CPU302は、ホスト名ポート408を用いて印刷装置101と通信不能であると判断する。一方、名前解決に成功した場合(S1605でYES)について説明する。S1606において、CPU302は、S603において取得された印刷装置101のIPアドレスと、S1604においてホスト名ポート408のネットワーク識別子410に設定されているホスト名で名前解決して取得したIPアドレスを比較する。これらが一致する場合(S1607でYES)、S1608において、CPU302は、ホスト名ポート408を用いて印刷装置101と通信可能であると判断する。一方、印刷装置101のIPアドレスと、ホスト名ポート408のIPアドレスが一致しない場合(S1607でNO)、S1603において、CPU302は、ホスト名ポート408を用いて印刷装置101と通信不能であると判断する。 If the name resolution fails (NO in S1605), in S1603, the CPU 302 determines that it cannot communicate with the printing device 101 using the host name port 408 m . On the other hand, the case where the name resolution is successful (YES in S1605) will be described. In S1606, the CPU 302 compares the IP address of the printing device 101 acquired in S603 with the IP address acquired by resolving the name with the host name set in the network identifier 410 m of the host name port 408 m in S1604. .. If they match (YES in S1607), in S1608, the CPU 302 determines that it can communicate with the printing device 101 using the host name port 408 m . On the other hand, when the IP address of the printing device 101 and the IP address of the host name port 408 m do not match (NO in S1607), in S1603, the CPU 302 cannot communicate with the printing device 101 using the host name port 408 m. Judge.

図10は、図6におけるS608の処理を詳細に説明するためのフローチャートである。CPU302は、情報処理装置104内の全ての印刷キュー402に対して、以下に示すS1002〜S1004の処理を繰り返す(S1001)。 FIG. 10 is a flowchart for explaining the process of S608 in FIG. 6 in detail. The CPU 302 repeats the processes of S1002 to S1004 shown below for all the print queues 402 in the information processing apparatus 104 (S1001).

まず、S1002において、CPU302は、S603において取得された印刷装置101の機種名と、S604にて取得された印刷キュー402のサポート機種識別子406に含まれる機種名(名称情報)を比較する。印刷装置101の機種名とサポート機種識別子406に含まれる機種名が一致しない場合(S1002でNO)、印刷装置101に対応した印刷キューではないと判断し、次の印刷キュー402n+1に変更してS1002〜S1004の処理を実行する。一方、印刷装置101の機種名とサポート機種識別子406に含まれる機種名が一致する場合(S1002でYES)、S1003において、CPU302は、印刷キュー402の修復優先順位を決定する。S1003については、図17のフローチャートを使って詳細に説明する。印刷キュー402の修復優先順位が決定されると、S1004において、CPU302は、印刷キュー402を修復対象印刷キューの一覧に加え、次の印刷キュー402n+1に変更してS1002〜S1004の処理を実行する。これらの処理が情報処理装置104内の全ての印刷キュー402に対して行われた後、処理を終了する。なお、S1003で設定された優先順位は、図11(a)の表示順序を決定する際に使用される。例えば、優先順位順に従って図11(a)の上から順に印刷キューが表示される。また、図10の処理により、複数の印刷キューがS1004において一覧に追加されるケースがある。これは、例えば、印刷装置101のXPS用の印刷キュー、印刷装置101のGDI用の印刷キュー、印刷装置101のFAX用のキューが情報処理装置104内で管理されていることがある。こういった場合、複数の印刷キューがS1004において一覧に追加される。 First, in S1002, the CPU 302 compares the model name of the printing device 101 acquired in S603 with the model name (name information) included in the support model identifier 406 p of the print queue 402 n acquired in S604. If the model name and the model name included in support model identifier 406 p of the printing apparatus 101 does not match (NO in S1002), it is determined not to be the print queue corresponding to the printing device 101 is changed to the next print queue 402 n + 1 The processes of S1002 to S1004 are executed. On the other hand, when the model name of the printing device 101 and the model name included in the supported model identifier 406 p match (YES in S1002), in S1003, the CPU 302 determines the repair priority of the print queue 402 n . S1003 will be described in detail with reference to the flowchart of FIG. When the repair priority of the print queue 402 n is determined, in S1004, the CPU 302 adds the print queue 402 n to the list of print queues to be repaired, changes the print queue 402 n to the next print queue 402 n + 1 , and performs the processing of S1002 to S1004. Execute. After these processes are performed on all the print queues 402 in the information processing apparatus 104, the processes are terminated. The priority set in S1003 is used when determining the display order in FIG. 11A. For example, the print queues are displayed in order from the top of FIG. 11A in order of priority. Further, there is a case where a plurality of print queues are added to the list in S1004 by the process of FIG. For example, the printing queue for XPS of the printing apparatus 101, the printing queue for GDI of the printing apparatus 101, and the fax queue of the printing apparatus 101 may be managed in the information processing apparatus 104. In such a case, a plurality of print queues are added to the list in S1004.

図17は、図10におけるS1003の処理を詳細に説明するためのフローチャートである。本実施形態において、印刷キューの修復優先順位は、印刷キューに関連するパラメータval1〜val3によって決定される。val1〜val3は、初期値を「0」とする数値パラメータであり、修復優先順位に寄与する度合いは、val1>val2>val3という関係である。本実施形態では、これら修復優先順位を決めるためのパラメータとして以下に示すように通常使うプリンタなどを用いて説明しているが、他のパラメータが使用されても良い。例えば、印刷キューに設定されたポートに関連したパラメータなど、本実施形態に書かれたもの以外であっても良いし、パラメータの個数も本実施形態の個数に限定されるものではない。 FIG. 17 is a flowchart for explaining the process of S1003 in FIG. 10 in detail. In this embodiment, the print queue repair priority is determined by the parameters val1 to val3 associated with the print queue. val1 to val3 are numerical parameters whose initial value is "0", and the degree of contribution to the repair priority is in the relationship of val1> val2> val3. In the present embodiment, the parameters for determining the repair priority are described using a printer or the like that is normally used as shown below, but other parameters may be used. For example, the parameters related to the port set in the print queue may be other than those described in the present embodiment, and the number of parameters is not limited to the number of the present embodiment.

まず、S1701において、CPU302は、判定対象の印刷キュー402がOSの機能によって、印刷を行う際に通常利用する印刷キュー(以下、「通常使うプリンタ」)として設定されているかを判定する。判定対象の印刷キュー402に「通常使うプリンタ」が設定されている場合(S1701でYES)、CPU302は、S1702において判定対象の印刷キュー402のval1に「1」を設定する。一方、判定対象の印刷キュー402に「通常使うプリンタ」が設定されていない場合(S1701でNO)、val1の値は初期値「0」のままである。 First, in S1701, the CPU 302 determines whether the print queue 402 n to be determined is set as the print queue normally used when printing (hereinafter, “default printer”) by the function of the OS. When the "normally used printer" is set in the print queue 402 n to be determined (YES in S1701), the CPU 302 sets "1" in val1 of the print queue 402 n to be determined in S1702. On the other hand, when the "normally used printer" is not set in the print queue 402 n to be determined (NO in S1701), the value of val1 remains the initial value "0".

次に、S1703において、CPU302は、印刷キュー402に印刷ジョブが残っているかの判定を行う。印刷ジョブが残っている場合(S1703でYES)、CPU302は、判定対象の印刷キュー402のval2に「1」を設定する。一方、印刷キュー402に印刷ジョブが残っていない場合(S1703でNO)、val2の値は初期値「0」のままである。 Next, in S1703, the CPU 302 determines whether or not a print job remains in the print queue 402 n . When the print job remains (YES in S1703), the CPU 302 sets "1" in the value 2 of the print queue 402 n to be determined. On the other hand, when there are no print jobs remaining in the print queue 402 n (NO in S1703), the value of val2 remains the initial value "0".

続いて、S1705において、CPU302は、例えば、印刷用紙種類や印刷用紙サイズ等の印刷キュー402の印刷設定情報が初期設定から変更されているかを判定する。本実施形態では、判定対象の印刷キュー402の印刷設定情報が初期設定から変更されている場合、他の印刷キューより優先度を高く設定する。なお、その理由は、ユーザが印刷設定情報を初期設定から変更しているということは、ユーザが判定対象の印刷キュー402を使用する頻度が高いことが予測されるためである。印刷設定情報が初期設定から変更されている場合(S1705でYES)、CPU302は、判定対象の印刷キュー402のval2の値に「1」を加える。一方、印刷キュー402の印刷設定情報が初期設定から変更されていない場合(S1705でNO)、val2の値は変更されない。印刷キューの印刷設定情報の初期設定を取得する方法は、一例として、アプリケーション501が機種ごとの初期設定のテーブルを保持する方法であっても良い。または、プリンタドライバのインストール時など、印刷キュー402が作成されたタイミングで情報処理装置104内部のROM303または外部記憶装置305にアプリケーション501が初期設定を記憶させておく方法であっても良い。 Subsequently, in S1705, the CPU 302 determines whether the print setting information of the print queue 402 n such as the print paper type and the print paper size has been changed from the initial settings. In the present embodiment, when the print setting information of the print queue 402 n to be determined is changed from the initial setting, the priority is set higher than that of the other print queues. The reason is that the fact that the user changes the print setting information from the initial setting is because it is predicted that the user frequently uses the print queue 402 n to be determined. When the print setting information has been changed from the initial setting (YES in S1705), the CPU 302 adds "1" to the value of val2 of the print queue 402 n to be determined. On the other hand, when the print setting information of the print queue 402 n has not been changed from the initial setting (NO in S1705), the value of val2 is not changed. As an example, the method of acquiring the initial setting of the print setting information of the print queue may be a method in which the application 501 holds a table of initial settings for each model. Alternatively, the application 501 may store the initial settings in the ROM 303 inside the information processing device 104 or the external storage device 305 at the timing when the print queue 402 n is created, such as when installing the printer driver.

続いて、S604にて取得された印刷キュー402のドライバ種別識別子407からval3の値を決定する。本実施形態においては、一例として、使用率の高さという観点で、ドライバ種別識別子の407による優先順位を「GDI」>「XPS」>「FAX」と定める。印刷キュー402のドライバ種別識別子407が「GDI」である場合(S1707でYES)、S1708において、CPU302は、判定対象の印刷キュー402のval3の値に「3」を設定する。印刷キュー402のドライバ種別識別子407が「XPS」である場合(S1707でNO、S1709でYES)、S1710において、CPU302は、判定対象の印刷キュー402のval3の値に「2」を設定する。 Then, to determine the value of val3 from the driver type identifier 407 p of the obtained print queue 402 n at S604. In the present embodiment, as an example, from the viewpoint of high usage rate, the priority order of the driver type identifier according to 407 p is defined as "GDI">"XPS">"FAX". When the driver type identifier 407 p of the print queue 402 n is "GDI" (YES in S1707), in S1708, the CPU 302 sets "3" to the value of val3 of the print queue 402 n to be determined. When the driver type identifier 407 p of the print queue 402 n is "XPS" (NO in S1707, YES in S1709), in S1710, the CPU 302 sets "2" in the value of val3 of the print queue 402 n to be determined. To do.

印刷キュー402のドライバ種別識別子407が「FAX」である場合(S1707でNO、S1709でNO、S1711でYES)、S1712において、CPU302は、判定対象の印刷キュー402のval3の値に「1」を設定する。印刷キュー402のドライバ種別識別子407が上記のもの以外の場合(S1707でNO、S1709でNO、S1711でNO)、val3の値は変更されない。val1〜val3の値が決定されたら、S1713において、CPU302は、val1〜val3の値から印刷キュー402の修復優先順位を決定する。val1〜val3の値に基づく修復優先順位の決定方法に関しては、図18に示す修復優先順位決定テーブルが用いられる。 When the driver type identifier 407 p of the print queue 402 n is "FAX" (NO in S1707, NO in S1709, YES in S1711), in S1712, the CPU 302 sets the value of val3 of the print queue 402 n to be determined to "NO". 1 ”is set. When the driver type identifier 407 p of the print queue 402 n is other than the above (NO in S1707, NO in S1709, NO in S1711), the value of val3 is not changed. After the values of val1 to val3 are determined, in S1713, the CPU 302 determines the repair priority of the print queue 402 n from the values of val1 to val3. As for the method of determining the repair priority based on the values of val1 to val3, the repair priority determination table shown in FIG. 18 is used.

図18(a)、図18(b)は、図17におけるS1713において用いられる修復優先順位決定テーブルの一例である。ここでは、一例として、アプリケーション501は、3個の修復対象印刷キュー(印刷キューA〜C)に対して、修復優先順位を決定する。印刷キューAは「通常使うプリンタ」であるが、印刷ジョブは残っておらず、印刷設定は初期設定から変更されていない。印刷キューBは、印刷ジョブが残っており、印刷設定も初期設定から変更されている。印刷キューCは、印刷ジョブが残っているが、印刷設定が初期設定から変更されていない。印刷キューA〜Cのプリンタドライバ種別は、それぞれ「XPS」、「FAX」、「GDI」である。 18 (a) and 18 (b) are examples of the repair priority determination table used in S1713 in FIG. Here, as an example, the application 501 determines the repair priority for the three print queues to be repaired (print queues A to C). The print queue A is a "default printer", but no print job remains and the print settings have not been changed from the initial settings. The print job remains in the print queue B, and the print settings are also changed from the initial settings. In the print queue C, the print job remains, but the print settings have not been changed from the initial settings. The printer driver types of the print queues A to C are "XPS", "FAX", and "GDI", respectively.

図18(a)において、各印刷キューの修復優先順位は、val1〜val3の値の内、修復優先順位へ寄与する度合いが高いパラメータの値が高いほど高順位と定める。つまり、印刷キューA〜Cの内、val1の値が最も高い印刷キューAが修復優先順位「1」となり、次いでval2の値で比較した際により高い値を持つ印刷キューBが修復優先順位「2」となる。印刷キューCは、val3の値は印刷キューA〜Cの内で最も高いが、val1、val2の値が他の2つより低いため、修復優先順位「3」となる。 In FIG. 18A, the restoration priority of each print queue is determined as the higher the value of the parameter having a higher degree of contribution to the restoration priority among the values of val1 to val3. That is, among the print queues A to C, the print queue A having the highest value of val1 has the repair priority "1", and then the print queue B having the higher value when compared with the value of val2 has the repair priority "2". ". In the print queue C, the value of val3 is the highest among the print queues A to C, but the values of val1 and val2 are lower than the other two, so that the repair priority is "3".

また図18(a)とは異なる方法で優先順位が設定されても良い。例えば、図18(b)において、各印刷キューの修復優先順位は、val1〜val3の値にそれぞれ係数をかけた値の合計値valが高いものを高順位と定める。ここでは、一例として、val1〜val3にかける係数を、それぞれ「3」「1.5」「1」とした。各パラメータにかける係数は、この例に限らないし、修復優先順位を低くするパラメータである場合は、負の値であっても良い。ここで、印刷キューA〜Cのvalの値は、それぞれ「5」「4」「4.5」となり、修復優先順位はそれぞれ「1」「3」「2」となる。 Further, the priority may be set by a method different from that shown in FIG. 18A. For example, in FIG. 18B, the repair priority of each print queue is determined to be high when the total value of the values of val1 to val3 multiplied by a coefficient is high. Here, as an example, the coefficients to be multiplied by val1 to val3 are set to "3", "1.5", and "1", respectively. The coefficient to be applied to each parameter is not limited to this example, and may be a negative value when it is a parameter that lowers the repair priority. Here, the values of val of the print queues A to C are "5", "4", and "4.5", respectively, and the repair priority is "1", "3", and "2", respectively.

図18(a)、図18(b)で示す優先順位の設定方法は一例であり、印刷ジョブの残存有無や印刷設定の変更有無を、優先順位を決める際の最優先パラメータとしても良いし、プリンタドライバ種別によってのみ優先順位が定められる方式であっても良い。 The method of setting the priority shown in FIGS. 18A and 18B is an example, and whether or not the print job remains or whether or not the print setting is changed may be used as the highest priority parameter when determining the priority. The method may be such that the priority is determined only by the printer driver type.

図12は、図6におけるS613の処理を詳細に説明するためのフローチャートである。まず、S1201において、CPU302は、印刷装置101と通信可能な新規ポート408M+1を作成する。S1201については、図19のフローチャートを使って詳細に説明する。ポート408M+1が作成されたら、S1202において、CPU302は、修復対象となる印刷キュー402のポート参照情報404の参照先としてポート408M+1を設定する。これにより、CPU302は、印刷キュー402を用いて印刷装置101と通信可能となり、印刷キュー402を用いて印刷装置101に印刷データを送信できる。なお、S1201では、図19にて後述するように、印刷キュー402のポート参照情報404に関連付けられているポート408の種類に関わらず、WSDポート、ホスト名ポートが優先的に作成される。これにより、修復後に印刷装置101のIPアドレスが変更される場合であっても、可能な限り、印刷キュー402を用いた印刷装置101による印刷が可能な状態を維持することができる。 FIG. 12 is a flowchart for explaining the process of S613 in FIG. 6 in detail. First, in S1201, the CPU 302 creates a new port 408 M + 1 capable of communicating with the printing apparatus 101. S1201 will be described in detail with reference to the flowchart of FIG. After the port 408 M + 1 is created, in S1202, the CPU 302 sets the port 408 M + 1 as the reference destination of the port reference information 404 1 of the print queue 402 1 to be repaired. Thus, CPU 302 may be capable of communicating with the printing apparatus 101 by using the print queue 402 1 may transmit the print data to the printing apparatus 101 by using the print queue 402 1. In S1201, as will be described later in FIG. 19, the WSD port and the host name port are preferentially created regardless of the type of port 408 1 associated with the port reference information 404 1 of the print queue 402 1. To. As a result, even if the IP address of the printing device 101 is changed after the repair, it is possible to maintain a state in which printing by the printing device 101 using the printing queue 402 1 is possible as much as possible.

図19は、図12におけるS1201の処理を詳細に説明するためのフローチャートである。まず、S1900において、CPU302は、修復対象として選択された印刷キューが存在するか否かを判定する。S1900において修復対象として選択された印刷キューが存在しないと判定された場合、CPU302は、S1914において修復失敗フラグを有効化して図19の処理を終了する。 FIG. 19 is a flowchart for explaining the process of S1201 in FIG. 12 in detail. First, in S1900, the CPU 302 determines whether or not the print queue selected as the restoration target exists. If it is determined in S1900 that the print queue selected as the repair target does not exist, the CPU 302 enables the repair failure flag in S1914 and ends the process of FIG.

一方、S1900において修復対象として選択された印刷キューが存在すると判定された場合、S1901において、CPU302は、S603において取得された印刷装置101のWSD機能の有効/無効を判定する。印刷装置101のWSD機能が有効である場合(S1901でYES)、S1902において、CPU302は、WSDポート408M+1を作成する。具体的には、CPU302は、WSDプロトコルにて印刷装置101を検索することで、印刷装置101の印刷キューとWSDポート408M+1を作成する。そして、CPU302は、生成されたWSDポート408M+1を使ってS1904以降の処理を実行する。 On the other hand, when it is determined in S1900 that the print queue selected as the restoration target exists, in S1901, the CPU 302 determines whether the WSD function of the printing device 101 acquired in S603 is valid / invalid. When the WSD function of the printing apparatus 101 is enabled (YES in S1901), in S1902, the CPU 302 creates the WSD port 408 M + 1 . Specifically, the CPU 302 creates the print queue of the printing device 101 and the WSD port 408 M + 1 by searching the printing device 101 using the WSD protocol. Then, the CPU 302 executes the processing after S1904 using the generated WSD port 408 M + 1 .

WSDポート408M+1の作成が終了すると、S1903において、CPU302は、WSDポート408M+1を用いて印刷装置と通信できるか否かを判定する。S1903の詳細については、前述の図15のフローチャートにおいて説明しているため詳細な説明は省略する。 When the creation of the WSD port 408 M + 1 is completed, in S1903, the CPU 302 determines whether or not the WSD port 408 M + 1 can be used to communicate with the printing apparatus. Since the details of S1903 are described in the flowchart of FIG. 15 described above, detailed description thereof will be omitted.

WSDポート408M+1を用いて印刷装置101と通信可能であると判断された場合(S1904でYES)、処理を終了する。 When it is determined that communication with the printing apparatus 101 is possible using the WSD port 408 M + 1 (YES in S1904), the process ends.

一方、WSDポート408M+1を用いて印刷装置101と通信できないと判断された場合(S1904でNO)、または、印刷装置101のWSD機能が無効である場合(S1901でNO)、図19の処理はS1905へと進む。CPU302は、S603において取得された印刷装置101のLLMNR機能の有効/無効を判定する(S1905)。印刷装置101のLLMNR機能が有効である場合(S1905でYES)、S1906において、CPU302は、印刷装置101のLLMNR名を用いたホスト名ポート408M+1を作成する。具体的には、CPU302は、ポート種識別子にTCP/IP、プロトコルとしてRAW、ポート番号9100を記述する。そして、CPU302は、ネットワーク識別子に印刷装置101から取得されたホスト名を記述する。以上の処理により、LLMNR名を用いたホスト名ポート408M+1が作成される。 On the other hand, when it is determined that the WSD port 408 M + 1 cannot communicate with the printing device 101 (NO in S1904), or the WSD function of the printing device 101 is invalid (NO in S1901), the processing of FIG. 19 is performed. Proceed to S1905. The CPU 302 determines whether the LLMNR function of the printing apparatus 101 acquired in S603 is valid / invalid (S1905). When the LLMNR function of the printing device 101 is enabled (YES in S1905), in S1906, the CPU 302 creates the host name port 408 M + 1 using the LLMNR name of the printing device 101. Specifically, the CPU 302 describes TCP / IP as the port type identifier, RAW as the protocol, and port number 9100. Then, the CPU 302 describes the host name acquired from the printing device 101 in the network identifier. By the above processing, the host name port 408 M + 1 using the LLMNR name is created.

ホスト名ポート408M+1の作成が終了すると、S1907において、CPU302は、ホスト名ポート408M+1を用いて印刷装置101と通信できるか否かの通信可否判定を行う。S1907の詳細については、前述の図16において説明しているため詳細な説明は省略する。ホスト名ポート408M+1を用いて印刷装置101と通信可能であると判断された場合(S1908でYES)、処理を終了する。 When the creation of the host name port 408 M + 1 is completed, in S1907, the CPU 302 determines whether or not the communication is possible with the printing device 101 using the host name port 408 M + 1 . Since the details of S1907 are described in FIG. 16 described above, detailed description thereof will be omitted. When it is determined that communication with the printing device 101 is possible using the host name port 408 M + 1 (YES in S1908), the process ends.

一方、ホスト名ポート408M+1を用いて印刷装置101と通信不能であると判断された場合(S1908でNO)、または、印刷装置101のLLMNR機能が無効である場合(S1905でNO)、図19の処理はS1909に進む。CPU302は、S603において取得された印刷装置101のDNS機能の有効/無効を判定する(S1909)。印刷装置101のDNS機能が有効である場合(S1909でYES)、S1910において、CPU302は、印刷装置101のDNS名を用いたホスト名ポート408M+1を作成する。具体的には、CPU302は、ポート種識別子にTCP/IP、プロトコルとしてRAW、ポート番号9100を記述する。また、CPU302は、ネットワーク識別子に印刷装置101から取得されたDNSホスト名とDNSドメイン名を記述する。以上の処理により、DNS名を用いたホスト名ポート408M+1が作成される。 On the other hand, when it is determined that communication with the printing device 101 is not possible using the host name port 408 M + 1 (NO in S1908), or when the LLMNR function of the printing device 101 is invalid (NO in S1905), FIG. Process proceeds to S1909. The CPU 302 determines whether the DNS function of the printing device 101 acquired in S603 is valid / invalid (S1909). When the DNS function of the printing device 101 is enabled (YES in S1909), in S1910, the CPU 302 creates the host name port 408 M + 1 using the DNS name of the printing device 101. Specifically, the CPU 302 describes TCP / IP as the port type identifier, RAW as the protocol, and port number 9100. Further, the CPU 302 describes the DNS host name and the DNS domain name acquired from the printing device 101 in the network identifier. By the above processing, the host name port 408 M + 1 using the DNS name is created.

ホスト名ポート408M+1の作成が終了すると、S1911において、CPU302は、ホスト名ポート408M+1を用いて印刷装置101と通信可能であるか否かを判定する。S1911の詳細については、前述の図16のフローチャートにおいて説明しているため詳細な説明は省略する。ホスト名ポート408M+1を用いて印刷装置101と通信可能であると判断された場合(S1912でYES)、処理を終了する。 When the creation of the host name port 408 M + 1 is completed, in S1911, the CPU 302 determines whether or not the printing device 101 can communicate with the host name port 408 M + 1 . Since the details of S1911 are described in the flowchart of FIG. 16 described above, detailed description thereof will be omitted. When it is determined that communication with the printing device 101 is possible using the host name port 408 M + 1 (YES in S1912), the process ends.

一方、ホスト名ポート408M+1を用いて印刷装置101と通信不能であると判断された場合(S1912でNO)、または、印刷装置101のDNS機能が無効である場合(S1909でNO)、図19の処理はS1913に進む。CPU302は、印刷装置101のIPアドレスを用いた固定IPアドレスポート408M+1を作成する(S1913)。具体的には、CPU302は、ポート種識別子にTCP/IP、プロトコルとしてRAW、ポート番号9100を記述する。また、CPU302は、ネットワーク識別子に印刷装置101から取得されたIPアドレスを記述する。以上の処理により、固定IPアドレスポート408M+1が作成される。つまり、情報処理装置104は、ポートが生成された後に印刷装置101のIPアドレスが変更された場合であっても変更された後のIPアドレスを自動的に使って印刷装置と通信することが可能な自動追従ポートを生成できるか否かを判定する。そして、自動追従ポートを生成できないと判定された場合、情報処理装置104は、修復対象の印刷キューのポートとして、印刷装置101から取得されたIPアドレスを固定的に使用する固定ポートを生成する。 On the other hand, when it is determined that communication with the printing device 101 is not possible using the host name port 408 M + 1 (NO in S1912), or when the DNS function of the printing device 101 is invalid (NO in S1909), FIG. 19 Process proceeds to S1913. The CPU 302 creates a fixed IP address port 408 M + 1 using the IP address of the printing device 101 (S1913). Specifically, the CPU 302 describes TCP / IP as the port type identifier, RAW as the protocol, and port number 9100. Further, the CPU 302 describes the IP address acquired from the printing device 101 in the network identifier. By the above processing, the fixed IP address port 408 M + 1 is created. That is, even if the IP address of the printing device 101 is changed after the port is generated, the information processing device 104 can automatically use the changed IP address to communicate with the printing device. It is determined whether or not an automatic tracking port can be generated. Then, when it is determined that the automatic tracking port cannot be generated, the information processing device 104 generates a fixed port that fixedly uses the IP address acquired from the printing device 101 as the port of the print queue to be repaired.

なお、図19の処理は、必ずしも全て実行される必要はない。例えば、S1901からS1904がされても良い。 It should be noted that the processes of FIG. 19 do not necessarily have to be all executed. For example, S1901 to S1904 may be performed.

本実施形態においては、ネットワークに接続している装置を検出するプロトコルとしてWSDが用いられる場合の例について説明したが、WSDと同様の機能を有する別のプロトコルが用いられてもよい。また、本実施形態において、名前解決の機能を有するプロトコルとしてLLMNRとDNSが用いられる場合の例について説明したが、名前解決の機能を有する別のプロトコルが用いられてもよい。また、本実施形態において、作成されるポートの種類の優先順位は、WSDポート、ホスト名ポートの順としたが、この順番に限るものではない。また、作成されるポートの種類が、WSDポート、ホスト名ポートのどちらか一方のみであっても良い。その際、作成されるポートは、一例として、印刷キュー402に設定されていたポート408のポートの種類に合わせたものであっても良い。 In the present embodiment, an example in which WSD is used as a protocol for detecting a device connected to the network has been described, but another protocol having the same function as WSD may be used. Further, in the present embodiment, an example in which LLMNR and DNS are used as protocols having a name resolution function has been described, but another protocol having a name resolution function may be used. Further, in the present embodiment, the priority of the created port type is the order of WSD port and host name port, but the order is not limited to this. Further, the type of the port created may be only one of the WSD port and the host name port. At that time, as an example, the created port may be one that matches the port type of the port 408 1 set in the print queue 402 1 .

本実施例によれば名前解決が可能なプロトコルが優先的に使用されてポート設定情報が設定される。つまり、WSDポート、LLMNRポート、DNSポートのような自動追従ポートが優先的に設定される。その結果、例えば、図6が実行された後に印刷装置のIPアドレスが変更された場合であっても、情報処理装置104は、変更された後のIPアドレスを自動的に使って印刷装置と通信することが可能となる。 According to this embodiment, the protocol capable of name resolution is preferentially used and the port setting information is set. That is, the automatic tracking port such as the WSD port, the LLMNR port, and the DNS port is preferentially set. As a result, for example, even if the IP address of the printing device is changed after the execution of FIG. 6, the information processing device 104 automatically uses the changed IP address to communicate with the printing device. It becomes possible to do.

以上の処理により、情報処理装置104の状態を、ユーザが図7において選択した印刷装置と通信可能な状態に容易に変更することが可能となり、ユーザの利便性を向上することが可能となる。 By the above processing, the state of the information processing device 104 can be easily changed to a state in which the user can communicate with the printing device selected in FIG. 7, and the convenience of the user can be improved.

<第二の実施形態>
第一の実施形態において、図6におけるS613において、CPU302は、修復対象となる印刷キュー402に対して設定するポートとして、新規のポート408M+1を作成した。本実施形態では、情報処理装置104内に印刷装置101と通信可能なポートが既に存在する場合は、そのポートを印刷キュー402に設定することでユーザの利便性を向上する。
<Second embodiment>
In the first embodiment, in S613 in FIG. 6, the CPU 302 creates a new port 408 M + 1 as a port to be set for the print queue 402 1 to be repaired. In the present embodiment, when a port capable of communicating with the printing device 101 already exists in the information processing device 104, the user convenience is improved by setting the port in the printing queue 402 1 .

以下、図20のフローチャートを用いて、本発明の第二の実施形態におけるアプリケーション501の処理の流れを説明する。なお、第一の実施形態と同様の処理については詳細な説明を省略する。 Hereinafter, the processing flow of the application 501 according to the second embodiment of the present invention will be described with reference to the flowchart of FIG. A detailed description of the same processing as in the first embodiment will be omitted.

図20は、図6におけるS613の処理を詳細に説明するためのフローチャートである。まず、S2001において、CPU302は、情報処理装置104の全てのポート408の中から印刷装置101と通信可能なポートがあるか判定する。S2001については、図21のフローチャートを使って詳細に説明する。 FIG. 20 is a flowchart for explaining the process of S613 in FIG. 6 in detail. First, in S2001, the CPU 302 determines whether or not there is a port capable of communicating with the printing device 101 from all the ports 408 of the information processing device 104. S2001 will be described in detail with reference to the flowchart of FIG.

印刷装置101と通信可能なポートがあると判定された場合(S2002でYES)、CPU302は、情報処理装置104内の、印刷装置101と通信可能な全てのポートに対して、S2004の処理を繰り返す(S2003)。まず、S2004において、CPU302は、印刷装置101と通信可能なポート408が固定IPアドレスポートか判定する。固定IPアドレスポートでない場合、すなわち、WSDポートもしくはホスト名ポートである場合(S2004でNO)、S2005において、CPU302は、修復対象の印刷キュー402のポート参照情報404に、ポート408の設定情報を設定する。この際、修復動作前に印刷キュー402に設定されていたポート408のポートと同じ種類のポートが設定されるよう、ポート408のポートの種類を限定しても良い。一方、ポート408が固定IPアドレスポートである場合(S2004でYES)、CPU302は、対象ポートを次のポート408m+1に変更してS2004を実行する。情報処理装置104内の印刷装置101と通信可能な全てのポートが固定IPアドレスポートであると判定された場合について説明する。S2006において、CPU302は、修復対象の印刷キュー402に、例えば、S2004の判定処理において最初に判定対象となったポートの設定情報を設定する。このとき印刷キュー402に設定するポートは、印刷装置101と通信可能な全てのポートの内、どれであっても良い。 When it is determined that there are ports that can communicate with the printing device 101 (YES in S2002), the CPU 302 repeats the processing of S2004 for all the ports in the information processing device 104 that can communicate with the printing device 101. (S2003). First, in S2004, the CPU 302 determines whether the port 408 m capable of communicating with the printing device 101 is a fixed IP address port. If it is not a fixed IP address port, that is, if it is a WSD port or a host name port (NO in S2004), in S2005, the CPU 302 sets the port 408 m in the port reference information 404 1 of the print queue 402 1 to be repaired. Set the information. At this time, the port type of the port 408 m may be limited so that the same type of port as the port of the port 408 1 set in the print queue 402 1 before the repair operation is set. On the other hand, when the port 408 m is a fixed IP address port (YES in S2004), the CPU 302 changes the target port to the next port 408 m + 1 and executes S2004. A case where all the ports capable of communicating with the printing device 101 in the information processing device 104 are determined to be fixed IP address ports will be described. In S2006, the CPU 302 sets the print queue 402 1 to be repaired with the setting information of the port that is the first determination target in the determination process of S2004, for example. At this time, the port set in the print queue 402 1 may be any of all the ports capable of communicating with the printing device 101.

S2001において、印刷装置101と通信可能なポートがないと判定された場合(S2002でNO)、S2007において、CPU302は、印刷装置101と通信可能な新規ポート408M+1を作成する。S2007の詳細については、前述の図19において説明しているため詳細な説明は省略する。ポート408M+1が作成されたら、S2008において、CPU302は、修復対象となる印刷キュー402のポート参照情報404に、ポート408M+1の設定情報を設定する。以上のことから、情報処理装置104は、印刷装置101の修復対象の印刷キューのポートとは異なる他の既存ポートにより印刷装置と通信できるか否かを判定する(S2002)。そして、他の既存ポートにより印刷装置と通信できると判定された場合、情報処理装置104は、修復対象の印刷キューのポートを、既存ポートに変更する(S2005)。なお、既存ポートを既存ポート設定情報と呼ぶこともある。情報処理装置104内に既に印刷装置101と通信可能な既存ポートが存在する場合は、通信可能な既存ポートの1つの設定情報を修復対象の印刷キューに設定することで、印刷キュー402と印刷装置101が通信可能な状態に変更される。その結果、CPU302は、印刷キュー402を用いて印刷装置101に印刷データを送信することが可能となる。これにより、情報処理装置104内のポートの数が保持しておける最大数であった場合でも、印刷キュー402の修復が可能になる。なお、S2003の繰り返し処理の結果、印刷可能ポートが固定IPアドレスポートのみであった場合、S2006におけるポート参照情報404の設定を行わず、S2007−S2008を行っても良い。つまり、新規作成したポートの設定情報をポート参照情報404へ設定する形態であっても良い。これにより、印刷キュー402へ設定されるポートは、WSDポートもしくはホスト名ポートが優先されることになる。そのため、修復後に印刷装置101のIPアドレスが変更される場合であっても、情報処理装置104は、可能な限り、印刷キュー402を用いた印刷装置101による印刷が可能な状態を維持することができる。 If it is determined in S2001 that there is no port that can communicate with the printing device 101 (NO in S2002), in S2007, the CPU 302 creates a new port 408 M + 1 that can communicate with the printing device 101. Since the details of S2007 are described in FIG. 19 described above, detailed description thereof will be omitted. When the port 408 M + 1 is created, in S2008, the CPU 302 sets the setting information of the port 408 M + 1 in the port reference information 404 1 of the print queue 402 1 to be repaired. From the above, the information processing apparatus 104 determines whether or not it is possible to communicate with the printing apparatus by another existing port different from the port of the print queue to be repaired by the printing apparatus 101 (S2002). Then, when it is determined that the other existing port can communicate with the printing device, the information processing device 104 changes the port of the print queue to be repaired to the existing port (S2005). The existing port may be referred to as the existing port setting information. If an existing port that can communicate with the printing device 101 already exists in the information processing device 104, the setting information of one of the existing ports that can communicate is set in the print queue to be repaired to print with the print queue 402 1. The device 101 is changed to a communicable state. As a result, the CPU 302 can transmit print data to the printing device 101 using the print queue 402 1 . As a result, even if the number of ports in the information processing apparatus 104 is the maximum number that can be maintained, the print queue 402 1 can be repaired. If the printable port is only the fixed IP address port as a result of the iterative processing of S2003, S2007-S2008 may be performed without setting the port reference information 404 1 in S2006. That is, the newly created port setting information may be set in the port reference information 404 1 . As a result, the WSD port or the host name port has priority as the port set in the print queue 402 1 . Therefore, even if the IP address of the printing device 101 is changed after the repair, the information processing device 104 should maintain a state in which printing by the printing device 101 using the printing queue 402 1 is possible as much as possible. Can be done.

図21は、図20におけるS2001の処理を詳細に説明するためのフローチャートである。まず、CPU302は、情報処理装置104内の全てのポート408に対して、S2102の処理を繰り返す(S2101)。S2102の詳細については、前述の図14のフローチャートにおいて説明しているため詳細な説明は省略する。この処理が情報処理装置104内の全てのポート408に対して行われた後、印刷装置101と通信可能なポートが1つでもある場合(S2103でYES)について説明する。S2104において、CPU302は、情報処理装置104内に印刷装置101と通信可能ポートがあると判断する。一方、印刷装置101と通信可能なポートが1つもない場合(S2103でNO)、S2105において、CPU302は、情報処理装置104内に印刷装置101と通信可能ポートがないと判断する。 FIG. 21 is a flowchart for explaining the process of S2001 in FIG. 20 in detail. First, the CPU 302 repeats the processing of S2102 for all the ports 408 in the information processing device 104 (S2101). Since the details of S2102 are described in the flowchart of FIG. 14 described above, detailed description thereof will be omitted. After this process is performed on all the ports 408 in the information processing apparatus 104, the case where there is at least one port capable of communicating with the printing apparatus 101 (YES in S2103) will be described. In S2104, the CPU 302 determines that the information processing device 104 has a communicable port with the printing device 101. On the other hand, when there is no port capable of communicating with the printing device 101 (NO in S2103), the CPU 302 determines in S2105 that there is no port capable of communicating with the printing device 101 in the information processing device 104.

以上の処理により、本実施形態では、修復対象となる印刷キュー402に対して設定するポートとして、新規のポート408M+1を作成する処理を可能な限り軽減できるため、ユーザの利便性を向上することが可能となる。 By the above processing, in the present embodiment, the process of creating a new port 408 M + 1 as a port to be set for the print queue 402 1 to be repaired can be reduced as much as possible, thus improving user convenience. It becomes possible.

<第三の実施形態>
第一および第二の実施形態では、図6のS612、及びS613において、修復対象となる印刷キューは、1つのみであった。しかし、複数の印刷キューを用途によって使い分けているような使用環境においては、複数の印刷キューの修復がユーザから望まれる可能性がある。そこで、本実施形態では、修復対象となる印刷キューが複数となる場合について説明する。
<Third embodiment>
In the first and second embodiments, in S612 and S613 of FIG. 6, only one print queue was to be repaired. However, in a usage environment in which a plurality of print queues are used properly depending on the purpose, there is a possibility that the user desires to repair the plurality of print queues. Therefore, in the present embodiment, a case where there are a plurality of print queues to be repaired will be described.

以下、図22を用いて、本発明の第三の実施形態におけるUI画面の一例を説明する。なお、第一または第2の実施形態と同様の処理については詳細な説明を省略する。 Hereinafter, an example of the UI screen according to the third embodiment of the present invention will be described with reference to FIG. A detailed description of the same processing as in the first or second embodiment will be omitted.

本実施形態において、CPU302が図6のS612において表示するUI画面の一例を図22(a)に示す。図22(a)において、CPU302は、S608で検出された修復対象となる印刷キューの一覧を、選択可能な形式で表示部312に表示する。ユーザは修復したい印刷キューの左端のチェックボックスをオンにしてから[次へ]ボタン2201をクリックする。この際、ユーザは複数の印刷キューを選択可能である。CPU302は、[次へ]ボタン2201の押下を検知すると、修復対象となる複数の印刷キューを特定する。 In this embodiment, an example of the UI screen displayed by the CPU 302 in S612 of FIG. 6 is shown in FIG. 22 (a). In FIG. 22A, the CPU 302 displays a list of print queues to be repaired detected in S608 on the display unit 312 in a selectable format. The user selects the check box at the left end of the print queue that he / she wants to repair, and then clicks the [Next] button 2201. At this time, the user can select a plurality of print queues. When the CPU 302 detects that the [Next] button 2201 is pressed, it identifies a plurality of print queues to be repaired.

なお、S608で検出された修復対象となる印刷キュー全てに対して修復を行ってもよい。その場合の、UI画面の一例を図22(b)に示す。CPU302は、図22(b)のようにS608で検出された修復対象となる印刷キューの一覧を、選択形式ではない形式で表示部312に表示する。CPU302は、[次へ]ボタン2202の押下を検知すると、図22(b)に表示された全ての印刷キューを修復対象の印刷キューとして特定する。 It should be noted that repair may be performed on all the print queues to be repaired detected in S608. An example of the UI screen in that case is shown in FIG. 22 (b). The CPU 302 displays a list of print queues to be repaired detected in S608 as shown in FIG. 22B on the display unit 312 in a format other than the selection format. When the CPU 302 detects that the [Next] button 2202 is pressed, it identifies all the print queues displayed in FIG. 22B as the print queues to be repaired.

修復対象となる複数の印刷キューが選択されたら、S613において、CPU302は、特定された修復対象の全ての印刷キューに対して修復処理を実行する。なお、修復処理は、第一または第二の実施形態において説明するため詳細な説明は省略する。 When a plurality of print queues to be repaired are selected, in S613, the CPU 302 executes a repair process for all the print queues to be repaired. Since the repair process will be described in the first or second embodiment, detailed description thereof will be omitted.

<他の実施形態>
上述した実施形態は、以下の処理を実行することによっても実現される。すなわち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給する。そして、そのシステム或いは装置のコンピュータ(CPU、MPU、プロセッサ等)がプログラムを読み出して実行する処理である。また、プログラムは、1つのコンピュータで実行させても、複数のコンピュータで連動させて実行させるようにしてもよい。また、上記した処理の全てをソフトウェアで実現する必要はなく、処理の一部または全部をASIC等のハードウェアで実現するようにしてもよい。また、CPUも1つのCPUで全ての処理を行うものに限らず、複数のCPUが適宜連携をしながら処理を行うものとしてもよい。
<Other embodiments>
The above-described embodiment is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiment is supplied to the system or device via a network or various storage media. Then, the computer (CPU, MPU, processor, etc.) of the system or device reads and executes the program. Further, the program may be executed on one computer or may be executed in conjunction with a plurality of computers. Further, it is not necessary to realize all of the above-mentioned processes by software, and a part or all of the processes may be realized by hardware such as ASIC. Further, the CPU is not limited to one that performs all processing by one CPU, and a plurality of CPUs may perform processing while appropriately coordinating with each other.

402 印刷キュー
408 ポート
402 Print queue 408 ports

Claims (17)

印刷装置と通信可能な情報処理装置であって、
前記印刷装置の情報をネットワークを介して取得する第1取得手段と、
前記情報処理装置において管理されている印刷キューの情報を取得する第2取得手段と、
前記情報処理装置において管理されている印刷キューの中に前記印刷装置と通信可能な印刷キューが無い場合、前記第1取得手段によって取得された情報と、前記第2取得手段によって取得された情報に基づいて、前記印刷装置に対応する印刷キューを特定する特定手段と、
前記特定された印刷キューのポート設定情報を前記印刷装置と通信可能なポート設定情報に変更する変更手段を備えることを特徴とする情報処理装置。
An information processing device that can communicate with a printing device
The first acquisition means for acquiring the information of the printing device via the network, and
A second acquisition means for acquiring information on the print queue managed in the information processing apparatus, and
When there is no print queue that can communicate with the printing device in the print queue managed by the information processing device, the information acquired by the first acquisition means and the information acquired by the second acquisition means are added. Based on the specific means for identifying the print queue corresponding to the printing apparatus,
An information processing device including a changing means for changing the port setting information of the specified print queue to port setting information capable of communicating with the printing device.
前記特定手段は、前記第1取得手段によって取得された前記印刷装置の名称情報に基づいて前記印刷装置に対応する印刷キューを特定することを特徴とする請求項1に記載の情報処理装置。 The information processing device according to claim 1, wherein the specifying means specifies a print queue corresponding to the printing device based on the name information of the printing device acquired by the first acquisition means. 前記印刷装置に対応する印刷キューとして特定された印刷キューを表示する表示制御手段を更に備えることを特徴とする請求項1または2に記載の情報処理装置。 The information processing apparatus according to claim 1 or 2, further comprising a display control means for displaying a print queue specified as a print queue corresponding to the printing apparatus. 前記印刷装置に対応する印刷キューとして特定された複数の印刷キューに対して優先度を設定する設定手段を更に有し、
前記表示制御手段は、前記設定された優先度に従って前記複数の印刷キューを表示することを特徴とする請求項1に記載の情報処理装置。
Further, it has a setting means for setting a priority for a plurality of print queues specified as print queues corresponding to the printing device.
The information processing apparatus according to claim 1, wherein the display control means displays the plurality of print queues according to the set priority.
前記複数の印刷キューの中で通常使うプリンタとして管理されている印刷キューが存在する場合、前記設定手段は、他の印刷キューよりも前記通常使うプリンタとして管理されている印刷キューが優先されるように前記優先度を設定することを特徴とする請求項4に記載の情報処理装置。 When there is a print queue managed as a normally used printer among the plurality of print queues, the setting means causes the print queue managed as the normally used printer to take precedence over other print queues. The information processing apparatus according to claim 4, wherein the priority is set. 前記設定手段は、前記複数の印刷キューの中で印刷ジョブが残っている印刷キューが、印刷ジョブが残っていない印刷キューよりも優先されるように前記優先度を設定することを特徴とする請求項4または5に記載の情報処理装置。 The setting means is characterized in that the priority is set so that the print queue in which the print job remains among the plurality of print queues has priority over the print queue in which no print job remains. Item 4. The information processing apparatus according to Item 4. 前記設定手段は、前記複数の印刷キューの中で初期設定から変更された印刷設定情報が関連付けられている印刷キューが、初期設定が関連付けられている印刷キューよりも優先されるように前記優先度を設定することを特徴とする請求項4乃至6のいずれか1項に記載の情報処理装置。 The setting means has the priority so that the print queue to which the print setting information changed from the initial setting is associated among the plurality of print queues has priority over the print queue to which the initial setting is associated. The information processing apparatus according to any one of claims 4 to 6, wherein the information processing apparatus is set. 前記設定手段は、前記複数の印刷キューの中で印刷用の印刷キューが、FAX用の印刷キューよりも優先されるように前記優先度を設定することを特徴とする請求項4乃至7のいずれか1項に記載の情報処理装置。 Any of claims 4 to 7, wherein the setting means sets the priority so that the print queue for printing has priority over the print queue for fax among the plurality of print queues. The information processing apparatus according to item 1. 制御方法であって、
印刷装置の情報をネットワークを介して取得する第1取得工程と、
情報処理装置において管理されている印刷キューの情報を取得する第2取得工程と、
前記情報処理装置において管理されている印刷キューの中に前記印刷装置と通信可能な印刷キューが無い場合、前記第1取得工程によって取得された情報と、前記第2取得工程によって取得された情報に基づいて、前記印刷装置に対応する印刷キューを特定する特定工程と、
前記特定された印刷キューのポート設定情報を前記印刷装置と通信可能なポート設定情報に変更する変更工程を備えることを特徴とする制御方法。
It ’s a control method,
The first acquisition process for acquiring printing device information via a network,
The second acquisition process to acquire the information of the print queue managed in the information processing device, and
When there is no print queue that can communicate with the printing device among the print queues managed by the information processing device, the information acquired by the first acquisition step and the information acquired by the second acquisition step are added. Based on the specific step of identifying the print queue corresponding to the printing apparatus,
A control method comprising a changing step of changing the port setting information of the specified print queue to port setting information capable of communicating with the printing device.
コンピュータを、
印刷装置の情報をネットワークを介して取得する第1取得手段と、
情報処理装置において管理されている印刷キューの情報を取得する第2取得手段と、
前記情報処理装置において管理されている印刷キューの中に前記印刷装置と通信可能な印刷キューが無い場合、前記第1取得手段によって取得された情報と、前記第2取得手段によって取得された情報に基づいて、前記印刷装置に対応する印刷キューを特定する特定手段と、
前記特定された印刷キューのポート設定情報を前記印刷装置と通信可能なポート設定情報に変更する変更手段として機能させるためのプログラム。
Computer,
The first acquisition means for acquiring information on the printing device via the network,
A second acquisition means for acquiring information on the print queue managed by the information processing device,
When there is no print queue that can communicate with the printing device in the print queue managed by the information processing device, the information acquired by the first acquisition means and the information acquired by the second acquisition means are added. Based on the specific means for identifying the print queue corresponding to the printing apparatus,
A program for functioning as a changing means for changing the port setting information of the specified print queue to the port setting information capable of communicating with the printing device.
前記特定手段は、前記第1取得手段によって取得された前記印刷装置の名称情報に基づいて前記印刷装置に対応する印刷キューを特定することを特徴とする請求項10に記載のプログラム。 The program according to claim 10, wherein the specifying means identifies a print queue corresponding to the printing device based on the name information of the printing device acquired by the first acquisition means. 前記印刷装置に対応する印刷キューとして特定された印刷キューを表示する表示制御手段を更に備えることを特徴とする請求項10または11に記載のプログラム。 The program according to claim 10 or 11, further comprising display control means for displaying a print queue specified as a print queue corresponding to the printing apparatus. 前記印刷装置に対応する印刷キューとして特定された複数の印刷キューに対して優先度を設定する設定手段を更に有し、
前記表示制御手段は、前記設定された優先度に従って前記複数の印刷キューを表示することを特徴とする請求項10に記載のプログラム。
Further, it has a setting means for setting a priority for a plurality of print queues specified as print queues corresponding to the printing device.
The program according to claim 10, wherein the display control means displays the plurality of print queues according to the set priority.
前記複数の印刷キューの中で通常使うプリンタとして管理されている印刷キューが存在する場合、前記設定手段は、他の印刷キューよりも前記通常使うプリンタとして管理されている印刷キューが優先されるように前記優先度を設定することを特徴とする請求項13に記載のプログラム。 When there is a print queue managed as a normally used printer among the plurality of print queues, the setting means causes the print queue managed as the normally used printer to take precedence over other print queues. The program according to claim 13, wherein the priority is set in 1. 前記設定手段は、前記複数の印刷キューの中で印刷ジョブが残っている印刷キューが、印刷ジョブが残っていない印刷キューよりも優先されるように前記優先度を設定することを特徴とする請求項13または14に記載のプログラム。 The setting means is characterized in that the priority is set so that the print queue in which the print job remains among the plurality of print queues has priority over the print queue in which no print job remains. Item 13. The program according to item 13 or 14. 前記設定手段は、前記複数の印刷キューの中で初期設定から変更された印刷設定情報が関連付けられている印刷キューが、初期設定が関連付けられている印刷キューよりも優先されるように前記優先度を設定することを特徴とする請求項13乃至15のいずれか1項に記載のプログラム。 The setting means has the priority so that the print queue to which the print setting information changed from the initial setting is associated among the plurality of print queues has priority over the print queue to which the initial setting is associated. The program according to any one of claims 13 to 15, characterized in that. 前記設定手段は、前記複数の印刷キューの中で印刷用の印刷キューが、FAX用の印刷キューよりも優先されるように前記優先度を設定することを特徴とする請求項13乃至16のいずれか1項に記載のプログラム。
Any of claims 13 to 16, wherein the setting means sets the priority so that the print queue for printing has priority over the print queue for fax among the plurality of print queues. The program described in item 1.
JP2019138244A 2019-07-26 2019-07-26 Information processing device, control method, program Active JP7374645B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019138244A JP7374645B2 (en) 2019-07-26 2019-07-26 Information processing device, control method, program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019138244A JP7374645B2 (en) 2019-07-26 2019-07-26 Information processing device, control method, program

Publications (2)

Publication Number Publication Date
JP2021022166A true JP2021022166A (en) 2021-02-18
JP7374645B2 JP7374645B2 (en) 2023-11-07

Family

ID=74573277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019138244A Active JP7374645B2 (en) 2019-07-26 2019-07-26 Information processing device, control method, program

Country Status (1)

Country Link
JP (1) JP7374645B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006340286A (en) * 2005-06-06 2006-12-14 Canon Inc Information communication apparatus, system and method
JP4343673B2 (en) * 2003-12-15 2009-10-14 キヤノン株式会社 Port setting automatic conversion method, port setting automatic conversion system, program, and storage medium
JP2012141992A (en) * 2008-10-21 2012-07-26 Canon Inc Information processor, information processing method, and program
JP2015132974A (en) * 2014-01-14 2015-07-23 セイコーエプソン株式会社 Information processor, recovery support method, recovery support program, recovery support system, and recovery support server
JP2015153126A (en) * 2014-02-14 2015-08-24 キヤノン株式会社 Information processing device, control method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4343673B2 (en) * 2003-12-15 2009-10-14 キヤノン株式会社 Port setting automatic conversion method, port setting automatic conversion system, program, and storage medium
JP2006340286A (en) * 2005-06-06 2006-12-14 Canon Inc Information communication apparatus, system and method
JP2012141992A (en) * 2008-10-21 2012-07-26 Canon Inc Information processor, information processing method, and program
JP2015132974A (en) * 2014-01-14 2015-07-23 セイコーエプソン株式会社 Information processor, recovery support method, recovery support program, recovery support system, and recovery support server
JP2015153126A (en) * 2014-02-14 2015-08-24 キヤノン株式会社 Information processing device, control method, and program

Also Published As

Publication number Publication date
JP7374645B2 (en) 2023-11-07

Similar Documents

Publication Publication Date Title
US8970879B2 (en) Printing system, printing method, and computer-readable medium for designating and executing printing via the internet
JP4240690B2 (en) Information processing apparatus, information processing method, information processing system, and recording medium
US20090059272A1 (en) Printer auto installation
US8230049B2 (en) Information processing apparatus, information processing apparatus control method, and storage medium storing computer program
US9329822B2 (en) Methods and apparatus for improved operation of networked printing system
US20070011354A1 (en) Device for communication and program used for such device
JP5929107B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
US9990570B2 (en) Information processing apparatus that determines spooling completion, and method for information processing apparatus
US9001363B2 (en) Printing control system, printing control method, and image processor
US11520532B2 (en) Information processing apparatus, control method, and storage medium storing program
WO2020009000A1 (en) Print server, image forming apparatus, method of controlling printing operation and recording medium
CN112015356A (en) Virtual device, operating system, virtual device service, information processing apparatus, and control method thereof
CN112306430B (en) Information processing apparatus, control method, and computer program
JP7374645B2 (en) Information processing device, control method, program
JP6267503B2 (en) Information processing apparatus, control method therefor, and program
US8300244B2 (en) Automatic discovery of networked raster image processing engines
US8760703B2 (en) Job control system and job control method
US11240094B2 (en) Information processing apparatus, information processing method, and computer-readable medium
US20050108408A1 (en) Method and apparatus for setting network
US11314469B2 (en) Information processing device and control method to generate a virtual device in the information processing device
JP2013098968A (en) Information processing program, information processing apparatus, and method for controlling information processing apparatus
JP2020017312A (en) Information processing device, information processing method, and program
JP2018005836A (en) Information processor, program, and control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220722

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230418

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230619

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: 20230926

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231025

R151 Written notification of patent or utility model registration

Ref document number: 7374645

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151