JP6760444B2 - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP6760444B2
JP6760444B2 JP2019113702A JP2019113702A JP6760444B2 JP 6760444 B2 JP6760444 B2 JP 6760444B2 JP 2019113702 A JP2019113702 A JP 2019113702A JP 2019113702 A JP2019113702 A JP 2019113702A JP 6760444 B2 JP6760444 B2 JP 6760444B2
Authority
JP
Japan
Prior art keywords
communication
mobile terminal
communication device
wireless
mfp
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.)
Active
Application number
JP2019113702A
Other languages
Japanese (ja)
Other versions
JP2019154077A (en
Inventor
隆延 鈴木
隆延 鈴木
弘崇 朝倉
弘崇 朝倉
宗久 松田
宗久 松田
田中 聡
聡 田中
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 JP2019113702A priority Critical patent/JP6760444B2/en
Publication of JP2019154077A publication Critical patent/JP2019154077A/en
Application granted granted Critical
Publication of JP6760444B2 publication Critical patent/JP6760444B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Description

本明細書によって開示される技術は、携帯端末と、目的データの通信を実行するための通信装置に関する。 The technology disclosed herein relates to a mobile terminal and a communication device for performing communication of target data.

特許文献1、2には、2台の通信装置が無線通信を実行するための技術が開示されている。特許文献1、2では、2台の通信装置は、近距離無線通信(即ちNFC(Near Field Communicationの略)方式に従った無線通信)に従って、無線設定の通信を実行する。上記の無線設定は、NFC方式とは異なる通信方式(例えばIEEE802.11a、802.11b)に従った無線通信を実行するための設定である。これにより、2台の通信装置は、無線設定に従った無線通信を実行可能になる。 Patent Documents 1 and 2 disclose a technique for two communication devices to execute wireless communication. In Patent Documents 1 and 2, the two communication devices execute wireless setting communication according to short-range wireless communication (that is, wireless communication according to an NFC (abbreviation of Near Field Communication) system). The above wireless setting is a setting for executing wireless communication according to a communication method (for example, IEEE802.11a, 802.11b) different from the NFC method. As a result, the two communication devices can execute wireless communication according to the wireless setting.

特開2007−166538号公報JP-A-2007-166538 特開2011−146991号公報Japanese Unexamined Patent Publication No. 2011-146991

「Wi−Fi Peer−to−Peer(P2P) Technical Specification Version1.1」、Wi−Fi Alliance、2010年"Wi-Fi Peer-to-Peer (P2P) Technical Specialization Version 1.1", Wi-Fi Alliance, 2010

本明細書では、通信装置が、携帯端末と通信を適切に実行するための技術を提供する。 The present specification provides a technique for a communication device to appropriately perform communication with a mobile terminal.

本明細書によって開示される技術は、第1の通信装置である。第1の通信装置は、第2の通信装置と通信を実行するための第1種のインターフェイスと、前記第2の通信装置と通信を実行するための第2種のインターフェイスであって、前記第2種のインターフェイスを利用した通信の通信速度は、前記第1種のインターフェイスを利用した通信の通信速度よりも速い、前記第2種のインターフェイスと、制御部と、を備え、前記制御部は、前記第1種のインターフェイスを利用した無線通信を実行した結果、前記第2の通信装置から、アクセスポイントと前記第2の通信装置とが現在所属している第1の無線ネットワークに前記第1の通信装置が属するための無線設定情報を受信する場合に、前記第1の通信装置の状態を、前記第2種のインターフェイスを利用して、前記アクセスポイントを介して、前記第2の通信装置と目的データの通信を実行可能な通信可能状態に変化させるための第1の処理を実行した後に、前記第2種のインターフェイスを利用して、前記アクセスポイントを介して、前記第2の通信装置と前記目的データの通信を実行し、前記第1種のインターフェイスを利用した無線通信を実行した結果、前記第2の通信装置から前記無線設定情報を受信しない場合に、前記第1の通信装置の状態を、前記第2種のインターフェイスを利用して、前記アクセスポイントを介さずに、前記第2の通信装置と目的データの通信を実行可能な通信可能状態に変化させるための第2の処理を実行した後に、前記第2種のインターフェイスを利用して、前記アクセスポイントを介さずに、前記第2の通信装置と前記目的データの通信を実行する通信実行部と、を備えてもよい。
また、本明細書によって開示される他の技術は、第2の通信装置のためのコンピュータプログラムである。前記第2の通信装置は、第1の通信装置と通信を実行するための第1種のインターフェイスと、前記第1の通信装置と通信を実行するための第2種のインターフェイスであって、前記第2種のインターフェイスを利用した通信の通信速度は、前記第1種のインターフェイスを利用した通信の通信速度よりも速い、前記第2種のインターフェイスと、を備え、前記コンピュータプログラムは、前記第2の通信装置のコンピュータを、前記第1種のインターフェイスを利用した無線通信を実行した結果、前記第2の通信装置が、アクセスポイントと前記第2の通信装置とが現在所属している第1の無線ネットワークに前記第1の通信装置が属するための無線設定情報を前記第1の通信装置に送信し、前記第1の通信装置の状態が、前記アクセスポイントを介して、前記第2の通信装置と目的データの通信を実行可能な通信可能状態に変化する場合に、前記第2種のインターフェイスを利用して、前記アクセスポイントを介して、前記第1の通信装置と前記目的データの通信を実行し、前記第1種のインターフェイスを利用した無線通信を実行した結果、前記第2の通信装置が、前記無線設定情報を送信せずに、前記第1の通信装置の状態が、前記アクセスポイントを介さずに、前記第2の通信装置と目的データの通信を実行可能な通信可能状態に変化する場合に、前記第2種のインターフェイスを利用して、前記アクセスポイントを介さずに、前記第1の通信装置と前記目的データの通信を実行する通信実行部として機能させてもよい。
本明細書によって開示される他の技術は、通信装置である。通信装置は、第1種のインターフェイスと第2種のインターフェイスと制御部とを備える。第1種のインターフェイスは、携帯端末と通信を実行するためのインターフェイスである。第2種のインターフェイスは、携帯端末と通信を実行するためのインターフェイスである。第2種のインターフェイスを利用した通信の通信速度は、第1種のインターフェイスを利用した通信の通信速度よりも速い。制御部は、受信部と判断部と通信実行部とを備える。受信部は、第1種のインターフェイスを利用して、携帯端末から特定の情報を受信する。判断部は、通信装置が、現在、第2種のインターフェイスを利用して、携帯端末と目的データの通信を実行可能な通信可能状態であるのか否かを、特定の情報を用いて判断する。通信実行部は、通信装置が現在通信可能状態でないと判断される場合に、通信装置の状態を、通信可能状態に変化させるための特定処理を実行した後に、第2種のインターフェイスを利用して、携帯端末と目的データの通信を実行する。通信実行部は、通信装置が現在通信可能状態であると判断される場合に、特定処理を実行せずに、第2種のインターフェイスを利用して、携帯端末と目的データの通信を実行する。
The technology disclosed herein is a first communication device. The first communication device is a first-class interface for executing communication with the second communication device and a second-class interface for performing communication with the second communication device, and is the first type. The communication speed of communication using the two types of interfaces is faster than the communication speed of communication using the first type of interface. The control unit includes the second type interface and a control unit. As a result of executing wireless communication using the first type interface, the first wireless network from the second communication device to the first wireless network to which the access point and the second communication device currently belong. When receiving the wireless setting information to which the communication device belongs, the state of the first communication device is changed to the second communication device via the access point by using the second type interface. After executing the first process for changing the communication of the target data into a feasible communicable state, the second type of interface is used to communicate with the second communication device via the access point. The state of the first communication device when the wireless setting information is not received from the second communication device as a result of executing the communication of the target data and executing the wireless communication using the first type interface. Is executed by using the second type of interface to change the communication between the second communication device and the target data into a communicable state without going through the access point. After that, the second type of interface may be used to provide a communication execution unit that executes communication between the second communication device and the target data without going through the access point.
Also, another technique disclosed herein is a computer program for a second communication device. The second communication device is a first-class interface for executing communication with the first communication device and a second-class interface for performing communication with the first communication device. The communication speed of communication using the second type interface includes the second type interface, which is faster than the communication speed of communication using the first type interface, and the computer program includes the second type interface. As a result of executing wireless communication using the first type interface on the computer of the communication device, the second communication device is the first to which the access point and the second communication device currently belong. The wireless setting information for the first communication device to belong to the wireless network is transmitted to the first communication device, and the state of the first communication device is changed to the second communication device via the access point. When the communication between the target data and the target data is changed to a communicable state, the communication between the first communication device and the target data is executed via the access point using the second type interface. Then, as a result of executing the wireless communication using the first type interface, the state of the first communication device changes the access point without the second communication device transmitting the wireless setting information. When changing to a communicable state in which communication between the second communication device and the target data can be performed without going through the second type of interface, the first type of interface is used without going through the access point. It may function as a communication execution unit that executes communication between the communication device of the above and the target data.
Another technique disclosed herein is a communication device. The communication device includes a first-class interface, a second-class interface, and a control unit. The first type interface is an interface for performing communication with a mobile terminal. The second type interface is an interface for performing communication with a mobile terminal. The communication speed of communication using the second type interface is faster than the communication speed of communication using the first type interface. The control unit includes a reception unit, a determination unit, and a communication execution unit. The receiving unit receives specific information from the mobile terminal by using the first type interface. The determination unit determines, using specific information, whether or not the communication device is currently in a communicable state capable of executing communication between the mobile terminal and the target data by using the second type interface. When it is determined that the communication device is not currently in the communicable state, the communication execution unit uses the second type interface after executing a specific process for changing the state of the communication device to the communicable state. , Communicate the target data with the mobile terminal. When it is determined that the communication device is currently in a communicable state, the communication execution unit executes communication between the mobile terminal and the target data by using the second type interface without executing the specific process.

通信装置は、通信装置の現在の状態が第2種のインターフェイスを利用して通信可能状態でない場合に、特定処理を実行することによって、通信装置の状態を、通信可能状態に変化させる。これにより、通信装置は、第2種のインターフェイスを利用して、比較的に速い通信速度で、携帯端末と、目的データの通信を実行することができる。一方、通信装置の現在の状態が第2種のインターフェイスを利用して通信可能状態である場合に、通信装置は、特定処理を実行せずに、第2種のインターフェイスを利用して、比較的に速い通信速度で、携帯端末と、目的データの通信を実行することができる。この構成によれば、通信装置は、通信装置の現在の状態に応じて特定処理を実行するのか否かを決定することができるため、携帯端末と通信を適切に実行し得る。 When the current state of the communication device is not the communicable state using the second type interface, the communication device changes the state of the communication device to the communicable state by executing a specific process. As a result, the communication device can perform communication of the target data with the mobile terminal at a relatively high communication speed by using the second type interface. On the other hand, when the current state of the communication device is a communicable state using the second type interface, the communication device uses the second type interface relatively without executing specific processing. It is possible to communicate the target data with the mobile terminal at a very high communication speed. According to this configuration, since the communication device can determine whether or not to execute the specific process according to the current state of the communication device, it is possible to appropriately perform communication with the mobile terminal.

判断部は、特定の情報を用いて、通信装置が現在属している特定のネットワークに、携帯端末が現在属しているのか否かを確認することによって、通信装置が現在前記通信可能状態であるのか否かを判断してもよい。特定のネットワークは、通信装置が第2種のインターフェイスを利用した通信を実行するためのネットワークであってもよい。この構成によれば、通信装置と携帯端末との両者が、特定のネットワークに現在属している場合に、特定処理を実行せず済む。これにより、通信装置は、特定処理を実行せずに、比較的に速い通信速度で、携帯端末と、目的データの通信を実行することができる。 The determination unit uses specific information to confirm whether or not the mobile terminal currently belongs to the specific network to which the communication device currently belongs, and thus whether the communication device is currently in the communicable state. You may decide whether or not. The specific network may be a network for the communication device to perform communication using the second type interface. According to this configuration, when both the communication device and the mobile terminal currently belong to the specific network, it is not necessary to execute the specific process. As a result, the communication device can execute the communication of the target data with the mobile terminal at a relatively high communication speed without executing the specific process.

第2種のインターフェイスは、通信装置が特定の無線通信を実行するためのインターフェイスであってもよい。特定の無線通信は、通信装置と携帯端末とが、通信装置と携帯端末とは異なるアクセスポイントを介さずに実行する無線通信であってもよい。特定処理は、通信装置と携帯端末とが第2種のインターフェイスを利用して、特定の無線通信を実行するための処理を含んでいてもよい。通信実行部は、通信装置の現在の状態が、通信可能状態でないと判断される場合に、特定処理を実行した後に、第2種のインターフェイスを利用して、携帯端末と目的データの特定の無線通信を実行してもよい。この構成によれば、通信装置は、アクセスポイントを介さずに、携帯端末と目的データの通信を実行し得る。 The second type interface may be an interface for the communication device to perform a specific wireless communication. The specific wireless communication may be wireless communication performed by the communication device and the mobile terminal without going through a different access point between the communication device and the mobile terminal. The specific process may include a process for the communication device and the mobile terminal to execute a specific wireless communication by using the second type interface. When it is determined that the current state of the communication device is not the communicable state, the communication execution unit executes the specific processing and then uses the second type interface to use the mobile terminal and the specific radio of the target data. Communication may be performed. According to this configuration, the communication device can perform communication of the target data with the mobile terminal without going through the access point.

通信装置は、無線ネットワークの親局として機能する親局状態と、無線ネットワークの子局として機能する子局状態と、親局状態及び子局状態とは異なるデバイス状態と、を含む複数の状態のうちのいずれかの状態で選択的に動作可能であってもよい。通信装置は、無線ネットワークにおいて、親局状態と子局状態とのうちのどちらかの状態で動作することによって、無線ネットワークを介した特定の無線通信を実行可能であってもよい。通信実行部は、通信装置が、現在、通信可能状態でないと判断され、かつ、通信装置が、特定の無線通信を実行するための第1の無線ネットワークに現在属している第1の場合に、携帯端末が第1の無線ネットワークに属するための第1の無線設定を、第1種のインターフェイスを利用して、携帯端末に送信する特定処理を実行してもよい。通信実行部は、通信装置が、現在、通信可能状態でないと判断され、かつ、通信装置が、第1の無線ネットワークに現在属していない第2の場合に、通信装置が、特定の無線通信を実行するための第2の無線ネットワークであって、通信装置と携帯端末とが属すべき第2の無線ネットワークを新たに構築するための特定処理を実行してもよい。この構成によれば、通信装置は、通信装置の現在の状態が、通信可能状態でない場合に、特定処理を実行することによって、通信装置が現在属している第1の無線ネットワークを介して、携帯端末と、目的データの通信を適切に実行し得る。また、通信装置が無線ネットワークに現在属していない場合に、通信装置は、新たに構築される第2の無線ネットワークを介して、携帯端末と、目的データの通信を適切に実行し得る。 The communication device is in a plurality of states including a master station state that functions as a master station of a wireless network, a slave station state that functions as a slave station of a wireless network, and a device state that is different from the master station state and the slave station state. It may be possible to selectively operate in any of these states. The communication device may be capable of carrying out specific wireless communication via the wireless network by operating in either the master station state or the slave station state in the wireless network. The communication execution unit is in the first case where it is determined that the communication device is not currently in a communicable state and the communication device currently belongs to the first wireless network for executing a specific wireless communication. A specific process for transmitting the first wireless setting for the mobile terminal to belong to the first wireless network to the mobile terminal may be executed by using the first type interface. The communication execution unit determines that the communication device is not currently in a communicable state, and the communication device performs a specific wireless communication in the second case where the communication device does not currently belong to the first wireless network. A specific process for newly constructing a second wireless network to which the communication device and the mobile terminal should belong, which is the second wireless network for execution, may be executed. According to this configuration, the communication device is portable via the first wireless network to which the communication device currently belongs by performing a specific process when the current state of the communication device is not a communicable state. Communication between the terminal and the target data can be performed appropriately. Further, when the communication device does not currently belong to the wireless network, the communication device can appropriately perform communication of the target data with the mobile terminal via the newly constructed second wireless network.

通信実行部は、第1の場合において、通信装置が第1の無線ネットワークにおいて親局状態として動作している場合に、第1の無線設定を携帯端末に送信する特定処理を実行してもよい。通信実行部は、第1の場合において、通信装置が第1の無線ネットワークにおいて子局状態として動作している特定の場合に、第1の無線設定を、携帯端末に送信しなくてもよい。この構成によれば、通信装置は、通信装置が、第1の無線ネットワークにおいて、親局状態として動作している場合に、通信装置が現在属している第1の無線ネットワークを介して、携帯端末と、目的データの通信を適切に実行し得る。一方、通信装置は、通信装置が、第1の無線ネットワークにおいて、子局状態として動作している場合には、携帯端末が、第1の無線ネットワークに参加することを抑制することができる。 In the first case, the communication execution unit may execute a specific process of transmitting the first wireless setting to the mobile terminal when the communication device is operating as a master station state in the first wireless network. .. In the first case, the communication execution unit does not have to transmit the first wireless setting to the mobile terminal in the specific case where the communication device is operating as a slave station state in the first wireless network. According to this configuration, the communication device is a mobile terminal via the first wireless network to which the communication device currently belongs when the communication device is operating as a master station state in the first wireless network. And, the communication of the target data can be executed appropriately. On the other hand, the communication device can suppress the mobile terminal from participating in the first wireless network when the communication device is operating in the slave station state in the first wireless network.

通信実行部は、特定の場合に、特定処理を実行せずに、通信装置が、携帯端末と目的データの通信を実行しないことを示す情報を、第1種のインターフェイスを利用して、携帯端末に送信してもよい。この構成によれば、携帯端末は、通信装置が、携帯端末と目的データの通信を実行しないことを示す情報を、取得することができる。これにより、携帯端末のユーザは、通信装置が、携帯端末と目的データの通信を実行しないことを知り得る。 The communication execution unit uses the first type interface to provide information indicating that the communication device does not communicate the target data with the mobile terminal without executing the specific process in a specific case. May be sent to. According to this configuration, the mobile terminal can acquire information indicating that the communication device does not perform communication of the target data with the mobile terminal. As a result, the user of the mobile terminal can know that the communication device does not perform communication of the target data with the mobile terminal.

通信実行部は、特定の場合に、第1の無線ネットワークから通信装置を離脱させた後に、第2の無線ネットワークを新たに構築するための特定処理を実行してもよい。この構成によれば、通信装置は、通信装置が子局状態として動作している第1の無線ネットワークから離脱し、第2の無線ネットワークを、新たに構築することができる。これにより、通信装置は、新たに構築される第2の無線ネットワークを介して、携帯端末と、目的データの通信を適切に実行し得る。 In a specific case, the communication execution unit may execute a specific process for constructing a new second wireless network after disconnecting the communication device from the first wireless network. According to this configuration, the communication device can be separated from the first wireless network in which the communication device is operating as a slave station state, and a second wireless network can be newly constructed. As a result, the communication device can appropriately communicate the target data with the mobile terminal via the newly constructed second wireless network.

通信実行部は、第2の場合に、通信装置が、第2の無線ネットワークにおいて、親局状態及び子局状態のどちらで動作すべきかを選択的に決定する選択的決定処理を実行せずに、通信装置が、第2の無線ネットワークにおいて、親局状態として動作すべきことを決定する処理を含む特定処理を実行してもよい。この構成によれば、通信装置が、必然的に親局状態として動作する第2の無線ネットワークを、新たに構築することができる。これにより、通信装置は、新たに構築される第2の無線ネットワークにおいて、親局状態として動作することによって、携帯端末と、目的データの通信を適切に実行し得る。 In the second case, the communication execution unit does not execute the selective determination process for selectively determining whether the communication device should operate in the master station state or the slave station state in the second wireless network. , The communication device may execute a specific process including a process of determining that the communication device should operate as a master station state in the second wireless network. According to this configuration, it is possible to newly construct a second wireless network in which the communication device inevitably operates as a master station state. As a result, the communication device can appropriately perform communication of the target data with the mobile terminal by operating as a master station state in the newly constructed second wireless network.

通信実行部は、第2の場合に、通信装置が、第2の無線ネットワークにおいて、親局状態及び子局状態のどちらで動作すべきかを選択的に決定する選択的決定処理を実行する処理を含む特定処理を実行してもよい。この構成によれば、通信装置が、親局状態及び子局状態のどちらかの状態で動作する第2の無線ネットワークを、新たに構築することができる。これにより、通信装置は、新たに構築される第2の無線ネットワークにおいて、親局状態又は子局状態として動作することによって、携帯端末と、目的データの通信を適切に実行し得る。 In the second case, the communication execution unit executes a process of executing a selective determination process of selectively determining whether the communication device should operate in the master station state or the slave station state in the second wireless network. Specific processing including may be executed. According to this configuration, it is possible to newly construct a second wireless network in which the communication device operates in either the master station state or the slave station state. As a result, the communication device can appropriately perform communication of the target data with the mobile terminal by operating in the master station state or the slave station state in the newly constructed second wireless network.

制御部は、さらに、モード設定部を備えていてもよい。モード設定部は、ユーザの指示に従って、通信装置のモードを、通信装置が、特定の無線通信を実行するための無線ネットワークに属することができる第1のモードと、通信装置が特定の無線通信を実行するための無線ネットワークに属することができない第2のモードとのうち、どちらかのモードに設定してもよい。通信実行部は、第2の場合であり、かつ、通信装置が第2のモードに設定されている場合に、通信装置のモードを、第2のモードから第1のモードに変更して、第2の無線ネットワークを新たに構築するための特定処理を実行してもよい。この構成によれば、通信装置が、特定の無線通信を実行すべきであり、かつ、通信装置が特定の無線通信を実行可能でない第2のモードに設定されている場合に、通信装置を、特定の無線通信を実行可能である第1のモードに変更することができる。 The control unit may further include a mode setting unit. The mode setting unit sets the mode of the communication device according to the user's instruction, the first mode in which the communication device can belong to the wireless network for executing the specific wireless communication, and the communication device sets the specific wireless communication. It may be set to either of the second modes that cannot belong to the wireless network for execution. The communication execution unit changes the mode of the communication device from the second mode to the first mode when the communication device is set to the second mode in the second case, and the second mode is used. Specific processing for newly constructing the wireless network of 2 may be executed. According to this configuration, the communication device is set to a second mode in which the communication device should perform a specific wireless communication and the communication device is not capable of performing a specific wireless communication. It is possible to change to a first mode in which specific wireless communication can be performed.

通信装置は、通信装置のモードが第1のモードである場合に、携帯端末とは異なる外部装置であって、第2の無線ネットワークに属している外部装置と無線通信を実行可能であってもよい。通信実行部は、通信装置のモードが第2のモードから第1のモードに変更され、かつ、構築された第2の無線ネットワークを介して、携帯端末と、目的データの特定の無線通信が実行された後に、第2の無線ネットワークに、外部装置が現在属している場合に、通信装置のモードを、第1のモードから第2のモードに変更しなくてもよい。通信実行部は、通信装置のモードが第2のモードから第1のモードに変更され、かつ、構築された第2の無線ネットワークを介して、携帯端末と、目的データの特定の無線通信が実行された後に、第2の無線ネットワークに、外部装置が現在属していない場合に、通信装置のモードを、第1のモードから第2のモードに変更してもよい。この構成によれば、通信装置と携帯端末との間の目的データの通信後に、第2の無線ネットワークに、外部装置が属している場合に、通信装置が、第2の無線ネットワークから離脱することを抑制することができる。一方、通信装置と携帯端末との間の目的データの通信後に、第2の無線ネットワークに、外部装置が属していない場合に、通信装置のモードを、第1のモードから第2のモードに、適切に変更することができる。 The communication device is an external device different from the mobile terminal when the mode of the communication device is the first mode, and can execute wireless communication with an external device belonging to the second wireless network. Good. In the communication execution unit, the mode of the communication device is changed from the second mode to the first mode, and the mobile terminal and the specific wireless communication of the target data are executed via the constructed second wireless network. After that, if an external device currently belongs to the second wireless network, it is not necessary to change the mode of the communication device from the first mode to the second mode. In the communication execution unit, the mode of the communication device is changed from the second mode to the first mode, and the mobile terminal and the specific wireless communication of the target data are executed via the constructed second wireless network. After that, the mode of the communication device may be changed from the first mode to the second mode when the external device does not currently belong to the second wireless network. According to this configuration, after the communication of the target data between the communication device and the mobile terminal, the communication device is separated from the second wireless network when the external device belongs to the second wireless network. Can be suppressed. On the other hand, after the communication of the target data between the communication device and the mobile terminal, when the external device does not belong to the second wireless network, the mode of the communication device is changed from the first mode to the second mode. Can be changed appropriately.

第2種のインターフェイスは、通信装置が、携帯端末と、目的データの無線通信を実行するためのインターフェイスであってもよい。通信実行部は、通信装置の現在の状態が、通信可能状態でないと判断され、かつ、通信装置が第2種のインターフェイスを利用して無線通信を実行するための特定の無線ネットワークに現在属している場合に、携帯端末が特定の無線ネットワークに属するための特定の無線設定を、第1種のインターフェイスを利用して、携帯端末に送信する特定処理を実行してもよい。この構成によれば、携帯端末は、通信装置が現在属している特定の無線ネットワークに参加し得る。この結果、通信装置は、特定の無線ネットワークを介して、携帯端末と、目的データの通信を適切に実行し得る。 The second type interface may be an interface for the communication device to execute wireless communication of the target data with the mobile terminal. The communication execution unit is currently assigned to a specific wireless network for which the current state of the communication device is determined not to be communicable and the communication device uses the second type interface to perform wireless communication. If so, a specific process for transmitting a specific wireless setting for the mobile terminal to belong to the specific wireless network to the mobile terminal may be executed by using the first type interface. According to this configuration, the mobile terminal may participate in the particular wireless network to which the communication device currently belongs. As a result, the communication device can appropriately perform communication of the target data with the mobile terminal via a specific wireless network.

通信装置は、第2種のインターフェイスを利用して、通信装置と携帯端末とが、通信装置と携帯端末とは異なるアクセスポイントを介さずに実行する特定の無線通信と、アクセスポイントを介して実行する他の無線通信とを、実行可能であってもよい。通信実行部は、通信装置が、特定の無線通信を実行するための特定のネットワークに属している場合に、携帯端末が特定のネットワークに属するための特定の無線設定であって、パスワードを含む特定の無線設定を送信する特定処理を実行してもよい。通信実行部は、通信装置が、他の無線通信を実行するための特定のネットワークに属している場合に、パスワードを含まない特定の無線設定を送信する特定処理を実行してもよい。この構成によれば、通信装置は、アクセスポイントが属している特定のネットワークに属するために必要なパスワードを、携帯端末に送信せずに済む。 The communication device uses a second type interface to perform specific wireless communication between the communication device and the mobile terminal without going through an access point different from that of the communication device and the mobile terminal, and execution via the access point. It may be feasible to perform other wireless communications. The communication execution unit is a specific wireless setting for a mobile terminal to belong to a specific network when the communication device belongs to a specific network for executing a specific wireless communication, and is a specific setting including a password. You may perform a specific process of transmitting the wireless settings of. The communication execution unit may execute a specific process of transmitting a specific wireless setting that does not include a password when the communication device belongs to a specific network for executing other wireless communication. According to this configuration, the communication device does not have to send the password necessary for belonging to the specific network to which the access point belongs to the mobile terminal.

第2種のインターフェイスは、通信装置が、携帯端末と、目的データの無線通信を実行するためのインターフェイスであってもよい。特定の情報は、携帯端末が現在属している第3の無線ネットワークに、通信装置が属するための第3の無線設定を含んでいてもよい。通信実行部は、通信装置の現在の状態が、通信可能状態でないと判断される場合に、第3の無線設定を用いて、第3の無線ネットワークに、通信装置が属するための特定処理を実行してもよい。この構成によれば、通信装置は、携帯端末が現在属している第3の無線ネットワークに属し得る。この結果、通信装置は、第3の無線ネットワークを介して、携帯端末と、目的データの通信を適切に実行し得る。 The second type interface may be an interface for the communication device to execute wireless communication of the target data with the mobile terminal. The specific information may include a third wireless setting for the communication device to belong to the third wireless network to which the mobile terminal currently belongs. When it is determined that the current state of the communication device is not the communicable state, the communication execution unit executes a specific process for the communication device to belong to the third wireless network by using the third wireless setting. You may. According to this configuration, the communication device may belong to the third wireless network to which the mobile terminal currently belongs. As a result, the communication device can appropriately communicate the target data with the mobile terminal via the third wireless network.

通信装置が現在属している特定のネットワークは、特定の無線ネットワークであってもよい。特定の情報には、携帯端末が現在続いている第3の無線ネットワークの識別子を含んでいてもよい。判断部は、特定の情報に含まれる第3の無線ネットワークの識別子と、特定の無線ネットワークを識別するための特定の識別子と、が一致するのか否かと確認することによって、通信装置が現在属している特定の無線ネットワークに携帯端末が現在属しているのか否かを判断してもよい。この構成によれば、無線ネットワーク識別子を比較することによって、携帯端末が、通信装置が現在属している特定のネットワークに、現在属しているのか否かを適切に判断することができる。 The particular network to which the communication device currently belongs may be a particular wireless network. The specific information may include an identifier of a third wireless network to which the mobile terminal is currently continuing. The determination unit currently belongs to the communication device by confirming whether or not the identifier of the third wireless network included in the specific information and the specific identifier for identifying the specific wireless network match. It may be determined whether or not the mobile terminal currently belongs to a specific wireless network. According to this configuration, by comparing the wireless network identifiers, it is possible to appropriately determine whether or not the mobile terminal currently belongs to the specific network to which the communication device currently belongs.

判断部は、特定の情報に、無線ネットワーク識別子が含まれない場合に、特定のネットワークに、携帯端末が現在属していないと判断してもよい。この構成によれば、携帯端末が、特定のネットワークに現在属していないことを、適切に判断することができる。 The determination unit may determine that the mobile terminal does not currently belong to the specific network when the specific information does not include the wireless network identifier. According to this configuration, it can be appropriately determined that the mobile terminal does not currently belong to a specific network.

判断部は、特定の情報に、携帯端末を識別するための端末識別情報が含まれる場合に、第2種のインターフェイスを利用した通信を実行することによって、特定のネットワークを介して、端末識別情報が取得される場合に、特定のネットワークに、携帯端末が現在属していると判断し、第2種のインターフェイスを利用した通信を実行することによって、特定のネットワークを介して、端末識別情報が取得されない場合に、特定のネットワークに、携帯端末が現在属していないと判断してもよい。この構成によれば、特定のネットワークに、携帯端末が現在属しているのか否かを、適切に判断することができる。 When the specific information includes the terminal identification information for identifying the mobile terminal, the determination unit executes the communication using the second type interface to perform the terminal identification information via the specific network. Is acquired, it is determined that the mobile terminal currently belongs to a specific network, and the terminal identification information is acquired via the specific network by executing communication using the second type interface. If this is not the case, it may be determined that the mobile terminal does not currently belong to a particular network. According to this configuration, it is possible to appropriately determine whether or not the mobile terminal currently belongs to a specific network.

判断部は、特定の情報に、携帯端末のIPアドレスが含まれる場合に、第2種のインターフェイスを利用した通信を実行することによって、IPアドレスが宛先に指定されている問合せを、特定のネットワークに送信し、問合せに対して、携帯端末からの応答が受信される場合に、通信可能状態であると判断し、問合せに対して、携帯端末からの応答が受信されない場合に、通信可能状態でないと判断してもよい。この構成によれば、通信装置の状態が、通信可能状態であるのか否かを適切に判断することができる。 When the specific information includes the IP address of the mobile terminal, the judgment unit makes a query to which the IP address is specified as the destination by executing communication using the second type interface to the specific network. When a response from the mobile terminal is received in response to the inquiry, it is determined that communication is possible, and when a response from the mobile terminal is not received in response to the inquiry, communication is not possible. You may judge that. According to this configuration, it is possible to appropriately determine whether or not the state of the communication device is in a communicable state.

なお、上記の通信装置を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。また、上記の通信装置と携帯端末とを含む通信システムも、新規で有用である。 A control method for realizing the above-mentioned communication device, a computer program, and a computer-readable recording medium for storing the computer program are also new and useful. In addition, a communication system including the above-mentioned communication device and a mobile terminal is also new and useful.

通信システムの構成を示す。The configuration of the communication system is shown. 第1実施例の多機能機が実行する通信処理のフローチャートを示す。The flowchart of the communication process executed by the multifunctional machine of 1st Example is shown. 第1の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the processing executed by each device in the first situation is shown. 第2の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the processing executed by each device in the second situation is shown. 第3の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the process executed by each device in the third situation is shown. 第4の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the process executed by each device in the fourth situation is shown. 第5の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the process executed by each device in the fifth situation is shown. 第2実施例の多機能機が実行する通信処理のフローチャートを示す。The flowchart of the communication process executed by the multifunctional machine of 2nd Example is shown. 第6の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the processing executed by each device in the sixth situation is shown. 第7の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the processing executed by each device in the seventh situation is shown. 第3実施例の多機能機が実行する通信処理のフローチャートを示す。A flowchart of communication processing executed by the multifunctional machine of the third embodiment is shown. 第8の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the processing executed by each device in the eighth situation is shown. 第9の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the processing executed by each apparatus in the ninth situation is shown. 第4実施例の多機能機が実行する通信処理のフローチャートを示す。The flowchart of the communication process executed by the multifunctional machine of 4th Example is shown. 第10の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the processing executed by each apparatus in the tenth situation is shown. 第11の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the processing executed by each apparatus in the eleventh situation is shown. 第5実施例の多機能機が実行する通信処理のフローチャートを示す。The flowchart of the communication process executed by the multifunctional machine of 5th Example is shown. 第12の状況における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the processing executed by each device in the twelfth situation is shown. 第6実施例の多機能機が実行する通信処理のフローチャートを示す。The flowchart of the communication process executed by the multifunctional machine of 6th Example is shown. 第7実施例の多機能機が実行する通信処理のフローチャートを示す。The flowchart of the communication processing executed by the multifunctional machine of 7th Example is shown. 第7実施例における各装置が実行する処理を説明するためのシーケンス図を示す。A sequence diagram for explaining the processing executed by each apparatus in the seventh embodiment is shown.

(第1実施例)
(通信システムの構成)
図1に示すように、通信システム2は、多機能機(以下では「MFP」(Multi-Function Peripheralの略)と呼ぶ)10と、携帯端末50と、アクセスポイント(以下では「AP」と呼ぶ)6と、PC8と、を備える。MFP10と携帯端末50とは、近距離無線通信を実行可能である。近距離無線通信は、NFC方式に従った無線通信である。本実施例では、ISO/IEC21481又は18092の国際標準規格に基づいて、NFC方式に従った無線通信が実行される。
(First Example)
(Communication system configuration)
As shown in FIG. 1, the communication system 2 includes a multifunction device (hereinafter referred to as "MFP" (abbreviation of "Multi-Function Peripheral)) 10, a mobile terminal 50, and an access point (hereinafter referred to as "AP"). ) 6 and PC8. The MFP 10 and the mobile terminal 50 can execute short-range wireless communication. Short-range wireless communication is wireless communication according to the NFC method. In this embodiment, wireless communication according to the NFC method is executed based on the international standard of ISO / IEC21481 or 18092.

また、MFP10は、後述のWiFi Direct方式に従った無線通信を実行可能である。以下では、WiFi Directのことを「WFD」と呼ぶ。WFDでは、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び、それに準ずる規格(例えば802.11a,11b,11g,11n等)に基づいて、無線通信が実行される。NFC方式とWFDの方式(以下では「WFD方式」と呼ぶ)とは、無線通信方式(即ち無線通信の規格)が異なる。また、WFD方式に従った無線通信の通信速度は、NFC方式に従った無線通信の通信速度と比較して速い。 Further, the MFP 10 can execute wireless communication according to the WiFi Direct method described later. In the following, the WiFi Direct will be referred to as "WFD". In WFD, wireless communication is performed based on the IEEE (Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and the equivalent standard (for example, 802.11a, 11b, 11g, 11n, etc.). Will be executed. The wireless communication system (that is, the standard of wireless communication) is different between the NFC system and the WFD system (hereinafter referred to as "WFD system"). Further, the communication speed of wireless communication according to the WFD method is higher than the communication speed of wireless communication according to the NFC method.

例えば、MFP10は、WFD方式に従って、携帯端末50との接続(以下では「WFD接続」と呼ぶ)を確立することによって、WFDネットワークを構築することができる。同様に、MFP10は、PC8とのWFD接続を確立することによって、WFDネットワークを構築することができる。 For example, the MFP 10 can construct a WFD network by establishing a connection with the mobile terminal 50 (hereinafter referred to as "WFD connection") according to the WFD method. Similarly, the MFP 10 can construct a WFD network by establishing a WFD connection with the PC 8.

PC8とMFP10と携帯端末50とは、さらに、WFD方式とは異なる通常Wi−Fi(例えばIEEE802.11)の方式に従った無線通信を実行可能である。一般的に言うと、通常Wi−Fiに従った無線通信とは、AP6が利用される無線通信であり、WFD方式に従った無線通信とは、AP6が利用されない無線通信である。例えば、MFP10は、通常Wi−Fiに従って、AP6との接続(以下では「通常Wi−Fi接続」と呼ぶ)を確立することによって、通常Wi−Fiネットワークに属することができる。MFP10は、AP6を介して、通常Wi−Fiネットワークに属している他のデバイス(例えばPC8、携帯端末50)と無線通信を実行することができる。なお、NFC方式と通常Wi−Fiの方式(以下では「通常Wi−Fi方式」と呼ぶ)とは、無線通信方式(即ち無線通信の規格)が異なる。また、通常Wi−Fiの通信速度は、NFCの通信速度よりも速い。 The PC8, the MFP10, and the mobile terminal 50 can further perform wireless communication according to a normal Wi-Fi (for example, IEEE802.11) method different from the WFD method. Generally speaking, the wireless communication according to the normal Wi-Fi is the wireless communication in which the AP6 is used, and the wireless communication according to the WFD method is the wireless communication in which the AP6 is not used. For example, the MFP 10 can belong to a normal Wi-Fi network by establishing a connection with AP6 (hereinafter referred to as "normal Wi-Fi connection") according to normal Wi-Fi. The MFP 10 can execute wireless communication with other devices (for example, PC8, mobile terminal 50) that normally belong to the Wi-Fi network via the AP6. The NFC method and the normal Wi-Fi method (hereinafter referred to as "normal Wi-Fi method") differ in the wireless communication method (that is, the standard of wireless communication). In addition, the communication speed of Wi-Fi is usually faster than the communication speed of NFC.

(WFD)
WFDは、Wi−Fi Allianceによって策定された規格である。WFDは、Wi−Fi Allianceによって作成された「Wi−Fi Peer−to−Peer(P2P) Technical Specification Version1.1」に記述されている。
(WFD)
WFD is a standard developed by the Wi-Fi Alliance. WFD is described in "Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1" created by Wi-Fi Alliance.

上述したように、PC8とMFP10と携帯端末50とは、それぞれ、WFD方式に従った無線通信を実行可能である。以下では、WFD方式に従った無線通信を実行可能な機器のことを「WFD対応機器」と呼ぶ。WFDの規格では、WFD対応機器の状態として、Group Owner状態(以下では「G/O状態」と呼ぶ)、クライアント状態、及び、デバイス状態の3つの状態が定義されている。WFD対応機器は、上記の3つの状態のうちの1つの状態で選択的に動作可能である。 As described above, the PC 8, the MFP 10, and the mobile terminal 50 can each execute wireless communication according to the WFD method. Hereinafter, a device capable of performing wireless communication according to the WFD method will be referred to as a "WFD compatible device". The WFD standard defines three states as the state of the WFD compatible device: the Group Owner state (hereinafter referred to as "G / O state"), the client state, and the device state. The WFD-compatible device can selectively operate in one of the above three states.

G/O状態の機器とクライアント状態の機器とによって、WFDネットワークが構成される。WFDネットワークでは、G/O状態の機器が1個しか存在し得ないが、クライアント状態の機器が1個以上存在し得る。G/O状態の機器は、1個以上のクライアント状態の機器を管理する。具体的に言うと、G/O状態の機器は、1個以上のクライアント状態の機器のそれぞれの識別情報(即ちMACアドレス)が記述された管理リストを生成する。G/O状態の機器は、クライアント状態の機器がWFDネットワークに新たに属すると、当該機器の識別情報を管理リストに追加し、クライアント状態の機器がWFDネットワークから離脱すると、当該機器の識別情報を管理リストから消去する。 A WFD network is composed of a device in the G / O state and a device in the client state. In the WFD network, there can be only one device in the G / O state, but there can be one or more devices in the client state. The device in the G / O state manages one or more devices in the client state. Specifically, the device in the G / O state generates a management list in which the identification information (that is, the MAC address) of each of the devices in the one or more client states is described. When a device in the client state newly belongs to the WFD network, the device in the G / O state adds the identification information of the device to the management list, and when the device in the client state leaves the WFD network, the identification information of the device is added. Delete from the management list.

G/O状態の機器は、管理リストに登録されている機器、即ち、クライアント状態の機器(即ちWFDネットワークに属している機器)との間で、目的データ(例えば、OSI参照モデルのネットワーク層の情報を含むデータ(印刷データ、スキャンデータ等))の無線通信を実行可能である。しかしながら、G/O状態の機器は、管理リストに登録されていない未登録機器との間で、当該未登録機器がWFDネットワークに属するためのデータ(例えば、ネットワーク層の情報を含まないデータ(Probe Request信号、Probe Response信号等の物理層のデータ)の無線通信を実行可能であるが、上記の目的データの無線通信を実行不可能である。例えば、G/O状態のMFP10は、管理リストに登録されている携帯端末50(即ち、クライアント状態の携帯端末50)から印刷データを無線で受信可能であるが、管理リストに登録されていない機器から印刷データを無線で受信不可能である。 The device in the G / O state is the device registered in the management list, that is, the device in the client state (that is, the device belonging to the WFD network) and the target data (for example, the network layer of the OSI reference model). It is possible to execute wireless communication of data including information (print data, scan data, etc.). However, the device in the G / O state is the data for the unregistered device to belong to the WFD network (for example, the data not including the information of the network layer (Probe)) with the unregistered device not registered in the management list. Wireless communication of physical layer data such as Request signal and Probe Response signal) can be executed, but wireless communication of the above target data cannot be executed. For example, the MFP 10 in the G / O state is added to the management list. The print data can be wirelessly received from the registered mobile terminal 50 (that is, the mobile terminal 50 in the client state), but the print data cannot be wirelessly received from the device not registered in the management list.

また、G/O状態の機器は、複数個のクライアント状態の機器の間の目的データ(印刷データ、スキャンデータ等)の無線通信を中継可能である。例えば、クライアント状態の携帯端末50がクライアント状態の他のプリンタに印刷データを無線で送信すべき場合には、携帯端末50は、まず、印刷データをG/O状態のMFP10に無線で送信する。この場合、MFP10は、携帯端末50から印刷データを無線で受信して、上記の他のプリンタに印刷データを無線で送信する。即ち、G/O状態の機器は、通常Wi−FiネットワークのAPの機能を実行可能である。 Further, the device in the G / O state can relay wireless communication of target data (print data, scan data, etc.) between the devices in the G / O state. For example, when the mobile terminal 50 in the client state should wirelessly transmit the print data to another printer in the client state, the mobile terminal 50 first wirelessly transmits the print data to the MFP 10 in the G / O state. In this case, the MFP 10 wirelessly receives the print data from the mobile terminal 50 and wirelessly transmits the print data to the other printer described above. That is, the device in the G / O state can normally execute the function of the AP of the Wi-Fi network.

なお、WFDネットワークに属していないWFD対応機器(即ち、管理リストに登録されていない機器)が、デバイス状態の機器である。デバイス状態の機器は、WFDネットワークに属するためのデータ(Probe Request信号、Probe Response信号等の物理層のデータ等)の無線通信を実行可能であるが、WFDネットワークを介して目的データ(印刷データ、スキャンデータ等)の無線通信を実行不可能である。 A WFD-compatible device that does not belong to the WFD network (that is, a device that is not registered in the management list) is a device in the device state. The device in the device state can execute wireless communication of data (data of the physical layer such as Probe Request signal, Probe Response signal, etc.) for belonging to the WFD network, but the target data (print data, print data, etc.) can be executed via the WFD network. Wireless communication (scan data, etc.) is not possible.

なお、以下では、WFD方式に従った無線通信を実行可能ではないが、通常Wi−Fiに従った無線通信を実行可能である機器のことを、「WFD非対応機器」と呼ぶ。「WFD非対応機器」は、「レガシー機器」とも呼ぶことができる。WFD非対応機器は、G/O状態として動作することができない。G/O状態の機器は、WFD非対応機器の識別情報を、管理リストに記述することができる。 In the following, a device that cannot execute wireless communication according to the WFD method but can normally execute wireless communication according to Wi-Fi is referred to as a "non-WFD compatible device". The "non-WFD compatible device" can also be called a "legacy device". A device that does not support WFD cannot operate in the G / O state. The device in the G / O state can describe the identification information of the device that does not support WFD in the management list.

(MFP10の構成)
MFP10は、操作部12と、表示部14と、印刷実行部16と、スキャン実行部18と、無線LANインターフェイス(以下では、インターフェイスを「I/F」と呼ぶ)20と、NFCI/F22と、制御部30と、を備える。操作部12は、複数のキーを備える。ユーザは、操作部12を操作することによって、様々な指示をMFP10に入力することができる。表示部14は、様々な情報を表示するためのディスプレイである。印刷実行部16は、インクジェット方式、レーザ方式等の印刷機構である。スキャン実行部18は、CCD、CIS等のスキャン機構である。
(Configuration of MFP10)
The MFP 10 includes an operation unit 12, a display unit 14, a print execution unit 16, a scan execution unit 18, a wireless LAN interface (hereinafter, the interface is referred to as “I / F”) 20, an NFCI / F22, and the like. A control unit 30 is provided. The operation unit 12 includes a plurality of keys. The user can input various instructions to the MFP 10 by operating the operation unit 12. The display unit 14 is a display for displaying various information. The print execution unit 16 is a printing mechanism such as an inkjet method or a laser method. The scan execution unit 18 is a scanning mechanism for CCD, CIS, and the like.

無線LANI/F20は、制御部30がWFD方式に従った無線通信と通常Wi−Fiに従った無線通信とを実行するためのインターフェイスである。無線LANI/F20は、物理的には1個のインターフェイスである。但し、無線LANI/F20には、WFD方式に従った無線通信で利用されるMACアドレス(以下では「WFD用MACアドレス」と呼ぶ)と、通常Wi−Fiに従った無線通信で利用されるMACアドレス(以下では「通常Wi−Fi用MACアドレス」と呼ぶ)と、の両方が割り当てられる。より詳細には、無線LANI/F20には、通常Wi−Fi用MACアドレスが、予め割り当てられている。制御部30は、通常Wi−Fi用MACアドレスを用いて、WFD用MACアドレスを生成して、WFD用MACアドレスを無線LANI/F20に割り当てる。WFD用MACアドレスは、通常Wi−Fi用MACアドレスとは異なる。従って、制御部30は、無線LANI/F20を介して、WFD方式に従った無線通信と通常Wi−Fiに従った無線通信との両方を同時的に実行し得る。この結果、MFP10が、WFDネットワークに属していると共に、通常Wi−Fiネットワークに属している状況が成立し得る。 The wireless LAN I / F 20 is an interface for the control unit 30 to execute wireless communication according to the WFD method and wireless communication according to normal Wi-Fi. The wireless LANI / F20 is physically one interface. However, the wireless LANI / F20 includes a MAC address used for wireless communication according to the WFD method (hereinafter referred to as "MAC address for WFD") and a MAC normally used for wireless communication according to Wi-Fi. Both an address (hereinafter referred to as a "normal Wi-Fi MAC address") and an address are assigned. More specifically, the wireless LAN I / F20 is usually assigned a Wi-Fi MAC address in advance. The control unit 30 normally uses the Wi-Fi MAC address to generate the WFD MAC address, and assigns the WFD MAC address to the wireless LAN I / F 20. The MAC address for WFD is usually different from the MAC address for Wi-Fi. Therefore, the control unit 30 can simultaneously execute both the wireless communication according to the WFD method and the wireless communication according to the normal Wi-Fi via the wireless LANI / F20. As a result, it is possible that the MFP 10 belongs to the WFD network and usually belongs to the Wi-Fi network.

なお、G/O状態の機器は、クライアント状態のWFD対応機器の識別情報のみならず、WFD非対応機器の識別情報も、管理リストに記述することができる。即ち、G/O状態の機器は、WFD非対応機器ともWFD接続を確立することができる。一般的に言うと、WFD接続とは、MFP10のWFD用MACアドレスが利用される無線接続である。また、WFDネットワークとは、MFP10のWFD用MACアドレスが利用される無線ネットワークである。同様に、通常Wi−Fi接続とは、MFP10の通常Wi−Fi用MACアドレスが利用される無線接続である。また、通常Wi−Fiネットワークとは、MFP10の通常Wi−Fi用MACアドレスが利用される無線ネットワークである。 For the device in the G / O state, not only the identification information of the WFD compatible device in the client state but also the identification information of the WFD non-compatible device can be described in the management list. That is, the device in the G / O state can establish a WFD connection with the device that does not support WFD. Generally speaking, the WFD connection is a wireless connection in which the WFD MAC address of the MFP 10 is used. The WFD network is a wireless network in which the MAC address for WFD of the MFP 10 is used. Similarly, the normal Wi-Fi connection is a wireless connection in which the normal Wi-Fi MAC address of the MFP 10 is used. Further, the normal Wi-Fi network is a wireless network in which the normal Wi-Fi MAC address of the MFP 10 is used.

ユーザは、操作部12を操作することによって、無線LANI/F20の設定を変更することによって、無線LANI/F20を利用したWFD方式に従った無線通信を実行可能なモード(以下では「WFD=ONモード」と呼ぶ)と、無線LANI/F20を利用したWFD方式に従った無線通信を実行不可能なモード(以下では「WFD=OFFモード」と呼ぶ)と、のいずれかのモードに変更することができる。モード設定部46は、ユーザの操作に従って、WFD=ONモードとWFD=OFFモードとのどちらのモードを設定する。具体的には、モード設定部46は、ユーザによって設定されたモードを表すモード値を、メモリ34に格納する。 The user can execute wireless communication according to the WFD method using the wireless LANI / F20 by changing the setting of the wireless LANI / F20 by operating the operation unit 12 (hereinafter, "WFD = ON"). To change to one of the modes (referred to as "mode") and the mode in which wireless communication according to the WFD method using wireless LANI / F20 cannot be executed (hereinafter referred to as "WFD = OFF mode"). Can be done. The mode setting unit 46 sets either the WFD = ON mode or the WFD = OFF mode according to the operation of the user. Specifically, the mode setting unit 46 stores the mode value representing the mode set by the user in the memory 34.

なお、制御部30は、WFDI/F=OFFモードである状態では、WFD方式に従った各処理(例えば、MFP10を後述の自発G/Oモードに設定する処理、G/Oネゴシエーション等)を実行することができない。WFDI/F=ONである状態では、メモリ34は、WFDに関するMFP10の現在の状態(G/O状態、クライアント状態、及び、デバイス状態のいずれかの状態)を示す値を格納する。 In the state where the WFDI / F = OFF mode is set, the control unit 30 executes each process according to the WFD method (for example, a process of setting the MFP 10 to the spontaneous G / O mode described later, G / O negotiation, etc.). Can not do it. In the state where WFDI / F = ON, the memory 34 stores a value indicating the current state (G / O state, client state, or device state) of the MFP 10 with respect to WFD.

NFCI/F22は、制御部30がNFC方式に従った無線通信を実行するためのインターフェイスである。NFCI/F22は、W−FiI/F20と物理的に異なるチップで構成されている。 The NFCI / F22 is an interface for the control unit 30 to execute wireless communication according to the NFC method. The NFCI / F22 is composed of a chip that is physically different from the W-FiI / F20.

なお、無線LANI/F20を介した無線通信の通信速度(例えば、最大の通信速度が11〜454Mbps)は、NFCI/F22を介した無線通信の通信速度(例えば、最大の通信速度が100〜424Kbps)よりも速い。さらに、無線LANI/F20を介した無線通信における搬送波の周波数(例えば、2.4GHz帯、5.0GHz帯)は、NFCI/F22を介した無線通信における搬送波の周波数(例えば、13.56MHz帯)とは異なる。また、MFP10と携帯端末50との距離がおよそ10cm以下である場合に、制御部30は、NFCI/F22を介して、携帯端末50とNFC方式に従った無線通信を実行可能である。一方において、MFP10と携帯端末50との距離が、10cm以下である場合でも、10cm以上である場合(例えば、最大で約100m)でも、制御部30は、無線LANI/F20を介して、WFD方式に従った無線通信、及び、通常Wi−Fiに従った無線通信を、携帯端末50と実行可能である。即ち、MFP10が、無線LANI/F20を介して、通信先の機器(例えば携帯端末50)と無線通信を実行可能な最大の距離は、MFP10が、NFCI/F22を介して、通信先の機器と無線通信を実行可能な最大の距離よりも大きい。 The communication speed of wireless communication via wireless LANI / F20 (for example, the maximum communication speed is 11 to 454 Mbps) is the communication speed of wireless communication via NFCI / F22 (for example, the maximum communication speed is 100 to 424 Kbps). ) Faster. Further, the frequency of the carrier wave in wireless communication via wireless LANI / F20 (for example, 2.4 GHz band, 5.0 GHz band) is the frequency of the carrier wave in wireless communication via NFCI / F22 (for example, 13.56 MHz band). Is different. Further, when the distance between the MFP 10 and the mobile terminal 50 is about 10 cm or less, the control unit 30 can execute wireless communication with the mobile terminal 50 according to the NFC method via the NFCI / F22. On the other hand, regardless of whether the distance between the MFP 10 and the mobile terminal 50 is 10 cm or less or 10 cm or more (for example, about 100 m at the maximum), the control unit 30 uses the WFD method via the wireless LANI / F20. The wireless communication according to the above and the wireless communication according to the normal Wi-Fi can be executed with the mobile terminal 50. That is, the maximum distance that the MFP 10 can perform wireless communication with the communication destination device (for example, the mobile terminal 50) via the wireless LANI / F20 is such that the MFP 10 can communicate with the communication destination device via the NFCI / F22. Greater than the maximum distance that wireless communication can be performed.

制御部30は、CPU32とメモリ34とを備える。CPU32は、メモリ34に格納されているプログラムに従って、様々な処理を実行する。CPU32がプログラムに従って処理を実行することによって、各部40〜46の機能が実現される。 The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 executes various processes according to the program stored in the memory 34. When the CPU 32 executes the process according to the program, the functions of the respective units 40 to 46 are realized.

メモリ34は、ROM、RAM、ハードディスク等によって構成される。メモリ34は、CPU32によって実行される上記のプログラムを格納する。メモリ34はワーク領域38を備える。ワーク領域38は、MFP10が、WFDネットワークに現在属している場合に、WFDネットワークに現在属していることを示す情報と、当該WFDネットワークを介して目的データ(例えば印刷データ)の通信を実行するための無線設定(認証方式、暗号化方式、パスワード、無線ネットワークのSSID(Service Set Identifier)、BSSID(Basic Service Set Identifier)を含む)とを格納する。また、ワーク領域38は、MFP10が、通常Wi−Fiネットワークに現在属している場合に、通常Wi−Fiネットワークに現在属していることを示す情報と、当該通常Wi−Fiネットワークを介して目的データの通信を実行するための無線設定とを格納する。WFDネットワークのSSIDは、WFDネットワークを識別するためのネットワーク識別子であり、通常Wi−FiネットワークのSSIDは、通常Wi−Fiネットワークを識別するためのネットワーク識別子である。WFDネットワークのBSSIDは、G/O状態の機器に固有の識別子(例えばG/O状態の機器のMACアドレス)であり、通常Wi−FiネットワークのBSSIDは、APに固有の識別子(例えばAP固有の識別子)である。 The memory 34 is composed of a ROM, a RAM, a hard disk, and the like. The memory 34 stores the above program executed by the CPU 32. The memory 34 includes a work area 38. The work area 38 is for executing communication of target data (for example, print data) via the WFD network with information indicating that the MFP 10 currently belongs to the WFD network when the MFP 10 currently belongs to the WFD network. Radio settings (including authentication method, encryption method, password, wireless network SSID (Service Set Identifier), BSSID (Basic Service Set Identifier)) are stored. Further, the work area 38 includes information indicating that the MFP 10 currently belongs to the normal Wi-Fi network when the MFP 10 currently belongs to the normal Wi-Fi network, and target data via the normal Wi-Fi network. Stores wireless settings and settings for performing communication. The SSID of the WFD network is a network identifier for identifying the WFD network, and the SSID of the normal Wi-Fi network is usually a network identifier for identifying the Wi-Fi network. The BSSID of the WFD network is an identifier unique to the device in the G / O state (for example, the MAC address of the device in the G / O state), and the BSSID of the Wi-Fi network is usually an identifier unique to the AP (for example, the unique identifier of the AP). Identifier).

ワーク領域38は、さらに、MFP10がWFD方式に従って動作している場合に、WFDの現在の状態(G/O状態、クライアント状態、及び、デバイス状態のいずれかの状態)を示す値を格納する。ワーク領域38は、さらに、WFD=ONモードを表すモード値、又は、WFD=OFFモードを表すモード値を格納する。 The work area 38 further stores a value indicating the current state of the WFD (one of the G / O state, the client state, and the device state) when the MFP 10 is operating according to the WFD method. The work area 38 further stores a mode value representing the WFD = ON mode or a mode value representing the WFD = OFF mode.

なお、ユーザは、操作部12を操作することによって、MFP10を自発G/Oモードに設定することができる。自発G/Oモードは、G/O状態で動作することをMFP10に維持させるモードである。メモリ内34内のワーク領域38は、さらに、MFP10が自発G/Oモードに設定されているのか否かを示す値を格納する。デバイス状態のWFD対応機器は、デバイス状態の他のWFD対応機器とのWFD接続を確立する際に、通常、G/O状態及びクライアント状態のうちのどちらの状態で動作すべきであるのかを選択的に決定するためのG/Oネゴシエーションを実行する。MFP10が自発G/Oモードに設定されている場合には、MFP10は、G/Oネゴシエーションを実行せずに、G/O状態で動作することを維持する。 The user can set the MFP 10 to the spontaneous G / O mode by operating the operation unit 12. The spontaneous G / O mode is a mode in which the MFP 10 is maintained to operate in the G / O state. The work area 38 in the memory 34 further stores a value indicating whether or not the MFP 10 is set to the spontaneous G / O mode. When establishing a WFD connection with another WFD-compatible device in the device state, the WFD-compatible device in the device state normally selects which of the G / O state and the client state should operate. Perform G / O negotiation to determine the target. When the MFP 10 is set to the spontaneous G / O mode, the MFP 10 maintains the operation in the G / O state without executing the G / O negotiation.

(携帯端末50の構成)
携帯端末50は、例えば、携帯電話(例えばスマートフォン)、PDA、ノートPC、タブレットPC、携帯型音楽再生装置、携帯型動画再生装置等である。携帯端末50は、無線LANI/F(即ちWFD及び通常Wi−Fi用のインターフェイス)とNFCI/Fとの2個の無線インターフェイスを備える。従って、携帯端末50は、無線LANI/Fを利用して、MFP10と無線通信を実行可能であると共に、NFCI/Fを利用して、MFP10と無線通信を実行可能である。携帯端末50は、MFP10に機能(例えば印刷機能、スキャン機能等)を実行させるためのアプリケーションプログラムを備える。なお、アプリケーションプログラムは、例えば、MFP10のベンダによって提供されるサーバから携帯端末50にインストールされてもよいし、MFP10と共に出荷されるメディアから携帯端末50にインストールされてもよい。
(Configuration of mobile terminal 50)
The mobile terminal 50 is, for example, a mobile phone (for example, a smartphone), a PDA, a notebook PC, a tablet PC, a portable music playback device, a portable moving image playback device, or the like. The mobile terminal 50 includes two wireless interfaces, a wireless LAN I / F (that is, an interface for WFD and usually Wi-Fi) and an NFCI / F. Therefore, the mobile terminal 50 can execute wireless communication with the MFP 10 by using the wireless LAN I / F, and can execute wireless communication with the MFP 10 by using the NFCI / F. The mobile terminal 50 includes an application program for causing the MFP 10 to execute a function (for example, a printing function, a scanning function, etc.). The application program may be installed on the mobile terminal 50 from the server provided by the vendor of the MFP 10, or may be installed on the mobile terminal 50 from the media shipped together with the MFP 10.

携帯端末50は、MFP10と同様に、メモリ54内に、ワーク領域58を備える。ワーク領域58は、携帯端末50が、WFDネットワーク又は通常Wi−Fiネットワークに現在属している場合に、当該ネットワークを介して通信を実行するための無線設定(認証方式、暗号化方式、パスワード、無線ネットワークのSSIDとBSSIDとを含む)を格納する。さらに、携帯端末50が、WFD方式に従って動作している場合に、ワーク領域58は、携帯端末50の状態(即ちG/O状態、クライアント状態及びデバイス状態のいずれかの状態)を表す状態値を格納する。 Similar to the MFP 10, the mobile terminal 50 includes a work area 58 in the memory 54. The work area 58 is a wireless setting (authentication method, encryption method, password, wireless) for executing communication via the WFD network or the normal Wi-Fi network when the mobile terminal 50 currently belongs to the WFD network or the normal Wi-Fi network. Stores the network SSID and BSSID). Further, when the mobile terminal 50 is operating according to the WFD method, the work area 58 sets a state value representing the state of the mobile terminal 50 (that is, any of the G / O state, the client state, and the device state). Store.

(PC8の構成)
PC8は、無線LANI/F(即ちWFD及び通常Wi−Fi用のインターフェイス)を備えるが、NFCI/Fを備えていない。従って、PC8は、無線LANI/Fを利用して、MFP10と通信を実行可能であるが、NFC方式に従った無線通信を実行不可能である。PC8は、MFP10に処理(例えば印刷処理、スキャン処理等)を実行させるためのドライバプログラムを備える。なお、ドライバプログラムは、通常、MFP10と共に出荷されるメディアからPC8にインストールされる。ただし、変形例では、ドライバプログラムは、MFP10のベンダによって提供されるサーバからPC8にインストールされてもよい。
(Configuration of PC8)
The PC8 includes a wireless LANI / F (ie, an interface for WFD and usually Wi-Fi), but not an NFCI / F. Therefore, the PC 8 can execute communication with the MFP 10 by using the wireless LAN I / F, but cannot execute the wireless communication according to the NFC method. The PC 8 includes a driver program for causing the MFP 10 to execute processing (for example, printing processing, scanning processing, etc.). The driver program is usually installed on the PC 8 from the media shipped together with the MFP 10. However, in the modified example, the driver program may be installed on the PC8 from the server provided by the vendor of the MFP10.

(AP6の構成)
AP6は、WFDのG/O状態の機器ではなく、無線アクセスポイント又は無線LANルータと呼ばれる通常のアクセスポイントである。AP6は、複数個の機器と通常Wi−Fi接続を確立することができる。これにより、AP6と複数個の機器とを含む通常Wi−Fiネットワークが構築される。AP6は、通常Wi−Fiネットワークに属している複数個の機器のうちの1個の機器からデータを受信して、複数個の機器のうちの他の1個の機器に当該データを送信する。即ち、AP6は、通常Wi−Fiネットワークに属する一対の機器の間の通信を中継する。
(Structure of AP6)
The AP6 is not a device in the G / O state of the WFD, but a normal access point called a wireless access point or a wireless LAN router. The AP6 can usually establish a Wi-Fi connection with a plurality of devices. As a result, a normal Wi-Fi network including the AP6 and a plurality of devices is constructed. The AP6 receives data from one of a plurality of devices that normally belong to a Wi-Fi network, and transmits the data to the other one of the plurality of devices. That is, the AP6 normally relays communication between a pair of devices belonging to the Wi-Fi network.

なお、WFDのG/O状態の機器と通常のAPとの相違点は、以下の通りである。即ち、WFDのG/O状態の機器は、当該機器が現在属しているWFDネットワークから離脱して、他のWFDネットワークに新たに属する場合に、G/O状態以外の状態(即ちクライアント状態)で動作し得る。これに対し、通常のAP(即ちAP6)は、当該APがいずれの通常Wi−Fiネットワークに属しても、一対の機器の間の通信を中継する機能を実行し、クライアント状態で動作し得ない。 The differences between the WFD G / O state device and the normal AP are as follows. That is, a device in the G / O state of the WFD is in a state other than the G / O state (that is, a client state) when the device leaves the WFD network to which the device currently belongs and newly belongs to another WFD network. Can work. On the other hand, a normal AP (that is, AP6) executes a function of relaying communication between a pair of devices regardless of which normal Wi-Fi network the AP belongs to, and cannot operate in the client state. ..

(MFP10が実行する通信処理)
図2を参照して、MFP10が実行する通信処理について説明する。制御部30は、MFP10が電源ONにされると、通信処理を実行する。S2では、受信部40は、NFC方式に従った無線通信を実行することによって、NFC情報を受信することを監視している。なお、受信部40は、NFCI/F22を介して、NFC情報を受信する。具体的には、受信部40は、MFP10と携帯端末50との間にNFC通信セッションが確立されることを監視している。受信部40は、MFP10が電源ONにされている間、NFCI/F22に、NFC方式に従った無線通信を実行可能なデバイスを検出するための電波を発信させている。
(Communication processing executed by MFP10)
The communication process executed by the MFP 10 will be described with reference to FIG. The control unit 30 executes communication processing when the power of the MFP 10 is turned on. In S2, the receiving unit 40 monitors the reception of NFC information by executing wireless communication according to the NFC method. The receiving unit 40 receives the NFC information via the NFCI / F22. Specifically, the receiving unit 40 monitors that an NFC communication session is established between the MFP 10 and the mobile terminal 50. While the power of the MFP 10 is turned on, the receiving unit 40 causes the NFCI / F22 to transmit radio waves for detecting a device capable of performing wireless communication according to the NFC method.

携帯端末50のユーザは、アプリケーションプログラムを起動させる。ユーザは、携帯端末50を操作することによって、MFP10が実行すべき処理を示す処理実行指示(例えば、印刷指示、スキャン指示)を、含むNFC情報を、携帯端末50に生成させる。NFC情報は、さらに、携帯端末50が無線ネットワークに現在属している場合に、携帯端末50が現在属している無線ネットワークのSSIDとBSSIDとを含む。なお、携帯端末50が無線ネットワークに現在属している場合とは、携帯端末50と他のデバイス(例えばAP6、MFP10)との間で、WFD接続と通常Wi−Fi接続との少なくとも一方の無線接続が確立されている場合である。 The user of the mobile terminal 50 activates the application program. By operating the mobile terminal 50, the user causes the mobile terminal 50 to generate NFC information including a process execution instruction (for example, a print instruction, a scan instruction) indicating a process to be executed by the MFP 10. The NFC information further includes the SSID and BSSID of the wireless network to which the mobile terminal 50 currently belongs when the mobile terminal 50 currently belongs to the wireless network. When the mobile terminal 50 currently belongs to the wireless network, at least one wireless connection between the mobile terminal 50 and another device (for example, AP6, MFP10), a WFD connection and a normal Wi-Fi connection, is used. Is established.

ユーザは、携帯端末50をMFP10に近づけることができる。これにより、携帯端末50とMFP10との間の距離が、互いに電波が届く距離(例えば10cm)より小さくなると、携帯端末50は、MFP10から上記の電波を受信して、応答電波をMFP10に送信する。この結果、制御部30は、携帯端末50から応答電波を受信して、NFC通信セッションを確立する。携帯端末50は、NFC通信セッションが確立されると、生成されたNFC情報を、MFP10に送信する。 The user can bring the mobile terminal 50 closer to the MFP 10. As a result, when the distance between the mobile terminal 50 and the MFP 10 is smaller than the distance that the radio waves can reach each other (for example, 10 cm), the mobile terminal 50 receives the above radio waves from the MFP 10 and transmits the response radio waves to the MFP 10. .. As a result, the control unit 30 receives the response radio wave from the mobile terminal 50 and establishes an NFC communication session. When the NFC communication session is established, the mobile terminal 50 transmits the generated NFC information to the MFP 10.

NFC情報が受信される(S2でYES)と、S4において、判断部42は、MFP10がネットワークに現在属しているのか否かを判断する。具体的には、判断部42は、WFDネットワークに現在属していることを示す情報と通常Wi−Fiネットワークに現在属していることを示す情報とのうち少なくとも一方がワーク領域38内に格納されている場合に、MFP10が無線ネットワークに現在属していると判断して(S4でYES)、S6に進む。一方、判断部42は、WFDネットワークに現在属していることを示す情報と通常Wi−Fiネットワークに現在属していることを示す情報とのいずれもワーク領域38内に格納されていない場合に、MFP10が無線ネットワークに現在属していないと判断して(S4でNO)、S8に進む。 When the NFC information is received (YES in S2), in S4, the determination unit 42 determines whether or not the MFP 10 currently belongs to the network. Specifically, the determination unit 42 stores at least one of the information indicating that it currently belongs to the WFD network and the information indicating that it currently belongs to the normal Wi-Fi network in the work area 38. If so, it is determined that the MFP 10 currently belongs to the wireless network (YES in S4), and the process proceeds to S6. On the other hand, when the determination unit 42 does not store in the work area 38 both the information indicating that it currently belongs to the WFD network and the information indicating that it currently belongs to the normal Wi-Fi network, the MFP 10 Determines that does not currently belong to the wireless network (NO in S4) and proceeds to S8.

S6では、判断部42は、MFP10が現在属しているネットワークに、携帯端末50が現在属しているのか否かを確認する。具体的には、判断部42は、最初に、携帯端末50が現在属しているネットワークのSSIDとBSSIDとが、NFC情報に含まれているのか否かを判断する。SSIDとBSSIDとが、NFC情報に含まれていない場合、判断部42は、MFP10が現在属しているネットワークに、携帯端末50が現在属していないと判断する(S6でNO)。この構成によれば、MFP10は、MFP10が現在属しているネットワークに、携帯端末50が現在属していないことを適切に判断することができる。携帯端末50が現在属しているネットワークのSSIDとBSSIDとが、NFC情報に含まれている場合に、判断部42は、ワーク領域38に格納されている無線設定に含まれているSSIDとBSSIDとが、NFC情報に含まれているSSIDとBSSIDと一致しているのか否かを判断する。 In S6, the determination unit 42 confirms whether or not the mobile terminal 50 currently belongs to the network to which the MFP 10 currently belongs. Specifically, the determination unit 42 first determines whether or not the SSID and BSSID of the network to which the mobile terminal 50 currently belongs are included in the NFC information. When the SSID and BSSID are not included in the NFC information, the determination unit 42 determines that the mobile terminal 50 does not currently belong to the network to which the MFP 10 currently belongs (NO in S6). According to this configuration, the MFP 10 can appropriately determine that the mobile terminal 50 does not currently belong to the network to which the MFP 10 currently belongs. When the SSID and BSSID of the network to which the mobile terminal 50 currently belongs are included in the NFC information, the determination unit 42 determines that the SSID and BSSID included in the wireless setting stored in the work area 38. However, it is determined whether or not the SSID and BSSID included in the NFC information match.

SSIDとBSSIDとが共に一致している場合、MFP10が現在属しているネットワークに、携帯端末50が現在属している(S6でYES)と判断され、S7に進む。一方、SSIDとBSSIDの少なくとも一方が一致していない場合、MFP10が現在属しているネットワークに、携帯端末50が現在属していない(S6でNO)と判断され、S8に進む。この構成によれば、MFP10は、MFP10が現在属しているネットワークに、携帯端末50が現在属しているのか否かを適切に判断することができる。なお、S6では、判断部42は、SSIDが一致しているのか否かを判断すると共に、BSSIDが一致しているのか判断する。これにより、判断部42は、MFP10と携帯端末50とが、同一のAPにより構築される同一の無線ネットワークに属しているのか否かを判断できる。より具体的に説明すると、1個のAPが、複数個のSSIDを利用することにより、複数個の無線ネットワークを構築する場合がある。そのため、BSSIDが一致し、SSIDが一致しない場合には、MFP10と携帯端末50とが、同一のAPにより構築されている異なる無線ネットワークに属している虞がある。本実施例では、SSIDとBSSIDとの双方について一致しているのか否かを判断することにより、より確実にMFP10と携帯端末50とが同一の無線ネットワークに属しているのか否かを判断できる。なお、変形例では、S6においてSSIDが一致しているのかを判断し、BSSIDが一致しているのかを判断しなくてもよい。これにより、MFP10と携帯端末50とがそれぞれ異なるアクセスポイントが構築する無線ネットワークに属する場合でも、SSIDが一致していれば、MFP10と携帯端末50とが同一の無線ネットワークに属していると判断され得る。 If both the SSID and BSSID match, it is determined that the mobile terminal 50 currently belongs to the network to which the MFP 10 currently belongs (YES in S6), and the process proceeds to S7. On the other hand, if at least one of the SSID and BSSID does not match, it is determined that the mobile terminal 50 does not currently belong to the network to which the MFP 10 currently belongs (NO in S6), and the process proceeds to S8. According to this configuration, the MFP 10 can appropriately determine whether or not the mobile terminal 50 currently belongs to the network to which the MFP 10 currently belongs. In S6, the determination unit 42 determines whether or not the SSIDs match, and also determines whether or not the BSSIDs match. As a result, the determination unit 42 can determine whether or not the MFP 10 and the mobile terminal 50 belong to the same wireless network constructed by the same AP. More specifically, one AP may construct a plurality of wireless networks by using a plurality of SSIDs. Therefore, if the BSSIDs match and the SSIDs do not match, the MFP 10 and the mobile terminal 50 may belong to different wireless networks constructed by the same AP. In this embodiment, by determining whether or not both the SSID and BSSID match, it is possible to more reliably determine whether or not the MFP 10 and the mobile terminal 50 belong to the same wireless network. In the modified example, it is not necessary to determine whether the SSIDs match in S6 and not determine whether the BSSIDs match. As a result, even if the MFP 10 and the mobile terminal 50 belong to a wireless network constructed by different access points, if the SSIDs match, it is determined that the MFP 10 and the mobile terminal 50 belong to the same wireless network. obtain.

MFP10が現在属しているネットワークに、携帯端末50が現在属している場合、MFP10と携帯端末50とは、現在属しているネットワークを介して、通信を実行可能である。即ち、携帯端末50は、ワーク領域58に現在格納されている無線設定を用いて、MFP10と、無線通信を実行可能である。S7では、制御部30は、NFCI/F22を介して、携帯端末50の無線設定を変更せずに、データ通信を実行可能であることを示す設定変更不要情報を送信して、S20に進む。なお、設定変更不要情報は、MFP10のIPアドレスを含む。 When the mobile terminal 50 currently belongs to the network to which the MFP 10 currently belongs, the MFP 10 and the mobile terminal 50 can perform communication via the network to which the MFP 10 currently belongs. That is, the mobile terminal 50 can execute wireless communication with the MFP 10 by using the wireless settings currently stored in the work area 58. In S7, the control unit 30 transmits setting change unnecessary information indicating that data communication can be executed without changing the wireless setting of the mobile terminal 50 via the NFCI / F22, and proceeds to S20. The setting change unnecessary information includes the IP address of the MFP 10.

S8では、判断部42は、WFD=ONモードに設定されているのか否かを判断する。判断部42は、メモリ34に格納されているモード値が、WFD=ONモードを表す値である場合に、S8でYESと判断し、S10に進む。一方、判断部42は、メモリ34に格納されているモード値が、WFD=OFFモードを表す値である場合に、S8でNOと判断し、S9に進む。 In S8, the determination unit 42 determines whether or not the WFD = ON mode is set. When the mode value stored in the memory 34 is a value representing the WFD = ON mode, the determination unit 42 determines YES in S8 and proceeds to S10. On the other hand, when the mode value stored in the memory 34 is a value representing the WFD = OFF mode, the determination unit 42 determines NO in S8 and proceeds to S9.

S9では、通信実行部44は、メモリ34に格納されているモード値を変更することによって、WFD=OFFモードからWFD=ONモードに変更して、S15に進む。通信実行部44は、さらに、モード値を変更したことを示す設定変更情報を、メモリ34に格納する。 In S9, the communication execution unit 44 changes the WFD = OFF mode to the WFD = ON mode by changing the mode value stored in the memory 34, and proceeds to S15. The communication execution unit 44 further stores the setting change information indicating that the mode value has been changed in the memory 34.

S10では、判断部42は、MFP10が、現在属している無線ネットワークにおいて、クライアント状態として動作しているのか否かを判断する。具体的には、判断部42は、ワーク領域38に格納されている状態値が、クライアント状態を表す値である場合に、クライアント状態として動作していると判断する(S10でYES)。一方、判断部42は、ワーク領域38に格納されている状態値が、クライアント状態を表す値でない場合に、クライアント状態として動作していないと判断する(S10でNO)。S10でYESの場合、S14に進む。 In S10, the determination unit 42 determines whether or not the MFP 10 is operating as a client state in the wireless network to which it currently belongs. Specifically, the determination unit 42 determines that the operation is operating as a client state when the state value stored in the work area 38 is a value representing the client state (YES in S10). On the other hand, if the state value stored in the work area 38 is not a value representing the client state, the determination unit 42 determines that the client state is not operating (NO in S10). If YES in S10, the process proceeds to S14.

一方、S10でNOの場合には、S12において、判断部42は、MFP10が、現在属している無線ネットワークにおいて、G/O状態として動作しているのか否かを判断する。具体的には、判断部42は、ワーク領域38に格納されている状態値が、G/O状態を表す値である場合に、G/O状態として動作していると判断する(S12でYES)。一方、判断部42は、ワーク領域38に格納されている状態値が、G/O状態を表す値でない場合に、G/O状態として動作していない(即ち、MFP10はデバイス状態である)と判断する(S12でNO)。S12でYESの場合にS13に進み、S12でNOの場合にS15に進む。 On the other hand, when NO in S10, in S12, the determination unit 42 determines whether or not the MFP 10 is operating in the G / O state in the wireless network to which it currently belongs. Specifically, when the state value stored in the work area 38 is a value representing the G / O state, the determination unit 42 determines that the state value is operating as the G / O state (YES in S12). ). On the other hand, the determination unit 42 does not operate as a G / O state (that is, the MFP 10 is a device state) when the state value stored in the work area 38 is not a value representing the G / O state. Judge (NO in S12). If YES in S12, the process proceeds to S13, and if NO in S12, the process proceeds to S15.

S13では、判断部42は、MFP10がG/O状態として動作しているWFDネットワークに含まれるMFP10以外の機器の個数(即ち、MFP10と接続が確立している機器)が、予め決められている最大クライアント数よりも少ないのか否かを判断する。判断部42は、管理リストに格納されている機器の識別情報の個数が、最大クライアント数よりも少ない場合に、S13でYESと判断し、等しい場合にS13でNOと判断する。S13でYESの場合にS16に進み、S13でNOの場合にS14に進む。 In S13, in the determination unit 42, the number of devices other than the MFP 10 included in the WFD network in which the MFP 10 is operating in the G / O state (that is, the devices whose connection is established with the MFP 10) is predetermined. Determine if it is less than the maximum number of clients. The determination unit 42 determines YES in S13 when the number of device identification information stored in the management list is less than the maximum number of clients, and determines NO in S13 when they are equal. If YES in S13, the process proceeds to S16, and if NO in S13, the process proceeds to S14.

S14では、通信実行部44は、MFP10と携帯端末50とが現在通信を実行することができないことを示す通信NG情報を、NFCI/F22を利用して、携帯端末50に送信して、S2に戻る。 In S14, the communication execution unit 44 transmits the communication NG information indicating that the MFP 10 and the mobile terminal 50 cannot currently execute communication to the mobile terminal 50 using the NFCI / F22, and sends the communication to S2. Return.

S15では、通信実行部44は、MFP10を、自発G/Oモードに設定する。自発G/Oモードは、G/O状態で動作することをMFP10に維持させるモードである。従って、S15の段階ではWFDネットワークが構築されていないが、MFP10は、G/O状態に設定されている。MFP10がG/O状態に設定される場合、通信実行部44は、WFD対応機器又は/及びWFD非対応機器が、WFDネットワークを介して、G/O状態として動作しているMFP10と無線通信を実行するための無線設定(SSID、BSSID、認証方式、暗号化方式、パスワード等)を準備する。この構成によれば、MFP10から無線設定を受信する機器(本実施例では携帯端末50)が、WFD対応機器であってもWFD非対応機器であっても、MFP10は、無線設定を受信する機器と、無線通信を実行することができる。 In S15, the communication execution unit 44 sets the MFP 10 to the spontaneous G / O mode. The spontaneous G / O mode is a mode in which the MFP 10 is maintained to operate in the G / O state. Therefore, although the WFD network is not constructed at the stage of S15, the MFP 10 is set to the G / O state. When the MFP10 is set to the G / O state, the communication execution unit 44 wirelessly communicates with the MFP10 in which the WFD compatible device and / and the WFD non-compatible device are operating in the G / O state via the WFD network. Prepare wireless settings (SSID, BSSID, authentication method, encryption method, password, etc.) for execution. According to this configuration, the MFP 10 is a device that receives the wireless settings regardless of whether the device that receives the wireless settings from the MFP 10 (the mobile terminal 50 in this embodiment) is a WFD compatible device or a WFD non-compatible device. And wireless communication can be executed.

なお、認証方式及び暗号化方式は、予め決められている。また、通信実行部44は、パスワードを生成する。なお、SSIDは、パスワードを生成する際に、通信実行部44によって生成されてもよいし、予め決められていてもよい。BSSIDは、MFP10のMACアドレスである。なお、この段階では、MFP10が管理している管理リストには、G/O状態の機器に接続される機器の識別情報が記述されていない。 The authentication method and the encryption method are predetermined. In addition, the communication execution unit 44 generates a password. The SSID may be generated by the communication execution unit 44 when the password is generated, or may be determined in advance. BSSID is the MAC address of the MFP10. At this stage, the management list managed by the MFP 10 does not describe the identification information of the device connected to the device in the G / O state.

S16では、通信実行部44は、準備された無線設定を、NFCI/F22を利用して、携帯端末50に送信する。S15の処理の後にS16の処理が実行される場合、通信実行部44は、自発G/Oモードに設定された段階(S15)で準備される無線設定を、携帯端末50に送信する。S13の処理の後にS16の処理が実行される場合、通信実行部44は、MFP10がG/O状態として動作しているWFDネットワークが構築された段階で準備される無線設定を、NFCI/F22を利用して、携帯端末50に送信する。 In S16, the communication execution unit 44 transmits the prepared wireless setting to the mobile terminal 50 by using the NFCI / F22. When the process of S16 is executed after the process of S15, the communication execution unit 44 transmits the wireless setting prepared at the stage (S15) set in the spontaneous G / O mode to the mobile terminal 50. When the processing of S16 is executed after the processing of S13, the communication execution unit 44 sets the NFCI / F22 to the radio settings prepared at the stage when the WFD network in which the MFP10 is operating in the G / O state is constructed. It is used and transmitted to the mobile terminal 50.

次いで、S18では、通信実行部44は、無線LANI/F20を利用して、MFP10と携帯端末50とのWFD接続を確立する。携帯端末50は、MFP10から、G/O状態で動作しているMFP10の無線設定を受信すると、受信された無線設定をワーク領域58に格納する。このため、携帯端末50は、通常Wi−Fiに従って、無線通信を実行する。次いで、通信実行部44は、Authentication Request、Authentication Response、Association Request、Association Response、及び、4way handshakeの無線通信を、携帯端末50と実行する。上記の無線通信の過程で、SSIDの認証、認証方式及び暗号化方式の認証、パスワードの認証等の様々な認証処理が実行される。全ての認証が成功した場合に、MFP10及び携帯端末50の間に無線接続が確立される。 Next, in S18, the communication execution unit 44 establishes a WFD connection between the MFP 10 and the mobile terminal 50 by using the wireless LANI / F20. When the mobile terminal 50 receives the wireless setting of the MFP 10 operating in the G / O state from the MFP 10, the received wireless setting is stored in the work area 58. Therefore, the mobile terminal 50 normally executes wireless communication according to Wi-Fi. Next, the communication execution unit 44 executes wireless communication of the Authentication Request, the Authentication Response, the Authentication Request, the Response Response, and the 4-way handshake with the mobile terminal 50. In the process of the above wireless communication, various authentication processes such as SSID authentication, authentication method and encryption method authentication, and password authentication are executed. If all authentications are successful, a wireless connection is established between the MFP 10 and the mobile terminal 50.

なお、S18の処理では、通信実行部44は、無線LANI/F20を利用して、携帯端末50のMACアドレスを取得する。無線接続が確立されると、制御部30は、さらに、携帯端末50のMACアドレスを管理リストに追加する。なお、携帯端末50のMACアドレスは、NFC情報に含まれる。これにより、G/O状態のMFP10は、通常Wi−Fiに従って、携帯端末50との間で、目的データ(印刷データ、スキャンデータ等)の通信を実行することができるようになる。なお、目的データは、OSI参照モデルの物理層よりも上位層であるネットワーク層のデータを含む。従って、G/O状態のMFP10は、クライアント状態の携帯端末50との間で、ネットワーク層の無線通信を実行することができる。 In the process of S18, the communication execution unit 44 acquires the MAC address of the mobile terminal 50 by using the wireless LANI / F20. When the wireless connection is established, the control unit 30 further adds the MAC address of the mobile terminal 50 to the management list. The MAC address of the mobile terminal 50 is included in the NFC information. As a result, the MFP 10 in the G / O state can execute communication of target data (print data, scan data, etc.) with the mobile terminal 50 in accordance with normal Wi-Fi. The target data includes data of a network layer that is higher than the physical layer of the OSI reference model. Therefore, the MFP 10 in the G / O state can execute wireless communication in the network layer with the mobile terminal 50 in the client state.

次いで、S20では、通信実行部44は、無線LANI/F20を介して、携帯端末50との間で、データ通信処理を実行する。データ通信処理の内容は、NFC情報に含まれる処理実行指示の内容によって変わる。処理実行指示が印刷指示である場合、通信実行部44は、データ通信処理において、携帯端末50から、印刷データを受信する。この場合、制御部30は、印刷実行部16に、受信された印刷データを用いた印刷処理を実行させる。 Next, in S20, the communication execution unit 44 executes data communication processing with the mobile terminal 50 via the wireless LANI / F20. The content of the data communication process changes depending on the content of the process execution instruction included in the NFC information. When the process execution instruction is a print instruction, the communication execution unit 44 receives print data from the mobile terminal 50 in the data communication process. In this case, the control unit 30 causes the print execution unit 16 to execute a print process using the received print data.

一方、処理実行指示がスキャン指示である場合、制御部30は、スキャン実行部18に、スキャン実行部18にセットされた原稿をスキャンさせ、スキャンデータを生成させる。次いで、通信実行部44は、生成されたスキャンデータを、携帯端末50に送信する。 On the other hand, when the processing execution instruction is a scan instruction, the control unit 30 causes the scan execution unit 18 to scan the document set in the scan execution unit 18 and generate scan data. Next, the communication execution unit 44 transmits the generated scan data to the mobile terminal 50.

次いで、S21では、通信実行部44は、無線LANI/F20を利用して、携帯端末50との接続を切断するための切断要求を、携帯端末50から受信することを監視する。所定期間が経過しても切断要求が受信されなかった場合(S21でNO)、S2に戻る。一方、S20のデータ通信処理が終了した後、所定期間内に、携帯端末50から切断要求が受信された場合(S21でYES)、通信実行部44は、携帯端末50との無線接続を切断する。具体的には、通信実行部44は、管理リスト内の携帯端末50のMACアドレスを消去する。次いで、S22では、通信実行部44は、S9の処理により無線LANI/F20の設定が変更されたのか否かを判断する。具体的には、通信実行部44は、設定変更情報がメモリ34に格納されている場合に、S9において、WFD=OFFモードを示すモード値からWFD=ONモードを示すモード値に変更されたと判断して(S22でYES)、S23に進む。一方、設定変更情報がメモリ34に格納されていない場合に、通信実行部44は、S9において、WFD=OFFモードを示すモード値からWFD=ONモードを示すモード値に変更されていない(S22でNO)と判断して、S2に戻る。 Next, in S21, the communication execution unit 44 monitors that the mobile terminal 50 receives a disconnection request for disconnecting from the mobile terminal 50 by using the wireless LANI / F20. If the disconnection request is not received even after the lapse of the predetermined period (NO in S21), the process returns to S2. On the other hand, if a disconnection request is received from the mobile terminal 50 within a predetermined period after the data communication process of S20 is completed (YES in S21), the communication execution unit 44 disconnects the wireless connection with the mobile terminal 50. .. Specifically, the communication execution unit 44 deletes the MAC address of the mobile terminal 50 in the management list. Next, in S22, the communication execution unit 44 determines whether or not the setting of the wireless LANI / F20 has been changed by the process of S9. Specifically, the communication execution unit 44 determines that the mode value indicating the WFD = OFF mode has been changed to the mode value indicating the WFD = ON mode in S9 when the setting change information is stored in the memory 34. Then (YES in S22), proceed to S23. On the other hand, when the setting change information is not stored in the memory 34, the communication execution unit 44 is not changed from the mode value indicating the WFD = OFF mode to the mode value indicating the WFD = ON mode in S9 (in S22). Judging NO), the process returns to S2.

S23では、通信実行部44は、S18で新たに構築されたWFDネットワークに、携帯端末50以外の外部装置(例えばPC8)が、現在属しているのか否かを判断する。具体的には、通信実行部44は、管理リスト内に、携帯端末50の識別情報以外の識別情報が含まれている場合に、WFDネットワークに、外部装置が現在属している(S23でYES)と判断する。この場合、モード値が変更されずに、S2に戻る。この構成によれば、WFDネットワークに外部装置が現在属している場合に、WFDネットワークからMFP10が離脱されることを防止することができる。 In S23, the communication execution unit 44 determines whether or not an external device (for example, PC8) other than the mobile terminal 50 currently belongs to the WFD network newly constructed in S18. Specifically, when the management list contains identification information other than the identification information of the mobile terminal 50, the communication execution unit 44 currently belongs to the WFD network (YES in S23). Judge. In this case, the mode value is not changed and the process returns to S2. According to this configuration, it is possible to prevent the MFP 10 from being detached from the WFD network when the external device currently belongs to the WFD network.

一方において、通信実行部44は、管理リスト内に、携帯端末50以外の識別情報が含まれていない場合に、WFDネットワークに、外部装置が現在属していない(S23でNO)と判断して、S24に進む。S24では、通信実行部44は、WFD=ONモードを示すモード値からWFD=OFFモードを示すモード値に変更して、S2に戻る。即ち、通信処理では、S8において、WFD=OFFモードであると判断される場合に、WFDネットワークを介して、無線LANI/F20を利用した無線通信を、携帯端末50と一時的に実行するために、WFD=OFFモードからWFD=ONモードに変更する。そして、S25においてWFD=ONモードからWFD=OFFモードに変更されると、S18で構築されたWFDネットワークは消滅する。この構成によれば、通信処理実行中に、モード値がWFD=OFFモードを示すモード値からWFD=ONモードを示すモード値に変更された場合に、モード値を変更前の設定に戻すことができる。 On the other hand, when the management list does not include identification information other than the mobile terminal 50, the communication execution unit 44 determines that the external device does not currently belong to the WFD network (NO in S23). Proceed to S24. In S24, the communication execution unit 44 changes from the mode value indicating the WFD = ON mode to the mode value indicating the WFD = OFF mode, and returns to S2. That is, in the communication process, when it is determined in S8 that the WFD = OFF mode, the wireless communication using the wireless LANI / F20 is temporarily executed with the mobile terminal 50 via the WFD network. , WFD = OFF mode is changed to WFD = ON mode. Then, when the WFD = ON mode is changed to the WFD = OFF mode in S25, the WFD network constructed in S18 disappears. According to this configuration, when the mode value is changed from the mode value indicating WFD = OFF mode to the mode value indicating WFD = ON mode during communication processing execution, the mode value can be returned to the setting before the change. it can.

(本実施例の効果)
図3〜7を参照して、第1〜5の状況における本実施例の効果を説明する。なお、図3〜7のそれぞれには、図2の通信処理において対応する処理が示されている。
(Effect of this example)
The effect of this embodiment in the first to fifth situations will be described with reference to FIGS. 3 to 7. In addition, each of FIGS. 3 to 7 shows a corresponding process in the communication process of FIG.

(第1の状況)
図3に示される第1の状況では、MFP10と携帯端末50とが、同一のWFDネットワーク又は同一の通常Wi−Fiネットワークに現在属している状況である。この状況では、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、S6において、MFP10は、MFP10が現在属しているネットワークに、携帯端末50が現在属していると判断する(S6でYES)。MFP10は、S7において、設定変更不要情報を、NFCI/F22を利用して、携帯端末50に送信する。携帯端末50は、設定変更不要情報を受信すると、設定変更不要情報に含まれるIPアドレスと、ワーク領域58に格納されている無線設定と、を用いて、印刷データを、MFP10に送信する。MFP10は、無線LANI/F20を利用して、印刷データを受信する(S20)。MFP10は、印刷データを受信すると、印刷実行部16に、印刷処理を実行させる。
(First situation)
In the first situation shown in FIG. 3, the MFP 10 and the mobile terminal 50 currently belong to the same WFD network or the same normal Wi-Fi network. In this situation, when the NFC information is received from the mobile terminal 50 using the NFCI / F22, in S6, the MFP 10 determines that the mobile terminal 50 currently belongs to the network to which the MFP 10 currently belongs. (YES in S6). In S7, the MFP 10 transmits the setting change unnecessary information to the mobile terminal 50 by using the NFCI / F22. When the mobile terminal 50 receives the setting change unnecessary information, the mobile terminal 50 transmits the print data to the MFP 10 by using the IP address included in the setting change unnecessary information and the wireless setting stored in the work area 58. The MFP 10 receives print data using the wireless LANI / F20 (S20). Upon receiving the print data, the MFP 10 causes the print execution unit 16 to execute the print process.

なお、本明細書のシーケンス図では、MFP10がNFCI/F22を利用した無線通信(即ちNFC方式に従った無線通信)と、MFP10が無線LANI/F20を利用した無線通信(即ちWFD方式又は通常WiーFiに従った無線通信)とが、矢印で表されている。無線LANI/F20を利用した無線通信を表す矢印は、NFCI/F22を利用した無線通信を表す矢印よりも太く記載されている。 In the sequence diagram of the present specification, the MFP10 uses NFCI / F22 for wireless communication (that is, wireless communication according to the NFC method), and the MFP10 uses wireless LANI / F20 for wireless communication (that is, WFD method or normal Wi). -Wireless communication according to Fi) is indicated by an arrow. The arrow indicating wireless communication using wireless LANI / F20 is drawn thicker than the arrow indicating wireless communication using NFCI / F22.

この構成によれば、MFP10は、MFP10が現在属しているネットワークに、携帯端末50が現在属していると判断される場合に、MFP10と携帯端末50とに現在設定されている無線設定を変更せずに、MFP10と携帯端末50とが、現在属しているネットワークを介して、印刷データの通信を適切に実行することができる。 According to this configuration, the MFP 10 can change the radio settings currently set for the MFP 10 and the mobile terminal 50 when it is determined that the mobile terminal 50 currently belongs to the network to which the MFP 10 currently belongs. Instead, the MFP 10 and the mobile terminal 50 can appropriately communicate print data via the network to which they currently belong.

(第2の状況)
図4に示される第2の状況では、MFP10は、WFDネットワークに現在属している。MFP10は、WFDネットワークにおいて、G/O状態として動作している。WFDネットワークには、クライアント状態のPC8が現在属している。携帯端末50は、MFP10が現在属している無線ネットワークに現在属していない。携帯端末50は、MFP10が現在属している無線ネットワーク以外の無線ネットワークに現在属していてもよいし、属していなくてもよい。
(Second situation)
In the second situation shown in FIG. 4, the MFP10 currently belongs to the WFD network. The MFP 10 is operating in the G / O state in the WFD network. The client-state PC8 currently belongs to the WFD network. The mobile terminal 50 does not currently belong to the wireless network to which the MFP 10 currently belongs. The mobile terminal 50 may or may not currently belong to a wireless network other than the wireless network to which the MFP 10 currently belongs.

この状況では、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、S6において、MFP10は、MFP10が現在属しているWFDネットワークに、携帯端末50が現在属していないと判断する(S6でYES)。なお、NFC情報は、携帯端末50が無線ネットワークに現在属している場合に、当該無線ネットワークのSSIDとBSSIDとを含むが、携帯端末50が無線ネットワークに現在属していない場合に、当該無線ネットワークのSSIDとBSSIDとを含まない。MFP10は、S12において、MFP10がG/O状態であると判断する(S12でYES)。この場合、S16において、MFP10は、ワーク領域38に格納されているMFP10の無線設定と、MFP10のIPアドレスと、を、NFCI/F22を利用して、携帯端末50に送信する。携帯端末50は、無線設定を受信すると、受信された無線設定を、ワーク領域58に格納する。次いで、MFP10と携帯端末50とは、WFD接続を確立する(S18)。これにより、携帯端末50は、MFP10が現在属しているWFDネットワークに属することができる。なお、MFP10は、MFP10の認証方式と暗号化方式とを含む無線設定を、NFCI/F22を利用して、携帯端末50に送信する。この構成によれば、携帯端末50は、MFP10から受信した認証方式と暗号化方式とに従って認証処理を実行することができ、いずれの認証方式と暗号化方式を利用すべきか確認する処理を実行しなくて済む。このため、MFP10と携帯端末50とは、比較的に早期に接続を確立することができる。 In this situation, when the NFC information is received from the mobile terminal 50 using the NFCI / F22, in S6, the MFP 10 states that the mobile terminal 50 does not currently belong to the WFD network to which the MFP 10 currently belongs. Judge (YES in S6). The NFC information includes the SSID and BSSID of the wireless network when the mobile terminal 50 currently belongs to the wireless network, but the NFC information of the wireless network when the mobile terminal 50 does not currently belong to the wireless network. Does not include SSID and BSSID. The MFP10 determines in S12 that the MFP10 is in the G / O state (YES in S12). In this case, in S16, the MFP 10 transmits the wireless setting of the MFP 10 stored in the work area 38 and the IP address of the MFP 10 to the mobile terminal 50 by using the NFCI / F22. When the mobile terminal 50 receives the wireless setting, the mobile terminal 50 stores the received wireless setting in the work area 58. Next, the MFP 10 and the mobile terminal 50 establish a WFD connection (S18). As a result, the mobile terminal 50 can belong to the WFD network to which the MFP 10 currently belongs. The MFP 10 transmits the wireless settings including the authentication method and the encryption method of the MFP 10 to the mobile terminal 50 by using the NFCI / F22. According to this configuration, the mobile terminal 50 can execute the authentication process according to the authentication method and the encryption method received from the MFP 10, and executes the process of confirming which authentication method and encryption method should be used. You don't have to. Therefore, the connection between the MFP 10 and the mobile terminal 50 can be established relatively early.

次いで、携帯端末50は、ワーク領域58に格納されている無線設定と、S16で受信したIPアドレスとを用いて、印刷データを、MFP10に送信する。MFP10は、無線LANI/F20を利用して、印刷データを受信する(S20)。MFP10は、印刷データを受信すると、印刷実行部16に、印刷処理を実行させる。この構成によれば、MFP10は、MFP10が、WFDネットワークにおいて、G/O状態として動作している場合に、MFP10が現在属しているWFDネットワークを介して、携帯端末50と、印刷データの通信を適切に実行することができる。 Next, the mobile terminal 50 transmits the print data to the MFP 10 by using the wireless setting stored in the work area 58 and the IP address received in S16. The MFP 10 receives print data using the wireless LANI / F20 (S20). Upon receiving the print data, the MFP 10 causes the print execution unit 16 to execute the print process. According to this configuration, when the MFP 10 is operating in the G / O state in the WFD network, the MFP 10 communicates print data with the mobile terminal 50 via the WFD network to which the MFP 10 currently belongs. Can be done properly.

(第3の状況)
図5に示される第3の状況では、MFP10は、WFDネットワークに現在属している。MFP10は、WFDネットワークにおいて、クライアント状態として動作している。WFDネットワークには、G/O状態のPC8が現在属しているが、携帯端末50は現在属していない。携帯端末50は、第2の状況と同様である。
(Third situation)
In the third situation shown in FIG. 5, the MFP10 currently belongs to the WFD network. The MFP 10 is operating as a client state in the WFD network. The PC8 in the G / O state currently belongs to the WFD network, but the mobile terminal 50 does not currently belong to it. The mobile terminal 50 is the same as in the second situation.

この状況では、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、S6において、MFP10は、MFP10が現在属しているWFDネットワークに、携帯端末50が現在属していないと判断する(S6でNO)。MFP10は、S10において、MFP10がクライアント状態であると判断する(S10でYES)。この場合、S14において、MFP10は、通信NG情報を、NFCI/F22を利用して、携帯端末50に送信する。 In this situation, when the NFC information is received from the mobile terminal 50 using the NFCI / F22, in S6, the MFP 10 states that the mobile terminal 50 does not currently belong to the WFD network to which the MFP 10 currently belongs. Judge (NO in S6). The MFP10 determines in S10 that the MFP10 is in the client state (YES in S10). In this case, in S14, the MFP 10 transmits the communication NG information to the mobile terminal 50 by using the NFCI / F22.

この場合、MFP10は、ワーク領域38に格納されている無線設定を、携帯端末50に送信しない。この構成によれば、WFDネットワークにおいて、G/O状態として動作しているPC8の無線設定を、携帯端末50に提供せずに済む。これにより、携帯端末50が、WFDネットワークに参入することを抑制することができる。また、携帯端末50は、MFP10から通信NG情報を受信することによって、携帯端末50のユーザに、MFP10が、携帯端末50と目的データの通信を実行しないことを知らせることができる。 In this case, the MFP 10 does not transmit the wireless setting stored in the work area 38 to the mobile terminal 50. According to this configuration, it is not necessary to provide the mobile terminal 50 with the wireless setting of the PC 8 operating in the G / O state in the WFD network. As a result, it is possible to prevent the mobile terminal 50 from entering the WFD network. Further, the mobile terminal 50 can notify the user of the mobile terminal 50 that the MFP 10 does not execute the communication of the target data with the mobile terminal 50 by receiving the communication NG information from the MFP 10.

(第4の状況)
図6に示される第4の状況では、MFP10は、WFD=ONモードに設定されているが、WFDネットワークに現在属していない。即ち、MFP10は、デバイス状態として動作している。なお、MFP10は、通常Wi−Fiネットワークに現在属している状態と現在属していない状態とのいずれかの状態である。携帯端末50は、第2の状況と同様である。
(Fourth situation)
In the fourth situation shown in FIG. 6, the MFP10 is set to WFD = ON mode, but does not currently belong to the WFD network. That is, the MFP 10 is operating as a device state. The MFP 10 is usually in either a state of currently belonging to the Wi-Fi network or a state of not currently belonging to the Wi-Fi network. The mobile terminal 50 is the same as in the second situation.

この状況では、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、S4において、MFP10は、MFP10はネットワークに現在属していないと判断する(S4でNO:MFP10が通常Wi−Fiネットワークに現在属していない状態である場合)か、あるいは、S6において、MFP10は、MFP10が現在属している通常Wi−Fiネットワークに、携帯端末50が現在属していないと判断する(S6でYES:MFP10が通常Wi−Fiネットワークに現在属している状態である場合)。また、MFP10は、S10,S12において、MFP10がG/O状態でもなく、クライアント状態でもないと判断する(S10、S12で共にNO)。この場合、S15において、MFP10は、G/Oネゴシエーションを実行せずに、MFP10を、自発G/Oモードに設定する。 In this situation, when the NFC information is received from the mobile terminal 50 using the NFCI / F22, in S4, the MFP10 determines that the MFP10 does not currently belong to the network (NO in S4: the MFP10 is usually (In the case where it does not currently belong to the Wi-Fi network), or in S6, the MFP10 determines that the mobile terminal 50 does not currently belong to the normal Wi-Fi network to which the MFP10 currently belongs (S6). YES: When the MFP10 is currently in the normal Wi-Fi network). Further, the MFP10 determines in S10 and S12 that the MFP10 is neither in the G / O state nor in the client state (NO in both S10 and S12). In this case, in S15, the MFP 10 sets the MFP 10 to the spontaneous G / O mode without executing the G / O negotiation.

次いで、S16において、MFP10は、ワーク領域38に格納されているMFP10の無線設定(即ち、S15において、自発G/Oモードに設定された段階で準備される無線設定)と、MFP10のIPアドレスと、を、NFCI/F22を利用して、携帯端末50に送信する。携帯端末50は、無線設定を受信すると、受信された無線設定を、ワーク領域58に格納する。次いで、MFP10と携帯端末50とは、WFD接続を確立する(S18)。これにより、携帯端末50は、MFP10がG/O状態として動作しているWFDネットワークに属することができる。 Next, in S16, the MFP 10 uses the wireless setting of the MFP 10 stored in the work area 38 (that is, the wireless setting prepared at the stage of being set to the spontaneous G / O mode in S15) and the IP address of the MFP 10. To the mobile terminal 50 using NFCI / F22. When the mobile terminal 50 receives the wireless setting, the mobile terminal 50 stores the received wireless setting in the work area 58. Next, the MFP 10 and the mobile terminal 50 establish a WFD connection (S18). As a result, the mobile terminal 50 can belong to the WFD network in which the MFP 10 is operating in the G / O state.

次いで、携帯端末50は、ワーク領域58に格納されている無線設定と、S16で受信したIPアドレスとを用いて、印刷データを、MFP10に送信する。MFP10は、無線LANI/F20を利用して、印刷データを受信する(S20)。MFP10は、印刷データを受信すると、印刷実行部16に、印刷処理を実行させる。この構成によれば、MFP10は、MFP10が、WFDネットワークにおいて、G/O状態として動作するWFDネットワークを新たに構築することができる。これにより、MFP10は、新たに構築されるWFDネットワークを介して、携帯端末50と印刷データの通信を適切に実行することができる。さらに、MFP10は、新たに構築されるWFDネットワークにおいて、必然的に、G/O状態として動作するため、WFDネットワークで利用される認証方式等を、決定することができる。 Next, the mobile terminal 50 transmits the print data to the MFP 10 by using the wireless setting stored in the work area 58 and the IP address received in S16. The MFP 10 receives print data using the wireless LANI / F20 (S20). Upon receiving the print data, the MFP 10 causes the print execution unit 16 to execute the print process. According to this configuration, the MFP 10 can newly construct a WFD network in which the MFP 10 operates as a G / O state in the WFD network. As a result, the MFP 10 can appropriately perform communication of print data with the mobile terminal 50 via the newly constructed WFD network. Further, since the MFP 10 inevitably operates in the G / O state in the newly constructed WFD network, the authentication method or the like used in the WFD network can be determined.

(第5の状況)
図7に示される第5の状況では、MFP10は、WFD=OFFモードに設定されている。なお、MFP10は、通常Wi−Fiネットワークに現在属している状態と現在属していない状態とのいずれかの状態である。携帯端末50は、第2の状況と同様である。
(Fifth situation)
In the fifth situation shown in FIG. 7, the MFP 10 is set to WFD = OFF mode. The MFP 10 is usually in either a state of currently belonging to the Wi-Fi network or a state of not currently belonging to the Wi-Fi network. The mobile terminal 50 is the same as in the second situation.

この状況では、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、第4の状況と同様に、S4又はS6において、NOと判断される。MFP10は、S8において、WFD=OFFモードに設定されていると判断する。この場合、S9において、MFP10は、WFD=OFFモードからWFD=ONモードに変更する。次いで、MFP10は、S15において、MFP10を、自発G/Oモードに設定する。 In this situation, when the NFC information is received from the mobile terminal 50 using the NFCI / F22, it is determined as NO in S4 or S6 as in the fourth situation. The MFP10 determines in S8 that the WFD = OFF mode is set. In this case, in S9, the MFP 10 changes from the WFD = OFF mode to the WFD = ON mode. Next, the MFP 10 sets the MFP 10 to the spontaneous G / O mode in S15.

以下、印刷処理までは、第4の状況と同様である。この構成においても、第4の状況と同様の効果を奏することができる。印刷処理が終了すると、MFP10は、新たに構築されたWFDネットワークに、外部装置が現在属していないと判断して(S23でNO)、WFD=ONモードからWFD=OFFモードに変更する。この構成によれば、印刷データの通信後に、WFDネットワークに、外部装置が属していない場合に、WFD=ONモードからWFD=OFFモードに適切に変更することができる。 Hereinafter, the printing process is the same as in the fourth situation. Even in this configuration, the same effect as in the fourth situation can be obtained. When the printing process is completed, the MFP 10 determines that the external device does not currently belong to the newly constructed WFD network (NO in S23), and changes the WFD = ON mode to the WFD = OFF mode. According to this configuration, when the external device does not belong to the WFD network after the communication of the print data, the WFD = ON mode can be appropriately changed to the WFD = OFF mode.

本実施例では、MFP10は、MFP10が、携帯端末50と同一のネットワークに現在属しているのか否か、即ち、MFP10が、携帯端末50と通信可能であるのか否かに応じた処理を実行することによって、無線LANI/F20を利用して、比較的に速い通信速度で、携帯端末50と目的データの無線通信を適切に実行することができる。また、MFP10は、WFDネットワークを介して、携帯端末50と、MFP10と携帯端末50とは異なるアクセスポイントを介さずに、目的データの通信を実行することができる。 In this embodiment, the MFP 10 executes a process according to whether or not the MFP 10 currently belongs to the same network as the mobile terminal 50, that is, whether or not the MFP 10 can communicate with the mobile terminal 50. Thereby, the wireless LANI / F20 can be used to appropriately execute wireless communication between the mobile terminal 50 and the target data at a relatively high communication speed. Further, the MFP 10 can execute the communication of the target data via the WFD network without the mobile terminal 50 and the access point different from the MFP 10 and the mobile terminal 50.

さらに、MFP10は、MFP10が、携帯端末50と通信可能でなく、かつ、MFP10がWFDネットワークに現在属している場合に、MFP10が現在属しているWFDネットワークを介して、携帯端末50と、目的データの通信を適切に実行することができる。また、MFP10がWFDネットワークに現在属していない場合に、MFP10は、新たに構築されるWFDネットワークを介して、携帯端末50と、目的データの通信を適切に実行することができる。 Further, when the MFP 10 cannot communicate with the mobile terminal 50 and the MFP 10 currently belongs to the WFD network, the MFP 10 can use the mobile terminal 50 and the target data via the WFD network to which the MFP 10 currently belongs. Communication can be executed properly. Further, when the MFP 10 does not currently belong to the WFD network, the MFP 10 can appropriately perform communication of the target data with the mobile terminal 50 via the newly constructed WFD network.

(対応関係)
MFP10が「通信装置」の一例であり、NFCI/F22が「第1種のインターフェイス」の一例であり、無線LANI/F20が「第2種のインターフェイス」の一例である。なお、上記の説明から、NFCI/F22(即ち「第1種のインターフェイス」)は、無線LANI/F20(即ち「第2種のインターフェイス」)を利用した通信を実行するために、MFP10(即ち「通信装置」)と携帯端末50との間で実行される通信に用いられるインターフェイスということができる。
(Correspondence)
The MFP 10 is an example of a "communication device", the NFCI / F22 is an example of a "first type interface", and the wireless LANI / F20 is an example of a "second type interface". From the above description, the NFCI / F22 (that is, the "first-class interface") uses the MFP10 (that is, the "first-class interface") to execute communication using the wireless LANI / F20 (that is, the "second-class interface"). It can be said that it is an interface used for communication executed between the "communication device") and the mobile terminal 50.

AP6が、「アクセスポイント」の一例である。即ち、「アクセスポイント」は、アクセスポイントが属するネットワーク、即ち、通常Wi−Fiネットワークにおいて、通常Wi−Fiネットワークに属する一対の機器の間の通信を中継するデバイスである。 AP6 is an example of an "access point". That is, the "access point" is a device that relays communication between a pair of devices belonging to the normal Wi-Fi network in the network to which the access point belongs, that is, the normal Wi-Fi network.

NFC情報が「特定の情報」の一例であり、NFC情報に含まれるSSIDとBSSIDとが、「特定の情報に含まれる無線ネットワーク識別子」である。MFP10が現在属しているネットワークに、携帯端末50が現在属している状態が、「通信可能状態」である。S15〜S18の処理が、「特定処理」の一例である。無線LANI/F20を利用して、WFDネットワークを介した無線通信が「特定の無線通信」の一例である。G/O状態が「親局状態」の一例であり、クライアント状態が「子局状態」の一例である。S4でYESと判断される場合に、MFP10が属しているWFDネットワークが「第1の無線ネットワーク」の一例であり、S15からS18の処理によって構築されるWFDネットワークが、「第2の無線ネットワーク」の一例である。通信NG情報が、「目的データの通信を実行しないことを示す情報」の一例である。WFD=ONモードが「第1のモード」の一例であり、WFD=OFFモードが「第2のモード」の一例である。 The NFC information is an example of "specific information", and the SSID and BSSID included in the NFC information are "radio network identifiers included in the specific information". The state in which the mobile terminal 50 currently belongs to the network to which the MFP 10 currently belongs is the "communication enable state". The processing of S15 to S18 is an example of "specific processing". Wireless communication via a WFD network using wireless LANI / F20 is an example of "specific wireless communication". The G / O state is an example of the "master station state", and the client state is an example of the "slave station state". When YES is determined in S4, the WFD network to which the MFP10 belongs is an example of the "first wireless network", and the WFD network constructed by the processes of S15 to S18 is the "second wireless network". This is an example. The communication NG information is an example of "information indicating that the communication of the target data is not executed". The WFD = ON mode is an example of the "first mode", and the WFD = OFF mode is an example of the "second mode".

(第2実施例)
第1実施例と異なる点を説明する。本実施例では、図2の通信処理の代わりに、図8の通信処理が実行される。図8のS2〜S24は、図2のS2〜S24の処理と同様である。S10でYESの場合、即ち、MFP10が、WFDネットワークに現在属しており、かつ、WFDネットワークにおいて、クライアント状態として動作している場合、S42において、判断部42は、MFP10が現在属しているWFDネットワークから離脱可能であるのか否かを判断する。具体的には、判断部42は、WFDネットワークを介したデータ通信を現在実行している状況と、データ通信を実行すべき状況とのどちらかの状況である場合に、現在属しているWFDネットワークから離脱不可能であると判断する(S42でNO)。一方、判断部42は、WFDネットワークを介したデータ通信を実行している状況と、データ通信を実行すべき状況とのどちらの状況でもない場合に、現在属しているWFDネットワークから離脱可能であると判断する(S42でYES)。
(Second Example)
The points different from the first embodiment will be described. In this embodiment, the communication process of FIG. 8 is executed instead of the communication process of FIG. S2 to S24 in FIG. 8 are the same as the processes in S2 to S24 in FIG. If YES in S10, that is, if the MFP10 currently belongs to the WFD network and is operating as a client state in the WFD network, in S42, the determination unit 42 determines the WFD network to which the MFP10 currently belongs. Determine if it is possible to withdraw from. Specifically, the determination unit 42 currently belongs to the WFD network when it is in either a situation where data communication via the WFD network is currently being executed or a situation in which data communication should be executed. It is judged that it is impossible to withdraw from (NO in S42). On the other hand, the determination unit 42 can leave the WFD network to which it currently belongs when neither the situation of executing the data communication via the WFD network nor the situation of executing the data communication should be performed. (YES in S42).

例えば、MFP10が現在属しているWFDネットワークにおいて、PC8が、G/O状態として動作している場合を想定する。MFP10が、無線LANI/F20を利用して、PC8から現在印刷データを受信中である場合、判断部42は、データ通信を現在実行している状況であると判断する。また、MFP10が、PC8からのスキャン指示に従って、スキャンデータを生成中である場合、MFP10は、スキャンデータが生成されると、無線LANI/F20を利用して、PC8に送信すべきであるため、データ通信を実行すべき状況であると判断する。 For example, assume that the PC 8 is operating in the G / O state in the WFD network to which the MFP 10 currently belongs. When the MFP 10 is currently receiving print data from the PC 8 using the wireless LAN I / F 20, the determination unit 42 determines that the data communication is currently being executed. Further, when the MFP10 is generating scan data according to the scan instruction from the PC8, the MFP10 should transmit the scan data to the PC8 by using the wireless LANI / F20 when the scan data is generated. Judge that it is a situation where data communication should be executed.

S42でNOの場合にS14に進み、S42でYESの場合にS44に進む。S44では、通信実行部44は、MFP10が現在参加しているWFDネットワークから、MFP10を離脱させる。具体的には、通信実行部44は、ワーク領域38に格納されている無線設定を消去し、ワーク領域38内の状態値を、デバイス状態を表す値に変更する。続いて、通信実行部44は、S15の処理を実行する。 If NO in S42, the process proceeds to S14, and if YES in S42, the process proceeds to S44. In S44, the communication execution unit 44 detaches the MFP 10 from the WFD network in which the MFP 10 is currently participating. Specifically, the communication execution unit 44 erases the radio setting stored in the work area 38, and changes the state value in the work area 38 to a value indicating the device state. Subsequently, the communication execution unit 44 executes the process of S15.

(本実施例の効果)
第2実施例のMFP10は、第1,2,4,5の状況において、第1実施例のMFP10と同様の効果を奏することができる。図9,10を参照して、第6,7の状況における本実施例の効果を説明する。なお、図9,10のそれぞれには、図8の通信処理において対応する処理が示されている。
(Effect of this example)
The MFP 10 of the second embodiment can exert the same effect as the MFP 10 of the first embodiment in the situations of the first, second, fourth and fifth embodiments. The effects of this embodiment in the sixth and seventh situations will be described with reference to FIGS. 9 and 10. Note that each of FIGS. 9 and 10 shows a corresponding process in the communication process of FIG.

(第6の状況)
図9に示される第6の状況では、MFP10は、WFDネットワークに現在属している。MFP10は、WFDネットワークにおいて、クライアント状態として動作している。WFDネットワークには、G/O状態のPC8が現在属しているが、携帯端末50は現在属していない。携帯端末50は、第2の状況と同様である。さらに、MFP10は、PC8から印刷データを受信中である。
(Sixth situation)
In the sixth situation shown in FIG. 9, the MFP 10 currently belongs to the WFD network. The MFP 10 is operating as a client state in the WFD network. The PC8 in the G / O state currently belongs to the WFD network, but the mobile terminal 50 does not currently belong to it. The mobile terminal 50 is the same as in the second situation. Further, the MFP 10 is receiving print data from the PC 8.

この状況では、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、第3の状況と同様に、S6でNOと判断され、S10でYESと判断される。MFP10は、PC8から印刷データを受信中であるため、WFDネットワークから離脱不可能であると判断する(S42でNO)。この場合、S14において、MFP10は、通信NG情報を、NFCI/F22を介して、携帯端末50に送信する。 In this situation, when the NFC information is received from the mobile terminal 50 using the NFCI / F22, it is determined as NO in S6 and YES in S10 as in the third situation. Since the MFP 10 is receiving print data from the PC 8, it determines that it cannot leave the WFD network (NO in S42). In this case, in S14, the MFP 10 transmits the communication NG information to the mobile terminal 50 via the NFCI / F22.

この構成によれば、MFP10は、現在属しているWFDネットワークを介して、データ通信を実行中である場合、あるいは、現在属しているWFDネットワークを介して、データ通信を実行すべき場合に、MFP10が、現在属しているWFDネットワークから離脱することを防止することができる。 According to this configuration, the MFP 10 is executing data communication via the WFD network to which it currently belongs, or when data communication should be executed via the WFD network to which it currently belongs. However, it is possible to prevent the user from leaving the WFD network to which he / she currently belongs.

(第7の状況)
図10に示される第7の状況では、MFP10は、WFDネットワークに現在属している。MFP10は、WFDネットワークにおいて、クライアント状態として動作している。WFDネットワークには、G/O状態のPC8が現在属しているが、携帯端末50は現在属していない。しかしながら、MFP10は、PC8とデータ通信を現在実行しておらず、PC8とデータ通信を実行すべき状況でもない。携帯端末50は、第2の状況と同様である。
(7th situation)
In the seventh situation shown in FIG. 10, the MFP 10 currently belongs to the WFD network. The MFP 10 is operating as a client state in the WFD network. The PC8 in the G / O state currently belongs to the WFD network, but the mobile terminal 50 does not currently belong to it. However, the MFP 10 is not currently performing data communication with the PC 8, and is not in a situation where data communication should be performed with the PC 8. The mobile terminal 50 is the same as in the second situation.

この状況では、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、第6の状況と同様に、S6でNOと判断され、S10でYESと判断される。MFP10は、WFDネットワークを介したデータ通信を実行している状況と、データ通信を実行すべき状況とのどちらの状況でもないために、MFP10は、現在属しいているWFDネットワークから離脱可能であると判断する(S42でYES)。この場合、S15において、MFP10は、MFP10を、自発G/Oモードに設定する。以下の処理は、第4の状況において、MFP10が自発G/Oモードに設定された後の処理と同様である。 In this situation, when the NFC information is received from the mobile terminal 50 using the NFCI / F22, it is determined as NO in S6 and YES in S10 as in the sixth situation. Since the MFP10 is neither in a situation where data communication is being executed via the WFD network nor in a situation where data communication should be executed, the MFP10 is said to be able to leave the WFD network to which it currently belongs. Judge (YES in S42). In this case, in S15, the MFP 10 sets the MFP 10 to the spontaneous G / O mode. The following processing is the same as the processing after the MFP 10 is set to the spontaneous G / O mode in the fourth situation.

この構成によれば、MFP10は、MFP10がクライアント状態として動作しているWFDネットワークから離脱し、新たに、WFDネットワークを構築することができる。これにより、MFP10は、新たに構築されるWFDネットワークを介して、携帯端末50と、目的データの通信を適切に実行することができる。 According to this configuration, the MFP 10 can leave the WFD network in which the MFP 10 is operating as a client state and newly construct a WFD network. As a result, the MFP 10 can appropriately communicate the target data with the mobile terminal 50 via the newly constructed WFD network.

(対応関係)
図8のS42、S44の処理とS15〜S18の処理とが、「特定処理」の一例である。
(Correspondence)
The processes S42 and S44 and the processes S15 to S18 in FIG. 8 are examples of the “specific process”.

(第3実施例)
第1実施例と異なる点を説明する。本実施例では、図2の通信処理の代わりに、図11の通信処理が実行される。なお、本実施例では、携帯端末50は、携帯端末50が、WFD方式に従った無線通信を実行可能であるのか否かを示すWFD対応情報と、携帯端末50のデバイスID(例えばMACアドレス、製造番号等)と、をさらに含むNFC情報を、MFP10に送信する。
(Third Example)
The points different from the first embodiment will be described. In this embodiment, the communication process of FIG. 11 is executed instead of the communication process of FIG. In this embodiment, the mobile terminal 50 includes WFD correspondence information indicating whether or not the mobile terminal 50 can execute wireless communication according to the WFD method, and a device ID (for example, MAC address, etc.) of the mobile terminal 50. NFC information including the serial number, etc.) is transmitted to the MFP 10.

図11のS2〜S24は、図2のS4〜24の処理と同様である。S9の処理が実行される場合と、S12でNOと判断される場合、即ち、MFP10が、デバイス状態として動作している場合に、S52において、判断部42は、NFC情報を用いて、携帯端末50がWFD方式に従った無線通信を実行可能であるのか否かを判断する。判断部42は、NFC情報に、携帯端末50がWFD方式に従った無線通信を実行可能であることを示すWFD対応情報が含まれている場合に、携帯端末50がWFD方式に従った無線通信を実行可能であると判断して(S52でYES)、S54に進む。 S2 to S24 of FIG. 11 are the same as the processes of S4 to 24 of FIG. When the processing of S9 is executed and when it is determined as NO in S12, that is, when the MFP10 is operating as a device state, in S52, the determination unit 42 uses the NFC information to use the mobile terminal. 50 determines whether or not wireless communication according to the WFD method can be executed. When the NFC information includes WFD-compatible information indicating that the mobile terminal 50 can perform wireless communication according to the WFD method, the determination unit 42 determines that the mobile terminal 50 performs wireless communication according to the WFD method. Is determined to be feasible (YES in S52), and the process proceeds to S54.

一方、判断部42は、NFC情報に、携帯端末50がWFD方式に従った無線通信を実行可能であることを示すWFD対応情報が含まれていない場合に、携帯端末50がWFD方式に従った無線通信を実行可能でないと判断して(S52でNO)、S15に進む。 On the other hand, the determination unit 42 follows the WFD method when the NFC information does not include WFD-compatible information indicating that the mobile terminal 50 can execute wireless communication according to the WFD method. It is determined that wireless communication is not feasible (NO in S52), and the process proceeds to S15.

S54では、通信実行部44は、WFD接続を開始することを示すWFD接続開始情報を、NFCI/F22を介して、携帯端末50に送信する。WFD方式の無線接続を実行するための方式として、WPS(Wi-Fi Protected Setupの略)の無線接続方式が利用される。WPSの無線接続方式は、PBC(Push Button Configurationの略)方式と、PIN(Personal Identification Numberの略)コード方式と、を含む。本実施例では、PBCコード方式について説明するが、本実施例の技術は、PINコード方式にも適用可能である。WFD接続開始情報は、WFD方式の無線接続を実行するための方式として、PBCコード方式を利用することを示す情報を含む。WFD接続開始情報は、さらに、MFP10のデバイスID(例えばMACアドレス、製造番号等)を含む。これにより、WFD接続開始情報を受信する携帯端末50は、WFD接続開始情報に含まれるデバイスIDで識別される機器(即ちMFP10)と後述のS58,S62の処理を実行すべきであると認識することができる。 In S54, the communication execution unit 44 transmits the WFD connection start information indicating that the WFD connection is started to the mobile terminal 50 via the NFCI / F22. As a method for executing the wireless connection of the WFD method, the wireless connection method of WPS (abbreviation of Wi-Fi Protected Setup) is used. The WPS wireless connection method includes a PBC (abbreviation of Push Button Configuration) method and a PIN (abbreviation of Personal Identification Number) code method. In this embodiment, the PBC code method will be described, but the technique of this embodiment can also be applied to the PIN code method. The WFD connection start information includes information indicating that the PBC code method is used as the method for executing the wireless connection of the WFD method. The WFD connection start information further includes the device ID (for example, MAC address, serial number, etc.) of the MFP 10. As a result, the mobile terminal 50 that receives the WFD connection start information recognizes that the device (that is, the MFP10) identified by the device ID included in the WFD connection start information and the processes of S58 and S62 described later should be executed. be able to.

携帯端末50は、WFD接続開始情報が受信されると、携帯端末50が、WFD方式に従った無線通信を実行可能な設定であるのか否かを判断する。携帯端末50は、WFD方式に従った無線通信を実行可能な設定である場合、無線LANI/Fの設定を維持し、WFD方式に従った無線通信を実行可能な設定でない場合、WFD方式に従った無線通信を実行可能な設定に変更する。 When the WFD connection start information is received, the mobile terminal 50 determines whether or not the mobile terminal 50 is set to execute wireless communication according to the WFD method. The mobile terminal 50 maintains the wireless LANI / F setting when the setting is such that wireless communication according to the WFD method can be executed, and follows the WFD method when the setting is not such that wireless communication according to the WFD method can be executed. Change the wireless communication settings so that they can be executed.

次いで、S55では、通信実行部44は、携帯端末50を検索する。具体的には、通信実行部44は、Scan処理とListen処理とSearch処理を順次実行する。Scan処理は、MFP10の周囲に存在するG/O状態の機器を検索するための処理である。具体的に言うと、通信実行部44は、Scan処理において、1ch〜13chの13個のチャネルを順次利用して、Probe Request信号を無線で順次送信する。なお、このProbe Request信号は、MFP10がWFD機能を実行可能であることを示すP2P(Peer 2 Peer)情報を含む。 Next, in S55, the communication execution unit 44 searches for the mobile terminal 50. Specifically, the communication execution unit 44 sequentially executes the Scan process, the Listen process, and the Search process. The Scan process is a process for searching for devices in the G / O state existing around the MFP 10. Specifically, the communication execution unit 44 sequentially uses 13 channels of 1ch to 13ch in the Scan process, and sequentially transmits the Probe Request signal wirelessly. The Probe Request signal includes P2P (Peer 2 Peer) information indicating that the MFP 10 can execute the WFD function.

例えば、MFP10の周囲にG/O状態のWFD対応機器(以下では「特定のG/O機器」と呼ぶ)が存在する場合には、特定のG/O機器は、1ch〜13chのうちの1個のチャネルを利用することを予め決定している。従って、特定のG/O機器は、MFP10からProbe Request信号を無線で受信する。この場合、特定のG/O機器は、Probe Response信号をMFP10に無線で送信する。このProbe Response信号は、特定のG/O機器がWFD機能を実行可能であることを示すP2P情報と、特定のG/O機器がG/O状態であることを示す情報と、を含む。この結果、通信実行部44は、特定のG/O機器を見つけることができる。なお、上記のProbe Response信号は、さらに、特定のG/O機器のデバイス名と、特定のG/O機器の機種(例えば、携帯端末、PC等)を示す情報と、特定のG/O機器のMACアドレスと、を含む。この結果、通信実行部44は、特定のG/O機器に関する情報を取得することができる。 For example, when there is a WFD compatible device in the G / O state (hereinafter referred to as "specific G / O device") around the MFP 10, the specific G / O device is one of 1ch to 13ch. It is decided in advance to use the individual channels. Therefore, the specific G / O device wirelessly receives the Probe Request signal from the MFP 10. In this case, the specific G / O device wirelessly transmits the Probe Response signal to the MFP 10. This Probe Response signal includes P2P information indicating that the specific G / O device can execute the WFD function, and information indicating that the specific G / O device is in the G / O state. As a result, the communication execution unit 44 can find a specific G / O device. In addition, the above-mentioned Probe Response signal further includes a device name of a specific G / O device, information indicating a model of the specific G / O device (for example, a mobile terminal, a PC, etc.), and a specific G / O device. Includes the MAC address of. As a result, the communication execution unit 44 can acquire information about a specific G / O device.

通信実行部44は、Probe Response信号に含まれる特定のG/O機器のデバイスIDと、NFC情報に含まれる携帯端末50のデバイスIDとが一致する場合に、特定のG/O機器は、携帯端末50であることを特定することができる。即ち、携帯端末50が、WFDネットワークに現在属しており、かつ、WFDネットワークにおいて、G/O状態として動作している場合、通信実行部44は、Scan処理によって、携帯端末50を発見することができる。 When the device ID of the specific G / O device included in the Probe Response signal and the device ID of the mobile terminal 50 included in the NFC information match, the communication execution unit 44 carries the specific G / O device. It can be specified that it is the terminal 50. That is, when the mobile terminal 50 currently belongs to the WFD network and is operating in the G / O state in the WFD network, the communication execution unit 44 may discover the mobile terminal 50 by Scan processing. it can.

なお、例えば、MFP10の周囲にデバイス状態のWFD対応機器(以下では「特定のデバイス機器」と呼ぶ)が存在する場合には、特定のデバイス機器は、1ch、6ch、11chのうちの1個のチャネルを利用することを予め決定している。従って、特定のデバイス機器も、MFP10からProbe Request信号を無線で受信する。この場合、特定のデバイス機器は、Probe Response信号を、MFP10に無線で送信する。ただし、このProbe Response信号は、デバイス状態であることを示す情報を含み、G/O状態であることを示す情報を含まない。また、クライアント状態の機器は、MFP10からProbe Request信号を無線で受信しても、Probe Response信号をMFP10に無線で送信しない。従って、通信実行部44は、携帯端末50が、G/O状態である場合もデバイス状態である場合も、Scan処理において、携帯端末50を発見することができる。 For example, when there is a WFD compatible device in a device state (hereinafter referred to as "specific device device") around the MFP 10, the specific device device is one of 1ch, 6ch, and 11ch. It is decided in advance to use the channel. Therefore, the specific device also receives the Probe Request signal wirelessly from the MFP 10. In this case, the specific device device wirelessly transmits the Probe Response signal to the MFP 10. However, this Probe Response signal includes information indicating that the device is in the device state, and does not include information indicating that the device is in the G / O state. Further, even if the device in the client state wirelessly receives the Probe Request signal from the MFP 10, the device does not wirelessly transmit the Probe Response signal to the MFP 10. Therefore, the communication execution unit 44 can discover the mobile terminal 50 in the Scan process regardless of whether the mobile terminal 50 is in the G / O state or the device state.

Listen処理は、Probe Request信号に応答するための処理である。特定のデバイス機器は、後述のSearch処理において、Probe Request信号を無線で送信することができる。即ち、携帯端末50の現在の状態が、デバイス状態である場合、携帯端末50は、Probe Request信号を無線で、定期的に送信している。このProbe Request信号は、携帯端末50のデバイスID(例えばMACアドレス、製造番号等)を含む。 The Listen process is a process for responding to a Probe Request signal. A specific device device can wirelessly transmit a probe request signal in the search process described later. That is, when the current state of the mobile terminal 50 is the device state, the mobile terminal 50 periodically transmits the Probe Request signal wirelessly. This Probe Request signal includes the device ID (for example, MAC address, serial number, etc.) of the mobile terminal 50.

通信実行部44は、Probe Request信号に含まれる特定のデバイス機器のデバイスIDと、NFC情報に含まれる携帯端末50のデバイスIDとが一致する場合に、特定のデバイス機器は、携帯端末50であることを特定することができる。即ち、携帯端末50が、デバイス状態として動作している場合、通信実行部44は、Listen処理によって、携帯端末50を発見することができる。通信実行部44は、携帯端末50からProbe Request信号を受信すると、Probe Response信号を無線で送信する。 When the device ID of the specific device device included in the Probe Request signal and the device ID of the mobile terminal 50 included in the NFC information match, the communication execution unit 44 means that the specific device device is the mobile terminal 50. Can be identified. That is, when the mobile terminal 50 is operating as a device state, the communication execution unit 44 can discover the mobile terminal 50 by the Listen process. When the communication execution unit 44 receives the Probe Request signal from the mobile terminal 50, the communication execution unit 44 wirelessly transmits the Probe Response signal.

Search処理では、通信実行部44は、1ch、6ch、11chの3個のチャネルを順次利用して、Probe Request信号を無線で順次送信する。これにより、通信実行部44は、特定のデバイス機器からProbe Response信号を無線で受信する。このProbe Response信号は、特定のデバイス機器がWFD機能を実行可能であることを示すP2P情報と、特定のデバイス機器がデバイス状態であることを示す情報と、特定のデバイス機器のデバイスID(例えばMACアドレス、製造番号等)と、を含む。携帯端末50の現在の状態が、デバイス状態である場合、携帯端末50は、MFP10から送信されたProbe Request信号の応答として、Probe Response信号を無線で送信する。 In the search process, the communication execution unit 44 sequentially uses the three channels of 1ch, 6ch, and 11ch to sequentially transmit the Probe Request signal wirelessly. As a result, the communication execution unit 44 wirelessly receives the Probe Response signal from the specific device device. This Probe Response signal includes P2P information indicating that a specific device device can execute the WFD function, information indicating that the specific device device is in the device state, and a device ID (for example, MAC) of the specific device device. Address, serial number, etc.) and. When the current state of the mobile terminal 50 is the device state, the mobile terminal 50 wirelessly transmits a Probe Response signal in response to the Probe Request signal transmitted from the MFP 10.

通信実行部44は、Probe Response信号に含まれる特定のデバイス機器のデバイスIDと、NFC情報に含まれる携帯端末50のデバイスIDとが一致する場合に、特定のデバイス機器は、携帯端末50であることを特定することができる。即ち、携帯端末50が、WFDネットワークに現在属しており、かつ、WFDネットワークにおいて、デバイス状態として動作している場合、通信実行部44は、Search処理によって、携帯端末50を発見することができる。 When the device ID of the specific device device included in the Probe Response signal and the device ID of the mobile terminal 50 included in the NFC information match, the communication execution unit 44 means that the specific device device is the mobile terminal 50. Can be identified. That is, when the mobile terminal 50 currently belongs to the WFD network and is operating as a device state in the WFD network, the communication execution unit 44 can discover the mobile terminal 50 by the search process.

上記のS55では、携帯端末50が、G/O状態として動作している場合とデバイス状態として動作している場合には、通信実行部44は、携帯端末50を発見することができる(S56でYES)。S56において、携帯端末50が発見されなかった場合(S56でNO)、S14に進む。 In S55 described above, when the mobile terminal 50 is operating in the G / O state and in the device state, the communication execution unit 44 can find the mobile terminal 50 (in S56). YES). If the mobile terminal 50 is not found in S56 (NO in S56), the process proceeds to S14.

携帯端末50が発見される場合(S56でYES)、S57において、通信実行部44は、発見された携帯端末50がデバイス状態であるか否かを判断する。具体的には、S55の処理で、デバイス状態であることを示す情報が受信される場合に、携帯端末50が、デバイス状態であると判断し(S57でYES)、S58に進む。一方、S55の処理で、デバイス状態であることを示す情報が受信されない場合に、携帯端末50が、デバイス状態でない(即ち携帯端末50はG/O状態である)と判断し(S57でNO)、S62に進む。 When the mobile terminal 50 is found (YES in S56), in S57, the communication execution unit 44 determines whether or not the found mobile terminal 50 is in the device state. Specifically, when the processing of S55 receives information indicating that the device is in the device state, the mobile terminal 50 determines that the device is in the device state (YES in S57), and proceeds to S58. On the other hand, when the processing indicating that the device is in the device state is not received in the process of S55, it is determined that the mobile terminal 50 is not in the device state (that is, the mobile terminal 50 is in the G / O state) (NO in S57). , Proceed to S62.

S58において、通信実行部44は、無線LANI/F20を利用して、携帯端末50との間でG/Oネゴシエーションを実行して、MFP10及び携帯端末50のどちらか一方の機器をG/O状態として動作することを決定し、他方の機器をクライアント状態として動作することを決定する。 In S58, the communication execution unit 44 executes G / O negotiation with the mobile terminal 50 by using the wireless LANI / F20, and puts either the MFP 10 or the mobile terminal 50 in the G / O state. And decide to operate the other device as a client state.

具体的に言うと、通信実行部44は、まず、接続要求信号を携帯端末50に無線で送信する。この結果、携帯端末50も、OK信号をMFP10に無線で送信する。次いで、通信実行部44は、MFP10のG/O優先度を示す情報を携帯端末50に無線で送信すると共に、携帯端末50のG/O優先度を示す情報を携帯端末50から受信する。なお、MFP10のG/O優先度は、MFP10がG/Oになるべき程度を示す指標であり、MFP10において予め決められている。同様に、携帯端末50のG/O優先度は、携帯端末50がG/Oになるべき程度を示す指標である。例えば、CPU及びメモリの能力が比較的に高い機器(例えばMFP10)は、G/Oとして動作しながら、他の処理を高速で実行することができる。従って、このような機器は、通常、G/Oになるべき程度が高くなるように、G/O優先度が設定される。一方において、例えば、CPU及びメモリの能力が比較的に低い機器(例えば携帯端末50)は、G/Oとして動作しながら、他の処理を高速で実行することができない可能性がある。従って、このような機器は、通常、G/Oになるべき程度が低くなるように、G/O優先度が設定される。 Specifically, the communication execution unit 44 first wirelessly transmits a connection request signal to the mobile terminal 50. As a result, the mobile terminal 50 also wirelessly transmits the OK signal to the MFP 10. Next, the communication execution unit 44 wirelessly transmits information indicating the G / O priority of the MFP 10 to the mobile terminal 50, and receives information indicating the G / O priority of the mobile terminal 50 from the mobile terminal 50. The G / O priority of the MFP 10 is an index indicating the degree to which the MFP 10 should become a G / O, and is predetermined in the MFP 10. Similarly, the G / O priority of the mobile terminal 50 is an index indicating the degree to which the mobile terminal 50 should be G / O. For example, a device having a relatively high CPU and memory capacity (for example, MFP10) can execute other processes at high speed while operating as a G / O. Therefore, in such a device, the G / O priority is usually set so that the degree to which it should be G / O is high. On the other hand, for example, a device having a relatively low CPU and memory capacity (for example, a mobile terminal 50) may not be able to execute other processes at high speed while operating as a G / O. Therefore, in such a device, the G / O priority is usually set so that the degree to which it should be G / O is low.

通信実行部44は、MFP10のG/O優先度と携帯端末50のG/O優先度とを比較して、優先度が高い方の機器(MFP10又は携帯端末50)をG/O状態として動作すべきことを決定し、優先度が低い方の機器(MFP10又は携帯端末50)をクライアント状態として動作すべきことを決定する。通信実行部44は、MFP10がG/O状態として動作すべきことを決定した場合に、メモリ34内の状態値を、デバイス状態に対応する値から、G/O状態に対応する値に変更する。この結果、MFP10は、G/O状態として動作することになる。また、通信実行部44は、MFP10がクライアント状態として動作すべきことを決定した場合に、メモリ34内の状態値を、デバイス状態に対応する値から、クライント状態に対応する値に変更する。この結果、MFP10は、クライアント状態として動作することになる。なお、携帯端末50は、MFP10と同じ手法を利用して、MFP10のG/O優先度と対象機器のG/O優先度とに基づいて、G/O状態及びクライアント状態を決定する。S58のG/Oネゴシエーションが終了すると、S62に進む。 The communication execution unit 44 compares the G / O priority of the MFP 10 with the G / O priority of the mobile terminal 50, and operates the device (MFP 10 or the mobile terminal 50) having the higher priority as the G / O state. It decides what to do and decides that the device with the lower priority (MFP10 or mobile terminal 50) should operate in the client state. When the communication execution unit 44 determines that the MFP 10 should operate in the G / O state, the communication execution unit 44 changes the state value in the memory 34 from the value corresponding to the device state to the value corresponding to the G / O state. .. As a result, the MFP 10 operates in the G / O state. Further, when the communication execution unit 44 determines that the MFP 10 should operate as the client state, the communication execution unit 44 changes the state value in the memory 34 from the value corresponding to the device state to the value corresponding to the client state. As a result, the MFP 10 operates as a client state. The mobile terminal 50 determines the G / O state and the client state based on the G / O priority of the MFP 10 and the G / O priority of the target device by using the same method as the MFP 10. When the G / O negotiation of S58 is completed, the process proceeds to S62.

S62では、通信実行部44は、WPSに従って、MFP10と携帯端末50との接続を確立する。具体的には、通信実行部44は、MFP10の現在の状態がG/O状態であり、かつ、携帯端末50の現在の状態がクライアント状態であるのか否かを判断する。MFP10の現在の状態がG/O状態であり、かつ、携帯端末50の現在の状態がクライアント状態である場合には、通信実行部44は、G/O状態用のWPSネゴシエーションを実行する。 In S62, the communication execution unit 44 establishes the connection between the MFP 10 and the mobile terminal 50 according to the WPS. Specifically, the communication execution unit 44 determines whether or not the current state of the MFP 10 is the G / O state and the current state of the mobile terminal 50 is the client state. When the current state of the MFP 10 is the G / O state and the current state of the mobile terminal 50 is the client state, the communication execution unit 44 executes WPS negotiation for the G / O state.

具体的には、通信実行部44は、無線接続を確立するために必要な無線設定(SSID、認証方式、暗号化方式、パスワード等)を生成して、携帯端末50に無線で送信する。なお、認証方式及び暗号化方式は、予め決められている。また、通信実行部44は、無線設定を生成する際にパスワードを生成する。なお、SSIDは、通信実行部44によって生成されてもよいし、予め決められていてもよい。無線設定が携帯端末50に送信されることにより、MFP10及び携帯端末50が同じ無線設定を利用することができる。即ち、MFP10及び携帯端末50は、無線設定を用いて、Authentication Request、Authentication Response、Association Request、Association Response、及び、4way handshakeの無線通信を実行する。この過程で、MFP10及び携帯端末50は、SSIDの認証、認証方式及び暗号化方式の認証、パスワードの認証等を様々な認証処理を実行する。全ての認証が成功した場合に、MFP10及び携帯端末50の間に無線接続が確立される。これにより、MFP10と携帯端末50とは、同一のWFDネットワークに属する状態となる。 Specifically, the communication execution unit 44 generates wireless settings (SSID, authentication method, encryption method, password, etc.) necessary for establishing a wireless connection, and wirelessly transmits them to the mobile terminal 50. The authentication method and the encryption method are predetermined. In addition, the communication execution unit 44 generates a password when generating a wireless setting. The SSID may be generated by the communication execution unit 44 or may be predetermined. By transmitting the wireless setting to the mobile terminal 50, the MFP 10 and the mobile terminal 50 can use the same wireless setting. That is, the MFP 10 and the mobile terminal 50 use the wireless settings to execute wireless communication of the Authentication Request, the Authentication Response, the Authentication Request, the Response Response, and the 4-way handshake. In this process, the MFP 10 and the mobile terminal 50 execute various authentication processes such as SSID authentication, authentication method and encryption method authentication, and password authentication. If all authentications are successful, a wireless connection is established between the MFP 10 and the mobile terminal 50. As a result, the MFP 10 and the mobile terminal 50 are in a state of belonging to the same WFD network.

一方において、MFP10の現在の状態がクライアント状態であり、かつ、対象機器の現在の状態がG/O状態である場合には、通信実行部44は、クライアント状態用のWPSネゴシエーションを実行する。具体的に言うと、携帯端末50は、無線接続を確立するために必要な無線設定(SSID、認証方式、暗号化方式、パスワード等)を生成して、MFP10に無線で送信する。この結果、通信実行部44は、無線設定を携帯端末50から無線で受信する。その後の処理(Authentication Request等の通信処理)は、G/O状態用のWPSネゴシエーションと同様である。これにより、MFP10と携帯端末50とは、同一のWFDネットワークに属する状態となる。この結果、クライアント状態のMFP10は、G/O状態の携帯端末50との間で、目的データ(印刷データ等)の無線通信を実行することができるようになる。S62が終了すると、制御部30は、図2のS20〜S24の処理を実行して、通信処理を終了する。 On the other hand, when the current state of the MFP 10 is the client state and the current state of the target device is the G / O state, the communication execution unit 44 executes WPS negotiation for the client state. Specifically, the mobile terminal 50 generates wireless settings (SSID, authentication method, encryption method, password, etc.) necessary for establishing a wireless connection, and wirelessly transmits them to the MFP 10. As a result, the communication execution unit 44 wirelessly receives the wireless setting from the mobile terminal 50. Subsequent processing (communication processing such as Authentication Request) is the same as WPS negotiation for the G / O state. As a result, the MFP 10 and the mobile terminal 50 are in a state of belonging to the same WFD network. As a result, the MFP 10 in the client state can execute wireless communication of target data (print data, etc.) with the mobile terminal 50 in the G / O state. When S62 ends, the control unit 30 executes the processes of S20 to S24 of FIG. 2 to end the communication process.

(本実施例の効果)
第3実施例のMFP10は、第1〜3の状況において、第1実施例のMFP10と同様の効果を奏することができる。図12,13を参照して、第8,9の状況における本実施例の効果を説明する。なお、図12,13のそれぞれには、図11の通信処理において対応する処理が示されている。
(Effect of this example)
The MFP 10 of the third embodiment can exert the same effect as the MFP 10 of the first embodiment in the first to third situations. The effects of this embodiment in the 8th and 9th situations will be described with reference to FIGS. 12 and 13. Note that each of FIGS. 12 and 13 shows the corresponding processing in the communication processing of FIG.

(第8の状況)
図12に示される第8の状況では、MFP10は、WFD=ONモードに設定されているが、WFDネットワークに現在属していない。即ち、MFP10は、デバイス状態として動作している。なお、MFP10は、通常Wi−Fiネットワークに現在属している状態と現在属していない状態とのいずれかの状態である。携帯端末50は、無線ネットワークに現在属していない。
(Eighth situation)
In the eighth situation shown in FIG. 12, the MFP 10 is set to WFD = ON mode but does not currently belong to the WFD network. That is, the MFP 10 is operating as a device state. The MFP 10 is usually in either a state of currently belonging to the Wi-Fi network or a state of not currently belonging to the Wi-Fi network. The mobile terminal 50 does not currently belong to the wireless network.

この状況では、MFP10は、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、第4の状況と同様に、S4又はS6でNOと判断し、S10及びS12でNOと判断する。 In this situation, when the MFP10 receives the NFC information from the mobile terminal 50 using the NFCI / F22, it determines NO in S4 or S6 and NO in S10 and S12 as in the fourth situation. Judge.

MFP10は、WFD接続開始情報を、無線LANI/F20を利用して、携帯端末50に送信する(S54)。次いで、MFP10は、S55の検索処理を行って携帯端末50を検索する。MFP10は、携帯端末50を発見すると(56でYES)、発見された携帯端末50がデバイス状態であるかを判断する(S57)。デバイス状態であると判断すると(S57でYES)、G/Oネゴシエーション(S58)及びWPSネゴシエーション(S62)とを、無線LANI/F20を利用して実行する。これにより、MFP10と携帯端末50とが属するWFDネットワークが構築される。 The MFP 10 transmits the WFD connection start information to the mobile terminal 50 by using the wireless LANI / F20 (S54). Next, the MFP 10 performs the search process of S55 to search the mobile terminal 50. When the MFP 10 discovers the mobile terminal 50 (YES in 56), the MFP 10 determines whether the discovered mobile terminal 50 is in the device state (S57). When it is determined that the device is in the device state (YES in S57), G / O negotiation (S58) and WPS negotiation (S62) are executed by using the wireless LANI / F20. As a result, a WFD network to which the MFP 10 and the mobile terminal 50 belong is constructed.

次いで、携帯端末50は、印刷データを、MFP10に送信する。MFP10は、無線LANI/F20を利用して、印刷データを受信する(S20)。MFP10は、印刷データを受信すると、印刷実行部16に、印刷処理を実行させる。 Next, the mobile terminal 50 transmits the print data to the MFP 10. The MFP 10 receives print data using the wireless LANI / F20 (S20). Upon receiving the print data, the MFP 10 causes the print execution unit 16 to execute the print process.

(第9の状況)
図13の第9の状況では、MFP10は、WFD=OFFモードに設定されている。なお、MFP10は、通常Wi−Fiネットワークに現在属している状態と現在属していない状態とのいずれかの状態である。携帯端末50は、無線ネットワークに現在属していない。
(Ninth situation)
In the ninth situation of FIG. 13, the MFP 10 is set to the WFD = OFF mode. The MFP 10 is usually in either a state of currently belonging to the Wi-Fi network or a state of not currently belonging to the Wi-Fi network. The mobile terminal 50 does not currently belong to the wireless network.

この状況では、MFP10は、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、第5の状況と同様に、S4又はS6でNOと判断し、S8でNOと判断する。この場合、S9において、MFP10は、WFD=OFFモードからWFD=ONモードに変更する。 In this situation, when the MFP10 receives the NFC information from the mobile terminal 50 using the NFCI / F22, it determines NO in S4 or S6 and NO in S8 as in the fifth situation. To do. In this case, in S9, the MFP 10 changes from the WFD = OFF mode to the WFD = ON mode.

WFD=OFFモードからWFD=ONモードに変更後、印刷処理までに実行される処理は、第8の状況において、S10及びS12でNOと判断された後、印刷処理が実行されるまでの処理と同様である。印刷処理が終了すると、MFP10は、新たに構築されたWFDネットワークに、外部装置が現在属していないと判断すると(S23でNO)、WFD=ONモードからWFD=OFFモードに変更する。この構成によれば、印刷データの通信後に、WFDネットワークに、外部装置が属していない場合に、WFD=ONモードからWFD=OFFモードに適切に変更することができる。 The process executed until the print process after changing from the WFD = OFF mode to the WFD = ON mode is the process from the determination of NO in S10 and S12 to the execution of the print process in the eighth situation. The same is true. When the printing process is completed, the MFP 10 changes from the WFD = ON mode to the WFD = OFF mode when it determines that the external device does not currently belong to the newly constructed WFD network (NO in S23). According to this configuration, when the external device does not belong to the WFD network after the communication of the print data, the WFD = ON mode can be appropriately changed to the WFD = OFF mode.

この構成によれば、MFP10が、G/O状態及びクライアント状態のどちらかの状態で動作するWFDネットワークを、携帯端末50と構築することができる。これにより、MFP10は、携帯端末50と、適切に印刷データの通信を実行することができる。 According to this configuration, the MFP 10 can construct a WFD network that operates in either the G / O state or the client state with the mobile terminal 50. As a result, the MFP 10 can appropriately communicate the print data with the mobile terminal 50.

(対応関係)
図11のS15〜S18の処理とS52〜S62の処理とが、「特定処理」の一例である。
(Correspondence)
The processes S15 to S18 and the processes S52 to S62 in FIG. 11 are examples of the “specific process”.

(第4実施例)
第1実施例と異なる点を説明する。本実施例では、図2の通信処理の代わりに、図14の通信処理が実行される。図14のS2〜S24は、図2のS2〜S24の処理と同様である。S8でNOの場合、即ち、MFP10がWFD=ONモードに設定されていない場合、S76において、判断部42は、MFP10が、通常Wi−Fiネットワークに、現在属しているのか否かを判断する。判断部42は、通常Wi−Fiネットワークに現在属することを示す情報が、ワーク領域38に格納されている場合、MFP10が、通常Wi−Fiネットワークに現在属している(S76でYES)と判断して、S80に進む。一方、判断部42は、通常Wi−Fiネットワークに属することを示す情報が、ワーク領域38に格納されていない場合、MFP10が、通常Wi−Fiネットワークに、現在属していない(S76でNO)と判断して、S9に進む。
(Fourth Example)
The points different from the first embodiment will be described. In this embodiment, the communication process of FIG. 14 is executed instead of the communication process of FIG. S2 to S24 in FIG. 14 are the same as the processes in S2 to S24 in FIG. If NO in S8, that is, if the MFP 10 is not set to WFD = ON mode, in S76, the determination unit 42 determines whether the MFP 10 currently belongs to the normal Wi-Fi network. When the information indicating that the information indicating that the device currently belongs to the normal Wi-Fi network is stored in the work area 38, the determination unit 42 determines that the MFP 10 currently belongs to the normal Wi-Fi network (YES in S76). Then proceed to S80. On the other hand, the determination unit 42 determines that the MFP 10 does not currently belong to the normal Wi-Fi network (NO in S76) when the information indicating that it belongs to the normal Wi-Fi network is not stored in the work area 38. Judge and proceed to S9.

S10でYESの場合、即ち、MFP10が、WFDネットワークに現在属しており、かつ、WFDネットワークにおいて、クライアント状態として動作している場合、S72において、通信実行部44は、ワーク領域38に格納されているG/Oの無線設定のうち、パスワード以外の無線設定を、NFCI/F22を介して、携帯端末50に送信して、S20に進む。 If YES in S10, that is, if the MFP10 currently belongs to the WFD network and is operating as a client state in the WFD network, the communication execution unit 44 is stored in the work area 38 in S72. Among the wireless settings of the G / O, the wireless settings other than the password are transmitted to the mobile terminal 50 via the NFCI / F22, and the process proceeds to S20.

携帯端末50は、G/Oの無線設定が受信されると、パスワードを、ユーザに指定させる。携帯端末50は、ユーザによってパスワードが指定されると、MFP10から受信された無線設定とユーザによって指定されたパスワードとを用いて、G/O状態のデバイスと、接続を確立する。これにより、携帯端末50は、G/O状態のデバイスを介して、MFP10と無線通信可能となる。なお、携帯端末50とG/O状態のデバイスとの接続が確立されない場合、MFP10は、携帯端末50と無線通信を実行することができない。この場合、制御部30は、S20〜S24の処理を実行せずに、S2に戻る。 When the mobile terminal 50 receives the G / O wireless setting, the mobile terminal 50 causes the user to specify a password. When the password is specified by the user, the mobile terminal 50 establishes a connection with the device in the G / O state by using the wireless setting received from the MFP 10 and the password specified by the user. As a result, the mobile terminal 50 can wirelessly communicate with the MFP 10 via the device in the G / O state. If the connection between the mobile terminal 50 and the device in the G / O state is not established, the MFP 10 cannot execute wireless communication with the mobile terminal 50. In this case, the control unit 30 returns to S2 without executing the processes of S20 to S24.

S12でYESの場合、即ち、MFP10が、WFDネットワークに現在属しており、かつ、WFDネットワークにおいて、G/O状態として動作している場合、S13に進む。通信実行部44は、S16において、ワーク領域38に格納されているMFP10の無線設定を、NFCI/F22を介して、携帯端末50に送信して、S18に進む。S16で送信されるMFP10の無線設定は、パスワードを含む。 If YES in S12, that is, if the MFP10 currently belongs to the WFD network and is operating in the G / O state in the WFD network, the process proceeds to S13. In S16, the communication execution unit 44 transmits the wireless setting of the MFP 10 stored in the work area 38 to the mobile terminal 50 via the NFCI / F22, and proceeds to S18. The wireless setting of the MFP 10 transmitted in S16 includes a password.

また、S12でNOと判断される場合、即ち、MFP10が、デバイス状態として動作している場合に、判断部42は、S78の処理を実行する。S78の処理は、S76の処理と同様である。S78でNOの場合にS15に進み、S78でYESの場合にS80に進む。 Further, when NO is determined in S12, that is, when the MFP 10 is operating as a device state, the determination unit 42 executes the process of S78. The processing of S78 is the same as the processing of S76. If NO in S78, the process proceeds to S15, and if YES in S78, the process proceeds to S80.

S80では、通信実行部44は、ワーク領域38に格納されている通常Wi−Fiネットワークに属するための無線設定、即ち、AP(例えばAP6)の無線設定のうち、パスワード以外の無線設定を、NFCI/F22を介して、携帯端末50に送信して、S20に進む。携帯端末50は、APの無線設定が受信されると、S72の場合と同様に、MFP10から受信された無線設定とユーザによって指定されたパスワードとを用いて、APと接続を確立する。これにより、携帯端末50は、APを介して、MFP10と無線通信可能となる。なお、携帯端末50とAPとの接続が確立されない場合、MFP10は、携帯端末50と無線通信を実行することができない。この場合、制御部30は、S20〜S24の処理を実行せずに、S2に戻る。 In S80, the communication execution unit 44 sets the wireless settings for belonging to the normal Wi-Fi network stored in the work area 38, that is, the wireless settings other than the password among the wireless settings of the AP (for example, AP6). It is transmitted to the mobile terminal 50 via / F22 and proceeds to S20. When the wireless setting of the AP is received, the mobile terminal 50 establishes a connection with the AP by using the wireless setting received from the MFP 10 and the password specified by the user, as in the case of S72. As a result, the mobile terminal 50 can wirelessly communicate with the MFP 10 via the AP. If the connection between the mobile terminal 50 and the AP is not established, the MFP 10 cannot execute wireless communication with the mobile terminal 50. In this case, the control unit 30 returns to S2 without executing the processes of S20 to S24.

(本実施例の効果)
第4実施例のMFP10は、第1,2,4,5の状況において、第1実施例のMFP10と同様の効果を奏することができる。図15,16を参照して、第10,11の状況における本実施例の効果を説明する。なお、図15,16のそれぞれには、図14の通信処理において対応する処理が示されている。
(Effect of this example)
The MFP 10 of the fourth embodiment can exert the same effect as the MFP 10 of the first embodiment in the situations of the first, second, fourth and fifth embodiments. The effects of this embodiment in the situations of the tenth and eleventh situations will be described with reference to FIGS. 15 and 16. Note that each of FIGS. 15 and 16 shows the corresponding processing in the communication processing of FIG.

(第10の状況)
図15に示される第10の状況では、MFP10は、WFDネットワークに現在属している。MFP10は、WFDネットワークにおいて、クライアント状態として動作している。WFDネットワークには、G/O状態のPC8が現在属しているが、携帯端末50は現在属していない。携帯端末50は、第2の状況と同様である。
(10th situation)
In the tenth situation shown in FIG. 15, the MFP 10 currently belongs to the WFD network. The MFP 10 is operating as a client state in the WFD network. The PC8 in the G / O state currently belongs to the WFD network, but the mobile terminal 50 does not currently belong to it. The mobile terminal 50 is the same as in the second situation.

この状況では、MFP10は、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、第3の状況と同様に、S6でNOと判断し、S10でYESと判断する。S72において、MFP10は、G/O状態として動作しているPC8の無線設定のうち、パスワードを含まない無線設定と、MFP10のIPアドレスとを、NFCI/F22を利用して、携帯端末50に送信する。この構成によれば、携帯端末50及びユーザに、パスワードを提供せずに済む。この結果、携帯端末50及びユーザが、PC8がG/O状態として動作しているWFDネットワークに属するためのパスワードを知らない場合に、当該WFDネットワークに、携帯端末50が参入することを防止することができる。 In this situation, when the MFP10 receives the NFC information from the mobile terminal 50 using the NFCI / F22, it determines NO in S6 and YES in S10, as in the third situation. In S72, the MFP 10 transmits the wireless setting that does not include the password and the IP address of the MFP 10 to the mobile terminal 50 using the NFCI / F22 among the wireless settings of the PC 8 operating in the G / O state. To do. According to this configuration, it is not necessary to provide the password to the mobile terminal 50 and the user. As a result, when the mobile terminal 50 and the user do not know the password for belonging to the WFD network in which the PC 8 is operating in the G / O state, the mobile terminal 50 is prevented from entering the WFD network. Can be done.

携帯端末50は、無線設定を受信すると、受信された無線設定を、ワーク領域58に格納する。次いで、携帯端末50は、パスワード指定画面を、携帯端末50の表示部に表示させる。ユーザは、携帯端末50の操作部を操作することによって、パスワードを指定することができる。携帯端末50は、ユーザによってパスワードが指定されると、PC8と、WFD接続を確立する。これにより、携帯端末50は、MFP10が現在属しているWFDネットワークに属することができる。携帯端末50は、WFDネットワークにおいて、クライアント状態として動作する。 When the mobile terminal 50 receives the wireless setting, the mobile terminal 50 stores the received wireless setting in the work area 58. Next, the mobile terminal 50 causes the password designation screen to be displayed on the display unit of the mobile terminal 50. The user can specify the password by operating the operation unit of the mobile terminal 50. The mobile terminal 50 establishes a WFD connection with the PC 8 when a password is specified by the user. As a result, the mobile terminal 50 can belong to the WFD network to which the MFP 10 currently belongs. The mobile terminal 50 operates as a client state in the WFD network.

なお、変形例では、携帯端末50は、過去にネットワークに属するために利用した無線設定を、携帯端末50のメモリに格納していてもよい。この場合、携帯端末50は、パスワードを含まない無線設定を受信すると、受信された無線設定に含まれるSSIDと同一のSSIDを含む無線設定を、携帯端末50のメモリから特定してもよい。そして、携帯端末50は、携帯端末50のメモリから特定された無線設定を用いて、PC8と、WFD接続を確立してもよい。 In the modified example, the mobile terminal 50 may store the wireless settings used for belonging to the network in the past in the memory of the mobile terminal 50. In this case, when the mobile terminal 50 receives the wireless setting that does not include the password, the mobile terminal 50 may specify the wireless setting that includes the same SSID as the SSID included in the received wireless setting from the memory of the mobile terminal 50. Then, the mobile terminal 50 may establish a WFD connection with the PC 8 by using the wireless setting specified from the memory of the mobile terminal 50.

携帯端末50は、WFDネットワークに属すると、ワーク領域58に格納されている無線設定と、S72で受信したMFP10のIPアドレスとを用いて、PC8を介した無線通信を実行することによって、印刷データを、MFP10に送信する。MFP10は、無線LANI/F20を利用して、PC8から、印刷データを受信すると(S20)、印刷データを受信すると、印刷実行部16に、印刷処理を実行させる。 When the mobile terminal 50 belongs to the WFD network, print data is executed by executing wireless communication via the PC 8 using the wireless settings stored in the work area 58 and the IP address of the MFP 10 received in S72. Is transmitted to the MFP 10. When the MFP 10 receives print data from the PC 8 using the wireless LANI / F20 (S20), the MFP 10 causes the print execution unit 16 to execute the print process when the print data is received.

この構成によれば、MFP10は、携帯端末50と同一のネットワークに属していない場合に、MFP10が現在属しているWFDネットワークを介して、携帯端末50と、印刷データの通信を適切に実行することができる。 According to this configuration, when the MFP 10 does not belong to the same network as the mobile terminal 50, the MFP 10 appropriately communicates print data with the mobile terminal 50 via the WFD network to which the MFP 10 currently belongs. Can be done.

(第11の状況)
図16に示される第11の状況では、MFP10は、通常Wi−Fiネットワークに現在属している。MFP10は、通常Wi−Fiネットワークにおいて、AP6に接続されている。携帯端末50は、第2の状況と同様である。
(11th situation)
In the eleventh situation shown in FIG. 16, the MFP10 currently belongs to a Wi-Fi network, usually. The MFP10 is usually connected to the AP6 in a Wi-Fi network. The mobile terminal 50 is the same as in the second situation.

この状況では、携帯端末50から、NFCI/F22を利用して、NFC情報が受信されると、S6において、MFP10は、MFP10が現在属している通常Wi−Fiネットワークに、携帯端末50が現在属していないと判断する(S6でNO)。また、MFP10は、S8において、WFD=OFFモードに設定されていると判断する(S8でNO)。続いて、S76において、MFP10は、通常Wi−Fiネットワークに、現在属していると判断する(S76でYES)。この場合、S80において、MFP10は、ワーク領域38に格納されているAP6の無線設定のうち、パスワードを含まない無線設定と、MFP10のIPアドレスとを、携帯端末50に送信する。この構成によれば、携帯端末50及びユーザに、パスワードを提供せずに済む。この結果、携帯端末50及びユーザが、AP6が利用される通常Wi−Fiネットワークに属するためのパスワードを知らない場合に、当該通常Wi−Fiネットワークに、携帯端末50が属することを防止することができる。 In this situation, when the NFC information is received from the mobile terminal 50 using the NFCI / F22, in S6, the MFP 10 currently belongs to the normal Wi-Fi network to which the MFP 10 currently belongs. Judge that it is not (NO in S6). Further, the MFP 10 determines that the WFD = OFF mode is set in S8 (NO in S8). Subsequently, in S76, the MFP10 determines that it currently belongs to the normal Wi-Fi network (YES in S76). In this case, in S80, the MFP 10 transmits the wireless setting of the AP6 stored in the work area 38, the wireless setting not including the password, and the IP address of the MFP 10 to the mobile terminal 50. According to this configuration, it is not necessary to provide the password to the mobile terminal 50 and the user. As a result, when the mobile terminal 50 and the user do not know the password for belonging to the normal Wi-Fi network in which AP6 is used, it is possible to prevent the mobile terminal 50 from belonging to the normal Wi-Fi network. it can.

携帯端末50は、無線設定を受信すると、第10の状況と同様に、無線設定を受信して、ユーザにパスワードを指定させる。次いで、携帯端末50は、ユーザによってパスワードが指定されると、AP6と通常Wi−Fi接続を確立する。これにより、携帯端末50は、MFP10が現在属している通常Wi−Fiネットワークに属することができる。携帯端末50は、AP6を介して、MFP10と印刷データを送信することができる。携帯端末50は、通常Wi−Fiネットワークに属すると、ワーク領域58に格納されている無線設定と、S80で受信したMFP10のIPアドレスとを用いて、AP6を介した無線通信を実行することによって、印刷データを、MFP10に送信する。 When the mobile terminal 50 receives the wireless setting, the mobile terminal 50 receives the wireless setting and causes the user to specify the password, as in the tenth situation. The mobile terminal 50 then establishes a normal Wi-Fi connection with the AP6 when the password is specified by the user. As a result, the mobile terminal 50 can belong to the normal Wi-Fi network to which the MFP 10 currently belongs. The mobile terminal 50 can transmit print data to the MFP 10 via the AP6. When the mobile terminal 50 normally belongs to the Wi-Fi network, the mobile terminal 50 executes wireless communication via the AP6 by using the wireless settings stored in the work area 58 and the IP address of the MFP 10 received in S80. , The print data is transmitted to the MFP 10.

なお、図示しないが、MFP10が現在デバイス状態として動作しており(S8でYes、S10およびS12でNO)、かつ、MFP10が通常Wi−Fiネットワークに属している場合(S78でYES)においても、MFP10は、ワーク領域38に格納されているAPの無線設定のうち、パスワードを含まない無線設定を、携帯端末50に送信する。 Although not shown, even when the MFP10 is currently operating as a device state (Yes in S8, NO in S10 and S12) and the MFP10 normally belongs to the Wi-Fi network (YES in S78). The MFP 10 transmits the wireless setting of the AP stored in the work area 38, which does not include the password, to the mobile terminal 50.

この構成によれば、MFP10は、携帯端末50と同一のネットワークに属していない場合に、MFP10が現在属している通常Wi−Fiネットワークを介して、携帯端末50と、印刷データの通信を適切に実行することができる。 According to this configuration, when the MFP 10 does not belong to the same network as the mobile terminal 50, the MFP 10 appropriately communicates print data with the mobile terminal 50 via the normal Wi-Fi network to which the MFP 10 currently belongs. Can be executed.

(対応関係)
図14のS15〜S18の処理と、S72の処理と、S7〜S18の処理と、S80の処理とが、「特定処理」の一例である。図14のS4でYESと判断される場合に、MFP10が属しているWFDネットワークと通常Wi−Fiネットワークが「第1の無線ネットワーク」の一例である。
(Correspondence)
The processing of S15 to S18 in FIG. 14, the processing of S72, the processing of S7 to S18, and the processing of S80 are examples of "specific processing". When YES is determined in S4 of FIG. 14, the WFD network to which the MFP 10 belongs and the normal Wi-Fi network are examples of the “first wireless network”.

(第5実施例)
第1実施例と異なる点を説明する。本実施例では、携帯端末50は、携帯端末50がネットワークに現在属している場合に、ワーク領域58に格納されている無線設定として、パスワードと認証方式と暗号化方式とを、さらに含むNFC情報を、MFP10に送信する。
(Fifth Example)
The points different from the first embodiment will be described. In this embodiment, the mobile terminal 50 further includes a password, an authentication method, and an encryption method as wireless settings stored in the work area 58 when the mobile terminal 50 currently belongs to the network. Is transmitted to the MFP 10.

また、本実施例では、図2の通信処理の代わりに、図17の通信処理が実行される。図17のS2〜S24は、図2のS2〜S24の処理と同様である。S4でNOの場合(即ちMFP10がネットワークに現在属していない場合)と、S6でNOの場合(即ちMFP10と携帯端末50とが同一のネットワークに属していない場合)とのどちらかの場合、S82において、判断部42は、NFCI/F22を利用して、携帯端末52から受信されたNFC情報に、無線設定が含まれているのか否かを判断する。無線設定が含まれていると判断される場合(S82でYES)、S83において、設定変更不要情報を、NFCI/F22を利用して携帯端末50に送信する。次いで、S84において、通信実行部44は、NFC情報に含まれる無線設定を用いて、携帯端末50が属しているネットワークに属して、S20に進む。 Further, in this embodiment, the communication process of FIG. 17 is executed instead of the communication process of FIG. S2 to S24 of FIG. 17 are the same as the processing of S2 to S24 of FIG. In either case of NO in S4 (that is, when the MFP 10 does not currently belong to the network) or NO in S6 (that is, when the MFP 10 and the mobile terminal 50 do not belong to the same network), S82. In the determination unit 42, the NFCI / F22 is used to determine whether or not the NFC information received from the mobile terminal 52 includes the wireless setting. When it is determined that the wireless setting is included (YES in S82), in S83, the setting change unnecessary information is transmitted to the mobile terminal 50 using NFCI / F22. Next, in S84, the communication execution unit 44 belongs to the network to which the mobile terminal 50 belongs by using the wireless setting included in the NFC information, and proceeds to S20.

一方、NFC情報に無線設定が含まれていないと判断される場合(S82でNO)、S8に進む。 On the other hand, if it is determined that the NFC information does not include the wireless setting (NO in S82), the process proceeds to S8.

(本実施例の効果)
第5実施例のMFP10は、第1〜5の状況において、第1実施例のMFP10と同様の効果を奏することができる。図18を参照して、第12の状況における本実施例の効果を説明する。なお、図18には、図17の通信処理において対応する処理が示されている。
(Effect of this example)
The MFP 10 of the fifth embodiment can exert the same effect as the MFP 10 of the first embodiment in the situations 1 to 5. The effect of this embodiment in the twelfth situation will be described with reference to FIG. Note that FIG. 18 shows the corresponding processing in the communication processing of FIG.

(第12の状況)
図18に示される第12の状況では、MFP10は、ネットワークに現在属していないか、あるいは、携帯端末50が属していないネットワークに現在属している。一方、携帯端末50は、AP6が属している通常Wi−Fiネットワークに現在属している。
(12th situation)
In the twelfth situation shown in FIG. 18, the MFP 10 does not currently belong to the network or currently belongs to the network to which the mobile terminal 50 does not belong. On the other hand, the mobile terminal 50 currently belongs to the normal Wi-Fi network to which the AP6 belongs.

この状況では、携帯端末50から、NFCI/F22を介して、NFC情報が受信されると、MFP10は、MFP10と携帯端末50とは、同一のネットワークに現在属していないと判断する(S4でNO又はS6でNO)。次に、S82において、MFP10は、携帯端末50が現在属しているネットワークに属するための無線設定が、NFC情報に含まれていると判断する(S82でYES)。 In this situation, when the NFC information is received from the mobile terminal 50 via the NFCI / F22, the MFP 10 determines that the MFP 10 and the mobile terminal 50 do not currently belong to the same network (NO in S4). Or NO in S6). Next, in S82, the MFP 10 determines that the wireless setting for belonging to the network to which the mobile terminal 50 currently belongs is included in the NFC information (YES in S82).

次いで、S83において、MFP10は、設定変更不要情報を、NFCI/F22を利用して携帯端末50に送信する。なお、MFP10は、S4でNOの場合(即ちMFP10がネットワークに現在属していない場合)、MFP10のMACアドレスを含む設定変更不要情報を携帯端末50に送信する。また、MFP10は、S6でNOの場合(即ちMFP10がネットワークに現在属しているが、MFP10と携帯端末50とが同一のネットワークに属していない場合)、MFP10のIPアドレスを含む設定変更不要情報を携帯端末50に送信する。 Next, in S83, the MFP 10 transmits the setting change unnecessary information to the mobile terminal 50 using the NFCI / F22. If the MFP 10 is NO in S4 (that is, the MFP 10 does not currently belong to the network), the MFP 10 transmits the setting change unnecessary information including the MAC address of the MFP 10 to the mobile terminal 50. Further, when the MFP10 is NO in S6 (that is, when the MFP10 currently belongs to the network, but the MFP10 and the mobile terminal 50 do not belong to the same network), the setting change unnecessary information including the IP address of the MFP10 is input. It is transmitted to the mobile terminal 50.

MFP10は、NFC情報に含まれている無線設定を用いて、AP6と、通常Wi−Fi接続を確立する(S84)。携帯端末50は、設定変更不要情報にMFP10のIPアドレスが含まれる場合、該IPアドレスを送信先に指定して、AP6を介して、印刷データを、MFP10に送信する(S20)。また、携帯端末50は、設定変更不要情報にMFP10のMACアドレスが含まれる場合、RARP(Reverse Address Resolution Protocolの略)に従って、MFP10のIPアドレスを特定し、特定したIPアドレスを送信先に指定して、AP6を介して、印刷データを、MFP10に送信する(S20)。 The MFP10 establishes a normal Wi-Fi connection with the AP6 using the wireless settings included in the NFC information (S84). When the setting change unnecessary information includes the IP address of the MFP 10, the mobile terminal 50 designates the IP address as the transmission destination and transmits the print data to the MFP 10 via the AP6 (S20). Further, when the setting change unnecessary information includes the MAC address of the MFP10, the mobile terminal 50 specifies the IP address of the MFP10 according to RARP (abbreviation of Reverse Address Resolution Protocol) and specifies the specified IP address as the transmission destination. Then, the print data is transmitted to the MFP 10 via the AP6 (S20).

この構成によれば、MFP10は、MFP10と携帯端末50とが同一のネットワークに属していない場合に、携帯端末50が現在属しているネットワークを介して、携帯端末50と、印刷データの通信を適切に実行し得る。 According to this configuration, when the MFP 10 and the mobile terminal 50 do not belong to the same network, the MFP 10 appropriately communicates print data with the mobile terminal 50 via the network to which the mobile terminal 50 currently belongs. Can be executed.

(対応関係)
図17のS15〜S18の処理と、S83、S84の処理とが、「特定処理」の一例である。図17のS82でYESと判断される場合に、携帯端末50が属しているネットワークが「第3の無線ネットワーク」の一例である。
(Correspondence)
The processes S15 to S18 in FIG. 17 and the processes S83 and S84 are examples of the "specific process". When YES is determined in S82 of FIG. 17, the network to which the mobile terminal 50 belongs is an example of the “third wireless network”.

(第6実施例)
第4実施例と異なる点を説明する。本実施例では、図14の通信処理の代わりに、図19の通信処理が実行される。図19の通信処理では、S10において、YESと判断される場合に、図14のS72の処理は実行されずに、図2のS14と同様の処理が実行される。
(6th Example)
The points different from the fourth embodiment will be described. In this embodiment, the communication process of FIG. 19 is executed instead of the communication process of FIG. In the communication process of FIG. 19, when YES is determined in S10, the process of S72 of FIG. 14 is not executed, and the same process as of S14 of FIG. 2 is executed.

この構成によれば、第3の状況と同様の効果を奏することができる。 According to this configuration, the same effect as in the third situation can be obtained.

(第7実施例)
第1実施例と異なる点について説明する。本実施例のMFP10は、各I/F20,22の他に、有線LANI/F(図示省略)を備える。本実施例では、図2の通信処理の代わりに、図20の通信処理が実行される。図20のS2,S8〜S24は、図2のS2,S8〜S24の処理と同様である。
(7th Example)
The points different from the first embodiment will be described. The MFP 10 of this embodiment includes a wired LAN I / F (not shown) in addition to the I / Fs 20 and 22 respectively. In this embodiment, the communication process of FIG. 20 is executed instead of the communication process of FIG. S2, S8 to S24 in FIG. 20 are the same as the processes in S2, S8 to S24 in FIG.

図20に示すように、NFCI/F22を利用してNFC情報が受信されると(S2でYES)、判断部42は、S94において、MFP10が有線LANI/Fを利用して有線ネットワークに現在属しているか、さらに、MFP10が無線LANI/F20を利用して無線ネットワークに現在属しているかを判断する。具体的には、MFP10は、有線LANI/Fを利用して、有線ネットワークに現在属している場合に、有線ネットワークに現在属していることを示す情報をメモリ34のワーク領域38に格納する。判断部42は、ワーク領域38に、有線ネットワークに現在属していることを示す情報が格納される場合に、有線ネットワークに現在属していると判断する(S94でYES)。また、判断部42は、ワーク領域38に、有線ネットワークに現在属していることを示す情報が格納されない場合に、有線ネットワークに現在属していないと判断する(S94でNO)。MFP10が無線ネットワークに現在属しているかの判断については、第1実施例と同様である。 As shown in FIG. 20, when the NFC information is received using the NFCI / F22 (YES in S2), the determination unit 42 indicates that the MFP10 currently belongs to the wired network using the wired LANI / F in S94. Further, it is determined whether the MFP 10 currently belongs to the wireless network by using the wireless LANI / F20. Specifically, the MFP 10 uses the wired LAN I / F to store information indicating that it currently belongs to the wired network in the work area 38 of the memory 34 when it currently belongs to the wired network. When the work area 38 stores information indicating that it currently belongs to the wired network, the determination unit 42 determines that it currently belongs to the wired network (YES in S94). Further, the determination unit 42 determines that the work area 38 does not currently belong to the wired network when the information indicating that the work area 38 does not currently belong to the wired network is stored (NO in S94). The determination of whether the MFP 10 currently belongs to the wireless network is the same as in the first embodiment.

S94において、MFP10が有線ネットワークと無線ネットワークとのうち少なくとも一方のネットワークに現在属していると判断されると(S94でYES)、S96に進む。S4において、MFP10が有線ネットワークと無線ネットワークとのいずれのネットワークにも属していないと判断されると(S94でNO)、S8に進む。 If it is determined in S94 that the MFP 10 currently belongs to at least one of the wired network and the wireless network (YES in S94), the process proceeds to S96. If it is determined in S4 that the MFP 10 does not belong to either the wired network or the wireless network (NO in S94), the process proceeds to S8.

S96では、制御部30は、MFP10と携帯端末50とが、MFP10が現在属しているネットワーク(有線ネットワークでもよいし無線ネットワークでもよい)を介して、携帯端末50と、目的データの通信を実行可能な状態であるのか否かを判断する。具体的に、図21の第13の状況に従って説明する。 In S96, the control unit 30 allows the MFP 10 and the mobile terminal 50 to communicate the target data with the mobile terminal 50 via the network to which the MFP 10 currently belongs (either a wired network or a wireless network). Judge whether or not it is in such a state. Specifically, it will be described according to the thirteenth situation of FIG.

図21は、MFP10が、有線LANを介して、AP6に接続され、携帯端末50が通常Wi−Fiネットワークを介してAP6に接続される例を示す。 FIG. 21 shows an example in which the MFP 10 is connected to the AP 6 via a wired LAN, and the mobile terminal 50 is normally connected to the AP 6 via a Wi-Fi network.

なお、図21のシーケンス図では、さらに、有線LANI/Fを利用した通信が、矢印で表されている。有線LANI/Fを利用した通信を表す矢印は、無線LANI/F20を利用した無線通信を表す矢印よりも太く記載されている。 In the sequence diagram of FIG. 21, the communication using the wired LAN I / F is further represented by an arrow. The arrow representing the communication using the wired LANI / F is drawn thicker than the arrow representing the wireless communication using the wireless LANI / F20.

MFP10は、携帯端末50からNFC情報を受信する。携帯端末50から送信されるNFC情報は、携帯端末50のデバイスIDとIPアドレスとを含む。判断部42は、S96において、MFP10が現在属しているネットワーク(図21の例では有線LAN)を介して、MFP10が携帯端末50と通信可能であるのか否かを判断する。具体的には、判断部42は、有線LANI/Fを利用して、デバイスIDの問合せを、ユニキャストする。判断部42は、問合せの送信先として、NFC情報に含まれるIPアドレスを指定して、問合せを送信する。 The MFP 10 receives NFC information from the mobile terminal 50. The NFC information transmitted from the mobile terminal 50 includes the device ID and IP address of the mobile terminal 50. In S96, the determination unit 42 determines whether or not the MFP 10 can communicate with the mobile terminal 50 via the network to which the MFP 10 currently belongs (wired LAN in the example of FIG. 21). Specifically, the determination unit 42 unicasts the device ID inquiry using the wired LAN I / F. The determination unit 42 specifies the IP address included in the NFC information as the transmission destination of the inquiry, and transmits the inquiry.

携帯端末50は、AP6を介して、問合せを受信すると、携帯端末50のデバイスIDを、問合せの送信元のMFP10に送信する。判断部42は、有線LANI/Fを利用して、携帯端末50のデバイスIDを、AP6を介して受信すると、受信されたデバイスIDと、NFC情報に含まれるデバイスIDと、が一致するのか否かを判断する。2個のデバイスIDが一致する場合に、判断部42は、S96でYESと判断し、S7に進む。一方、判断部42は、問合せに対する応答がないか、あるいは、2個のデバイスIDが一致いない場合に、S96でNOと判断し、S8に進む。 When the mobile terminal 50 receives the inquiry via the AP6, the mobile terminal 50 transmits the device ID of the mobile terminal 50 to the MFP 10 of the transmission source of the inquiry. When the determination unit 42 receives the device ID of the mobile terminal 50 via the AP6 using the wired LAN I / F, whether or not the received device ID and the device ID included in the NFC information match. To judge. When the two device IDs match, the determination unit 42 determines YES in S96 and proceeds to S7. On the other hand, if there is no response to the inquiry or the two device IDs do not match, the determination unit 42 determines NO in S96 and proceeds to S8.

この構成によれば、MFP10の現在の状態が、携帯端末50と通信可能な状態である場合に、MFP10は、有線LANI/Fを利用して、携帯端末50と、目的データの通信を実行することができる。 According to this configuration, when the current state of the MFP 10 is a state in which communication with the mobile terminal 50 is possible, the MFP 10 uses the wired LAN I / F to communicate the target data with the mobile terminal 50. be able to.

第1実施例では、S6においてMFP10と携帯端末50とが同一のネットワークに存在するかを判断する。これに対し、本実施例では、S96において、MFP10と携帯端末50とが、同一のネットワーク内に存在するか否かに関わらず、MFP10と携帯端末50とが通信可能かを判断する。 In the first embodiment, it is determined in S6 whether the MFP 10 and the mobile terminal 50 exist in the same network. On the other hand, in the present embodiment, in S96, it is determined whether the MFP 10 and the mobile terminal 50 can communicate with each other regardless of whether the MFP 10 and the mobile terminal 50 exist in the same network.

(対応関係)
無線LANI/F有線LANI/Fが、「第2種のインターフェイス」の一例である。有線LANが「第1の無線ネットワーク」の一例である。NFC情報に含まれるデバイスIDが「端末識別情報」の一例である。
(Correspondence)
Wireless LAN I / F Wired LAN I / F is an example of a "second type interface". A wired LAN is an example of a "first wireless network". The device ID included in the NFC information is an example of "terminal identification information".

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

(変形例)
(1)「通信装置」は、多機能機に限られず、第1種のインターフェイスと第2種のインターフェイスとを備える他の機器(例えば、プリンタ、FAX装置、コピー機、スキャナ等)であってもよい。
(Modification example)
(1) The "communication device" is not limited to a multifunctional device, but is another device (for example, a printer, a fax device, a copier, a scanner, etc.) having a first-class interface and a second-class interface. May be good.

(2)MFP10は、アクセスポイントとして機能するためのAPプログラムを格納していてもよい。制御部30は、APプロフラムを起動すると、予め決められている無線設定を、ワーク領域38に格納してもよい。例えば、図2のS15において、通信実行部44は、MFP10を自発G/Oモードに設定する代わりに、APプログラムを起動させてもよい。次いで、通信実行部44は、ワーク領域38に予め格納されている無線設定を、携帯端末50に送信してもよい。そして、通信実行部44と携帯端末50とは、ワーク領域38に予め格納されている無線設定を用いて、接続を確立してもよい。この場合、MFP10は、携帯端末50との間で通常Wi−Fi接続を確立し、また、MFP10は、通常Wi−Fiネットワークを構築してもよい。本変形例では、MFP10がAPプログラムを起動してアクセスポイントとして機能することによって携帯端末50との間で実行する通常Wi−Fiが、「特定の無線通信」の一例である。また、APプログラムの起動、無線設定の送信、及び通常Wi−Fi接続の確立が、「特定処理」の一例である。 (2) The MFP 10 may store an AP program for functioning as an access point. When the control unit 30 activates the AP profile, the control unit 30 may store a predetermined radio setting in the work area 38. For example, in S15 of FIG. 2, the communication execution unit 44 may start the AP program instead of setting the MFP 10 to the spontaneous G / O mode. Next, the communication execution unit 44 may transmit the wireless setting stored in advance in the work area 38 to the mobile terminal 50. Then, the communication execution unit 44 and the mobile terminal 50 may establish a connection by using the wireless settings stored in advance in the work area 38. In this case, the MFP 10 may establish a normal Wi-Fi connection with the mobile terminal 50, and the MFP 10 may build a normal Wi-Fi network. In this modification, the normal Wi-Fi executed by the MFP 10 by activating the AP program and functioning as an access point with the mobile terminal 50 is an example of "specific wireless communication". Further, activation of the AP program, transmission of wireless settings, and establishment of a normal Wi-Fi connection are examples of "specific processing".

(3)「第1種のインターフェイス」と「第2種のインターフェイス」との組合せは、NFCI/Fと無線LANI/Fとの組合せに限られない。例えば、「第2種のインターフェイス」として無線LANI/Fが採用される場合に、「第1種のインターフェイス」は、赤外線通信を実行するためのインターフェイスであってもよいし、Bluetooth(登録商標)を実行するためのインターフェイスであってもよいし、Transfer Jetを実行するためのインターフェイスであってもよい。また、「第1種のインターフェイス」としてNFCI/Fが採用される場合に、「第2種のインターフェイス」は、有線通信を実行するためのインターフェイスであってもよいし、Bluetooth(登録商標)を実行するためのインターフェイスであってもよい。一般的に言うと、第2種のインターフェイスを介した通信の通信速度が、第1種のインターフェイスを介した通信の通信速度よりも速ければよい。 (3) The combination of the "type 1 interface" and the "type 2 interface" is not limited to the combination of the NFCI / F and the wireless LANI / F. For example, when a wireless LAN I / F is adopted as the "type 2 interface", the "type 1 interface" may be an interface for performing infrared communication, or may be an interface for performing infrared communication, or Bluetooth®. It may be an interface for executing TransferJet, or it may be an interface for executing TransferJet. Further, when NFCI / F is adopted as the "first-class interface", the "second-class interface" may be an interface for executing wired communication, or Bluetooth (registered trademark) may be used. It may be an interface for execution. Generally speaking, the communication speed of communication via the first-class interface may be faster than the communication speed of communication via the first-class interface.

(4)「第1種のインターフェイス」と「第2種のインターフェイス」とは、上記の実施例のように、物理的に2個のインターフェイス(即ち別体の2個のICチップ)であってもよいし、物理的に1個のインターフェイス(即ち1個のICチップで2種類の通信が実現される)であってもよい。 (4) The "type 1 interface" and the "type 2 interface" are physically two interfaces (that is, two separate IC chips) as in the above embodiment. It may be physically one interface (that is, two types of communication are realized by one IC chip).

(5)上記の各実施例では、WFD方式に従った無線通信を実行するためのインターフェイスと、通常Wi−Fiに従った無線通信とを実行するためのインターフェイスと、が、物理的に1個のインターフェイス(無線LANI/F20)であったが、物理的に複数個のインターフェイス(即ち別体の2個のICチップ)であってもよい。本変形例では、複数個のインターフェイスが、「第2種のインターフェイス」の一例である。 (5) In each of the above embodiments, there is physically one interface for executing wireless communication according to the WFD method and an interface for executing wireless communication according to normal Wi-Fi. Interface (wireless LANI / F20), but may be physically a plurality of interfaces (that is, two separate IC chips). In this modification, the plurality of interfaces is an example of the "second type interface".

(6)上記の第1,2,4〜7実施例では、S15において、通信実行部44は、MFP10を、自発G/Oモードに設定する。しかしながら、通信実行部44は、携帯端末50が、WFD方式に従った無線通信を実行可能である場合に、S15〜S18に代えて、図11のS54〜S62の処理を実行してもよい。本変形例では、S54〜S62の処理が「特定処理」の一例である。 (6) In the first, second, fourth to seventh embodiments described above, in S15, the communication execution unit 44 sets the MFP 10 to the spontaneous G / O mode. However, the communication execution unit 44 may execute the processes of S54 to S62 of FIG. 11 instead of S15 to S18 when the mobile terminal 50 can execute wireless communication according to the WFD method. In this modification, the processes S54 to S62 are an example of the "specific process".

(7)上記の第7実施例では、判断部42は、NFC情報に含まれるIPアドレス(即ち携帯端末50のIPアドレス)を送信先に指定して、デバイスIDの問合せを送信する。しかしながら、判断部42は、MFP10が現在属しているネットワーク(有線ネットワークでも無線ネットワークでもよい)を介して、デバイスIDの問合せをブロードキャストしてもよい。この場合、デバイスIDの問合せは、NFC情報に含まれるデバイスIDを含んでいてもよい。携帯端末50は、ブロードキャストされた問合せが受信されると、問合せに含まれるデバイスIDが携帯端末50のデバイスIDである場合に、問合せの送信元のMFP10に、問合せに対する応答を送信してもよい。MFP10は、MFP10が現在属しているネットワークを介して、問合せに対する応答を受信してもよい。判断部42は、応答が受信される場合に、MFP10の現在の状態が、携帯端末50と通信可能な状態である(図2のS6でYES)と判断してもよい。本変形例によれば、MFP10と携帯端末50とが同一のサブネットである場合に、図2のS6でYESと判断され得る。本変形例では、S6の判断が、MFP10が「通信装置が、現在属している特定のネットワークに、携帯端末が現在属しているのか否か」の判断の一例である。 (7) In the seventh embodiment described above, the determination unit 42 designates the IP address included in the NFC information (that is, the IP address of the mobile terminal 50) as the transmission destination, and transmits the device ID inquiry. However, the determination unit 42 may broadcast the device ID inquiry via the network to which the MFP 10 currently belongs (either a wired network or a wireless network). In this case, the device ID inquiry may include the device ID included in the NFC information. When the broadcast inquiry is received, the mobile terminal 50 may transmit a response to the inquiry to the MFP 10 from which the inquiry is sent, when the device ID included in the inquiry is the device ID of the mobile terminal 50. .. The MFP 10 may receive a response to a query via the network to which the MFP 10 currently belongs. When the response is received, the determination unit 42 may determine that the current state of the MFP 10 is a state in which communication with the mobile terminal 50 is possible (YES in S6 of FIG. 2). According to this modification, when the MFP 10 and the mobile terminal 50 are on the same subnet, it can be determined as YES in S6 of FIG. In this modification, the judgment of S6 is an example of the judgment of the MFP 10 "whether or not the mobile terminal currently belongs to the specific network to which the communication device currently belongs".

(8)上記の各実施例では、各部40〜46がソフトウェアによって実現されるが、各部40〜46のうちの少なくとも1つが論理回路等のハードウェアによって実現されてもよい。 (8) In each of the above embodiments, each part 40 to 46 is realized by software, but at least one of each part 40 to 46 may be realized by hardware such as a logic circuit.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。 In addition, the technical elements described in the present specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the techniques illustrated in the present specification or drawings achieve a plurality of objectives at the same time, and achieving one of the objectives itself has technical usefulness.

2:通信システム、6:AP、8:PC、10:MFP、20:無線LANインターフェイス、22:NFCインターフェイス、30:制御部、50:携帯端末 2: Communication system, 6: AP, 8: PC, 10: MFP, 20: Wireless LAN interface, 22: NFC interface, 30: Control unit, 50: Mobile terminal

Claims (11)

第1の通信装置であって、
第2の通信装置と通信を実行するための第1種のインターフェイスと、
前記第2の通信装置と通信を実行するための第2種のインターフェイスであって、前記第2種のインターフェイスを利用した通信の通信速度は、前記第1種のインターフェイスを利用した通信の通信速度よりも速い、前記第2種のインターフェイスと、
制御部と、を備え、
前記制御部は、
前記第1種のインターフェイスを利用した無線通信を実行した結果、前記第2の通信装置から、アクセスポイントと前記第2の通信装置とが現在所属している第1の無線ネットワークに前記第1の通信装置が属するための無線設定情報を受信する場合に、前記第1の通信装置の状態を、前記第2種のインターフェイスを利用して、前記アクセスポイントを介して、前記第2の通信装置と目的データの通信を実行可能な通信可能状態に変化させるための第1の処理を実行した後に、前記第2種のインターフェイスを利用して、前記アクセスポイントを介して、前記第2の通信装置と前記目的データの通信を実行し、
前記第1種のインターフェイスを利用した無線通信を実行した結果、前記第2の通信装置から前記無線設定情報を受信しない場合に、前記第1の通信装置の状態を、前記第2種のインターフェイスを利用して、前記アクセスポイントを介さずに、前記第2の通信装置と前記目的データの通信を実行可能な通信可能状態に変化させるための第2の処理を実行した後に、前記第2種のインターフェイスを利用して、前記アクセスポイントを介さずに、前記第2の通信装置と前記目的データの通信を実行する通信実行部を備える、第1の通信装置。
The first communication device,
A first-class interface for performing communication with a second communication device,
It is a second type interface for executing communication with the second type communication device, and the communication speed of the communication using the second type interface is the communication speed of the communication using the first type interface. With the second type interface, which is faster than
With a control unit
The control unit
As a result of executing wireless communication using the first type interface, the first wireless network from the second communication device to the first wireless network to which the access point and the second communication device currently belong. When receiving the wireless setting information for the communication device to belong to, the state of the first communication device is changed to the second communication device via the access point by using the second type interface. After executing the first process for changing the communication of the target data into a feasible communicable state, the second type of interface is used to communicate with the second communication device via the access point. Execute the communication of the target data and
As a result of executing wireless communication using the first type interface, when the wireless setting information is not received from the second communication device, the state of the first communication device is determined by the second type interface. After executing the second process for changing the communication between the second communication device and the target data into a communicable state that can be executed without going through the access point, the second type of communication is performed. A first communication device including a communication execution unit that executes communication between the second communication device and the target data by using an interface without going through the access point.
前記無線設定情報は、前記第1の無線ネットワークを識別するための識別情報を含む、請求項1に記載の第1の通信装置。 The first communication device according to claim 1, wherein the wireless setting information includes identification information for identifying the first wireless network. 前記識別情報は、SSID(Service Set Identifierの略)である、請求項2に記載の第1の通信装置。 The first communication device according to claim 2, wherein the identification information is an SSID (abbreviation of Service Set Identifier). 前記第2の処理は、前記第1の通信装置が、前記第1の通信装置と前記第2の通信装置とが属する第2の無線ネットワークの親局として動作するための処理を含む、請求項1から3のいずれか一項に記載の第1の通信装置。 The second process includes a process for the first communication device to operate as a master station of a second wireless network to which the first communication device and the second communication device belong. The first communication device according to any one of 1 to 3. 前記第1の通信装置は、無線ネットワークの親局として機能する親局状態と、前記無線ネットワークの子局として機能する子局状態と、のうちのいずれかの状態で選択的に動作可能であり、
前記第2の処理は、前記第1の通信装置が、前記第2の無線ネットワークにおいて、前記親局状態及び前記子局状態のどちらで動作すべきかを選択的に決定する選択的決定処理を実行せずに、前記第2の無線ネットワークの親局として動作するための処理を含む、請求項4に記載の第1の通信装置。
The first communication device can selectively operate in any one of a master station state that functions as a master station of the wireless network and a slave station state that functions as a slave station of the wireless network. ,
The second process executes a selective determination process for selectively determining whether the first communication device should operate in the master station state or the slave station state in the second wireless network. The first communication device according to claim 4, further comprising a process for operating as a master station of the second wireless network.
前記第1種のインターフェイスは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェイスであり、
前記第2種のインターフェイスは、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11に準拠する方式で定義される方式に従った無線通信を実行するためのインターフェイスである、請求項1から5のいずれか一項に記載の第1の通信装置。
The first type interface is an interface for executing wireless communication according to the Bluetooth (registered trademark) method.
The second type interface is an interface for performing wireless communication according to a method defined by a method compliant with IEEE (Institute of Electrical and Electronics Engineers, Inc.) 802.11. The first communication device according to any one of claims 1 to 5.
前記第1の通信装置は、プリンタ又はスキャナである、請求項1から6のいずれか一項に記載の第1の通信装置。 The first communication device according to any one of claims 1 to 6, wherein the first communication device is a printer or a scanner. 第2の通信装置のためのコンピュータプログラムであって、
前記第2の通信装置は、
第1の通信装置と通信を実行するための第1種のインターフェイスと、
前記第1の通信装置と通信を実行するための第2種のインターフェイスであって、前記第2種のインターフェイスを利用した通信の通信速度は、前記第1種のインターフェイスを利用した通信の通信速度よりも速い、前記第2種のインターフェイスと、
を備え、
前記コンピュータプログラムは、前記第2の通信装置のコンピュータを、
前記第1種のインターフェイスを利用した無線通信を実行した結果、前記第2の通信装置が、アクセスポイントと前記第2の通信装置とが現在所属している第1の無線ネットワークに前記第1の通信装置が属するための無線設定情報を前記第1の通信装置に送信し、前記第1の通信装置の状態が、前記アクセスポイントを介して、前記第2の通信装置と目的データの通信を実行可能な通信可能状態に変化する場合に、前記第2種のインターフェイスを利用して、前記アクセスポイントを介して、前記第1の通信装置と前記目的データの通信を実行し、
前記第1種のインターフェイスを利用した無線通信を実行した結果、前記第2の通信装置が、前記無線設定情報を送信せずに、前記第1の通信装置の状態が、前記アクセスポイントを介さずに、前記第2の通信装置と前記目的データの通信を実行可能な通信可能状態に変化する場合に、前記第2種のインターフェイスを利用して、前記アクセスポイントを介さずに、前記第1の通信装置と前記目的データの通信を実行する通信実行部として機能させる、コンピュータプログラム。
A computer program for a second communication device,
The second communication device is
A first-class interface for performing communication with a first communication device,
It is a second type interface for executing communication with the first type communication device, and the communication speed of communication using the second type interface is the communication speed of communication using the first type interface. With the second type interface, which is faster than
With
The computer program uses the computer of the second communication device as the computer.
As a result of executing wireless communication using the first type interface, the first communication device is attached to the first wireless network to which the access point and the second communication device currently belong. The radio setting information for which the communication device belongs is transmitted to the first communication device, and the state of the first communication device executes communication of the target data with the second communication device via the access point. When the state changes to a possible communicable state, the second type of interface is used to perform communication between the first communication device and the target data via the access point.
As a result of executing wireless communication using the first type interface, the state of the first communication device does not go through the access point without the second communication device transmitting the wireless setting information. In addition, when the communication between the second communication device and the target data is changed to a feasible communicable state, the first type of interface is used without going through the access point. A computer program that functions as a communication execution unit that executes communication between a communication device and the target data.
前記無線設定情報は、前記第1の無線ネットワークを識別するための識別情報を含む、請求項8に記載のコンピュータプログラム。 The computer program according to claim 8, wherein the wireless setting information includes identification information for identifying the first wireless network. 前記識別情報は、SSID(Service Set Identifierの略)である、請求項9に記載のコンピュータプログラム。 The computer program according to claim 9, wherein the identification information is an SSID (abbreviation of Service Set Identifier). 前記第1種のインターフェイスは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェイスであり、
前記第2種のインターフェイスは、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11に準拠する方式で定義される方式に従った無線通信を実行するためのインターフェイスである、請求項8から10のいずれか一項に記載のコンピュータプログラム。
The first type interface is an interface for executing wireless communication according to the Bluetooth (registered trademark) method.
The second type interface is an interface for executing wireless communication according to a method defined by a method compliant with IEEE (Institute of Electrical and Electronics Engineers, Inc.) 802.11. The computer program according to any one of claims 8 to 10 .
JP2019113702A 2019-06-19 2019-06-19 Communication device Active JP6760444B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019113702A JP6760444B2 (en) 2019-06-19 2019-06-19 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019113702A JP6760444B2 (en) 2019-06-19 2019-06-19 Communication device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018146105A Division JP6544469B2 (en) 2018-08-02 2018-08-02 Communication device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2020146659A Division JP7052843B2 (en) 2020-09-01 2020-09-01 Communication device

Publications (2)

Publication Number Publication Date
JP2019154077A JP2019154077A (en) 2019-09-12
JP6760444B2 true JP6760444B2 (en) 2020-09-23

Family

ID=67947224

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019113702A Active JP6760444B2 (en) 2019-06-19 2019-06-19 Communication device

Country Status (1)

Country Link
JP (1) JP6760444B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5966527B2 (en) 2012-03-30 2016-08-10 ブラザー工業株式会社 Communication device
JP5962146B2 (en) 2012-03-30 2016-08-03 ブラザー工業株式会社 Communication device
JP5915338B2 (en) 2012-03-30 2016-05-11 ブラザー工業株式会社 Communication device
JP7052843B2 (en) * 2020-09-01 2022-04-12 ブラザー工業株式会社 Communication device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8116679B2 (en) * 2008-09-15 2012-02-14 Sony Ericsson Mobile Communications Ab WLAN connection facilitated via near field communication
JP4941496B2 (en) * 2009-04-03 2012-05-30 カシオ計算機株式会社 Wireless communication apparatus and program
JP5509874B2 (en) * 2010-01-25 2014-06-04 富士通モバイルコミュニケーションズ株式会社 Communication terminal
US8224246B2 (en) * 2010-05-10 2012-07-17 Nokia Corporation Device to device connection setup using near-field communication
RU2606563C2 (en) * 2012-03-16 2017-01-10 Сони Корпорейшн Communication device, communication method, communication program and system

Also Published As

Publication number Publication date
JP2019154077A (en) 2019-09-12

Similar Documents

Publication Publication Date Title
US11582592B2 (en) Communication device
JP5915338B2 (en) Communication device
JP5966527B2 (en) Communication device
JP5857850B2 (en) Communication device
JP6760444B2 (en) Communication device
JP6202149B2 (en) Communication device
JP6183506B2 (en) Communication device
JP6183445B2 (en) Communication device
JP6149970B2 (en) Communication device
JP7052843B2 (en) Communication device
JP6795067B2 (en) Communication device
JP7420182B2 (en) Communication device
JP6544469B2 (en) Communication device
JP6583506B2 (en) Communication device
JP6380632B2 (en) Communication device
JP6645477B2 (en) Communication device
JP6414617B2 (en) Communication device
JP6202148B2 (en) Communication device
JP6601463B2 (en) Communication device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190717

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190718

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200519

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200710

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200817

R150 Certificate of patent or registration of utility model

Ref document number: 6760444

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150