JP2018160271A - Information processing program, information processing device, and method for controlling information processing device - Google Patents

Information processing program, information processing device, and method for controlling information processing device Download PDF

Info

Publication number
JP2018160271A
JP2018160271A JP2018117908A JP2018117908A JP2018160271A JP 2018160271 A JP2018160271 A JP 2018160271A JP 2018117908 A JP2018117908 A JP 2018117908A JP 2018117908 A JP2018117908 A JP 2018117908A JP 2018160271 A JP2018160271 A JP 2018160271A
Authority
JP
Japan
Prior art keywords
communication
information
identification information
communication device
wireless communication
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
JP2018117908A
Other languages
Japanese (ja)
Other versions
JP6536720B2 (en
Inventor
紀彦 浅井
Norihiko Asai
紀彦 浅井
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2018117908A priority Critical patent/JP6536720B2/en
Publication of JP2018160271A publication Critical patent/JP2018160271A/en
Application granted granted Critical
Publication of JP6536720B2 publication Critical patent/JP6536720B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an information processing program and the like for performing communication with devices.SOLUTION: An information processing device is configured to: receive first and second communication device identification information respectively via first and second radio communication interfaces; select a communication target device that is a communication target of the information processing device from a plurality of devices; store the received first communication device identification information and the received second communication device identification information in a storage unit; receive an execution instruction for processing of communicating predetermined data with the communication target device; communicate, if at least the communication target device selected by selection means is a first communication device, the data with the communication target device via the first radio communication interface; and communicate, if the communication target device selected by the selection means is a second communication device, the data with the communication target device via the second radio communication interface.SELECTED DRAWING: Figure 1

Description

本明細書によって開示される技術は、デバイスと通信を実行するための情報処理プログラム、情報処理装置および情報処理装置の制御方法に関する。   The technology disclosed in this specification relates to an information processing program, an information processing apparatus, and an information processing apparatus control method for executing communication with a device.

従来、ユーザが、PC(Personal Computerとも称する)などの情報処理装置にドライバをインストールし、デフォルトプリンタを選択し、デフォルトプリンタのIPアドレスをPCに記憶させる。ユーザがPCに印刷を指示すると、PCが、記憶しているIPアドレスを用いて、デフォルトプリンタに印刷データを送信する、というように、情報処理装置とプリンタ等のデバイスとの間でデータ通信を行う技術が知られている。関連する技術が、特許文献1に記載されている。   Conventionally, a user installs a driver in an information processing apparatus such as a PC (also referred to as a personal computer), selects a default printer, and stores the IP address of the default printer in the PC. When the user instructs printing to the PC, the PC transmits data to the default printer using the stored IP address, such as data communication between the information processing apparatus and a device such as a printer. The technology to do is known. A related technique is described in Patent Document 1.

特開2005−44080JP-A-2005-44080

しかし、情報処理装置が通信インターフェースを2種類以上備えている場合には、デフォルトデバイスに対して、複数の通信経路を用いて通信可能な状態となる場合がある。このような場合に、デフォルトデバイスと通信する際に用いる通信経路を適切に選択しないと、利便性が損なわれる場合がある。   However, when the information processing apparatus includes two or more types of communication interfaces, the default device may be able to communicate with a plurality of communication paths. In such a case, if the communication path used when communicating with the default device is not properly selected, the convenience may be impaired.

本明細書に記載されている情報処理プログラムは、複数のデバイスと通信することが可能な情報処理装置に読込まれる情報処理プログラムであって、情報処理装置は、第1の通信規格に従って通信する第1無線通信インターフェースと、第1の通信規格とは異なる第2の通信規格に従って通信する第2無線通信インターフェースと、記憶部と、プロセッサと、を備えており、プロセッサを、第1無線通信インターフェースを用いて通信することが可能なデバイスである第1通信デバイスを識別する第1通信デバイス識別情報を、第1無線通信インターフェースを介して受信する第1受信手段と、第2無線通信インターフェースを用いて通信することが可能なデバイスである第2通信デバイスを識別する第2通信デバイス識別情報を、第2無線通信インターフェースを介して受信する第2受信手段と、情報処理装置の通信対象である通信対象デバイスを、複数のデバイスのうちから選択する選択手段と、第1通信デバイス識別情報を、第1受信手段が受信している場合に、受信された第1通信デバイス識別情報を記憶部に記憶させる第1記憶制御手段と、第2通信デバイス識別情報を第2受信手段が受信している場合に、受信された第2通信デバイス識別情報を記憶部に記憶させる第2記憶制御手段と、通信対象デバイスと所定のデータを通信する処理の実行指示を受け付ける第1受付手段と、少なくとも、選択手段が選択した通信対象デバイスが第1通信デバイスであることを示している第1通信デバイス識別情報が記憶部に記憶されている場合には、第1無線通信インターフェースを介して通信対象デバイスとデータを通信し、選択手段が選択した通信対象デバイスが第2通信デバイスであることを示している第2通信デバイス識別情報のみが記憶部に記憶されている場合には、第2無線通信インターフェースを介して通信対象デバイスとデータを通信する通信手段と、して機能させることが可能であることを特徴とする。   An information processing program described in the present specification is an information processing program read into an information processing apparatus capable of communicating with a plurality of devices, and the information processing apparatus communicates according to a first communication standard. A first wireless communication interface; a second wireless communication interface that communicates according to a second communication standard different from the first communication standard; a storage unit; and a processor. The first receiving means for receiving the first communication device identification information for identifying the first communication device that is a device capable of communicating using the first wireless communication interface, and the second wireless communication interface. Second communication device identification information for identifying a second communication device that is a device that can communicate with the second wireless device. Second receiving means for receiving via a communication interface, selecting means for selecting a communication target device as a communication target of the information processing apparatus from among a plurality of devices, first communication device identification information, first receiving means Is received, when the first storage control means for storing the received first communication device identification information in the storage unit and the second reception device identification information is received by the second reception means. A second storage control unit that stores the second communication device identification information that has been received in the storage unit, a first reception unit that receives an execution instruction of a process for communicating predetermined data with the communication target device, and at least selected by the selection unit When the first communication device identification information indicating that the communication target device is the first communication device is stored in the storage unit, the first wireless communication interface In the case where only the second communication device identification information indicating that the communication target device selected by the selection unit is the second communication device is stored in the storage unit. It is possible to function as a communication means for communicating data with a communication target device via the second wireless communication interface.

当該構成を備える情報処理プログラム等によれば、通信対象デバイスが、第1無線通信インターフェースを用いて通信可能な装置である場合には、第1無線通信インターフェースを用いて通信対象デバイスとデータ通信を実行することができる。また通信対象デバイスが、第2無線通信インターフェースを用いた通信しか実行できない装置である場合には、第2無線通信インターフェースを用いて通信対象デバイスとデータ通信を実行することができる。これにより、適切な無線通信インターフェースを自動で選択して通信対象デバイスと通信を実行することができるため、ユーザの利便性が高い。   According to the information processing program or the like having the configuration, when the communication target device is a device capable of communicating using the first wireless communication interface, data communication with the communication target device is performed using the first wireless communication interface. Can be executed. In addition, when the communication target device is an apparatus that can execute only communication using the second wireless communication interface, data communication with the communication target device can be executed using the second wireless communication interface. Accordingly, since an appropriate wireless communication interface can be automatically selected and communication with the communication target device can be performed, user convenience is high.

本明細書に記載されている情報処理プログラム等によれば、通信対象デバイスが第2無線通信インターフェースを用いた通信しか実行できない装置である場合には、第1無線通信インターフェースを用いた通信を実行可能であるか否かを、通信対象デバイスに対して問い合わせることができる。これにより、可能な限り第1無線通信インターフェースを用いて、通信対象デバイスと通信を実行することができる。   According to the information processing program or the like described in this specification, when the communication target device is an apparatus that can only execute communication using the second wireless communication interface, communication using the first wireless communication interface is executed. It is possible to inquire the communication target device whether or not it is possible. Accordingly, communication with the communication target device can be performed using the first wireless communication interface as much as possible.

本明細書に記載されている情報処理プログラム等によれば、通信対象デバイスと通信を実行する際に用いられる無線通信インターフェースの種類を、表示部に表示することができる。これにより、何れの無線通信インターフェースを使用するかをユーザに認識させることができる。   According to the information processing program and the like described in this specification, the type of the wireless communication interface used when performing communication with the communication target device can be displayed on the display unit. This allows the user to recognize which wireless communication interface is used.

本明細書に記載されている情報処理プログラム等によれば、通信対象デバイスが第1無線通信インターフェースを用いた通信を実行できない状態である場合には、第1無線通信インターフェースを用いた通信を実行することが可能な装置状態に設定することを、通信対象デバイスに対して第2無線通信インターフェースを用いて指示することができる。これにより、第1無線通信インターフェースを用いた通信を、通信対象デバイスと実行することが可能となる。   According to the information processing program and the like described in this specification, when the communication target device is in a state where communication using the first wireless communication interface cannot be performed, communication using the first wireless communication interface is executed. Using the second wireless communication interface, it is possible to instruct the communication target device to set the apparatus state that can be performed. Thereby, communication using the first wireless communication interface can be executed with the communication target device.

本明細書に記載されている情報処理プログラム等によれば、通信対象デバイスの装置状態が、第1無線通信インターフェースを用いた通信を実行できない状態になってしまった場合には、通信対象デバイスとの通信経路を、第2無線通信インターフェースを用いた通信に切り替えることができる。これにより、通信対象デバイスとの通信を確実に実行することが可能となる。   According to the information processing program or the like described in this specification, when the device state of the communication target device becomes a state in which communication using the first wireless communication interface cannot be performed, the communication target device The communication path can be switched to communication using the second wireless communication interface. This makes it possible to reliably execute communication with the communication target device.

本明細書に記載されている情報処理プログラム等によれば、第2無線通信インターフェースを用いて通信可能であると判断されたデバイスが、第1無線通信インターフェースを用いて通信することも可能であるか否かを、当該デバイスに対して問い合わせることができる。これにより、可能な限り第1無線通信インターフェースを用いて、通信対象デバイスと通信を実行することができる。   According to the information processing program or the like described in this specification, a device that is determined to be able to communicate using the second wireless communication interface can also communicate using the first wireless communication interface. Whether or not the device can be inquired. Accordingly, communication with the communication target device can be performed using the first wireless communication interface as much as possible.

本明細書に記載されている情報処理プログラム等によれば、第2無線通信インターフェースを用いて通信することが可能なデバイスが、第1無線通信インターフェースを用いた通信を実行できない状態である場合には、第1無線通信インターフェースを用いた通信を実行することが可能な装置状態に設定することを、当該デバイスに対して第2無線通信インターフェースを用いて指示することができる。これにより、第1無線通信インターフェースを用いた通信を実行することが可能となる。   According to the information processing program and the like described in this specification, when a device capable of communicating using the second wireless communication interface is in a state where communication using the first wireless communication interface cannot be performed. Can instruct the device to use the second wireless communication interface to set the apparatus state in which communication using the first wireless communication interface can be performed. As a result, communication using the first wireless communication interface can be executed.

なお、上記の情報処理プログラムを実現するための情報処理装置や情報処理装置の制御方法も、新規で有用である。   Note that the information processing apparatus and the control method for the information processing apparatus for realizing the information processing program are also novel and useful.

ネットワークの構成を示すブロック図である。It is a block diagram which shows the structure of a network. アプリケーションに従いCPUが各部を制御する処理を説明するフロー図である。It is a flowchart explaining the process which CPU controls each part according to an application. アプリケーションに従いCPUが各部を制御する処理を説明するフロー図である。It is a flowchart explaining the process which CPU controls each part according to an application. 第1のWi−Fi通信デバイスの保存処理を説明するフロー図である。It is a flowchart explaining the preservation | save process of a 1st Wi-Fi communication device. 第1のWFD通信デバイスの保存処理を説明するフロー図である。It is a flowchart explaining the preservation | save process of a 1st WFD communication device. 画像処理を説明するフロー図である。It is a flowchart explaining an image process. 画像処理を説明するフロー図である。It is a flowchart explaining an image process. 通信対象デバイステーブルの一例を示す図である。It is a figure which shows an example of a communication object device table.

<ネットワーク10の構成>
図1は、ネットワーク10の構成を示すブロック図である。ネットワーク10は、情報処理装置100、MFP51、スキャナ61、カラーレーザープリンタ71、アクセスポイント501、を備えている。ここで、MFPとは、印刷機能、スキャン機能、コピー機能を備える多機能周辺装置(Multifunction Peripheralとも称する)を示す。
<Configuration of network 10>
FIG. 1 is a block diagram showing the configuration of the network 10. The network 10 includes an information processing apparatus 100, an MFP 51, a scanner 61, a color laser printer 71, and an access point 501. Here, the MFP indicates a multifunction peripheral device (also referred to as Multifunction Peripheral) having a print function, a scan function, and a copy function.

情報処理装置100の無線LAN_I/F105は、第1無線通信I/F105aおよび第2無線通信I/F105bを備える。第1無線通信I/F105aは、Wi−Fi(Wi−Fiアライアンスの登録商標)規格に則って、Wi−Fiのアクセスポイントなどの中継装置を介して、装置と装置の間で無線通信を行うためのインターフェースである。本明細書では、第1無線通信I/F105aを用いて実行される通信を、「Wi−Fi通信」と定義する。Wi−Fi通信では、IPアドレスを用いて、通信先のデバイスと通信することができる。なおWi−Fi通信では、通信先デバイスを識別するための情報や、MACアドレスを用いて、通信先のデバイスと通信することも可能である。第1無線通信I/F105aは、無線通信151、アクセスポイント501、無線通信154を介して、MFP51の第1無線通信I/F34aとWi−Fi通信を行うことができる。また第1無線通信I/F105aは、無線通信151、アクセスポイント501、無線通信156を介して、スキャナ61とWi−Fi通信を行うことができる。また第1無線通信I/F105aは、無線通信151、アクセスポイント501、無線通信158を介して、カラーレーザープリンタ71とWi−Fi通信を行うことができる。   The wireless LAN_I / F 105 of the information processing apparatus 100 includes a first wireless communication I / F 105a and a second wireless communication I / F 105b. The first wireless communication I / F 105a performs wireless communication between devices via a relay device such as a Wi-Fi access point in accordance with the Wi-Fi (registered trademark of Wi-Fi Alliance) standard. It is an interface for. In the present specification, communication executed using the first wireless communication I / F 105a is defined as “Wi-Fi communication”. In Wi-Fi communication, an IP address can be used to communicate with a communication destination device. In Wi-Fi communication, it is also possible to communicate with a communication destination device using information for identifying the communication destination device or a MAC address. The first wireless communication I / F 105a can perform Wi-Fi communication with the first wireless communication I / F 34a of the MFP 51 via the wireless communication 151, the access point 501, and the wireless communication 154. The first wireless communication I / F 105a can perform Wi-Fi communication with the scanner 61 via the wireless communication 151, the access point 501, and the wireless communication 156. The first wireless communication I / F 105a can perform Wi-Fi communication with the color laser printer 71 via the wireless communication 151, the access point 501, and the wireless communication 158.

一方、第2無線通信I/F105bは、Wi−Fi Direct(以下、WFDと記載する)規格に則って、中継装置を介さずに、一方の装置と、Wi−Fi Directの中継装置として機能している他方の装置との間で無線通信を行うためのインターフェースである。本明細書では、第2無線通信I/F105bを用いて実行される通信を、「WFD通信」と定義する。WFD通信では、通信先デバイスを識別するための情報(例:デバイスID)やMACアドレスを用いて、通信先のデバイスと通信することができる。なおWFD通信では、IPアドレスを用いて、通信先のデバイスと通信することも可能である。第2無線通信I/F105bは、MFP51、スキャナ61、カラーレーザープリンタ71の各々と直接に、WFD方式の無線通信155、157、159を行うことができる。なお、Wi−Fi通信およびWFD通信では、IEEE(The Institute of Electrical and Electronics Engineers, Inc.とも称する)の802.11の規格、及び、それに準ずる規格(例えば802.11a、11b、11g、11n等)に基づいて、無線通信が実行される。   On the other hand, the second wireless communication I / F 105b functions as one device and a Wi-Fi Direct relay device without using a relay device in accordance with the Wi-Fi Direct (hereinafter referred to as WFD) standard. It is an interface for performing wireless communication with the other device. In the present specification, communication executed using the second wireless communication I / F 105b is defined as “WFD communication”. In WFD communication, it is possible to communicate with a communication destination device using information (for example, device ID) for identifying the communication destination device and a MAC address. In WFD communication, it is also possible to communicate with a communication destination device using an IP address. The second wireless communication I / F 105b can perform WFD wireless communication 155, 157, and 159 directly with each of the MFP 51, the scanner 61, and the color laser printer 71. In Wi-Fi communication and WFD communication, the IEEE standard of IEEE (also referred to as The Institute of Electrical and Electronics Engineers, Inc.) and a standard conforming thereto (for example, 802.11a, 11b, 11g, 11n, etc.) ), Wireless communication is executed.

第2無線通信I/F105bは、第1無線通信I/F105aよりも使用優先度が低く設定されていてもよい。これは、Wi−Fi通信の方がWFD通信よりも、消費電力が小さいことや、同時に通信できるデバイス数が多いなどの、利点を備えている場合があるためである。また、第1無線通信I/F105aおよび第2無線通信I/F105bは、物理的に個別の2つのインターフェースである形態に限られない。物理的には1つのインターフェースが、ソフト的な対応により、第1無線通信I/F105aとして機能したり、第2無線通信I/F105bとして機能するものも含む概念である。   The second wireless communication I / F 105b may be set to have a lower use priority than the first wireless communication I / F 105a. This is because Wi-Fi communication may have advantages such as lower power consumption and more devices capable of simultaneous communication than WFD communication. Further, the first wireless communication I / F 105a and the second wireless communication I / F 105b are not limited to the form of two physically separate interfaces. Physically, this is a concept that includes one interface that functions as the first wireless communication I / F 105a or functions as the second wireless communication I / F 105b by software correspondence.

アクセスポイント501は、Wi−Fiのアクセスポイントとして機能する装置であり、SSID(Service Set Identifierとも称する)を有している。SSIDは、アクセスポイント501を識別するための名前である。情報処理装置100は、プリント&スキャンアプリケーション121を実行することで、印刷要求やスキャン要求を、無線LAN_I/F105を用いた通信によって、MFP51、スキャナ61、カラーレーザープリンタ71、に送信することができる。   The access point 501 is a device that functions as a Wi-Fi access point and has an SSID (also referred to as a service set identifier). The SSID is a name for identifying the access point 501. The information processing apparatus 100 can transmit a print request or a scan request to the MFP 51, the scanner 61, and the color laser printer 71 through communication using the wireless LAN_I / F 105 by executing the print & scan application 121. .

<情報処理装置100の構成>
情報処理装置100は、例えば携帯電話や携帯端末装置などの携帯型の装置である。情報処理装置100は、表示手段102、タッチパネル103、入力I/F104、無線LAN_I/F105、CPU(Central Processing Unitとも称する)106、ROM(Read Only Memoryとも称する)107、RAM(Random Access Memoryとも称する)108、記憶部109などを備えている。これらの要素は、入出力ポート110を介して互いに接続されている。
<Configuration of Information Processing Device 100>
The information processing apparatus 100 is a portable device such as a mobile phone or a mobile terminal device. The information processing apparatus 100 includes a display unit 102, a touch panel 103, an input I / F 104, a wireless LAN_I / F 105, a CPU (also referred to as Central Processing Unit) 106, a ROM (also referred to as Read Only Memory) 107, and a RAM (also referred to as Random Access Memory). ) 108, a storage unit 109, and the like. These elements are connected to each other via the input / output port 110.

表示手段102は、CPU106から出力される画信号を受信し、受信された画信号に基づく画像を表示する。表示手段102としては、例えばLCDや、有機ELパネルなどを用いることができる。タッチパネル103は透明な部材により形成され、表示手段102の表面を覆うようにして配設されている。タッチパネル103は、ユーザの指などによりタッチされた位置を検出し、検出した位置情報をCPU106へ出力する。入力I/F104は、例えば操作ボタンである。無線LAN_I/F105は、無線LAN方式の無線通信を実行するためのインターフェースである。   The display unit 102 receives an image signal output from the CPU 106 and displays an image based on the received image signal. As the display means 102, for example, an LCD or an organic EL panel can be used. The touch panel 103 is formed of a transparent member and is disposed so as to cover the surface of the display unit 102. The touch panel 103 detects a position touched by a user's finger or the like, and outputs the detected position information to the CPU 106. The input I / F 104 is, for example, an operation button. The wireless LAN_I / F 105 is an interface for executing wireless communication of a wireless LAN system.

CPU106は、記憶部109に記憶されるプログラムを実行する。RAM108はCPU106の処理に必要な情報を一時的に記憶する。記憶部109は、フラッシュメモリ、HDD(ハードディスクとも称する)、CPU106が備えるバッファなどが組み合わされて構成されている。記憶部109には、画像データや、文書データなどが記憶可能である。記憶部109は、プログラム120を記憶している。プログラム120は、プリント&スキャンアプリケーション121(以下、アプリケーション121と記載する)、および、オペレーティングシステム124(以下、OS124と記載する)を含んでいる。CPU106は、プログラム120に従って処理を実行する。   CPU 106 executes a program stored in storage unit 109. The RAM 108 temporarily stores information necessary for the processing of the CPU 106. The storage unit 109 is configured by combining a flash memory, an HDD (also referred to as a hard disk), a buffer included in the CPU 106, and the like. The storage unit 109 can store image data, document data, and the like. The storage unit 109 stores a program 120. The program 120 includes a print & scan application 121 (hereinafter referred to as application 121) and an operating system 124 (hereinafter referred to as OS 124). The CPU 106 executes processing according to the program 120.

記憶部109は、コンピュータが読み取り可能なストレージ媒体であってよい。コンピュータが読み取り可能なストレージ媒体とは、ROM、RAM、フラッシュメモリ、ハードディスクなどのnon-transitoryな媒体である。ROM、RAM、フラッシュメモリ、ハードディスクなどはtangibleな媒体である。インターネット上のサーバなどからダウンロードされるプログラムを搬送する電気信号は、コンピュータが読み取り可能な媒体の一種である、コンピュータが読み取り可能な信号媒体であるが、non-transitoryなコンピュータが読み取り可能なストレージ媒体には含まれない。   The storage unit 109 may be a computer-readable storage medium. The computer-readable storage medium is a non-transitory medium such as a ROM, RAM, flash memory, or hard disk. ROM, RAM, flash memory, hard disk and the like are tangible media. An electrical signal that carries a program downloaded from a server on the Internet is a kind of computer-readable medium, a computer-readable signal medium, but a non-transitory computer-readable storage medium Is not included.

アプリケーション121は、情報処理装置100からMFP51等へ印刷命令を送信する処理などを、CPU106に実行させるためのアプリケーションである。OS124は、アプリケーション121等に共通して利用される、基本的な機能を提供するプログラムである。OS124は、無線LAN_I/F105に無線通信を実行させるためのプログラム等を含んでいる。またOS124は、各種のハードウェアが取得した情報を各プログラムが取得するための、もしくは、各プログラムが各種ハードウェアに指示をするためのAPI(Application Programming Interfaceとも称する)を提供するプログラムでもある。   The application 121 is an application for causing the CPU 106 to execute processing for transmitting a print command from the information processing apparatus 100 to the MFP 51 or the like. The OS 124 is a program that provides basic functions that are commonly used by the application 121 and the like. The OS 124 includes a program for causing the wireless LAN_I / F 105 to execute wireless communication. The OS 124 is also a program that provides an API (also referred to as an application programming interface) for each program to acquire information acquired by various hardware, or for each program to instruct the various hardware.

また記憶部109は、通信対象デバイステーブルTB1を記憶する。通信対象デバイステーブルTB1は、通信対象デバイスを識別するための各種の情報を記憶しておくテーブルである。通信対象デバイスとは、用途ごとに設定される1のデバイスである。通信対象デバイスは、ある用途に関する処理を実行可能なデバイスが、その用途に対して複数存在する場合に、当該複数のデバイスの中で優先的に使用されるデバイスである。通信対象デバイスを、用いる通信経路の違いによって、デフォルトデバイス、セカンドデバイスと呼称する場合がある。デフォルトデバイスは、第1無線通信I/F105aを介してWi−Fi通信によって通信する通信対象デバイスである。セカンドデバイスは、第2無線通信I/F105bを介してWFD通信によって通信する通信対象デバイスである。すなわち、デフォルトデバイスおよびセカンドデバイスは、異なる通信経路を用いる同一のデバイスである。   The storage unit 109 stores a communication target device table TB1. The communication target device table TB1 is a table that stores various types of information for identifying a communication target device. The communication target device is one device set for each use. A communication target device is a device that is preferentially used among a plurality of devices when there are a plurality of devices that can execute processing related to a certain application. The communication target device may be referred to as a default device or a second device depending on a communication path to be used. The default device is a communication target device that communicates by Wi-Fi communication via the first wireless communication I / F 105a. The second device is a communication target device that communicates by WFD communication via the second wireless communication I / F 105b. That is, the default device and the second device are the same device using different communication paths.

図6に、通信対象デバイステーブルTB1の一例を示す。通信対象デバイステーブルTB1は、写真印刷611、ウェブ印刷612、スキャン613、の3種類の用途のそれぞれに対して、デフォルトデバイス記憶領域800およびセカンドデバイス記憶領域810を備える。写真印刷611の用途のデフォルトデバイス記憶領域800およびセカンドデバイス記憶領域810の各々には、写真印刷に対して設定されているデフォルトデバイスおよびセカンドデバイスの各々を識別するための情報が記憶される。写真印刷では、情報処理装置100がJPEGやBitmap、GIFなどの画像データの印刷要求を、印刷機能を有するデバイスへ送信し、デバイスに印刷を実行させる処理が行われる。ウェブ印刷612の用途のデフォルトデバイス記憶領域800およびセカンドデバイス記憶領域810の各々には、ウェブ印刷に対して設定されているデフォルトデバイスおよびセカンドデバイスの各々を識別するための情報が記憶される。ウェブ印刷では、情報処理装置100がウェブページの印刷要求を、印刷機能を有するデバイスへ送信し、デバイスに印刷を実行させる処理が行われる。スキャン613の用途のデフォルトデバイス記憶領域800およびセカンドデバイス記憶領域810の各々には、スキャンに対して設定されているデフォルトデバイスおよびセカンドデバイスの各々を識別するための情報が記憶される。スキャンでは、情報処理装置100が、スキャン機能を有するデバイスへスキャン要求を送信し、デバイスにスキャンを実行させる処理が行われる。   FIG. 6 shows an example of the communication target device table TB1. The communication target device table TB1 includes a default device storage area 800 and a second device storage area 810 for each of the three types of uses of photo printing 611, web printing 612, and scan 613. Each of the default device storage area 800 and the second device storage area 810 for use in the photo printing 611 stores information for identifying each of the default device and the second device set for the photo printing. In photo printing, the information processing apparatus 100 transmits a print request for image data such as JPEG, Bitmap, and GIF to a device having a printing function, and causes the device to execute printing. Information for identifying each of the default device and the second device set for the web printing is stored in each of the default device storage area 800 and the second device storage area 810 for the application of the web printing 612. In web printing, the information processing apparatus 100 transmits a web page print request to a device having a print function, and causes the device to execute printing. In each of the default device storage area 800 and the second device storage area 810 for use of the scan 613, information for identifying each of the default device and the second device set for the scan is stored. In the scan, the information processing apparatus 100 transmits a scan request to a device having a scan function and causes the device to execute a scan.

デフォルトデバイス記憶領域800には、デフォルトデバイスに関する情報として、モデル名801、IPアドレス803、MACアドレス806、が記憶されている。また、セカンドデバイス記憶領域810には、セカンドデバイスに関する情報として、モデル名811、IPアドレス813、SSID814、デバイスID815、MACアドレス816、が記憶されている。   In the default device storage area 800, a model name 801, an IP address 803, and a MAC address 806 are stored as information on the default device. The second device storage area 810 stores a model name 811, an IP address 813, an SSID 814, a device ID 815, and a MAC address 816 as information related to the second device.

モデル名801および811は、各デバイスの種類を識別するための情報である。第1の実施形態では、MFP51のモデル名801は、「Ink-MFP1」である。また、スキャナ61のデバイスのモデル名801は、「Scan-1」である。また、カラーレーザープリンタ71のデバイスのモデル名801は、「Laser-1」である。   Model names 801 and 811 are information for identifying the type of each device. In the first embodiment, the model name 801 of the MFP 51 is “Ink-MFP1”. The device model name 801 of the scanner 61 is “Scan-1”. The model name 801 of the device of the color laser printer 71 is “Laser-1”.

IPアドレス803および813は、各デバイスに割り当てられた、Wi−Fi通信に用いられる識別番号である。MACアドレス806および816は、各デバイスを識別するための物理アドレスである。MACアドレス806および816は、デフォルトデバイスとのWFD通信を実行するための情報として使用することができる。SSID814は、デフォルトデバイスとWi−Fi通信を実行する場合に使用されるアクセスポイントを識別するための識別情報である。デバイスID815は、各デバイスに割り当てられた、WFD通信に用いられる識別情報である。   IP addresses 803 and 813 are identification numbers assigned to each device and used for Wi-Fi communication. The MAC addresses 806 and 816 are physical addresses for identifying each device. The MAC addresses 806 and 816 can be used as information for executing WFD communication with the default device. The SSID 814 is identification information for identifying an access point used when performing Wi-Fi communication with the default device. The device ID 815 is identification information assigned to each device and used for WFD communication.

図6の通信対象デバイステーブルTB1の例では、写真印刷611の用途に関する処理を実行可能なデバイスが、写真印刷611の用途に対して複数存在(すなわちMFP51およびカラーレーザープリンタ71)する場合に、当該複数のデバイスの中で優先的に使用されるデバイスとして、MFP51が設定されていることが分かる。   In the example of the communication target device table TB1 in FIG. 6, when there are a plurality of devices that can execute processing related to the use of the photo print 611 for the use of the photo print 611 (that is, the MFP 51 and the color laser printer 71), It can be seen that the MFP 51 is set as a device that is used preferentially among a plurality of devices.

<MFP51の構成>
MFP51の構成について説明する。MFP51は、CPU32、記憶部33、無線LAN_I/F34、ボタン入力部38、パネル39、プリンタ19、スキャナ20、を主に備えている。無線LAN_I/F34は、第1無線通信I/F34aおよび第2無線通信I/F34bを備える。第1無線通信I/F34aは、Wi−Fi通信を実行するためのインターフェースである。第2無線通信I/F34bは、WFD通信を実行するためのインターフェースである。これらの構成要素は、入出力ポート43を介して互いに通信可能とされている。
<Configuration of MFP 51>
A configuration of the MFP 51 will be described. The MFP 51 mainly includes a CPU 32, a storage unit 33, a wireless LAN_I / F 34, a button input unit 38, a panel 39, a printer 19, and a scanner 20. The wireless LAN_I / F 34 includes a first wireless communication I / F 34a and a second wireless communication I / F 34b. The first wireless communication I / F 34a is an interface for executing Wi-Fi communication. The second wireless communication I / F 34b is an interface for executing WFD communication. These components can communicate with each other via the input / output port 43.

CPU32は、記憶部33に記憶されるプログラム21を実行する。記憶部33は、RAM、ROM、フラッシュメモリ、HDD(ハードディスクとも称する)、CPU32が備えるバッファなどが組み合わされて構成されている。記憶部33は、記憶部109と同様に、コンピュータが読み取り可能なストレージ媒体であってよい。記憶部33は、プログラム21、MIB情報22を記憶する。プログラム21は、OS29等を含んでいる。   The CPU 32 executes the program 21 stored in the storage unit 33. The storage unit 33 is configured by combining a RAM, a ROM, a flash memory, an HDD (also referred to as a hard disk), a buffer provided in the CPU 32, and the like. Similar to the storage unit 109, the storage unit 33 may be a computer-readable storage medium. The storage unit 33 stores the program 21 and the MIB information 22. The program 21 includes an OS 29 and the like.

MIB情報22は、MFP51自身に関する情報であり、情報処理装置100などの外部装置に公開される情報である。外部装置は、外部装置からのリクエストによって、MIB情報22をMFP51から取得することができる。MIB情報22は、モデル名、MACアドレス、Wi−Fiステータス情報、SSID履歴情報、IPアドレス、等を含んでいる。モデル名は、MFP51を識別するための情報である。本実施形態では、モデル名は「Ink-MFP1」である。MACアドレスは、MFP51を識別するための物理アドレスである。Wi−Fiステータス情報は、Wi−Fi通信に関する各種の情報である。Wi−Fiステータス情報は、例えば、第1無線通信I/F34aの電源がオンであるか否かを示す情報や、第1無線通信I/F34aの通信圏内に存在するアクセスポイントを示す情報を含んでいる。SSID履歴情報は、MFP51が過去に接続したことのあるアクセスポイントのSSIDを示す情報である。IPアドレスは、MFP51を識別するための情報である。   The MIB information 22 is information regarding the MFP 51 itself, and is information disclosed to an external device such as the information processing apparatus 100. The external device can acquire the MIB information 22 from the MFP 51 in response to a request from the external device. The MIB information 22 includes a model name, a MAC address, Wi-Fi status information, SSID history information, an IP address, and the like. The model name is information for identifying the MFP 51. In the present embodiment, the model name is “Ink-MFP1”. The MAC address is a physical address for identifying the MFP 51. Wi-Fi status information is various types of information related to Wi-Fi communication. The Wi-Fi status information includes, for example, information indicating whether or not the power of the first wireless communication I / F 34a is on, and information indicating an access point existing within the communication area of the first wireless communication I / F 34a. It is out. The SSID history information is information indicating the SSID of an access point to which the MFP 51 has connected in the past. The IP address is information for identifying the MFP 51.

ボタン入力部38は、MFP51の各機能を実行するためのキーである。ボタン入力部38は、タッチパネルとして、パネル39と一体に構成されていてもよい。パネル39は、MFP51の各種機能情報を表示する。プリンタ19は、記憶部33に記憶されている画像データを用いて印刷を実行する部位である。スキャナ20は、読み取りを実行する部位である。   The button input unit 38 is a key for executing each function of the MFP 51. The button input unit 38 may be configured integrally with the panel 39 as a touch panel. The panel 39 displays various function information of the MFP 51. The printer 19 is a part that executes printing using the image data stored in the storage unit 33. The scanner 20 is a part that executes reading.

<本明細書における記載上の注意点>
以降、アプリケーションやオペレーティングシステムなどのプログラムを実行するCPU106のことを、単にプログラム名で記載する場合もある。例えば「アプリケーション」という記載が、「アプリケーションを実行するCPU106」を意味する場合もある。本明細書において、「情報処理装置100のCPU106が、各種の情報を受信する」という記載は、「情報処理装置100のCPU106が、無線LAN送受信部15を介して各種の情報を取得する」という技術内容を含んでいるものとする。また、「情報処理装置100のCPU106が、各種の情報を送信する」という記載は、「情報処理装置100のCPU106が、無線LAN送受信部15を介して各種の情報を出力する」という技術内容を含んでいるものとする。
<Notes on description in this specification>
Hereinafter, the CPU 106 that executes a program such as an application or an operating system may be simply described by a program name. For example, the description “application” may mean “CPU 106 executing the application”. In this specification, the phrase “the CPU 106 of the information processing apparatus 100 receives various types of information” means that “the CPU 106 of the information processing apparatus 100 acquires various types of information via the wireless LAN transmission / reception unit 15”. It shall include technical contents. Further, the description “the CPU 106 of the information processing device 100 transmits various types of information” refers to the technical content “the CPU 106 of the information processing device 100 outputs various types of information via the wireless LAN transmission / reception unit 15”. It shall contain.

ここで、「データ」および「情報」の文言の定義を説明する。本明細書では、「データ」と「情報」では「情報」を「データ」の上位概念として用いている。そのため、「Aデータ」を「A情報」と言い換えてもよい。また、「情報」は、「データ」としての形式(例えば、テキスト形式、バイナリ形式、フラグ形式等)が異なっていても、同一の意味内容と認識される限り、同一の情報として取り扱われる。例えば、印刷部数が2部であることを示す情報として装置が扱う限り、"COPY=2"というテキスト形式のデータと、"10"というバイナリ形式のデータとは、同じ情報である。但し、上記の「データ」および「情報」の区別は厳密なものではなく、例外的な取扱いも許容される。   Here, the definition of the words “data” and “information” will be described. In this specification, “data” and “information” use “information” as a superordinate concept of “data”. Therefore, “A data” may be rephrased as “A information”. Further, “information” is treated as the same information as long as it is recognized as the same meaning content even if the format as “data” (for example, text format, binary format, flag format, etc.) is different. For example, as long as the apparatus handles the information indicating that the number of copies is two, the text format data “COPY = 2” and the binary format data “10” are the same information. However, the distinction between the above “data” and “information” is not strict, and exceptional handling is allowed.

また、本明細書では、所定の演算が加えられる前後の「データ」及び「情報」を、同一のデータ及び情報として取り扱うことがある。例えば、暗号化されていないキー情報が記憶部に記憶されており、暗号化されたキー情報(以下、「暗号化キー情報」と表記する。)が無線LAN_I/F105を通じて受信されたとする。この場合において、記憶部に記憶されたキー情報と、暗号化キー情報を復号して得られる復号済キー情報とが一致するのであれば、キー情報、暗号化キー情報、及び復号済キー情報は、いずれも同一の「キー情報」として取り扱うことがある。なお、「所定の演算」は暗復号に限定されず、ハッシュ関数による演算等であってもよい。   Also, in this specification, “data” and “information” before and after a predetermined calculation is applied may be handled as the same data and information. For example, it is assumed that unencrypted key information is stored in the storage unit and encrypted key information (hereinafter referred to as “encrypted key information”) is received through the wireless LAN_I / F 105. In this case, if the key information stored in the storage unit matches the decrypted key information obtained by decrypting the encrypted key information, the key information, the encrypted key information, and the decrypted key information are These may be handled as the same “key information”. The “predetermined operation” is not limited to encryption / decryption, and may be an operation using a hash function.

<通信対象デバイス登録処理>
以下、図2Aないし図4を用いて、アプリケーション121に従いCPU106が各部を制御する処理について説明する。図2Aおよび図2Bのフローは、通信対象デバイス登録処理の実行指示が入力されることに応じて開始される。通信対象デバイス登録処理は、通信対象デバイスを通信対象デバイステーブルTB1に記憶する処理である。通信対象デバイス登録処理の実行指示の入力は、例えば、表示手段102に表示されている登録処理の実行ボタンがタッチされることによって実行されるとしてもよい。
<Communication target device registration process>
Hereinafter, a process in which the CPU 106 controls each unit according to the application 121 will be described with reference to FIGS. 2A to 4. The flow of FIG. 2A and FIG. 2B is started in response to the execution instruction of the communication target device registration process being input. The communication target device registration process is a process of storing the communication target device in the communication target device table TB1. The input of the execution instruction for the communication target device registration process may be executed, for example, by touching a registration process execution button displayed on the display unit 102.

S105においてCPU106は、「写真印刷」、「ウェブ印刷」、「スキャン」の3種類の用途のうち、何れかの用途を指定する用途指定操作を受け付けたか否かを判断する。例えば、アプリケーション121は、表示手段102において、上記の3種類の用途の各々に対応するアイコンを表示手段102に表示させる。そして、アイコンが表示されている部位がタッチされたことを受け付けると、タッチされたアイコンが示す用途を指定する操作がなされたと判断する。否定判断される場合(S105:NO)にはS105へ戻り、肯定判断される場合(S105:YES)にはS110へ進む。   In S <b> 105, the CPU 106 determines whether or not a use designation operation for designating any one of the three types of applications “photo printing”, “web printing”, and “scanning” has been received. For example, the application 121 causes the display unit 102 to display an icon corresponding to each of the three types of applications on the display unit 102. Then, when it is accepted that the part where the icon is displayed is touched, it is determined that an operation for designating the use indicated by the touched icon has been performed. When a negative determination is made (S105: NO), the process returns to S105, and when an affirmative determination is made (S105: YES), the process proceeds to S110.

S110においてCPU106は、通信対象デバイス指定指示が入力されたか否かを判断する。通信対象デバイス指定指示は、通信対象デバイスを指定する、ユーザにより入力される指示である。例えば、通信対象デバイスの指定を受け付けるための通信対象デバイス指定画面を、表示手段102に表示させてもよい。通信対象デバイス指定画面には、過去に接続したことがあるデバイス名が一覧表示され、何れかのデバイスの選択を受け付けるとしてもよい。なお、記憶部109には、過去に接続したことがあるデバイスを識別するための識別情報が、デバイス名とともに記憶されていてよい。識別情報の例は、IPアドレス、MACアドレスなどである。また通信対象デバイス指定画面には、通信対象デバイスを識別するための識別情報の入力欄が表示され、当該識別情報の入力を受け付けるとしてもよい。否定判断される場合(S110:NO)にはS115へ進み、肯定判断される場合(S110:YES)にはS112へ進む。   In S110, the CPU 106 determines whether a communication target device designation instruction has been input. The communication target device designation instruction is an instruction input by the user for designating a communication target device. For example, the display unit 102 may display a communication target device designation screen for accepting designation of a communication target device. A list of device names that have been connected in the past may be displayed on the communication target device designation screen, and selection of one of the devices may be accepted. The storage unit 109 may store identification information for identifying a device that has been connected in the past, together with the device name. Examples of identification information are an IP address, a MAC address, and the like. In addition, an input field for identification information for identifying the communication target device may be displayed on the communication target device designation screen, and the input of the identification information may be accepted. When a negative determination is made (S110: NO), the process proceeds to S115, and when a positive determination is made (S110: YES), the process proceeds to S112.

S112においてCPU106は、通信対象デバイスに指定されたデバイスを識別する識別情報を、指定デバイス識別情報として記憶部109に一時的に記憶させる。   In S112, the CPU 106 temporarily stores identification information for identifying a device designated as a communication target device in the storage unit 109 as designated device identification information.

S115においてCPU106は、Wi−Fi通信デバイス検索スレッドを起動する。Wi−Fi通信デバイス検索スレッドは、複数の外部デバイス(すなわち、MFP51、スキャナ61、カラーレーザープリンタ71)のうちに、第1無線通信I/F105aを用いて通信することが可能なデバイスであるWi−Fi通信デバイスが含まれているか否かを判断するためのプログラムである。具体的にはCPU106は、複数の外部デバイスに、外部デバイスの識別情報(例:IPアドレス)を返信するよう要求するパケットをブロードキャストし、外部デバイスからの識別情報の返信を待機する。   In S115, the CPU 106 activates a Wi-Fi communication device search thread. The Wi-Fi communication device search thread is a device that can communicate with a plurality of external devices (that is, the MFP 51, the scanner 61, and the color laser printer 71) using the first wireless communication I / F 105a. A program for determining whether or not a Fi communication device is included. Specifically, the CPU 106 broadcasts a packet requesting to return identification information (eg, IP address) of the external device to a plurality of external devices, and waits for a response of identification information from the external device.

S120においてCPU106は、WFD通信デバイス検索スレッドを起動する。WFD通信デバイス検索スレッドは、複数の外部デバイス(すなわち、MFP51、スキャナ61、カラーレーザープリンタ71)のうちに、第2無線通信I/F105bを用いて通信することが可能なデバイスであるWFD通信デバイスが含まれているか否かを判断するためのプログラムである。具体的にはCPU106は、外部デバイスの識別情報(例:IPアドレス)を返信するよう要求するパケットを、第2無線通信I/F105bを用いてブロードキャストする。そして、外部デバイスからの識別情報の返信を待機する。   In S120, the CPU 106 activates a WFD communication device search thread. The WFD communication device search thread is a device that can communicate with a plurality of external devices (that is, the MFP 51, the scanner 61, and the color laser printer 71) using the second wireless communication I / F 105b. It is a program for judging whether or not is included. Specifically, the CPU 106 broadcasts a packet requesting to return identification information (eg, IP address) of the external device using the second wireless communication I / F 105b. Then, it waits for a reply of identification information from the external device.

S125においてCPU106は、Wi−Fi通信デバイスの識別情報を受信したか否かを判断する。当該判断は、Wi−Fi通信デバイス検索スレッド(S115)においてブロードキャストしたパケットに対するIPアドレスの返信を、受信したか否かによって行われてもよい。肯定判断される場合(S125:YES)には、複数の外部デバイスのうちに、Wi−Fi通信デバイスが含まれていると判断することができる。従って、S130へ進む。   In S125, the CPU 106 determines whether the identification information of the Wi-Fi communication device has been received. This determination may be made based on whether or not a reply of the IP address for the packet broadcast in the Wi-Fi communication device search thread (S115) has been received. When an affirmative determination is made (S125: YES), it can be determined that a Wi-Fi communication device is included among the plurality of external devices. Accordingly, the process proceeds to S130.

S130においてCPU106は、第1のWi−Fi通信デバイスの保存処理を実行する。図3を用いて、第1のWi−Fi通信デバイスの保存処理の内容を説明する。   In S <b> 130, the CPU 106 executes storage processing for the first Wi-Fi communication device. The content of the storage process of the first Wi-Fi communication device will be described with reference to FIG.

S210においてCPU106は、S125で受信されたIPアドレスを用いて、Wi−Fi通信デバイスから、当該Wi−Fi通信デバイスに関する情報を取得する。Wi−Fi通信デバイスに関する情報の取得は、第1無線通信I/F105aを用いて行われる。Wi−Fi通信デバイスに関する情報は、MIB情報であってもよい。本実施形態では、例として、Wi−Fi通信デバイスに関する情報として、Wi−Fi通信デバイスのMACアドレスおよびモデル名を取得する場合を説明する。   In S210, the CPU 106 acquires information on the Wi-Fi communication device from the Wi-Fi communication device using the IP address received in S125. Acquisition of information related to the Wi-Fi communication device is performed using the first wireless communication I / F 105a. The information related to the Wi-Fi communication device may be MIB information. In the present embodiment, as an example, a case will be described in which the MAC address and model name of a Wi-Fi communication device are acquired as information about the Wi-Fi communication device.

S215においてCPU106は、S125で受信されたIPアドレスおよびS210で取得したWi−Fi通信デバイスに関する情報によって識別されるデバイスが、S110で指定された通信対象デバイスと一致するか否かを判断する。当該判断は、例えば、S112で記憶された指定デバイス識別情報に含まれているIPアドレスと、S125で受信されたIPアドレスとが一致する場合に、肯定判断され、一致しない場合に否定判断される。あるいは、指定デバイス識別情報に含まれているMACアドレスと、S210で取得したMACアドレスとが一致する場合に、肯定判断され、一致しない場合に、否定判断される。なお、第1無線通信I/F105aが受信する、WI−Fi通信デバイスに関する情報が暗号化されていてもよいし、記憶部109に記憶されている指定デバイス識別情報が暗号化されていてもよい。S215において肯定判断される場合(S215:YES)には、S220へ進む。   In S215, the CPU 106 determines whether or not the device identified by the IP address received in S125 and the information regarding the Wi-Fi communication device acquired in S210 matches the communication target device specified in S110. For example, the determination is affirmative when the IP address included in the designated device identification information stored in S112 matches the IP address received in S125, and is negative when the IP address does not match. . Alternatively, an affirmative determination is made when the MAC address included in the designated device identification information matches the MAC address acquired in S210, and a negative determination is made when they do not match. In addition, the information regarding the WI-Fi communication device received by the first wireless communication I / F 105a may be encrypted, or the specified device identification information stored in the storage unit 109 may be encrypted. . When a positive determination is made in S215 (S215: YES), the process proceeds to S220.

S220においてCPU106は、Wi−Fi通信デバイスから受信した情報を、通信対象デバイステーブルTB1に記憶させる。すなわち、Wi−Fi通信デバイスを、通信対象デバイスとして登録する。また、Wi−Fi通信デバイスを、デフォルトデバイスとして登録する、と言い換えても同じ意味である。登録する、を設定する、と言い換えても同じ意味である。また、通信対象デバイスとして通信対象デバイステーブルTB1に記憶する、と言い換えても同じ意味である。具体的には、通信対象デバイステーブルTB1(図6)において、S105で選択された用途に対応する欄を、写真印刷611〜スキャン613の中から選択する。そして、選択された欄におけるデフォルトデバイス記憶領域800に、通信対象デバイスとして設定されるデバイスのモデル名801、IPアドレス803、MACアドレス806を書き込む。これらの情報は、S125やS210で取得された情報である。例えば、S105で写真印刷611が選択された場合には、図6の領域R1に、IPアドレス803等が書き込まれる。
そして、図2AのS125へ戻る。
In S220, the CPU 106 stores the information received from the Wi-Fi communication device in the communication target device table TB1. That is, the Wi-Fi communication device is registered as a communication target device. Moreover, the same meaning can be said even if the Wi-Fi communication device is registered as a default device. In other words, registering and setting has the same meaning. Moreover, it is the same meaning to store in the communication target device table TB1 as a communication target device. Specifically, in the communication target device table TB1 (FIG. 6), a column corresponding to the application selected in S105 is selected from the photo prints 611 to 613. Then, the model name 801, the IP address 803, and the MAC address 806 of the device set as the communication target device are written in the default device storage area 800 in the selected column. These pieces of information are information acquired in S125 and S210. For example, when the photo print 611 is selected in S105, the IP address 803 and the like are written in the area R1 in FIG.
And it returns to S125 of FIG. 2A.

また、S215において否定判断される場合(S215:NO)には、S225へ進む。S225においてCPU106は、Wi−Fi通信デバイスのIPアドレスと、Wi−Fi通信デバイスのMACアドレスおよびモデル名とを、互いに関連付けて記憶部109に記憶させる。これにより、Wi−Fi通信デバイスを、デフォルトデバイスの候補として記憶させることができる。そして、図2AのS125へ戻る。   When a negative determination is made in S215 (S215: NO), the process proceeds to S225. In S225, the CPU 106 stores the IP address of the Wi-Fi communication device, the MAC address of the Wi-Fi communication device, and the model name in the storage unit 109 in association with each other. As a result, the Wi-Fi communication device can be stored as a default device candidate. And it returns to S125 of FIG. 2A.

一方、図2AのS125において否定判断される場合(S125:NO)には、S135へ進む。S135においてCPU106は、WFD通信デバイスの識別情報を受信したか否かを判断する。当該判断は、WFD通信デバイス検索スレッド(S120)においてブロードキャストしたパケットに対するデバイスIDの返信を、受信したか否かによって行われてもよい。肯定判断される場合(S135:YES)には、複数の外部デバイスのうちに、WFD通信デバイスが含まれていると判断することができる。従って、S140へ進む。   On the other hand, when a negative determination is made in S125 of FIG. 2A (S125: NO), the process proceeds to S135. In S135, the CPU 106 determines whether or not the identification information of the WFD communication device has been received. This determination may be made depending on whether or not a device ID response to the packet broadcast in the WFD communication device search thread (S120) has been received. When an affirmative determination is made (S135: YES), it can be determined that a WFD communication device is included in the plurality of external devices. Accordingly, the process proceeds to S140.

S140においてCPU106は、第1のWFD通信デバイスの保存処理を実行する。図4を用いて、第1のWFD通信デバイスの保存処理の内容を説明する。S315においてCPU106は、情報処理装置100が現在接続中のアクセスポイントのSSIDを、OS124から取得する。   In S <b> 140, the CPU 106 executes a first WFD communication device storage process. The content of the storage process of the first WFD communication device will be described with reference to FIG. In S <b> 315, the CPU 106 acquires the SSID of the access point to which the information processing apparatus 100 is currently connected from the OS 124.

S320においてCPU106は、S135で取得したデバイスIDを用いて、WFD通信デバイスから、当該WFD通信デバイスに関する情報を取得する。WFD通信デバイスに関する情報の取得は、第2無線通信I/F105bを用いて行われる。WFD通信デバイスに関する情報は、MIB情報であってもよい。具体的に説明する。CPU106は、WFD通信デバイスが記憶しているMIB情報を問合せる問合せ情報を、第2無線通信I/F105bを介して送信する。そして、問合せ情報に対して返信されたMIB情報を、第2無線通信I/F105bを介して受信する。本実施形態では、例として、MIB情報として、モデル名、MACアドレス、Wi−Fiステータス情報、SSID履歴情報、IPアドレス、を取得する場合を説明する。なお、Wi−Fiステータス情報、SSID履歴情報は、Wi−Fi通信が可能なデバイスからしか返信されてこない。   In S320, the CPU 106 acquires information on the WFD communication device from the WFD communication device using the device ID acquired in S135. Acquisition of information related to the WFD communication device is performed using the second wireless communication I / F 105b. The information regarding the WFD communication device may be MIB information. This will be specifically described. The CPU 106 transmits inquiry information for inquiring MIB information stored in the WFD communication device via the second wireless communication I / F 105b. Then, the MIB information returned in response to the inquiry information is received via the second wireless communication I / F 105b. In the present embodiment, as an example, a case where a model name, a MAC address, Wi-Fi status information, SSID history information, and an IP address are acquired as MIB information will be described. Note that Wi-Fi status information and SSID history information are returned only from devices capable of Wi-Fi communication.

S321においてCPU106は、S135で受信されたデバイスIDおよびS320で取得したWFD通信デバイスに関する情報によって識別されるデバイスが、S110で指定された通信対象デバイスと一致するか否かを判断する。当該判断は、例えば、S112で記憶された指定デバイス識別情報に含まれているデバイスIDと、S135で受信されたデバイスIDとが一致する場合に、肯定判断され、一致しない場合に否定判断されてもよい。なお、S215で前述した内容は、S321においても適用することが可能である。S321において肯定判断される場合(S321:YES)には、S322へ進む。   In S321, the CPU 106 determines whether or not the device identified by the device ID received in S135 and the information related to the WFD communication device acquired in S320 matches the communication target device specified in S110. For example, the determination is affirmative when the device ID included in the designated device identification information stored in S112 matches the device ID received in S135, and is negative when the device ID does not match. Also good. The contents described above in S215 can also be applied in S321. When a positive determination is made in S321 (S321: YES), the process proceeds to S322.

S322においてCPU106は、WFD通信デバイスから受信した情報を、通信対象デバイステーブルTB1に記憶させる。すなわち、WFD通信デバイスを、通信対象デバイスとして登録する。具体的には、通信対象デバイステーブルTB1(図6)において、S105で選択された用途に対応する欄を、写真印刷611〜スキャン613の中から選択する。そして選択された欄におけるセカンドデバイス記憶領域810に、通信対象デバイスとして設定されるデバイスのモデル名811、IPアドレス813、SSID814、デバイスID815、MACアドレス816を書き込む。これらの情報は、S135やS320で取得された情報である。また、S320で取得したWi−Fiステータス情報、SSID履歴情報を、記憶部109に記憶させる。例えば、S105で写真印刷611が選択された場合には、図6の領域R2に、IPアドレス813等が書き込まれる。そしてS325へ進む。なお、S220で前述した内容は、S322においても適用することが可能である。   In S322, the CPU 106 stores the information received from the WFD communication device in the communication target device table TB1. That is, the WFD communication device is registered as a communication target device. Specifically, in the communication target device table TB1 (FIG. 6), a column corresponding to the application selected in S105 is selected from the photo prints 611 to 613. Then, the model name 811, IP address 813, SSID 814, device ID 815, and MAC address 816 of the device set as the communication target device are written in the second device storage area 810 in the selected column. These pieces of information are information acquired in S135 and S320. In addition, the storage unit 109 stores the Wi-Fi status information and the SSID history information acquired in S320. For example, when the photo print 611 is selected in S105, the IP address 813 or the like is written in the area R2 in FIG. Then, the process proceeds to S325. Note that the content described above in S220 can also be applied in S322.

また、S321において否定判断される場合(S321:NO)には、S323へ進む。S323においてCPU106は、WFD通信デバイスのデバイスIDと、Wi−Fi通信デバイスのIPアドレス、MACアドレスおよびモデル名とを、互いに関連付けて記憶部109に記憶させる。これにより、WFD通信デバイスを、セカンドデバイスの候補として記憶させることができる。そして、S325へ進む。   If a negative determination is made in S321 (S321: NO), the process proceeds to S323. In S323, the CPU 106 stores the device ID of the WFD communication device and the IP address, MAC address, and model name of the Wi-Fi communication device in the storage unit 109 in association with each other. As a result, the WFD communication device can be stored as a second device candidate. Then, the process proceeds to S325.

S325においてCPU106は、WFD通信デバイスがWi−Fi通信デバイスでもあるか否かを判断する。換言すると、S135においてWFD通信を実行可能であると判断されたデバイスが、Wi−Fi通信も実行可能であるか否かを判断する。当該判断は、Wi−Fiステータス情報またはSSID履歴情報をS320で取得したか否かによって行われてもよい。否定判断される場合(S325:NO)には、図2AのS125へ戻る。   In S325, the CPU 106 determines whether or not the WFD communication device is also a Wi-Fi communication device. In other words, the device determined to be able to execute WFD communication in S135 determines whether or not Wi-Fi communication can also be executed. This determination may be made based on whether Wi-Fi status information or SSID history information is acquired in S320. If a negative determination is made (S325: NO), the process returns to S125 of FIG. 2A.

一方、S325において、WFD通信デバイスがWi−Fi通信デバイスでもあると判断された場合(S325:YES)には、S330へ進む。ここで以後、WFD通信デバイスでもありWi−Fi通信デバイスでもあるデバイスを、Wi−Fi/WFD通信デバイスと記載する。S330においてCPU106は、Wi−Fi/WFD通信デバイスが、Wi−Fi通信を実行できる状態であるか否かを判断する。当該判断は、Wi−Fi/WFD通信デバイスのWi−Fi機能が有効にされていることを、S320で取得したWi−Fiステータス情報が示しており、かつ、S315で取得したSSIDと同一のSSIDをSSID履歴情報が含んでいる場合には肯定判断され、少なくとも一方がそうでない場合には否定判断される。なお、Wi−Fi/WFD通信デバイスのWi−Fi機能が有効にされていることをWi−Fiステータス情報が示していれば、SSID履歴情報に拘らず肯定判断されてもよい。また当該判断は、Wi−Fi/WFD通信デバイスにWi−Fi通信を用いて所定のデータ(例:Pingパケット)を送信し、返信されたデータを受信した場合に肯定判断され、受信しなければ否定判断されてもよい。肯定判断される場合(S330:YES)には、S335へ進む。   On the other hand, if it is determined in S325 that the WFD communication device is also a Wi-Fi communication device (S325: YES), the process proceeds to S330. Hereafter, a device that is both a WFD communication device and a Wi-Fi communication device will be referred to as a Wi-Fi / WFD communication device. In S330, the CPU 106 determines whether or not the Wi-Fi / WFD communication device is ready to execute Wi-Fi communication. In the determination, the Wi-Fi function information of the Wi-Fi / WFD communication device is enabled, the Wi-Fi status information acquired in S320 indicates the same SSID as the SSID acquired in S315. Is included in the SSID history information, and a negative determination is made when at least one of the SSID history information does not. If the Wi-Fi status information indicates that the Wi-Fi function of the Wi-Fi / WFD communication device is enabled, an affirmative determination may be made regardless of the SSID history information. In addition, the determination is affirmative when the predetermined data (eg, Ping packet) is transmitted to the Wi-Fi / WFD communication device using Wi-Fi communication and the returned data is received. A negative determination may be made. If a positive determination is made (S330: YES), the process proceeds to S335.

S335においてCPU106は、Wi−Fi/WFD通信デバイスが、Wi−Fi通信の通信圏内であるか否かを判断する。当該判断は、第1無線通信I/F105aを介して、Wi−Fi/WFD通信デバイスとの通信を試み、各種の情報を受信することができたか否かによって行ってもよい。また、当該判断は、Wi−Fi/WFD通信デバイスと情報処理装置との間で通信を行ったことを、S320で取得したWi−Fiステータス情報が示しているか否かによって行ってもよい。否定判断される場合(S335:NO)には図2AのS125へ戻り、肯定判断される場合(S335:YES)にはS346へ進む。   In S335, the CPU 106 determines whether or not the Wi-Fi / WFD communication device is within the communication range of Wi-Fi communication. The determination may be performed based on whether or not various information can be received by attempting to communicate with the Wi-Fi / WFD communication device via the first wireless communication I / F 105a. The determination may be made based on whether or not the Wi-Fi status information acquired in S320 indicates that communication has been performed between the Wi-Fi / WFD communication device and the information processing apparatus. When a negative determination is made (S335: NO), the process returns to S125 of FIG. 2A, and when an affirmative determination is made (S335: YES), the process proceeds to S346.

一方、S330において、Wi−Fi/WFD通信デバイスがWi−Fi通信を実行できる状態ではないと判断された場合(S330:NO)には、S340へ進む。S340においてCPU106は、Wi−Fi/WFD通信デバイスへ、Wi−Fi通信起動指示を送信する。Wi−Fi通信起動指示は、Wi−Fi通信を実行することが可能な状態に装置状態を設定することを、Wi−Fi/WFD通信デバイスに指示するための情報である。   On the other hand, if it is determined in S330 that the Wi-Fi / WFD communication device is not in a state where Wi-Fi communication can be performed (S330: NO), the process proceeds to S340. In S340, the CPU 106 transmits a Wi-Fi communication activation instruction to the Wi-Fi / WFD communication device. The Wi-Fi communication activation instruction is information for instructing the Wi-Fi / WFD communication device to set the apparatus state to a state in which Wi-Fi communication can be executed.

S345においてCPU106は、Wi−Fi通信起動指示の送信から所定時間内に、Wi−Fi/WFD通信デバイスのIPアドレスを、WFD通信を介してWi−Fi/WFD通信デバイスから受信したか否かを判断する。所定時間は、例えば1秒であってもよい。否定判断される場合(S345:NO)には図2AのS125へ戻り、肯定判断される場合(S345:YES)にはS346へ進む。   In S345, the CPU 106 determines whether or not the IP address of the Wi-Fi / WFD communication device is received from the Wi-Fi / WFD communication device via the WFD communication within a predetermined time from the transmission of the Wi-Fi communication activation instruction. to decide. The predetermined time may be, for example, 1 second. When a negative determination is made (S345: NO), the process returns to S125 of FIG. 2A, and when an affirmative determination is made (S345: YES), the process proceeds to S346.

S346においてCPU106は、Wi−Fi/WFD通信デバイスが、S110で指定された通信対象デバイスと一致するか否かを判断する。当該判断は、例えば、S112で記憶された指定デバイス識別情報に含まれているIPアドレスと、S345で受信されたWi−Fi/WFD通信デバイスのIPアドレスとが一致する場合に肯定判断され、一致しない場合に否定判断される。なお、S215で前述した内容は、S346においても適用することが可能である。S346において肯定判断される場合(S346:YES)には、S350へ進む。   In S346, the CPU 106 determines whether the Wi-Fi / WFD communication device matches the communication target device specified in S110. For example, the determination is positive when the IP address included in the designated device identification information stored in S112 matches the IP address of the Wi-Fi / WFD communication device received in S345. If not, a negative determination is made. Note that the contents described above in S215 can also be applied in S346. When a positive determination is made in S346 (S346: YES), the process proceeds to S350.

S350においてCPU106は、Wi−Fi/WFD通信デバイスに関する各種の情報を、デフォルトデバイス記憶領域800に記憶させる。すなわち、Wi−Fi/WFD通信デバイスを、通信対象デバイスとして登録する。なお、具体的な処理は、前述したS220の処理内容と同様であるため、ここでは説明を省略する。そして、図2AのS125へ戻る。   In step S <b> 350, the CPU 106 stores various information related to the Wi-Fi / WFD communication device in the default device storage area 800. That is, the Wi-Fi / WFD communication device is registered as a communication target device. Note that the specific processing is the same as the processing content of S220 described above, and a description thereof will be omitted here. And it returns to S125 of FIG. 2A.

また、S346において否定判断される場合(S346:NO)には、S355へ進む。S355においてCPU106は、Wi−Fi/WFD通信デバイスのIPアドレスと、Wi−Fi/WFD通信デバイスのMACアドレスおよびモデル名とを、互いに関連付けて記憶部109に記憶させる。これにより、Wi−Fi/WFD通信デバイスを、デフォルトデバイスの候補として記憶させることができる。そして、図2AのS125へ戻る。   If a negative determination is made in S346 (S346: NO), the process proceeds to S355. In S355, the CPU 106 stores the IP address of the Wi-Fi / WFD communication device, the MAC address of the Wi-Fi / WFD communication device, and the model name in the storage unit 109 in association with each other. Accordingly, the Wi-Fi / WFD communication device can be stored as a default device candidate. And it returns to S125 of FIG. 2A.

また、図2AのS135において否定判断される場合(S135:NO)には、S145へ進む。S145においてCPU106は、S115やS120でWi−Fi通信デバイス検索スレッドやWFD通信デバイス検索スレッドを起動してから、一定時間が経過したか否かを判断する。否定判断される場合(S145:NO)にはS125へ戻り、肯定判断される場合(S145:YES)にはS150へ進む。   If a negative determination is made in S135 of FIG. 2A (S135: NO), the process proceeds to S145. In S145, the CPU 106 determines whether or not a predetermined time has elapsed since the Wi-Fi communication device search thread and the WFD communication device search thread are activated in S115 and S120. If a negative determination is made (S145: NO), the process returns to S125, and if an affirmative determination is made (S145: YES), the process proceeds to S150.

S150においてCPU106は、S115で起動したWi−Fi通信デバイス検索スレッドを終了する。S155においてCPU106は、S120で起動したWFD通信デバイス検索スレッドを終了する。   In S150, the CPU 106 ends the Wi-Fi communication device search thread activated in S115. In S155, the CPU 106 ends the WFD communication device search thread activated in S120.

S160においてCPU106は、S110で指定されたデバイスが、デフォルトデバイスまたはセカンドデバイスとして通信対象デバイステーブルTB1に記憶されているかを判断する。すなわち、S110において指定されたデバイスが通信対象デバイスとして登録されたか否かを判断する。肯定判断される場合(S160:YES)にはフローを終了し、否定判断される場合(S160:NO)にはS165へ進む。   In S160, the CPU 106 determines whether the device specified in S110 is stored in the communication target device table TB1 as a default device or a second device. That is, it is determined whether or not the device designated in S110 is registered as a communication target device. If an affirmative determination is made (S160: YES), the flow ends. If a negative determination is made (S160: NO), the process proceeds to S165.

S165においてCPU106は、通信対象デバイス選択受付処理を実行する。具体例を説明する。CPU106は、通信対象デバイス選択画面を表示手段102に表示させる。通信対象デバイス選択画面は、デフォルトデバイス、または/および、セカンドデバイスの選択を受け付けるための画面である。通信対象デバイス選択画面には、S225およびS355においてデフォルトデバイスの候補として記憶されたデバイスのデバイス名が、デフォルトデバイスの選択候補として一覧表示される。また通信対象デバイス選択画面には、S323においてセカンドデバイスの候補として記憶されたデバイスのデバイス名が、セカンドデバイスの選択候補として一覧表示される。そして、デフォルトデバイスの選択候補デバイスのうちから何れかのデバイスが選択された場合には、選択されたデバイスを、デフォルトデバイスに設定する。デフォルトデバイスの設定処理内容は、S220で前述した内容と同様である。また、セカンドデバイスの選択候補デバイスのうちから何れかのデバイスが選択された場合には、選択されたデバイスを、セカンドデバイスに設定する。セカンドデバイスの設定処理内容は、S322で前述した内容と同様である。   In S165, the CPU 106 executes a communication target device selection receiving process. A specific example will be described. The CPU 106 causes the display unit 102 to display a communication target device selection screen. The communication target device selection screen is a screen for accepting selection of a default device and / or a second device. On the communication target device selection screen, device names of devices stored as default device candidates in S225 and S355 are listed as default device selection candidates. On the communication target device selection screen, the device names of the devices stored as second device candidates in S323 are displayed as a list of second device selection candidates. When any device is selected from the default device selection candidate devices, the selected device is set as the default device. The default device setting processing content is the same as the content described above in S220. When any device is selected from the second device selection candidate devices, the selected device is set as the second device. The content of the second device setting process is the same as that described above in S322.

S170においてCPU106は、S165において、セカンドデバイスのみが登録されたか否かを判断する。換言すると、S165において、WFD通信デバイスのみが選択されたか否かを判断する。否定判断される場合(S170:NO)にはフローを終了し、肯定判断される場合(S170:YES)にはS175へ進む。   In S170, the CPU 106 determines whether only the second device is registered in S165. In other words, in S165, it is determined whether only the WFD communication device has been selected. If a negative determination is made (S170: NO), the flow ends. If an affirmative determination is made (S170: YES), the process proceeds to S175.

S175においてCPU106は、デフォルトデバイス判断処理を実行する。デフォルトデバイス判断処理は、S165で登録されたセカンドデバイスが、Wi−Fi通信デバイスでもあるか否かを判断する処理である。セカンドデバイスとはすなわちWFD通信デバイスであるため、デフォルトデバイス判断処理とは、WFD通信デバイスが、Wi−Fi通信も実行可能であるか否かを判断する処理であるとも言える。すなわち、デフォルトデバイス判断処理の内容は、前述したS320〜S355の内容と同様である。   In S175, the CPU 106 executes default device determination processing. The default device determination process is a process for determining whether or not the second device registered in S165 is also a Wi-Fi communication device. Since the second device is a WFD communication device, it can be said that the default device determination process is a process for determining whether or not the WFD communication device can also execute Wi-Fi communication. That is, the contents of the default device determination process are the same as the contents of S320 to S355 described above.

図2Aおよび図2Bの通信対象デバイス登録処理が完了することによって、通信対象デバイスの登録が完了する。これにより、デフォルトデバイスおよびセカンドデバイスの少なくとも一方が通信対象デバイステーブルTB1に記憶されたデバイスのみが、通信対象デバイスとして登録されることになる。   When the communication target device registration process in FIGS. 2A and 2B is completed, registration of the communication target device is completed. As a result, only devices in which at least one of the default device and the second device is stored in the communication target device table TB1 are registered as communication target devices.

<画像処理>
図5Aおよび図5Bを用いて、画像処理を説明する。S810においてCPU106は、画像処理の実行命令の入力を受け付けたか否かを判断する。具体的に説明する。まず、「写真印刷」、「ウェブ印刷」、「スキャン」の3種類の用途のうち、何れかの用途を指定する用途指定操作を受け付け、各用途に応じた操作画面を表示する。なお、受け付けた用途が「写真印刷」「ウェブ印刷」の場合は、印刷対象データを取得する。具体的には、「写真印刷」の場合、記憶部109に記憶された写真データを読み出す、もしくは、不図示のカメラ部に写真撮影をさせ、撮影によって作成された写真データを取得する。「ウェブ印刷」の場合、不図示のウェブサーバが送信し、情報処理装置100が受信したウェブページデータを取得する。操作画面には、取得された印刷対象データがプレビュー表示される。そして、操作画面内の処理実行ボタンがタッチされることによって、選択された用途にかかる画像処理の実行命令が入力される。否定判断される場合(S810:NO)にはS810へ戻り、肯定判断される場合(S810:YES)にはS815へ進む。本実施形態の説明例では、「写真印刷」の実行命令が入力された場合について、以下に説明する。
<Image processing>
Image processing will be described with reference to FIGS. 5A and 5B. In step S810, the CPU 106 determines whether an input of an image processing execution command has been received. This will be specifically described. First, an application designating operation for designating one of the three applications “photo printing”, “web printing”, and “scanning” is accepted, and an operation screen corresponding to each application is displayed. If the accepted use is “photo printing” or “web printing”, print target data is acquired. Specifically, in the case of “photo printing”, the photograph data stored in the storage unit 109 is read, or the camera unit (not shown) is photographed to obtain photograph data created by photographing. In the case of “web printing”, web page data transmitted from a web server (not shown) and received by the information processing apparatus 100 is acquired. The acquired print target data is previewed on the operation screen. Then, when a process execution button in the operation screen is touched, an image processing execution command for the selected application is input. If a negative determination is made (S810: NO), the process returns to S810, and if an affirmative determination is made (S810: YES), the process proceeds to S815. In the explanation example of this embodiment, a case where an execution instruction of “photo printing” is input will be described below.

S815においてCPU106は、「写真印刷611」の用途において、デフォルトデバイス(すなわちWi−Fi通信デバイス)が登録されているか否かを判断する。具体的に説明する。通信対象デバイステーブルTB1の写真印刷611の欄におけるデフォルトデバイス記憶領域800(図6の領域R1を参照)に、IPアドレス803等の情報が記憶されている場合には、S815において肯定判断(S815:YES)される。一方、通信対象デバイステーブルTB1の写真印刷611の欄において、デフォルトデバイス記憶領域800(図6の領域R1を参照)にIPアドレス803等の情報が記憶されておらず、セカンドデバイス記憶領域810(図6の領域R2を参照)にIPアドレス813等の情報が記憶されている場合には、S815において否定判断(S815:NO)される。   In step S <b> 815, the CPU 106 determines whether a default device (that is, a Wi-Fi communication device) is registered for the use of “photo printing 611”. This will be specifically described. If information such as the IP address 803 is stored in the default device storage area 800 (see area R1 in FIG. 6) in the column of the photo print 611 of the communication target device table TB1, an affirmative determination is made in S815 (S815: YES). On the other hand, in the column of the photo print 611 of the communication target device table TB1, information such as the IP address 803 is not stored in the default device storage area 800 (see the area R1 in FIG. 6), and the second device storage area 810 (FIG. 6), if information such as the IP address 813 is stored, a negative determination is made in S815 (S815: NO).

すなわち、通信対象デバイステーブルTB1の写真印刷611の欄において、セカンドデバイス記憶領域810(図6の領域R2を参照)のみにIPアドレス813等が記憶されている場合には、通信対象デバイスがセカンドデバイス(すなわちWFD通信デバイス)であると判断される。ここで「のみ」とは、第1無線通信I/F105aと第2無線通信I/F105bのどちらを使用するかのS815での判断に用いられる情報としては、セカンドデバイス記憶領域810のみにIPアドレス813等が記憶されている、という意味である。換言すると、S815の判断に用いない情報であれば、通信対象デバイスがWi−Fi通信デバイスであることを示している情報(例:通信対象デバイスのIPアドレス)が記憶部109に記憶されていても、「のみ」の範疇である。   That is, when the IP address 813 or the like is stored only in the second device storage area 810 (see area R2 in FIG. 6) in the column of the photo print 611 of the communication target device table TB1, the communication target device is the second device. (I.e., WFD communication device). Here, “only” means that only the second device storage area 810 has an IP address as information used in the determination in S815 as to which of the first wireless communication I / F 105a and the second wireless communication I / F 105b is used. 813 etc. are stored. In other words, if the information is not used in the determination in S815, information indicating that the communication target device is a Wi-Fi communication device (for example, the IP address of the communication target device) is stored in the storage unit 109. Is also a category of “only”.

S815において否定判断(S815:NO)される場合には、S820へ進む。S820においてCPU106は、WFD通信を用いて通信対象デバイスと通信し、写真印刷を実行することを、表示手段102に表示する。例えば、「WFD通信で写真印刷を実行します」のような文字列を、表示手段102に表示してもよい。   If a negative determination is made in S815 (S815: NO), the process proceeds to S820. In step S <b> 820, the CPU 106 displays on the display unit 102 that communication with the communication target device is performed using WFD communication and photo printing is performed. For example, a character string such as “execute photo printing via WFD communication” may be displayed on the display unit 102.

S821においてCPU106は、通信対象デバイスが記憶しているMIB情報を問合せる問合せ情報を、第2無線通信I/F105bを介して通信対象デバイスへ送信する。S823においてCPU106は、問合せ情報に対して返信されたMIB情報を、第2無線通信I/F105bを介して受信する。本実施形態では、例として、MIB情報として、モデル名、MACアドレス、Wi−Fiステータス情報、SSID履歴情報、IPアドレス、を取得する場合を説明する。   In S821, the CPU 106 transmits inquiry information for inquiring MIB information stored in the communication target device to the communication target device via the second wireless communication I / F 105b. In S823, the CPU 106 receives the MIB information returned in response to the inquiry information via the second wireless communication I / F 105b. In the present embodiment, as an example, a case where a model name, a MAC address, Wi-Fi status information, SSID history information, and an IP address are acquired as MIB information will be described.

S825においてCPU106は、通信対象デバイスが、Wi−Fi通信デバイスでもあるか否かを判断する。換言すると、WFD通信デバイスが、Wi−Fi通信も実行可能であるか否かを判断する。当該判断は、通信対象デバイステーブルTB1の写真印刷611の欄のSSID804と同一のSSIDを、SSID履歴情報としてS823で取得したか否かによって行われてもよい。否定判断される場合(S825:NO)にはS875へ進み、肯定判断される場合(S825:YES)にはS830へ進む。   In S825, the CPU 106 determines whether the communication target device is also a Wi-Fi communication device. In other words, the WFD communication device determines whether or not Wi-Fi communication can also be executed. This determination may be made based on whether or not the same SSID as the SSID 804 in the column of the photo print 611 of the communication target device table TB1 is acquired as SSID history information in S823. When a negative determination is made (S825: NO), the process proceeds to S875, and when a positive determination is made (S825: YES), the process proceeds to S830.

S830〜S845の各ステップの内容は、図4のS330〜S345の各ステップの内容と同様である。また、S850の内容は、図4のS350の内容と同様である。よって、ここでは説明を省略する。   The contents of steps S830 to S845 are the same as the contents of steps S330 to S345 of FIG. Further, the contents of S850 are the same as the contents of S350 of FIG. Therefore, the description is omitted here.

S860においてCPU106は、通信対象デバイスがWi−Fi通信を実行できる状態であるか否かを判断する。当該判断は、S823で取得したWi−Fiステータス情報に基づいて、S330と同様の判断を行ってもよい。また当該判断は、通信対象デバイスに所定のデータを送信し、S330と同様の判断を行ってもよい。肯定判断される場合(S860:YES)には、S865へ進む。   In S860, the CPU 106 determines whether or not the communication target device is in a state where Wi-Fi communication can be performed. This determination may be made in the same manner as in S330 based on the Wi-Fi status information acquired in S823. The determination may be performed by transmitting predetermined data to the communication target device and performing the same determination as in S330. If a positive determination is made (S860: YES), the process proceeds to S865.

S865においてCPU106は、Wi−Fi通信を用いて通信対象デバイスに印刷処理を実行させることを、表示手段102に表示する。S870においてCPU106は、Wi−Fi通信を用いて通信対象デバイスに印刷データを送信する。このとき、表示手段102に印刷実行ボタンを表示させ、当該印刷実行ボタンがタッチされたことに応じて、印刷データを送信してもよい。そしてフローを終了する。   In step S865, the CPU 106 displays on the display unit 102 that the communication target device performs print processing using Wi-Fi communication. In step S870, the CPU 106 transmits print data to the communication target device using Wi-Fi communication. At this time, a print execution button may be displayed on the display unit 102, and the print data may be transmitted in response to the touch of the print execution button. Then, the flow ends.

一方、S860において否定判断される場合(S860:NO)には、S861へ進む。S861においてCPU106は、通信対象デバイスが、WFD通信が実行可能なデバイスであるか否かを判断する。否定判断される場合(S861:NO)にはフローを終了し、肯定判断される場合(S861:YES)にはS875へ進む。   On the other hand, when a negative determination is made in S860 (S860: NO), the process proceeds to S861. In step S861, the CPU 106 determines whether the communication target device is a device that can execute WFD communication. If a negative determination is made (S861: NO), the flow ends. If an affirmative determination is made (S861: YES), the process proceeds to S875.

S875においてCPU106は、WFD通信を用いて通信対象デバイスに印刷処理を実行させることを、表示手段102に表示する。S880においてCPU106は、WFD通信を用いて通信対象デバイスに印刷データを送信する。このとき、表示手段102に印刷実行ボタンを表示させ、当該印刷実行ボタンがタッチされたことに応じて、印刷データを送信してもよい。そしてフローを終了する。   In step S875, the CPU 106 displays on the display unit 102 that the communication target device is caused to execute print processing using WFD communication. In S880, the CPU 106 transmits the print data to the communication target device using WFD communication. At this time, a print execution button may be displayed on the display unit 102, and the print data may be transmitted in response to the touch of the print execution button. Then, the flow ends.

<実施例1の効果>
例として、MFP51が通信対象デバイスとして登録される場合を説明する。また、用途として写真印刷611が選択される場合を説明する。MFP51が通信対象デバイスとして選択された場合において(S110:YESまたはS165)、MFP51がWi−Fi通信デバイスであると判断された場合(S125:YES)には、通信対象デバイステーブルTB1のデフォルトデバイス記憶領域800に、IPアドレス803等が記憶される(図6の領域R1参照)。これにより、写真印刷611の用途に対して、デフォルトデバイスを登録することができる。また、MFP51がWFD通信デバイスであると判断された場合(S135:YES)には、通信対象デバイステーブルTB1のセカンドデバイス記憶領域810に、IPアドレス813等が記憶される(図6の領域R2参照)。これにより、写真印刷611の用途に対して、セカンドデバイスを登録することができる。そして、写真印刷の実行命令が入力されると(S810:YES)、通信対象デバイスとして、デフォルトデバイスが登録されているか、または、セカンドデバイスのみが登録されているかが判断される(S815)。具体的には、通信対象デバイステーブルTB1の写真印刷611の欄におけるデフォルトデバイス記憶領域800(図6の領域R1を参照)にIPアドレス803等の情報が記憶されている場合には、デフォルトデバイスが登録されていると判断される(S815:YES)。従って、Wi−Fi通信を用いて、通信対象デバイスであるMFP51に印刷データを送信する(S870)。一方、セカンドデバイス記憶領域810(図6の領域R2を参照)のみにIPアドレス813等の情報が記憶されている場合には、セカンドデバイスのみが登録されていると判断される(S815:NO)。従って、WFD通信を用いて、通信対象デバイスであるMFP51に印刷データを送信する(S880)。これにより、第1無線通信I/F105aおよび第2無線通信I/F105bのうちから適切なI/Fを自動で選択して通信対象デバイスと通信を実行することが可能となる。よって、ユーザの利便性を高めることができる。
<Effect of Example 1>
As an example, a case where the MFP 51 is registered as a communication target device will be described. A case where the photo print 611 is selected as the application will be described. When the MFP 51 is selected as a communication target device (S110: YES or S165), when it is determined that the MFP 51 is a Wi-Fi communication device (S125: YES), the default device storage of the communication target device table TB1 is performed. The area 800 stores the IP address 803 and the like (see the area R1 in FIG. 6). Thereby, the default device can be registered for the use of the photo print 611. If the MFP 51 is determined to be a WFD communication device (S135: YES), the IP address 813 and the like are stored in the second device storage area 810 of the communication target device table TB1 (see area R2 in FIG. 6). ). Thereby, the second device can be registered for the use of the photo printing 611. When a photo printing execution command is input (S810: YES), it is determined whether a default device is registered as a communication target device or only a second device is registered (S815). Specifically, when information such as the IP address 803 is stored in the default device storage area 800 (see area R1 in FIG. 6) in the column of the photo print 611 of the communication target device table TB1, the default device is It is determined that it is registered (S815: YES). Therefore, print data is transmitted to the MFP 51, which is a communication target device, using Wi-Fi communication (S870). On the other hand, when information such as the IP address 813 is stored only in the second device storage area 810 (see area R2 in FIG. 6), it is determined that only the second device is registered (S815: NO). . Accordingly, print data is transmitted to the MFP 51, which is a communication target device, using WFD communication (S880). Accordingly, it is possible to automatically select an appropriate I / F from the first wireless communication I / F 105a and the second wireless communication I / F 105b and perform communication with the communication target device. Therefore, user convenience can be improved.

通信対象デバイスとしてセカンドデバイスのみが登録されていると判断される場合(S815:NO)には、通信対象デバイスが記憶しているMIB情報を問合せる問合せ情報を、通信対象デバイスに送信し(S821)、通信対象デバイスからMIB情報を取得することができる(S823)。そして、通信対象デバイスがWi−Fi通信も実行可能であると判断される場合には(S825:YES)、通信対象デバイスとして、デフォルトデバイスを追加記憶させることができる(S850)。これにより、可能な限り第1無線通信I/F105aを用いて、通信対象デバイスと通信を実行することができる。   When it is determined that only the second device is registered as the communication target device (S815: NO), inquiry information for inquiring MIB information stored in the communication target device is transmitted to the communication target device (S821). MIB information can be acquired from the communication target device (S823). If it is determined that the communication target device can also execute Wi-Fi communication (S825: YES), a default device can be additionally stored as the communication target device (S850). Thereby, communication with the communication target device can be executed using the first wireless communication I / F 105a as much as possible.

通信対象デバイスの選択が受け付けられた場合(S165)に、通信対象デバイスとしてセカンドデバイスのみが登録された場合(S170:YES)には、通信対象デバイスが記憶しているMIB情報を問合せる問合せ情報を通信対象デバイスに送信し、通信対象デバイスからMIB情報を取得することができる(S175)。そして、通信対象デバイスがWi−Fi通信も実行可能であると判断される場合には、通信対象デバイスとして、デフォルトデバイスを追加記憶させることができる(S175)。これにより、可能な限り第1無線通信I/F105aを用いて、通信対象デバイスと通信を実行することができる。   When selection of a communication target device is accepted (S165), when only a second device is registered as a communication target device (S170: YES), inquiry information for inquiring MIB information stored in the communication target device is displayed. The information can be transmitted to the communication target device, and MIB information can be acquired from the communication target device (S175). If it is determined that the communication target device can also execute Wi-Fi communication, a default device can be additionally stored as the communication target device (S175). Thereby, communication with the communication target device can be executed using the first wireless communication I / F 105a as much as possible.

通信対象デバイスが第1無線通信I/F105aを用いたWi−Fi通信を実行できない状態である場合(S330:NOまたはS830:NO)には、Wi−Fi通信起動指示を、第2無線通信I/F105bを介したWFD通信を用いて、通信対象デバイスに対して送信することができる(S340、S840)。Wi−Fi通信起動指示は、Wi−Fi通信を実行することが可能な装置状態に設定することを指示する情報である。これにより、Wi−Fi通信起動指示を、WFD通信を用いてMFP51に送信することができる。すなわち、優先度の低いWFD通信を用いて、優先度の高いWi−Fi通信を実行可能に設定することが可能となる。   When the communication target device is in a state where it cannot execute Wi-Fi communication using the first wireless communication I / F 105a (S330: NO or S830: NO), a Wi-Fi communication activation instruction is sent to the second wireless communication I. It can be transmitted to the communication target device using WFD communication via / F105b (S340, S840). The Wi-Fi communication activation instruction is information instructing to set a device state in which Wi-Fi communication can be performed. Thereby, a Wi-Fi communication activation instruction can be transmitted to the MFP 51 using WFD communication. In other words, it is possible to set the Wi-Fi communication with a high priority to be executable using the WFD communication with a low priority.

通信対象デバイスとしてデフォルトデバイスおよびセカンドデバイスが登録されているが(S815:YESおよびS861:YES)、通信対象デバイスがWi−Fi通信を実行できる状態ではないと判断された場合(S860:NO)には、通信対象デバイスとの通信経路を、第2無線通信I/F105bを用いたWFD通信に切り替えることができる(S880)。これにより、通信経路の冗長性を確保できるため、通信対象デバイスとの通信を確実に実行することが可能となる。   When a default device and a second device are registered as communication target devices (S815: YES and S861: YES), but it is determined that the communication target device is not in a state capable of executing Wi-Fi communication (S860: NO). Can switch the communication path with the communication target device to WFD communication using the second wireless communication I / F 105b (S880). Thereby, since the redundancy of a communication path can be ensured, it becomes possible to perform communication with a communication object device reliably.

通信対象デバイスとして、セカンドデバイスのみが登録されていると判断される場合(S815:NO)には、WFD通信を用いて通信対象デバイスと通信することを示す情報を、表示手段102に表示することができる(S820)。また、通信対象デバイスとして、デフォルトデバイスが登録されていると判断される場合(S815:YES)には、Wi−Fi通信を用いて通信対象デバイスと通信することを示す情報を、表示手段102に表示することができる(S865)。これにより、第1無線通信I/F105aおよび第2無線通信I/F105bのうちの何れを使用するかを、ユーザに認識させることができる。   When it is determined that only the second device is registered as the communication target device (S815: NO), information indicating that communication with the communication target device is performed using WFD communication is displayed on the display unit 102. (S820). When it is determined that a default device is registered as a communication target device (S815: YES), information indicating that the communication target device is communicated using Wi-Fi communication is displayed on the display unit 102. It can be displayed (S865). Thereby, it is possible to make the user recognize which of the first wireless communication I / F 105a and the second wireless communication I / F 105b is used.

前述した実施例1は、同一のデバイスがWi−Fi通信デバイスおよびWFD通信デバイスとして検出される場合に、Wi−Fi通信デバイスをデフォルトデバイスに設定し(S220、S350)、WFD通信デバイスをセカンドデバイスに設定する(S322)態様であった。実施例2では、同一のデバイスがWi−Fi通信デバイスおよびWFD通信デバイスとして検出される場合に、先に存在が検出されたデバイスを、デフォルトデバイスに設定する態様を説明する。なお、実施例2で使用するネットワーク10の構成は、実施例1で説明済みであるため、ここでは説明を省略する。   In the first embodiment described above, when the same device is detected as a Wi-Fi communication device and a WFD communication device, the Wi-Fi communication device is set as a default device (S220, S350), and the WFD communication device is a second device. (S322). In the second embodiment, a mode will be described in which, when the same device is detected as a Wi-Fi communication device and a WFD communication device, the device whose presence has been detected first is set as a default device. Note that the configuration of the network 10 used in the second embodiment has already been described in the first embodiment, and thus the description thereof is omitted here.

実施例2では、図4のS322に代えて、S322aが実行される。S322aでは、CPU106は、Wi−Fi通信デバイスがデフォルトデバイスとしてすでに登録済みであるか否かを判断する。具体的には、通信対象デバイステーブルTB1(図6)において、S105で選択された用途に対応する欄を、写真印刷611〜スキャン613の中から選択する。そして選択された欄におけるデフォルトデバイス記憶領域800に、Wi−Fi通信デバイスを示す情報が記憶されているか否かを判断する。否定判断される場合には、WFD通信デバイスをデフォルトデバイスに設定する。また、肯定判断される場合には、WFD通信デバイスをセカンドデバイスに設定する。   In the second embodiment, S322a is executed instead of S322 in FIG. In S322a, the CPU 106 determines whether or not the Wi-Fi communication device has already been registered as a default device. Specifically, in the communication target device table TB1 (FIG. 6), a column corresponding to the application selected in S105 is selected from the photo prints 611 to 613. Then, it is determined whether or not information indicating the Wi-Fi communication device is stored in the default device storage area 800 in the selected field. If a negative determination is made, the WFD communication device is set as a default device. If a positive determination is made, the WFD communication device is set as the second device.

また実施例2では、図3のS220に代えて、S220aが実行される。S220aでは、CPU106は、WFD通信デバイスがデフォルトデバイスとしてすでに登録済みであるか否かを判断する。具体的には、通信対象デバイステーブルTB1(図6)において、S105で選択された用途に対応する欄におけるデフォルトデバイス記憶領域800に、WFD通信デバイスを示す情報が記憶されているか否かを判断する。肯定判断される場合には、デフォルトデバイスに設定されているWFD通信デバイスを、セカンドデバイスに設定し直す。そして、Wi−Fi通信デバイスをデフォルトデバイスに設定する。具体的には、通信対象デバイステーブルTB1において、デフォルトデバイス記憶領域800に記憶されている情報を、セカンドデバイス記憶領域810に移動させる。そして、デフォルトデバイス記憶領域800に、Wi−Fi通信デバイスを示す情報を記憶する。一方、否定判断される場合には、Wi−Fi通信デバイスをデフォルトデバイスに設定する。   In the second embodiment, S220a is executed instead of S220 in FIG. In S220a, CPU 106 determines whether or not the WFD communication device has already been registered as a default device. Specifically, in the communication target device table TB1 (FIG. 6), it is determined whether or not information indicating the WFD communication device is stored in the default device storage area 800 in the column corresponding to the application selected in S105. . When an affirmative determination is made, the WFD communication device set as the default device is reset as the second device. Then, the Wi-Fi communication device is set as a default device. Specifically, the information stored in the default device storage area 800 in the communication target device table TB1 is moved to the second device storage area 810. Then, information indicating the Wi-Fi communication device is stored in the default device storage area 800. On the other hand, if a negative determination is made, the Wi-Fi communication device is set as a default device.

また実施例2では、図4のS350に代えて、S350aが実行される。
S350aの内容は、前述したS220aの内容と同様であるため、ここでは説明を省略する。
In the second embodiment, S350a is executed instead of S350 in FIG.
Since the content of S350a is the same as the content of S220a described above, description thereof is omitted here.

<実施例2の効果>
同一のデバイスがWi−Fi通信デバイスおよびWFD通信デバイスの各々として検出される場合において、当該デバイスが、Wi−Fi通信デバイスとして検出される前にWFDデバイスとして検出された場合には、WFDデバイスをデフォルトデバイスに設定することができる。そして、その後に当該デバイスがWi−Fi通信デバイスとして検出された場合には、WFDデバイスをセカンドデバイスに設定し直すとともに、Wi−Fi通信デバイスをデフォルトデバイスに設定することができる。これにより、Wi−Fi通信デバイスが検出されない期間においても、デフォルトデバイスを設定することが可能となる。
<Effect of Example 2>
When the same device is detected as each of the Wi-Fi communication device and the WFD communication device, if the device is detected as a WFD device before being detected as the Wi-Fi communication device, the WFD device is Can be set as default device. Then, when the device is detected as a Wi-Fi communication device thereafter, the WFD device can be reset as a second device and the Wi-Fi communication device can be set as a default device. This makes it possible to set a default device even during a period in which no Wi-Fi communication device is detected.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、以上に例示した具体例を様々に変形、変更したものが含まれる。以下に変形例を説明する。   Specific examples of the present invention have been described in detail above, but these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples illustrated above. A modification will be described below.

<変形例>
S810において、印刷処理やスキャン処理の実行命令が入力されたことに応じて、図5Aおよび図5Bの画像処理が開始される場合を説明したが、この形態に限られない。「写真印刷」の操作画面において、取得した写真データのプレビュー表示を指示する「プレビューボタン」が押下されたことに応じて、図5Aおよび図5Bの画像処理が開始されてもよい。「プレビューボタン」が押下された場合(S810:YES)には、印刷対象の画像が、表示手段102にプレビュー表示される。このとき、プレビュー表示には、印刷設定が反映されていても、されていなくてもよい。そして、プレビュー表示画面内の「印刷ボタン」が押下されることに応じて、印刷処理が開始されてもよい。また、「ウェブ印刷」の場合には、取得したウェブページデータのプレビュー表示を指示する「プレビューボタン」が押下されたことに応じて、図5Aおよび図5Bの画像処理が開始されてもよい。
<Modification>
Although the case where the image processing of FIGS. 5A and 5B is started in response to the execution instruction of the printing process or the scanning process being input in S810 has been described, the present invention is not limited to this form. The image processing of FIGS. 5A and 5B may be started in response to the pressing of the “preview button” for instructing the preview display of the acquired photo data on the “photo printing” operation screen. If the “preview button” is pressed (S810: YES), the image to be printed is previewed on the display means 102. At this time, the print setting may or may not be reflected in the preview display. Then, the printing process may be started in response to pressing of the “print button” in the preview display screen. In the case of “web printing”, the image processing of FIGS. 5A and 5B may be started in response to pressing of a “preview button” for instructing preview display of the acquired web page data.

本実施形態の説明例では、S810において、通信対象デバイスと所定のデータ(例:印刷データ)を通信する処理の実行指示として、「写真印刷」の実行命令が入力される場合を説明した。しかし、「所定のデータを通信する処理の実行指示」は、印刷実行指示のような、指示の後、ユーザ確認を取ることなくデータ通信が実行されるような指示に限られない。指示の後、データ通信を実行してよいか否かユーザに確認をとり、確認指示があってからデータ通信が実行されるような指示も、「データ通信処理の実行指示」の範疇に含まれる。確認指示があってからデータ通信が実行される指示の一例としては、プレビュー表示指示が挙げられる。プレビュー表示指示が行われると、印刷対象データのプレビュー表示がおこなわれる。プレビュー表示とともに、印刷実行ボタンも表示する。ユーザはプレビュー表示を確認し、印刷してよければ、印刷ボタンをタッチする。印刷ボタンがタッチされると、印刷データの通信の実行に移行する。   In the description example of the present embodiment, the case has been described in which the execution instruction of “photo printing” is input as the execution instruction of the process of communicating predetermined data (for example, print data) with the communication target device in S810. However, the “execution instruction for processing to communicate predetermined data” is not limited to an instruction such as a print execution instruction that allows data communication to be executed without user confirmation after the instruction. After the instruction, the user is asked whether or not the data communication can be executed, and an instruction that the data communication is executed after the confirmation instruction is included in the category of the “data communication processing execution instruction”. . An example of an instruction for executing data communication after a confirmation instruction is a preview display instruction. When a preview display instruction is issued, a preview display of the print target data is performed. A print execution button is also displayed together with the preview display. The user confirms the preview display and touches the print button if printing is acceptable. When the print button is touched, the process shifts to execution of print data communication.

S850において、Wi−Fi/WFD通信デバイスをデフォルトデバイスに設定する処理は、一時的な処理であってよい。例えば、通信対象デバイステーブルTB1のデフォルトデバイス記憶領域800にIPアドレス803等の情報を記憶させてもよい(S850)。そして、S870やS880の処理の終了後に、デフォルトデバイス記憶領域800に記憶させた情報を削除してもよい。   In S850, the process of setting the Wi-Fi / WFD communication device as the default device may be a temporary process. For example, information such as the IP address 803 may be stored in the default device storage area 800 of the communication target device table TB1 (S850). The information stored in the default device storage area 800 may be deleted after the processing of S870 and S880 is completed.

実施例2において、デフォルトデバイスとセカンドデバイスとの2つを設定する形態を説明したが、この形態に限られない。デフォルトデバイスのみを記憶する形態であってもよい。この場合、S220aにおいて、WFD通信デバイスがデフォルトデバイスとしてすでに登録済みである場合には、WFD通信デバイスに代えてWi−Fi通信デバイスをデフォルトデバイスとして設定すればよい。具体的には、通信対象デバイステーブルTB1において、Wi−Fi通信デバイスを示す情報を、デフォルトデバイス記憶領域800に上書き記憶すればよい。また、322aにおいて、Wi−Fi通信デバイスがデフォルトデバイスとしてすでに登録済みである場合には、WFD通信デバイスの情報を通信対象デバイステーブルTB1に記憶させなければよい。   In the second embodiment, the mode in which the default device and the second device are set has been described. However, the present invention is not limited to this mode. Only the default device may be stored. In this case, if the WFD communication device has already been registered as the default device in S220a, the Wi-Fi communication device may be set as the default device instead of the WFD communication device. Specifically, information indicating the Wi-Fi communication device may be overwritten and stored in the default device storage area 800 in the communication target device table TB1. If the Wi-Fi communication device has already been registered as the default device in 322a, the WFD communication device information may not be stored in the communication target device table TB1.

S325において、WFD通信デバイスがWi−Fi通信デバイスでもあるか否かを判断する方法は、各種の方法であってよい。例えば、MACアドレスを比較することで、当該判断を実行してもよい。具体的には、S320で取得したMACアドレスと、記憶部109に記憶されているWi−Fi通信デバイスのMACアドレスと、が一致するか否かによって判断を実行してもよい。Wi−Fi通信デバイスのMACアドレスは、S220において記憶部109に記憶される情報である。MACアドレスは、外部デバイスを一意に識別することができる物理アドレスであるとともに、一般的に用いられる情報であるため、判断処理を確実に実行することが可能となる。   In S325, the method for determining whether or not the WFD communication device is also a Wi-Fi communication device may be various methods. For example, the determination may be performed by comparing the MAC addresses. Specifically, the determination may be performed based on whether or not the MAC address acquired in S320 matches the MAC address of the Wi-Fi communication device stored in the storage unit 109. The MAC address of the Wi-Fi communication device is information stored in the storage unit 109 in S220. The MAC address is a physical address that can uniquely identify an external device, and is information that is generally used. Therefore, the determination process can be reliably executed.

S210やS320において、外部デバイスから情報を取得する形態は、MIB情報を用いる形態に限られない。情報処理装置100からの情報取得のリクエストに応じて、外部デバイスが、各種の情報をレスポンスとして返信する形態であってもよい。   In S210 and S320, the form of acquiring information from an external device is not limited to the form using MIB information. In response to a request for information acquisition from the information processing apparatus 100, the external device may return various types of information as responses.

S340においてWi−Fi通信起動指示を送信する条件は、様々に設定することができる。例えば、Wi−Fi/WFD通信デバイスがWi−Fi通信を実行できる状態である(S330:YES)と判断され、かつ、当該Wi−Fi/WFD通信デバイスとWi−Fi通信を実行した履歴が記憶部109に残っている場合に、Wi−Fi通信起動指示を送信する(S340)としてもよい。これにより、不要なWi−Fi通信起動指示が送信されてしまう事態を防止することができる。   Various conditions for transmitting a Wi-Fi communication activation instruction in S340 can be set. For example, it is determined that the Wi-Fi / WFD communication device can execute Wi-Fi communication (S330: YES), and the history of executing Wi-Fi communication with the Wi-Fi / WFD communication device is stored. If it remains in the unit 109, a Wi-Fi communication activation instruction may be transmitted (S340). As a result, it is possible to prevent an unnecessary Wi-Fi communication activation instruction from being transmitted.

S345において、Wi−Fi/WFD通信デバイスのIPアドレスを、Wi−Fi通信を介して受信する態様としてもよい。   In S345, the IP address of the Wi-Fi / WFD communication device may be received via Wi-Fi communication.

S350において、Wi−Fi/WFD通信デバイスとWi−Fi通信を実行する場合においても、WFD通信を実行するために必要な情報(例:デバイスID、MACアドレス)を、記憶部109に記憶させている。これにより、Wi−Fi/WFD通信デバイスとのWi−Fi通信が使用不可能になった場合(S860:NO)には、デバイスIDやMACアドレスを用いて、Wi−Fi通信をWFD通信に切り替えることが可能となる。通信システムに冗長性を持たせることが可能となる。   Even when performing Wi-Fi communication with a Wi-Fi / WFD communication device in S350, information (eg, device ID, MAC address) necessary for executing WFD communication is stored in the storage unit 109. Yes. As a result, when Wi-Fi communication with the Wi-Fi / WFD communication device becomes unusable (S860: NO), the Wi-Fi communication is switched to WFD communication using the device ID and the MAC address. It becomes possible. It becomes possible to give redundancy to the communication system.

デフォルトデバイスが、用途ごとに複数設定されるとしてもよい。例えば、第1デフォルトデバイスと第2デフォルトデバイスが存在するとしてもよい。アプリケーション121は、第1デフォルトデバイスと優先的に通信を実行し、第1デフォルトデバイスと通信ができない場合に第2デフォルトデバイスと通信するとしてもよい。そして、Wi−Fi通信デバイスは第1デフォルトデバイスとして通信対象デバイステーブルTB1に記憶され、WFD通信デバイスは第2デフォルトデバイスとして通信対象デバイステーブルTB1に記憶されるとしてもよい。   A plurality of default devices may be set for each application. For example, there may be a first default device and a second default device. The application 121 may preferentially communicate with the first default device, and may communicate with the second default device when communication with the first default device is not possible. The Wi-Fi communication device may be stored in the communication target device table TB1 as the first default device, and the WFD communication device may be stored in the communication target device table TB1 as the second default device.

S110の通信対象デバイス指定指示の入力受付処理は、省略することが可能である。この場合、S105で肯定判断される場合には、S115へ進むとしてもよい。またS160、S215、S321、S346は省略してもよい。Wi−Fi通信の通信圏内であるか否かを判断する処理(S335)は、省略することが可能である。この場合、S330で肯定判断される場合には、S346へ進むとしてもよい。Wi−Fi通信起動指示を送信する処理(S340)は、省略することが可能である。この場合、S330で否定判断される場合には、図2AのS125へ戻るとしてもよい。以上より、一般的に言うと、情報処理装置100は、「第1受信手段」と、「第2受信手段」と、「選択手段」と、「第1記憶制御手段」と、「第2記憶制御手段」と、「第1受付手段」と、「通信手段」と、を少なくとも備えていれば良い。具体例としては、情報処理装置100は、S115と、S120と、S110またはS165と、S220またはS350またはS850と、S322と、S810と、S870またはS880と、を少なくとも実行すればよい。   The input reception process of the communication target device designation instruction in S110 can be omitted. In this case, when a positive determination is made in S105, the process may proceed to S115. S160, S215, S321, and S346 may be omitted. The process (S335) of determining whether or not the communication range of Wi-Fi communication can be omitted. In this case, when a positive determination is made in S330, the process may proceed to S346. The process of transmitting the Wi-Fi communication activation instruction (S340) can be omitted. In this case, when a negative determination is made in S330, the process may return to S125 in FIG. 2A. From the above, generally speaking, the information processing apparatus 100 includes the “first receiving unit”, the “second receiving unit”, the “selecting unit”, the “first storage control unit”, and the “second storage unit”. It suffices to include at least a “control unit”, a “first receiving unit”, and a “communication unit”. As a specific example, the information processing apparatus 100 may execute at least S115, S120, S110 or S165, S220 or S350 or S850, S322, S810, S870 or S880.

通信対象デバイステーブルTB1へのデフォルトデバイスの登録は、S220、S322、S350で行われる形態に限られない。例えば、ユーザがタッチパネル103などを操作してIPアドレス等を入力することにより、デフォルトデバイスを登録することも可能である。   Registration of the default device in the communication target device table TB1 is not limited to the form performed in S220, S322, and S350. For example, the default device can be registered by the user operating the touch panel 103 or the like to input an IP address or the like.

アプリケーション121が、情報処理装置100が現在接続中のネットワークのSSIDをOS124から取得するタイミングは、S315のタイミングに限られない。例えば、印刷プレビューを表示するタイミングや、アプリケーション121が起動されるタイミングで取得してもよい。   The timing at which the application 121 acquires the SSID of the network to which the information processing apparatus 100 is currently connected from the OS 124 is not limited to the timing at S315. For example, it may be acquired at the timing when the print preview is displayed or when the application 121 is activated.

本実施形態で用いたIPアドレスの値やSSIDの文字列は一例であり、様々な値や文字列を用いることが可能である。   The IP address values and SSID character strings used in the present embodiment are examples, and various values and character strings can be used.

モデル名801、デバイスを識別することができるものであれば、どのようなものでもよく、例えば、番号を含まないもの、記号だけで構成されるものでもよい。また、デバイス名などのデバイスを区別することができる名称を、モデル名の代わりに用いてもよい。   As long as the model name 801 and the device can be identified, any model name may be used. For example, the model name 801 may not include a number, or may include only symbols. Further, a name that can distinguish the device such as a device name may be used instead of the model name.

情報処理装置100は、メモリカードなどの外部メモリを接続可能な構成としてもよい。そして、記憶部109に代えて、外部メモリへ各種データを記憶する構成としてもよい。   The information processing apparatus 100 may be configured to connect an external memory such as a memory card. In place of the storage unit 109, various data may be stored in an external memory.

画像処理装置の一例として、MFP51を挙げたが、これに限らない。指示データなどに基づいて、所定の画像を刺繍、キルティングするミシンでもよい。画像データに基づいた作品、製品を形成するために、飾り縫い、縫製などをおこなうミシンでもよい。指示データなどに基づいて、吹き付け、削りだしなどで、3D画像を生成する3Dプリンタでもよい。画像データなどに基づいて、吹き付け、削りだしなどで、作品、製品を生成する作品製造装置、製品製造装置でもよい。画像データの例として3D画像データや3DCADデータを用いてもよい。対象物の輪郭を光学的、電気的に検知するセンサからの出力データや、対象物に取り付けたセンサからの出力データに基づいて画像データを作成するスキャナでもよい。センサからの出力に基づいて、対象物の形状や動きを示すデータを作成するスキャナでもよい。画像データの例として動画データや3D画像データを用いてもよい。   Although the MFP 51 has been described as an example of the image processing apparatus, the present invention is not limited to this. A sewing machine that embroiders and quilts a predetermined image based on instruction data or the like may be used. A sewing machine that performs decorative sewing, sewing, or the like to form a work or product based on image data may be used. A 3D printer that generates a 3D image by spraying, shaving, or the like based on instruction data or the like may be used. A work manufacturing apparatus or a product manufacturing apparatus that generates a work or a product by spraying or shaving based on image data or the like may be used. As an example of the image data, 3D image data or 3D CAD data may be used. It may be a scanner that creates image data based on output data from a sensor that optically and electrically detects the contour of an object or output data from a sensor attached to the object. It may be a scanner that creates data indicating the shape and movement of an object based on the output from the sensor. Movie data or 3D image data may be used as an example of image data.

プリント&スキャンアプリケーション121は、情報処理プログラムの一例である。MFP51、スキャナ61、カラーレーザープリンタ71は、デバイスの一例である。第1無線通信I/F105aは、第1無線通信インターフェースの一例である。第2無線通信I/F105bは、第2無線通信インターフェースの一例である。CPU106は、プロセッサの一例である。Wi−Fi通信デバイスは、第1通信デバイスの一例である。S115を実行するCPUは、第1受信手段の一例である。WFD通信デバイスは、第2通信デバイスの一例である。S120を実行するCPUは、第2受信手段の一例である。S110またはS165を実行するCPUは、選択手段の一例である。IPアドレスは、第1通信デバイス識別情報の一例である。S220、S350、S850を実行するCPUは、第1記憶制御手段の一例である。デバイスIDは、第2通信デバイス識別情報の一例である。S322を実行するCPUは、第2記憶制御手段の一例である。S810を実行するCPUは、第1受付手段の一例である。S870、S880を実行するCPUは、通信手段の一例である。S821を実行するCPUは、第1問合せ手段の一例である。SSID履歴情報は、第1返信情報の一例である。S823を実行するCPUは、第3受信手段の一例である。S820を実行するCPUは、第1表示制御手段の一例である。S865を実行するCPUは、第2表示制御手段の一例である。S320、S823を実行するCPUは、第4受信手段の一例である。Wi−Fiステータス情報は、状態情報の一例である。S340、S840を実行するCPUは、第1指示手段の一例である。S860を実行するCPUは、判断手段の一例である。S320を実行するCPUは、第2問合せ手段の一例である。S320を実行するCPUは、第5受信手段の一例である。S320を実行するCPUは、第6受信手段の一例である。Wi−Fi通信起動指示は、第2指示情報の一例である。S340を実行するCPUは、第2指示手段の一例である。   The print & scan application 121 is an example of an information processing program. The MFP 51, the scanner 61, and the color laser printer 71 are examples of devices. The first wireless communication I / F 105a is an example of a first wireless communication interface. The second wireless communication I / F 105b is an example of a second wireless communication interface. The CPU 106 is an example of a processor. The Wi-Fi communication device is an example of a first communication device. The CPU that executes S115 is an example of a first receiving unit. The WFD communication device is an example of a second communication device. The CPU that executes S120 is an example of a second receiving unit. The CPU that executes S110 or S165 is an example of a selection unit. The IP address is an example of first communication device identification information. The CPU that executes S220, S350, and S850 is an example of a first storage control unit. The device ID is an example of second communication device identification information. The CPU that executes S322 is an example of a second storage control unit. The CPU that executes S810 is an example of a first reception unit. The CPU that executes S870 and S880 is an example of a communication unit. The CPU that executes S821 is an example of a first inquiry unit. The SSID history information is an example of first reply information. The CPU that executes S823 is an example of a third receiving unit. The CPU that executes S820 is an example of a first display control unit. The CPU that executes S865 is an example of a second display control unit. The CPU that executes S320 and S823 is an example of a fourth receiving unit. Wi-Fi status information is an example of state information. The CPU that executes S340 and S840 is an example of a first instruction unit. The CPU that executes S860 is an example of a determination unit. The CPU that executes S320 is an example of a second inquiry unit. The CPU that executes S320 is an example of a fifth receiving unit. The CPU that executes S320 is an example of a sixth receiving unit. The Wi-Fi communication activation instruction is an example of second instruction information. The CPU that executes S340 is an example of a second instruction unit.

なお、各プログラムは一つのプログラムモジュールから構成されるものであってもよいし、複数のプログラムモジュールから構成されるものであってもよい。また、各一例は置換可能な他の構成であってもよく、本発明の範疇である。画像処理プログラム(アプリケーション121など)に基づく処理を実行するコンピュータ(CPU106など)であってもよいし、オペレーティングシステムや他のアプリケーションなど、画像処理プログラム以外のプログラムに基づく処理を実行するコンピュータであってもよいし、コンピュータの指示に従って動作するハード構成(タッチパネル103など)であってもよいし、コンピュータとハード構成とが連動した構成であってもよい。もちろん、複数のプログラムに基づく処理を連動させて処理を実行するコンピュータであってもよいし、複数のプログラムに基づく処理を連動させて処理を実行するコンピュータの指示に従って動作するハード構成であってもよい。   Each program may be composed of a single program module, or may be composed of a plurality of program modules. In addition, each example may have another replaceable configuration and is within the scope of the present invention. It may be a computer (such as the CPU 106) that executes processing based on an image processing program (such as the application 121), or a computer that executes processing based on a program other than the image processing program, such as an operating system or other applications. Alternatively, it may be a hardware configuration (such as the touch panel 103) that operates according to instructions from the computer, or may be a configuration in which the computer and the hardware configuration are linked. Of course, it may be a computer that executes processes by linking processes based on a plurality of programs, or may have a hardware configuration that operates according to instructions from a computer that executes processes by linking processes based on a plurality of programs. Good.

51:MFP、100:情報処理装置、102:表示手段、105a:第1無線通信I/F、105b:第2無線通信I/F、106:CPU、109:記憶部、121:プリント&スキャンアプリケーション、TB1:通信対象デバイステーブル
51: MFP, 100: information processing apparatus, 102: display means, 105a: first wireless communication I / F, 105b: second wireless communication I / F, 106: CPU, 109: storage unit, 121: print & scan application TB1: Communication target device table

Claims (12)

複数のデバイスと通信することが可能な情報処理装置に読込まれる情報処理プログラムであって、
前記情報処理装置は、
第1の通信規格に従って通信する第1無線通信インターフェースと、
前記第1の通信規格とは異なる第2の通信規格に従って通信する第2無線通信インターフェースと、
記憶部と、
プロセッサと、
を備えており、
前記プロセッサを、
前記第1無線通信インターフェースを用いて通信することが可能なデバイスである第1通信デバイスを識別する第1通信デバイス識別情報を、前記第1無線通信インターフェースを介して受信する第1受信手段と、
前記第2無線通信インターフェースを用いて通信することが可能なデバイスである第2通信デバイスを識別する第2通信デバイス識別情報を、前記第2無線通信インターフェースを介して受信する第2受信手段と、
前記情報処理装置の通信対象である通信対象デバイスを、前記複数のデバイスのうちから選択する選択手段と、
前記第1通信デバイス識別情報を、前記第1受信手段が受信している場合に、受信された第1通信デバイス識別情報を前記記憶部に記憶させる第1記憶制御手段と、
前記第2通信デバイス識別情報を前記第2受信手段が受信している場合に、受信された第2通信デバイス識別情報を前記記憶部に記憶させる第2記憶制御手段と、
前記通信対象デバイスと所定のデータを通信する処理の実行指示を受け付ける第1受付手段と、
少なくとも、前記選択手段が選択した通信対象デバイスが前記第1通信デバイスであることを示している第1通信デバイス識別情報が前記記憶部に記憶されている場合には、前記第1無線通信インターフェースを介して前記通信対象デバイスとデータを通信し、前記選択手段が選択した通信対象デバイスが前記第2通信デバイスであることを示している第2通信デバイス識別情報のみが前記記憶部に記憶されている場合には、前記第2無線通信インターフェースを介して前記通信対象デバイスとデータを通信する通信手段と、
して機能させることが可能であることを特徴とする情報処理プログラム。
An information processing program read by an information processing apparatus capable of communicating with a plurality of devices,
The information processing apparatus includes:
A first wireless communication interface for communicating according to a first communication standard;
A second wireless communication interface for communicating according to a second communication standard different from the first communication standard;
A storage unit;
A processor;
With
The processor;
First receiving means for receiving, via the first wireless communication interface, first communication device identification information for identifying a first communication device that is a device capable of communicating using the first wireless communication interface;
Second receiving means for receiving, via the second wireless communication interface, second communication device identification information for identifying a second communication device that is a device capable of communicating using the second wireless communication interface;
A selection means for selecting a communication target device that is a communication target of the information processing apparatus from the plurality of devices;
First storage control means for storing the received first communication device identification information in the storage unit when the first receiving means is receiving the first communication device identification information;
Second storage control means for storing the received second communication device identification information in the storage unit when the second reception device is receiving the second communication device identification information;
First accepting means for accepting an execution instruction for processing to communicate predetermined data with the communication target device;
At least when the first communication device identification information indicating that the communication target device selected by the selection unit is the first communication device is stored in the storage unit, the first wireless communication interface is set. Only the second communication device identification information indicating that the communication target device selected by the selection means is the second communication device is stored in the storage unit. In the case, communication means for communicating data with the communication target device via the second wireless communication interface;
An information processing program characterized by being able to function.
所定のデバイスが前記第2通信デバイスであることを示している前記第2通信デバイス識別情報が前記記憶部に記憶されているが、前記所定のデバイスが前記第1通信デバイスであることを示している前記第1通信デバイス識別情報が前記記憶部に記憶されていない場合には、前記所定のデバイスに、第1問合せ情報を、前記第2無線通信インターフェースを介して送信する第1問合せ手段と、
前記第1問合せ情報に対して前記所定のデバイスから返信された、前記所定のデバイスが前記第1の通信規格に従った通信を実行可能である場合に返信される情報である第1返信情報を、前記第2無線通信インターフェースを介して受信する第3受信手段と、
して、前記プロセッサをさらに機能させ、
前記第1記憶制御手段は、前記第1返信情報を前記第3受信手段が受信したことに応じて、前記所定のデバイスが前記第1通信デバイスであることを示している前記第1通信デバイス識別情報を前記記憶部に記憶させることを特徴とする請求項1に記載の情報処理プログラム。
The second communication device identification information indicating that the predetermined device is the second communication device is stored in the storage unit, and indicates that the predetermined device is the first communication device. A first inquiry means for transmitting the first inquiry information to the predetermined device via the second wireless communication interface when the first communication device identification information is not stored in the storage unit;
First reply information that is returned from the predetermined device in response to the first inquiry information and that is returned when the predetermined device can execute communication in accordance with the first communication standard. Third receiving means for receiving via the second wireless communication interface;
And further causing the processor to function,
The first storage control means indicates the first communication device identification indicating that the predetermined device is the first communication device in response to the third reception means receiving the first reply information. The information processing program according to claim 1, wherein information is stored in the storage unit.
前記選択手段は、
前記第1受信手段が受信した前記第1通信デバイス識別情報と、前記第2受信手段が受信した前記第2通信デバイス識別情報と、のうち少なくともいずれかが識別するデバイスのうちから前記通信対象デバイスを選択する選択指示を受け付ける第2受付手段を含み、
前記第2受付手段が受け付けた選択指示に対応するデバイスを、前記通信対象デバイスとして選択し、
前記所定のデバイスは、前記選択指示に対応する通信対象デバイスであり、
前記第1問合せ手段は、前記選択指示に対応する通信対象デバイスが前記第2通信デバイスであることを示している第2通信デバイス識別情報のみが前記記憶部に記憶されている場合には、前記第2無線通信インターフェースを介して前記通信対象デバイスに第1問合せ情報を送信することを特徴とする請求項2に記載の情報処理プログラム。
The selection means includes
The communication target device from among devices identified by at least one of the first communication device identification information received by the first reception unit and the second communication device identification information received by the second reception unit Including a second accepting means for accepting a selection instruction to select
Selecting a device corresponding to the selection instruction received by the second receiving means as the communication target device;
The predetermined device is a communication target device corresponding to the selection instruction,
In the case where only the second communication device identification information indicating that the communication target device corresponding to the selection instruction is the second communication device is stored in the storage unit, the first inquiry means The information processing program according to claim 2, wherein the first inquiry information is transmitted to the communication target device via a second wireless communication interface.
前記第2受付手段が前記選択指示を受け付け、かつ、前記選択指示に対応する通信対象デバイスが前記第2通信デバイスであることを示している第2通信デバイス識別情報のみが前記記憶部に記憶されている場合には、前記第2無線通信インターフェースを介して前記通信対象デバイスと通信することを示す情報を、前記情報処理装置が備える表示部に表示させる第1表示制御手段と、
前記第1記憶制御手段が、前記通信対象デバイスが第1通信デバイスであることを示している第1通信デバイス識別情報を前記記憶部に記憶させた場合に、前記第1無線通信インターフェースを介して前記通信対象デバイスと通信することを示す情報を、前記表示部に表示させる第2表示制御手段と、
して前記プロセッサをさらに機能させることを特徴とする請求項3に記載の情報処理プログラム。
Only the second communication device identification information indicating that the second receiving unit receives the selection instruction and indicates that the communication target device corresponding to the selection instruction is the second communication device is stored in the storage unit. A first display control means for displaying information indicating that communication with the communication target device via the second wireless communication interface is performed on a display unit included in the information processing apparatus;
When the first storage control unit stores the first communication device identification information indicating that the communication target device is the first communication device in the storage unit, the first storage control unit via the first wireless communication interface Second display control means for displaying information indicating communication with the communication target device on the display unit;
The information processing program according to claim 3, further causing the processor to function.
前記第1問合せ手段は、前記第1受付手段が前記実行指示を受け付けたことに応じて、前記選択手段が選択した通信対象デバイスが前記第2通信デバイスであることを示している第2通信デバイス識別情報のみが前記記憶部に記憶されている場合には、前記第2無線通信インターフェースを介して前記通信対象デバイスに第1問合せ情報を送信することを特徴とする請求項2に記載の情報処理プログラム。   The first inquiry unit indicates that the communication target device selected by the selection unit is the second communication device in response to the first reception unit receiving the execution instruction. 3. The information processing according to claim 2, wherein when only the identification information is stored in the storage unit, the first inquiry information is transmitted to the communication target device via the second wireless communication interface. program. 前記通信対象デバイスが前記第1の通信規格に従った通信を実行できない状態である場合に、送信される状態情報を、前記第2無線通信インターフェースを介して受信する第4受信手段と、
前記第1返信情報を前記第3受信手段が受信し、かつ、前記状態情報を、前記第4受信手段が受信した場合に、前記第1の通信規格に従った通信を実行することが可能な状態になることを指示する第1指示情報を、前記第2無線通信インターフェースを介して、前記通信対象デバイスへ送信する第1指示手段と、
して前記プロセッサをさらに機能させ、
前記第1記憶制御手段は、前記第1指示手段が前記第1指示情報を送信した後に、前記通信対象デバイスを第1通信デバイスとして示している第1通信デバイス識別情報を前記第1受信手段が受信した場合に、受信された前記第1通信デバイス識別情報を前記記憶部に記憶させることを特徴とする請求項5に記載の情報処理プログラム。
Fourth receiving means for receiving status information to be transmitted via the second wireless communication interface when the communication target device is in a state where communication according to the first communication standard cannot be performed;
Communication according to the first communication standard is possible when the third receiving means receives the first reply information and the fourth receiving means receives the status information. First instruction means for transmitting first instruction information for instructing to enter a state to the communication target device via the second wireless communication interface;
To further function the processor,
The first storage control means is configured such that, after the first instruction means transmits the first instruction information, the first reception means indicates first communication device identification information indicating the communication target device as the first communication device. The information processing program according to claim 5, wherein when received, the received first communication device identification information is stored in the storage unit.
前記第1受付手段が前記実行指示を受け付けたことに応じて、前記選択手段が選択した通信対象デバイスが前記第1通信デバイスであることを示している第1通信デバイス識別情報が前記記憶部に記憶されている場合には、前記愛1無線通信インターフェースを介して前記通信対象デバイスと通信できるか判断する判断手段を備え、
前記選択手段が選択した通信対象デバイスが前記第2通信デバイスであることを示している第2通信デバイス識別情報が前記記憶部に記憶されており、かつ、前記第1無線通信インターフェースを介して前記通信対象デバイスと通信できない、と前記判断手段が判断した場合には、前記通信手段は、前記第2無線通信インターフェースを介して前記通信対象デバイスと通信することを特徴とする請求項1〜6の何れか1項に記載の情報処理プログラム。
First communication device identification information indicating that the communication target device selected by the selection unit is the first communication device in response to the first reception unit receiving the execution instruction is stored in the storage unit. If it is stored, it comprises a determination means for determining whether it can communicate with the communication target device via the love 1 wireless communication interface;
Second communication device identification information indicating that the communication target device selected by the selection unit is the second communication device is stored in the storage unit, and the first wireless communication interface is used to store the second communication device identification information. The communication unit communicates with the communication target device via the second wireless communication interface when the determination unit determines that communication with the communication target device is impossible. The information processing program according to any one of claims.
前記第2受信手段が第2通信デバイス識別情報を受信した場合に、受信された前記第2通信デバイス識別情報によって識別される第2通信デバイスに、第2問合せ情報を、前記第2無線通信インターフェースを介して送信する第2問合せ手段と、
前記第2問合せ情報に対して前記第2通信デバイスから返信された、前記第2通信デバイスが前記第1の通信規格に従った通信を実行可能である場合に返信される情報である第2返信情報を、前記第2無線通信インターフェースを介して受信する第5受信手段と、
して、前記プロセッサをさらに機能させ、
前記第1記憶制御手段は、前記第2返信情報を前記第5受信手段が受信したことに応じて、前記第2返信情報の送信元である第2通信デバイスと同一のデバイスが前記第1通信デバイスであることを示している前記第1通信デバイス識別情報を前記記憶部に記憶させることを特徴とする請求項1〜7の何れか1項に記載の情報処理プログラム。
When the second receiving means receives the second communication device identification information, second inquiry information is sent to the second communication device identified by the received second communication device identification information, and the second wireless communication interface. Second inquiry means for transmitting via:
A second reply that is returned from the second communication device in response to the second inquiry information and that is returned when the second communication device can execute communication in accordance with the first communication standard. Fifth receiving means for receiving information via the second wireless communication interface;
And further causing the processor to function,
In response to the second receiving information being received by the fifth receiving means, the first storage control means is configured such that the same device as the second communication device that is the transmission source of the second reply information is the first communication. The information processing program according to claim 1, wherein the first communication device identification information indicating a device is stored in the storage unit.
前記第2通信デバイスが前記第1の通信規格に従った通信を実行できない状態である場合に送信される状態情報を、前記第2無線通信インターフェースを介して受信する第6受信手段と、
前記第5受信手段が前記第2返信情報を受信し、かつ、前記状態情報を前記第6受信手段が受信した場合に、前記第1の通信規格に従った通信を実行することが可能な状態になることを指示する第2指示情報を、前記第2無線通信インターフェースを介して前記通信対象デバイスへ送信する第2指示手段と、
して前記プロセッサをさらに機能させ、
前記第1記憶制御手段は、前記第2指示手段が前記第2指示情報を送信した後に、前記通信対象デバイスを第1通信デバイスとして示している第1通信デバイス識別情報を前記第1受信手段が受信した場合に、受信された前記第1通信デバイス識別情報を前記記憶部に記憶させることを特徴とする請求項8に記載の情報処理プログラム。
Sixth receiving means for receiving, via the second wireless communication interface, state information transmitted when the second communication device is in a state where communication according to the first communication standard cannot be performed;
A state in which communication according to the first communication standard can be executed when the fifth receiving means receives the second reply information and the sixth receiving means receives the status information. Second instruction means for transmitting second instruction information instructing to become to the communication target device via the second wireless communication interface;
To further function the processor,
After the second instruction means transmits the second instruction information, the first storage control means receives first communication device identification information indicating the communication target device as the first communication device. The information processing program according to claim 8, wherein when received, the received first communication device identification information is stored in the storage unit.
前記第1通信規格は、端末と端末が中継装置を介して通信する通信方法を定める規格であり、
前記第1無線通信インターフェースは、前記第1通信規格に則って通信するインターフェースであり、
前記第2通信規格は、一方の端末と、中継装置として機能している他方の端末と、直接通信する通信方法を定める規格であり、
前記第2無線通信インターフェースは、前記第2通信規格に則って通信するインターフェースであることを特徴とする請求項1〜9の何れか1項に記載の情報処理プログラム。
The first communication standard is a standard that defines a communication method in which a terminal and a terminal communicate via a relay device,
The first wireless communication interface is an interface that communicates according to the first communication standard,
The second communication standard is a standard that defines a communication method for directly communicating with one terminal and the other terminal functioning as a relay device,
The information processing program according to any one of claims 1 to 9, wherein the second wireless communication interface is an interface that communicates according to the second communication standard.
複数のデバイスと通信することが可能な情報処理装置であって、
第1の通信規格に従って通信する第1無線通信インターフェースと、
前記第1の通信規格とは異なる第2の通信規格に従って通信する第2無線通信インターフェースと、
記憶部と、
前記第1無線通信インターフェースを用いて通信することが可能なデバイスである第1通信デバイスを識別する第1通信デバイス識別情報を、前記第1無線通信インターフェースを介して受信する第1受信手段と、
前記第2無線通信インターフェースを用いて通信することが可能なデバイスである第2通信デバイスを識別する第2通信デバイス識別情報を、前記第2無線通信インターフェースを介して受信する第2受信手段と、
前記情報処理装置の通信対象である通信対象デバイスを、前記複数のデバイスのうちから選択する選択手段と、
前記第1通信デバイス識別情報を、前記第1受信手段が受信している場合に、受信された第1通信デバイス識別情報を前記記憶部に記憶させる第1記憶制御手段と、
前記第2通信デバイス識別情報を前記第2受信手段が受信している場合に、受信された第2通信デバイス識別情報を前記記憶部に記憶させる第2記憶制御手段と、
前記通信対象デバイスと所定のデータを通信する処理の実行指示を受け付ける第1受付手段と、
少なくとも、前記選択手段が選択した通信対象デバイスが前記第1通信デバイスであることを示している第1通信デバイス識別情報が前記記憶部に記憶されている場合には、前記第1無線通信インターフェースを介して前記通信対象デバイスとデータを通信し、前記選択手段が選択した通信対象デバイスが前記第2通信デバイスであることを示している第2通信デバイス識別情報のみが前記記憶部に記憶されている場合には、前記第2無線通信インターフェースを介して前記通信対象デバイスとデータを通信する通信手段と、
を備えることを特徴とする情報処理装置。
An information processing apparatus capable of communicating with a plurality of devices,
A first wireless communication interface for communicating according to a first communication standard;
A second wireless communication interface for communicating according to a second communication standard different from the first communication standard;
A storage unit;
First receiving means for receiving, via the first wireless communication interface, first communication device identification information for identifying a first communication device that is a device capable of communicating using the first wireless communication interface;
Second receiving means for receiving, via the second wireless communication interface, second communication device identification information for identifying a second communication device that is a device capable of communicating using the second wireless communication interface;
A selection means for selecting a communication target device that is a communication target of the information processing apparatus from the plurality of devices;
First storage control means for storing the received first communication device identification information in the storage unit when the first receiving means is receiving the first communication device identification information;
Second storage control means for storing the received second communication device identification information in the storage unit when the second reception device is receiving the second communication device identification information;
First accepting means for accepting an execution instruction for processing to communicate predetermined data with the communication target device;
At least when the first communication device identification information indicating that the communication target device selected by the selection unit is the first communication device is stored in the storage unit, the first wireless communication interface is set. Only the second communication device identification information indicating that the communication target device selected by the selection means is the second communication device is stored in the storage unit. In the case, communication means for communicating data with the communication target device via the second wireless communication interface;
An information processing apparatus comprising:
複数のデバイスと通信することが可能な情報処理装置の制御方法であって、
前記情報処理装置は、
第1の通信規格に従って通信する第1無線通信インターフェースと、
前記第1の通信規格とは異なる第2の通信規格に従って通信する第2無線通信インターフェースと、
記憶部と、
プロセッサと、
を備えており、
前記第1無線通信インターフェースを用いて通信することが可能なデバイスである第1通信デバイスを識別する第1通信デバイス識別情報を、前記第1無線通信インターフェースを介して受信する第1受信ステップと、
前記第2無線通信インターフェースを用いて通信することが可能なデバイスである第2通信デバイスを識別する第2通信デバイス識別情報を、前記第2無線通信インターフェースを介して受信する第2受信ステップと、
前記情報処理装置の通信対象である通信対象デバイスを、前記複数のデバイスのうちから選択する選択ステップと、
前記第1通信デバイス識別情報を、前記第1受信ステップが受信している場合に、受信された第1通信デバイス識別情報を前記記憶部に記憶させる第1記憶制御ステップと、
前記第2通信デバイス識別情報を前記第2受信ステップが受信している場合に、受信された第2通信デバイス識別情報を前記記憶部に記憶させる第2記憶制御ステップと、
前記通信対象デバイスと所定のデータを通信する処理の実行指示を受け付ける第1受付ステップと、
少なくとも、前記選択ステップで選択された通信対象デバイスが前記第1通信デバイスであることを示している第1通信デバイス識別情報が前記記憶部に記憶されている場合には、前記第1無線通信インターフェースを介して前記通信対象デバイスとデータを通信し、前記選択ステップで選択された通信対象デバイスが前記第2通信デバイスであることを示している第2通信デバイス識別情報のみが前記記憶部に記憶されている場合には、前記第2無線通信インターフェースを介して前記通信対象デバイスとデータを通信する通信ステップと、
を備えることを特徴とする情報処理装置の制御方法。
An information processing apparatus control method capable of communicating with a plurality of devices,
The information processing apparatus includes:
A first wireless communication interface for communicating according to a first communication standard;
A second wireless communication interface for communicating according to a second communication standard different from the first communication standard;
A storage unit;
A processor;
With
A first receiving step of receiving, via the first wireless communication interface, first communication device identification information for identifying a first communication device that is a device capable of communicating using the first wireless communication interface;
A second receiving step of receiving, via the second wireless communication interface, second communication device identification information for identifying a second communication device that is a device capable of communicating using the second wireless communication interface;
A selection step of selecting a communication target device that is a communication target of the information processing apparatus from the plurality of devices;
A first storage control step of storing the received first communication device identification information in the storage unit when the first reception step is receiving the first communication device identification information;
A second storage control step of storing the received second communication device identification information in the storage unit when the second reception step is receiving the second communication device identification information;
A first receiving step for receiving an execution instruction of a process for communicating predetermined data with the communication target device;
At least when the first communication device identification information indicating that the communication target device selected in the selecting step is the first communication device is stored in the storage unit, the first wireless communication interface Only the second communication device identification information indicating that the communication target device selected by the selection step is the second communication device is stored in the storage unit. A communication step of communicating data with the communication target device via the second wireless communication interface,
An information processing apparatus control method comprising:
JP2018117908A 2018-06-21 2018-06-21 INFORMATION PROCESSING PROGRAM, INFORMATION PROCESSING DEVICE, AND CONTROL METHOD FOR INFORMATION PROCESSING DEVICE Active JP6536720B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018117908A JP6536720B2 (en) 2018-06-21 2018-06-21 INFORMATION PROCESSING PROGRAM, INFORMATION PROCESSING DEVICE, AND CONTROL METHOD FOR INFORMATION PROCESSING DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018117908A JP6536720B2 (en) 2018-06-21 2018-06-21 INFORMATION PROCESSING PROGRAM, INFORMATION PROCESSING DEVICE, AND CONTROL METHOD FOR INFORMATION PROCESSING DEVICE

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014132554A Division JP6357918B2 (en) 2014-06-27 2014-06-27 Information processing program, information processing apparatus, and information processing apparatus control method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019105939A Division JP6738567B2 (en) 2019-06-06 2019-06-06 Information processing program, information processing apparatus, and method of controlling information processing apparatus

Publications (2)

Publication Number Publication Date
JP2018160271A true JP2018160271A (en) 2018-10-11
JP6536720B2 JP6536720B2 (en) 2019-07-03

Family

ID=63795198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018117908A Active JP6536720B2 (en) 2018-06-21 2018-06-21 INFORMATION PROCESSING PROGRAM, INFORMATION PROCESSING DEVICE, AND CONTROL METHOD FOR INFORMATION PROCESSING DEVICE

Country Status (1)

Country Link
JP (1) JP6536720B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7455613B2 (en) 2020-02-28 2024-03-26 キヤノン株式会社 Information processing device, its control method, and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007193833A (en) * 2007-03-12 2007-08-02 Brother Ind Ltd Setting processing program and setting processing device
US20120257245A1 (en) * 2011-04-08 2012-10-11 Mccoog Phillip A Autoselected print paths
JP2013030147A (en) * 2011-06-24 2013-02-07 Brother Ind Ltd Information processing program, information processor and method for controlling information processor
JP2013187568A (en) * 2012-03-05 2013-09-19 Canon Inc Information processing device, method for controlling information processing device, and program
JP2014006814A (en) * 2012-06-26 2014-01-16 Brother Ind Ltd Information processing program, information processing device, and control method for the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007193833A (en) * 2007-03-12 2007-08-02 Brother Ind Ltd Setting processing program and setting processing device
US20120257245A1 (en) * 2011-04-08 2012-10-11 Mccoog Phillip A Autoselected print paths
JP2013030147A (en) * 2011-06-24 2013-02-07 Brother Ind Ltd Information processing program, information processor and method for controlling information processor
JP2013187568A (en) * 2012-03-05 2013-09-19 Canon Inc Information processing device, method for controlling information processing device, and program
JP2014006814A (en) * 2012-06-26 2014-01-16 Brother Ind Ltd Information processing program, information processing device, and control method for the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7455613B2 (en) 2020-02-28 2024-03-26 キヤノン株式会社 Information processing device, its control method, and program

Also Published As

Publication number Publication date
JP6536720B2 (en) 2019-07-03

Similar Documents

Publication Publication Date Title
JP6357918B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
US10298790B2 (en) Image-forming apparatus, system, information processing method and storage medium for causing an operation screen to be displayed based on display language information
JP5991193B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
JP6516491B2 (en) Communication apparatus, control method and program
US9612783B2 (en) Information processing apparatus and method of searching for peripheral device
JP6136619B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
JP6260272B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
JP7434441B2 (en) Information processing system, information processing device
US9609147B2 (en) Non-transitory computer-readable storage medium storing computer program for information processing device, information processing device, and method for controlling information processing device
US10466945B2 (en) Information processing apparatus configured to notify a communication terminal of connection information used to establish a network connection between an information processing apparatus and the communication terminal, communication system, and communication method configured to perform same
JP2016225827A (en) Information processor, control method and program
JP6481462B2 (en) Image forming apparatus search method, portable terminal, and program
JP6536720B2 (en) INFORMATION PROCESSING PROGRAM, INFORMATION PROCESSING DEVICE, AND CONTROL METHOD FOR INFORMATION PROCESSING DEVICE
JP6406062B2 (en) Image processing apparatus and control program
JP6738567B2 (en) Information processing program, information processing apparatus, and method of controlling information processing apparatus
JP2021057678A (en) Image reading device
JP7218748B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
JP6610811B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
JP6142820B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
JP6492589B2 (en) Image processing apparatus and program thereof, and information processing apparatus program
JP6210139B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
JP6870716B2 (en) Information processing program, information processing device and control method of information processing device
JP6519637B2 (en) Communication system, communication device, and information processing program
JP6406405B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
JP6962361B2 (en) program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180718

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180718

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190416

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190520

R150 Certificate of patent or registration of utility model

Ref document number: 6536720

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150