JP7388491B2 - communication equipment - Google Patents

communication equipment Download PDF

Info

Publication number
JP7388491B2
JP7388491B2 JP2022112639A JP2022112639A JP7388491B2 JP 7388491 B2 JP7388491 B2 JP 7388491B2 JP 2022112639 A JP2022112639 A JP 2022112639A JP 2022112639 A JP2022112639 A JP 2022112639A JP 7388491 B2 JP7388491 B2 JP 7388491B2
Authority
JP
Japan
Prior art keywords
communication device
interface
connection
communication
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2022112639A
Other languages
Japanese (ja)
Other versions
JP2022132424A (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
Priority claimed from JP2019149030A external-priority patent/JP6927255B2/en
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2022112639A priority Critical patent/JP7388491B2/en
Publication of JP2022132424A publication Critical patent/JP2022132424A/en
Priority to JP2023193869A priority patent/JP2024003159A/en
Application granted granted Critical
Publication of JP7388491B2 publication Critical patent/JP7388491B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本明細書では、複数の通信方式に従った無線通信を実行可能な通信機器を開示する。 This specification discloses a communication device that can perform wireless communication according to a plurality of communication methods.

特許文献1には、第1端末と外部機器とがWi-Fiに従った無線通信を実行するための技術が開示されている。第1端末は、第1端末自身が接続されているAP(Access Pointの略)に関する情報(即ち、MACアドレス、SSID、チャネル番号、保安キー等)を、BLE(Bluetooth(登録商標) Low Energyの略)を介して、外部機器に送信する。この場合、外部機器は、Wi-Fiモジュールを活性化し、当該情報を利用してAPに接続する。これにより、第1端末と外部機器とがWi-Fiに従った無線通信を実行することができる。 Patent Document 1 discloses a technique for performing wireless communication between a first terminal and an external device according to Wi-Fi. The first terminal transmits information (i.e., MAC address, SSID, channel number, security key, etc.) regarding the AP (abbreviation of Access Point) to which the first terminal itself is connected using BLE (Bluetooth (registered trademark) Low Energy). (omitted) to an external device. In this case, the external device activates the Wi-Fi module and uses the information to connect to the AP. This allows the first terminal and the external device to perform wireless communication based on Wi-Fi.

特開2014-53007号公報Japanese Patent Application Publication No. 2014-53007

特許文献1の技術では、外部機器がAPに接続されることをユーザが望んでいない状況であっても、APに関する情報がBLEを介して第1端末から外部機器に送信されると、外部機器がAPに接続されてしまう。 In the technology of Patent Document 1, even if the user does not want the external device to be connected to the AP, when information about the AP is transmitted from the first terminal to the external device via BLE, the external device is connected to the AP.

本明細書では、第1の通信機器と第2の通信機器との間において、第2の通信方式に従った無線通信が実行された後に、適切な状況で、第1の通信方式に従った無線接続が確立され得る技術を開示する。 In this specification, after wireless communication according to the second communication method is performed between a first communication device and a second communication device, wireless communication according to the first communication method is performed in an appropriate situation. A technique by which a wireless connection may be established is disclosed.

本明細書によって開示される第1の通信機器は、Wi-Fi方式に従った無線通信を実行するためのWi-Fiインターフェースと、Bluetooth(登録商標)方式の4.0以降のバージョンに従った無線通信を実行するためのBluetoothインターフェースと、前記Bluetoothインターフェースを介して、前記第1の通信機器を識別する識別情報を含むAdvertise信号を送信するAdvertise信号送信部と、前記Bluetoothインターフェースを介して、第2の通信機器から、前記Advertise信号に含まれる前記識別情報によって識別される前記第1の通信機器に対するBluetooth接続要求を受信する第1の要求受信部と、前記第2の通信機器から受信した前記Bluetooth接続要求に従って、前記Bluetoothインターフェースを介したBluetooth接続を前記第2の通信機器と確立する第1の確立部と、前記第2の通信機器を前記第1の通信機器が所属するWi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための第1の接続情報を、前記Bluetoothインターフェースを介した前記Bluetooth接続を利用して、前記第2の通信機器に送信する第1の接続情報送信部と、前記第1の接続情報が前記第2通信機器に送信され、かつ、前記第1の通信機器が前記Wi-Fiネットワークを利用可能である場合に、前記第2の通信機器から、前記Wi-Fiインターフェースを介して、第1のWi-Fi接続要求を受信する第2の要求受信部と、前記第2の通信機器から前記第1のWi-Fi接続要求を受信すると、前記Wi-Fiインターフェースを介した第1のWi-Fi接続を前記第2の通信機器と確立する第2の確立部と、を備える。
本明細書によって開示される他の第1の通信機器は、第1の通信方式に従った無線通信を実行するための第1のインターフェースと、前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、前記第1の通信機器と第2の通信機器との間の距離が所定距離未満である状態で、前記第2のインターフェースを介して、第1の無線ネットワークに関係する第1のネットワーク関係情報を前記第2の通信機器に送信する第1のネットワーク関係情報送信部であって、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記第1のネットワーク関係情報送信部と、前記第1のネットワーク関係情報を受信した前記第2の通信機器から、前記第1のインターフェースを介して、第1の無線接続要求を受信する第1の接続要求受信部と、前記第2の通信機器から前記第1の無線接続要求を受信することに応じて、前記第1のネットワーク関係情報を利用して、前記第1のインターフェースを介した第1の無線接続を前記第2の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立部と、前記第2の通信機器から、前記第2の通信機器を識別するための第2の機器識別情報を受信する機器識別情報受信部と、前記第2の機器識別情報を前記第1の通信機器のメモリに格納させる格納制御部と、前記第2の機器識別情報が前記メモリに格納された後に、第3の通信機器から、前記第2のインターフェースを介して、前記第3の通信機器を識別するための第3の機器識別情報を含む特定情報を受信する特定情報受信部と、前記特定情報内の前記第3の機器識別情報が前記メモリ内の前記第2の機器識別情報に一致するのか否かを判断する識別情報判断部と、前記第3の機器識別情報が前記第2の機器識別情報に一致すると判断される場合に、前記第2のインターフェースを介して、第2の無線ネットワークに関係する第2のネットワーク関係情報を前記第3の通信機器に一致する前記第2の通信機器に送信し、前記第3の機器識別情報が前記第2の機器識別情報に一致しないと判断される場合に、前記第2のネットワーク関係情報を前記第3の通信機器に送信しない第2のネットワーク関係情報送信部であって、前記第2の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークであり、前記第2のネットワーク関係情報は、前記第1のネットワーク関係情報とは異なる、前記第2のネットワーク関係情報送信部と、前記第2のネットワーク関係情報を受信した前記第2の通信機器から、前記第1のインターフェースを介して、第2の無線接続要求を受信する第2の接続要求受信部と、前記第2の通信機器から前記第2の無線接続要求を受信することに応じて、前記第2のネットワーク関係情報を利用して、前記第1のインターフェースを介した第2の無線接続を前記第2の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第2の無線ネットワークを形成する第2の確立部と、を備える。
A first communication device disclosed in this specification includes a Wi-Fi interface for performing wireless communication according to the Wi-Fi method, and a Bluetooth (registered trademark) method according to version 4.0 or later. a Bluetooth interface for performing wireless communication; an Advertise signal transmitter that transmits an Advertise signal including identification information for identifying the first communication device via the Bluetooth interface; a first request receiving unit that receives a Bluetooth connection request from a second communication device to the first communication device identified by the identification information included in the Advertise signal; a first establishment unit that establishes a Bluetooth connection with the second communication device via the Bluetooth interface in accordance with a Bluetooth connection request; and a first establishment unit that connects the second communication device to a Wi-Fi network to which the first communication device belongs. first connection information for transmitting first connection information for enabling connection via the Wi-Fi interface to the second communication device using the Bluetooth connection via the Bluetooth interface; a transmitter, when the first connection information is transmitted to the second communication device and the first communication device can use the Wi-Fi network, from the second communication device; a second request receiving unit that receives a first Wi-Fi connection request via the Wi-Fi interface; and upon receiving the first Wi-Fi connection request from the second communication device, - a second establishing unit that establishes a first Wi-Fi connection with the second communication device via a Fi interface;
Another first communication device disclosed in this specification includes a first interface for performing wireless communication according to a first communication method, and a second communication device different from the first communication method. a second interface for performing wireless communication according to the wireless communication method, and in a state where the distance between the first communication device and the second communication device is less than a predetermined distance, a first network-related information transmitter that transmits first network-related information related to a first wireless network to the second communication device, the first wireless network being connected to the first network-related information; The first interface is transmitted from the first network-related information transmitter, which is a network for performing wireless communication via the interface, and the second communication device that has received the first network-related information. a first connection request receiving unit that receives a first wireless connection request, and in response to receiving the first wireless connection request from the second communication device, the first network related information; to establish a first wireless connection with the second communication device via the first interface, to which the first communication device and the second communication device both belong. a first establishment unit that forms a first wireless network; a device identification information receiving unit that receives second device identification information for identifying the second communication device from the second communication device; a storage control unit that stores the second device identification information in the memory of the first communication device; and a storage control unit that stores the second device identification information in the memory of the first communication device; a specific information receiving unit that receives specific information including third device identification information for identifying the third communication device via an interface; an identification information determination unit that determines whether or not the third device identification information matches the second device identification information in a memory; via a second interface, transmitting second network related information related to a second wireless network to the second communication device matching the third communication device; a second network-related information transmitter that does not transmit the second network-related information to the third communication device when it is determined that the second device identification information does not match the second device identification information; The wireless network is a network for performing wireless communication via the first interface, and the second network related information is the second network related information different from the first network related information. a second connection request receiving section that receives a second wireless connection request via the first interface from the second communication device that has received the second network related information; In response to receiving the second wireless connection request from a second communication device, the second wireless connection via the first interface is established using the second network related information. a second establishing unit that establishes with a communication device to form the second wireless network to which both the first communication device and the second communication device belong.

上記の構成によると、第1の通信機器は、第1の通信機器と第2の通信機器との間の距離が所定距離未満である状態、即ち、ユーザが第1の通信方式に従った無線接続が確立されることを望んでいる可能性が高い状態において、第2のインターフェースを介して第1のネットワーク関係情報を第2の通信機器に送信する。これにより、第1の通信機器は、第1の通信方式に従った第1の無線接続を第2の通信機器と確立して、第1の無線ネットワークを形成することができる。そして、第1の通信機器は、第2の通信機器から第2の機器識別情報を受信してメモリに格納させる。その後、第1の通信機器は、第3の通信機器から第2のインターフェースを介して特定情報を受信する場合に、特定情報内の第3の機器識別情報がメモリ内の第2の機器識別情報に一致するのか否かを判断する。第3の機器識別情報が第2の機器識別情報に一致するということは、第3の通信機器が、第1の通信方式に従った第1の無線接続が過去に確立された第2の通信機器に一致することを意味する。従って、第3の機器識別情報が第2の機器識別情報に一致する場合には、ユーザが第1の通信方式に従った無線接続が再び確立されることを望んでいる可能性が高い。一方、第3の機器識別情報が第2の機器識別情報に一致しない場合には、ユーザが第1の通信方式に従った無線接続が確立されることを望んでいる可能性が低い。従って、第1の通信機器は、第3の機器識別情報が第2の機器識別情報に一致しないと判断する場合には、第2のネットワーク関係情報を第3の通信機器に送信せず、この結果、第1の通信方式に従った無線接続を第3の通信機器と確立しない。そして、第1の通信機器は、第3の機器識別情報が第2の機器識別情報に一致すると判断する場合には、第2のインターフェースを介して第2のネットワーク関係情報を第3の通信機器に一致する第2の通信機器に送信する。これにより、第1の通信機器は、第1の通信方式に従った第2の無線接続を第2の通信機器と確立して、第2の無線ネットワークを形成することができる。このように、第1の通信機器は、第2の通信方式に従った無線通信を実行した後に、適切な状況で、第1の通信方式に従った無線接続を確立し得る。 According to the above configuration, the first communication device can operate in a state where the distance between the first communication device and the second communication device is less than a predetermined distance, that is, when the user uses wireless communication according to the first communication method. The first network related information is transmitted to the second communication device via the second interface in a state where it is likely that a connection is desired to be established. Thereby, the first communication device can establish a first wireless connection according to the first communication method with the second communication device to form a first wireless network. Then, the first communication device receives the second device identification information from the second communication device and stores it in the memory. Thereafter, when the first communication device receives specific information from the third communication device via the second interface, the third device identification information in the specific information is the second device identification information in the memory. Determine whether it matches or not. The fact that the third device identification information matches the second device identification information means that the third communication device can communicate with Means to match the equipment. Therefore, if the third device identification information matches the second device identification information, there is a high possibility that the user desires to reestablish a wireless connection according to the first communication method. On the other hand, if the third device identification information does not match the second device identification information, it is unlikely that the user desires to establish a wireless connection according to the first communication method. Therefore, if the first communication device determines that the third device identification information does not match the second device identification information, the first communication device does not transmit the second network related information to the third communication device, and As a result, a wireless connection according to the first communication method is not established with the third communication device. If the first communication device determines that the third device identification information matches the second device identification information, the first communication device transmits the second network related information to the third communication device via the second interface. to a second communication device that matches. Thereby, the first communication device can establish a second wireless connection according to the first communication method with the second communication device, thereby forming a second wireless network. In this way, the first communication device can establish a wireless connection according to the first communication method in an appropriate situation after performing wireless communication according to the second communication method.

上記の第1の通信機器を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。 A control method, a computer program, and a computer-readable recording medium storing the computer program for realizing the first communication device described above are also new and useful.

本明細書で開示する第2の通信機器は、Wi-Fi方式に従った無線通信を実行するためのWi-Fiインターフェースと、Bluetooth(登録商標)方式の4.0以降のバージョンに従った無線通信を実行するためのBluetoothインターフェースと、前記Bluetoothインターフェースを介して、第1の通信機器から、前記第1の通信機器を識別する識別情報を含むAdvertise信号を受信するAdvertise信号受信部と、前記Bluetoothインターフェースを介して、前記Advertise信号に含まれる前記識別情報によって識別される前記第1の通信機器に対するBluetooth接続要求を前記第1の通信機器に送信する第1の要求送信部と、前記Bluetoothインターフェースを介したBluetooth接続を、前記Bluetooth接続要求を受信した前記第1の通信機器と確立する第1の確立部と、前記第1の通信機器から、前記第2の通信機器を前記第1の通信機器が所属するWi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための接続情報を、前記Bluetoothインターフェースを介した前記Bluetooth接続を利用して受信する接続情報受信部と、前記接続情報が前記第1の通信機器から受信され、かつ、前記第1の通信機器が前記Wi-Fiネットワークを利用可能である場合に、前記Wi-Fiインターフェースを介して、Wi-Fi接続要求を前記第1の通信機器に送信する第2の要求送信部と、前記Wi-Fi接続要求を前記第1の通信機器に送信すると、前記Wi-Fiインターフェースを介したWi-Fi接続を前記第1の通信機器と確立する第2の確立部と、を備える。
本明細書では、他の第2の通信機器のためのコンピュータプログラムも開示する。前記第2の通信機器は、第1の通信方式に従った無線通信を実行するための第1のインターフェースと、前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、プロセッサと、を備える。前記コンピュータプログラムは、前記プロセッサに、以下の各処理、即ち、第1の通信機器と前記第2の通信機器との間の距離が所定距離未満である状態で、前記第1の通信機器から、前記第2のインターフェースを介して、第1の無線ネットワークに関係する第1のネットワーク関係情報を受信する第1のネットワーク関係情報受信処理であって、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記第1のネットワーク関係情報受信処理と、前記第1の通信機器から前記第1のネットワーク関係情報を受信することに応じて、前記第1のインターフェースを介して、第1の無線接続要求を前記第1の通信機器に送信する第1の接続要求送信処理と、前記第1の無線接続要求を前記第1の通信機器に送信することに応じて、前記第1のネットワーク関係情報を利用して、前記第1のインターフェースを介した第1の無線接続を前記第1の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立処理と、前記第1の通信機器から、前記第1の通信機器を識別するための第1の機器識別情報を受信する機器識別情報受信処理と、前記第1の機器識別情報を前記第2の通信機器のメモリに格納させる格納制御処理と、前記第1の機器識別情報が前記メモリに格納された後に、第3の通信機器から、前記第2のインターフェースを介して、前記第3の通信機器を識別するための第3の機器識別情報を含む第1の所定信号を受信する第1の所定信号受信処理と、前記第1の所定信号内の前記第3の機器識別情報が前記メモリ内の前記第1の機器識別情報に一致するのか否かを判断する識別情報判断処理と、前記第3の機器識別情報が前記第1の機器識別情報に一致すると判断される場合に、前記第2のインターフェースを介して、無線ネットワークに関係するネットワーク関係情報を要求するための第1の所定要求を前記第3の通信機器に一致する前記第1の通信機器に送信し、前記第3の機器識別情報が前記第1の機器識別情報に一致しないと判断される場合に、前記第1の所定要求を前記第3の通信機器に送信しない第1の所定要求送信処理と、前記第1の所定要求を前記第1の通信機器に送信することに応じて、前記第1の通信機器から、前記第2のインターフェースを介して、第2の無線ネットワークに関係する第2のネットワーク関係情報を受信する第2のネットワーク関係情報受信処理であって、前記第2の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークであり、前記第2のネットワーク関係情報は、前記第1のネットワーク関係情報とは異なる、前記第2のネットワーク関係情報受信処理と、前記第1の通信機器から前記第2のネットワーク関係情報を受信することに応じて、前記第1のインターフェースを介して、第2の無線接続要求を前記第1の通信機器に送信する第2の接続要求送信処理と、前記第2の無線接続要求を前記第1の通信機器に送信することに応じて、前記第2のネットワーク関係情報を利用して、前記第1のインターフェースを介した第2の無線接続を前記第1の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第2の無線ネットワークを形成する第2の確立処理と、を実行させる。
A second communication device disclosed in this specification includes a Wi-Fi interface for performing wireless communication according to the Wi-Fi method, and a wireless communication device according to version 4.0 or later of the Bluetooth (registered trademark) method. a Bluetooth interface for performing communication; an Advertise signal receiving unit that receives an Advertise signal including identification information for identifying the first communication device from a first communication device via the Bluetooth interface; a first request transmitter that transmits a Bluetooth connection request to the first communication device identified by the identification information included in the Advertise signal to the first communication device via an interface; a first establishing unit that establishes a Bluetooth connection with the first communication device that has received the Bluetooth connection request; a connection information receiving unit that receives connection information for enabling connection to a Wi-Fi network to which the device belongs via the Wi-Fi interface, using the Bluetooth connection via the Bluetooth interface; is received from the first communication device, and the first communication device can use the Wi-Fi network, the Wi-Fi connection request is sent to the first communication device via the Wi-Fi interface. a second request transmitter that transmits the Wi-Fi connection request to the first communication device; A second establishing unit that establishes with the device.
A computer program for another second communication device is also disclosed herein. The second communication device includes a first interface for performing wireless communication according to a first communication method, and a first interface for performing wireless communication according to a second communication method different from the first communication method. and a processor. The computer program causes the processor to perform each of the following processes, that is, to perform the following processing from the first communication device to the second communication device in a state where the distance between the first communication device and the second communication device is less than a predetermined distance. a first network related information receiving process of receiving first network related information related to a first wireless network via the second interface, the first wireless network being connected to the first network related information; In response to receiving the first network-related information from the first communication device, which is a network for performing wireless communication via an interface, the first network-related information is received from the first communication device. a first connection request transmission process of transmitting a first wireless connection request to the first communication device via a first interface; and transmitting the first wireless connection request to the first communication device. in response to establishing a first wireless connection with the first communication device via the first interface using the first network related information to connect the first communication device and the first communication device. a first establishment process for forming the first wireless network to which both communication devices belong, and first device identification for identifying the first communication device from the first communication device. a device identification information reception process for receiving information; a storage control process for storing the first device identification information in the memory of the second communication device; and after the first device identification information is stored in the memory. , a first predetermined signal reception that receives a first predetermined signal including third device identification information for identifying the third communication device from the third communication device via the second interface; identification information determination processing for determining whether or not the third device identification information in the first predetermined signal matches the first device identification information in the memory; If it is determined that the identification information matches the first device identification information, the third device sends a first predetermined request for requesting network related information related to a wireless network via the second interface. and if it is determined that the third device identification information does not match the first device identification information, the first predetermined request is transmitted to the first communication device that matches the communication device of from the first communication device to the second interface in response to transmitting the first predetermined request to the first communication device. a second network-related information receiving process for receiving second network-related information related to a second wireless network via the first interface; The second network related information is a network for executing communication, and the second network related information is different from the first network related information and is transmitted from the first communication device to the second network related information. a second connection request transmission process of transmitting a second wireless connection request to the first communication device via the first interface in response to receiving the second network related information; in response to transmitting a wireless connection request to the first communication device, using the second network related information to establish a second wireless connection via the first interface to the first communication device. a second establishment process of establishing with the device and forming the second wireless network to which both the first communication device and the second communication device belong.

上記のコンピュータプログラムは、以下の第2の通信機器を実現することができる。即ち、第2の通信機器は、第1の通信機器と第2の通信機器との間の距離が所定距離未満である状態、即ち、ユーザが第1の通信方式に従った無線接続が確立されることを望んでいる可能性が高い状態において、第1の通信機器から第2のインターフェースを介して第1のネットワーク関係情報を受信する。これにより、第2の通信機器は、第1の通信方式に従った第1の無線接続を第1の通信機器と確立して、第1の無線ネットワークを形成することができる。そして、第2の通信機器は、第1の通信機器から第1の機器識別情報を受信してメモリに格納させる。その後、第2の通信機器は、第3の通信機器から第2のインターフェースを介して第1の所定信号を受信する場合に、第1の所定信号内の第3の機器識別情報がメモリ内の第1の機器識別情報に一致するのか否かを判断する。第3の機器識別情報が第1の機器識別情報に一致するということは、第3の通信機器が、第1の通信方式に従った第1の無線接続が過去に確立された第1の通信機器に一致することを意味する。従って、ユーザが第1の通信方式に従った無線接続が再び確立されることを望んでいる可能性が高い。一方、第3の機器識別情報が第1の機器識別情報に一致しない場合には、ユーザが第1の通信方式に従った無線接続が確立されることを望んでいる可能性が低い。
従って、第2の通信機器は、第3の機器識別情報が第1の機器識別情報に一致しないと判断する場合には、第1の所定要求を第3の通信機器に送信せず、この結果、第1の通信方式に従った無線接続を第3の通信機器と確立しない。そして、第2の通信機器は、第3の機器識別情報が第1の機器識別情報に一致すると判断する場合には、第2のインターフェースを介して第1の所定要求を第3の通信機器に一致する第1の通信機器に送信する。これにより、第2の通信機器は、第1の通信機器から第2のインターフェースを介して第2のネットワーク関係情報を受信し、第1の通信方式に従った第2の無線接続を第1の通信機器と確立して、第2の無線ネットワークを形成することができる。このように、第2の通信機器は、第2の通信方式に従った無線通信を実行した後に、適切な状況で、第1の通信方式に従った無線接続を確立し得る。
The above computer program can realize the following second communication device. That is, the second communication device is in a state where the distance between the first communication device and the second communication device is less than a predetermined distance, that is, the user has established a wireless connection according to the first communication method. The first network related information is received from the first communication device via the second interface in a state where the first communication device is likely to desire to do so. Thereby, the second communication device can establish a first wireless connection according to the first communication method with the first communication device, and form a first wireless network. The second communication device then receives the first device identification information from the first communication device and stores it in its memory. Thereafter, when the second communication device receives the first predetermined signal from the third communication device via the second interface, the third device identification information in the first predetermined signal is stored in the memory. It is determined whether the information matches the first device identification information. The fact that the third device identification information matches the first device identification information means that the third communication device is connected to the first wireless connection established in the past according to the first communication method. Means to match the equipment. Therefore, there is a high possibility that the user desires that the wireless connection according to the first communication method be re-established. On the other hand, if the third device identification information does not match the first device identification information, it is unlikely that the user desires to establish a wireless connection according to the first communication method.
Therefore, if the second communication device determines that the third device identification information does not match the first device identification information, the second communication device does not transmit the first predetermined request to the third communication device, and as a result , does not establish a wireless connection according to the first communication method with the third communication device. If the second communication device determines that the third device identification information matches the first device identification information, the second communication device sends the first predetermined request to the third communication device via the second interface. and transmitting it to the matching first communication device. Thereby, the second communication device receives the second network related information from the first communication device via the second interface, and connects the second wireless connection according to the first communication method to the first communication device. A second wireless network can be established with a communication device. In this way, the second communication device can establish a wireless connection according to the first communication method in an appropriate situation after performing wireless communication according to the second communication method.

上記のコンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。また、上記の第2の通信機器そのものも新規で有用である。また、上記の第2の通信機器を実現するための制御方法も新規で有用である。また、上記の第1の通信機器と第2の通信機器とを備える通信システムも、新規で有用である。 Also novel and useful are computer-readable recording media storing the above-described computer programs. Furthermore, the second communication device itself is new and useful. Furthermore, the control method for realizing the second communication device described above is also new and useful. Further, a communication system including the first communication device and the second communication device described above is also new and useful.

通信システムの構成を示す。The configuration of the communication system is shown. 第1実施例のプリンタの処理のフローチャートを示す。A flowchart of processing of the printer according to the first embodiment is shown. 第1実施例の携帯端末の処理のフローチャートを示す。A flowchart of processing of the mobile terminal according to the first embodiment is shown. 第1実施例のケースAのシーケンス図を示す。A sequence diagram of case A of the first embodiment is shown. 第1実施例のケースB1及びB2のシーケンス図を示す。A sequence diagram of cases B1 and B2 of the first embodiment is shown. 第2実施例のプリンタの処理のフローチャートを示す。A flowchart of processing of a printer according to a second embodiment is shown. 第2実施例の携帯端末の処理のフローチャートを示す。The flowchart of the process of the mobile terminal of 2nd Example is shown. 第2実施例のケースCのシーケンス図を示す。A sequence diagram of case C of the second embodiment is shown. 第2実施例のケースD1及びD2のシーケンス図を示す。A sequence diagram of cases D1 and D2 of the second embodiment is shown. 第3実施例のプリンタの処理のフローチャートを示す。A flowchart of processing of a printer according to a third embodiment is shown. 第3及び第4実施例の携帯端末の処理のフローチャートを示す。A flowchart of processing of the mobile terminal in the third and fourth embodiments is shown. 第3及び第4実施例のケースEのシーケンス図を示す。A sequence diagram of case E of the third and fourth embodiments is shown. 第3実施例のケースF1及びF2のシーケンス図を示す。A sequence diagram of cases F1 and F2 of the third embodiment is shown. 第4実施例のプリンタの処理のフローチャートを示す。A flowchart of processing of a printer according to a fourth embodiment is shown. 第4実施例のケースG1及びG2のシーケンス図を示す。A sequence diagram of cases G1 and G2 of the fourth embodiment is shown.

(第1実施例)
(通信システム2の構成)
図1に示されるように、通信システム2は、プリンタPRと、複数個の携帯端末PT1,PT2と、を備える。プリンタPRと各携帯端末PT1,PT2とは、無線通信を相互に実行可能である。
(First example)
(Configuration of communication system 2)
As shown in FIG. 1, the communication system 2 includes a printer PR and a plurality of mobile terminals PT1 and PT2. The printer PR and each of the mobile terminals PT1 and PT2 can perform wireless communication with each other.

(プリンタPRの構成)
プリンタPRは、印刷機能を実行可能な周辺機器、即ち、携帯端末PT1等の周辺機器である。プリンタPRは、操作部12と、表示部14と、印刷実行部16と、Wi-Fiインターフェース20と、BT(Bluetooth(登録商標)の略)インターフェース22と
、制御部30と、を備える。各部12~30は、バス線(符号省略)に接続されている。以下では、インターフェースのことを「I/F」と呼ぶ。なお、図1には、NFC(NearFieldCommunicationの略)I/F24も開示されているが、NFCI/F24は、後述
の第3及び第4実施例で利用されるI/Fであり、第1及び第2実施例のプリンタPRに設けられていてもよいし設けられていなくてもよい。
(Structure of printer PR)
The printer PR is a peripheral device that can execute a printing function, that is, a peripheral device such as the mobile terminal PT1. The printer PR includes an operation section 12, a display section 14, a print execution section 16, a Wi-Fi interface 20, a BT (abbreviation for Bluetooth (registered trademark)) interface 22, and a control section 30. Each part 12 to 30 is connected to a bus line (numerals omitted). Hereinafter, the interface will be referred to as "I/F". Note that FIG. 1 also discloses an NFC (abbreviation for Near Field Communication) I/F 24, but the NFC I/F 24 is an I/F used in the third and fourth embodiments described later, and is It may or may not be provided in the printer PR of the second embodiment.

操作部12は、複数のキーを備える。ユーザは、操作部12を操作することによって、様々な指示をプリンタPRに入力することができる。表示部14は、様々な情報を表示するためのディスプレイである。表示部14は、いわゆるタッチパネルとしても機能する。即ち、表示部14は、ユーザによって操作される操作部としても機能する。印刷実行部16は、インクジェット方式、レーザ方式等の印刷機構である。 The operation unit 12 includes a plurality of keys. By operating the operation unit 12, the user can input various instructions to the printer PR. The display unit 14 is a display for displaying various information. The display unit 14 also functions as a so-called touch panel. That is, the display section 14 also functions as an operation section operated by the user. The printing execution unit 16 is a printing mechanism using an inkjet method, a laser method, or the like.

Wi-FiI/F20は、Wi-Fi方式に従った無線通信(以下では「Wi-Fi通信」と呼ぶ)を実行するためのI/Fである。Wi-Fi方式は、例えば、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の
規格、及び、それに準ずる規格(例えば、802.11a,11b,11g,11n等)に基づく無線通信方式である。より具体的に言うと、Wi-FiI/F20は、Wi-Fi Allianceによって策定されたWFD(Wi-Fi Direct(登録商標)の略)方式をサポートしている。WFD方式は、Wi-Fi Allianceによって作成された規格書「Wi-Fi Peer-to-Peer (P2P) Technical Specification Version1.1」に記述され
ている無線通信方式である。
The Wi-Fi I/F 20 is an I/F for performing wireless communication according to the Wi-Fi method (hereinafter referred to as "Wi-Fi communication"). The Wi-Fi method is based on, for example, the IEEE (The Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and standards equivalent to it (e.g. 802.11a, 11b, 11g, 11n, etc.). It is a wireless communication method based on More specifically, the Wi-Fi I/F 20 supports the WFD (abbreviation for Wi-Fi Direct (registered trademark)) method developed by the Wi-Fi Alliance. The WFD method is a wireless communication method described in the standard document “Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1” created by the Wi-Fi Alliance.

BTI/F22は、Bluetooth方式に従った無線通信(以下では「BT通信」と呼ぶ)を実行するためのI/Fである。Bluetooth方式は、例えば、IEEE802.15.1の規格、及び、それに準ずる規格に基づく無線通信方式である。より具体的に言うと、BTI/F22は、BLE(Bluetooth Low Energyの略)をサポートしている。BLEは、Bluetooth方式のバージョン4.0以降のバージョンで実現されている規格である。なお、以下では、Bluetooth方式のバージョン4.0未満のことを「クラシックBT」と呼ぶ。一対のBTI/Fの間でBLEに従ったBT通信を実行するために、一方のBTI/Fが、BT方式で定められている「Bluetooth Smart Ready」に対応し、かつ、他方のBTI/Fが、「BluetoothSmart Ready」、又は、BT方
式で定められている「Bluetooth Smart」に対応していてもよい。「Bluetooth Smart Ready」に対応するBTI/Fは、BLEに従った動作とクラシックBTに従った動作との双方を実行可能なI/F(即ちいわゆるデュアルモードのI/F)である。「Bluetooth Smart」に対応するBTI/Fは、BLEに従った動作を実行可能であるが、クラシックB
Tに従った動作を実行不可能なI/Fである。本実施例では、プリンタPRと携帯端末PT1,PT2との間でBLEに従ったBT通信が実行される。そして、携帯端末PT1,PT2の後述のBTI/F(例えば符号62)が「Bluetooth Smart Ready」に対応して
いるので、プリンタPRのBTI/F22は、「Bluetooth Smart Ready」及び「Bluetooth Smart」のどちらに対応していてもよい。ただし、変形例では、プリンタPRのBTI/F22が「Bluetooth Smart Ready」に対応している場合に、携帯端末PT1,PT2
のBTI/Fが「Bluetooth Smart」に対応していてもよい。
The BT I/F 22 is an I/F for performing wireless communication according to the Bluetooth method (hereinafter referred to as "BT communication"). The Bluetooth method is, for example, a wireless communication method based on the IEEE802.15.1 standard and standards corresponding thereto. More specifically, the BT I/F 22 supports BLE (abbreviation for Bluetooth Low Energy). BLE is a standard implemented in Bluetooth version 4.0 and later versions. Note that, hereinafter, a Bluetooth system version lower than 4.0 will be referred to as "classic BT." In order to perform BT communication according to BLE between a pair of BTI/Fs, one BTI/F must be compatible with "Bluetooth Smart Ready" defined in the BT method, and the other BTI/F must be compatible with "Bluetooth Smart Ready" defined in the BT method, and may correspond to "Bluetooth Smart Ready" or "Bluetooth Smart" defined by the BT system. A BT I/F that supports "Bluetooth Smart Ready" is an I/F that can perform both operations according to BLE and operations according to classic BT (that is, a so-called dual-mode I/F). BT I/F that supports "Bluetooth Smart" can perform operations according to BLE, but Classic B
This is an I/F that cannot perform operations according to T. In this embodiment, BT communication based on BLE is performed between the printer PR and the mobile terminals PT1 and PT2. Since the later-described BT I/F (for example, code 62) of the mobile terminals PT1 and PT2 supports "Bluetooth Smart Ready", the BTI/F22 of the printer PR supports "Bluetooth Smart Ready" and "Bluetooth Smart". It may be compatible with either. However, in the modified example, when the BT I/F22 of the printer PR supports "Bluetooth Smart Ready", the mobile terminals PT1 and PT2
The BT I/F may be compatible with "Bluetooth Smart".

クラシックBTとBLEとの相違点を記述しておく。BLEのチャネル数(即ち40)は、クラシックBTのチャネル数(即ち79)よりも少ない。BLEのデータ通信時の消費電流(例えば15mA)は、クラシックBTのデータ通信時の消費電流(例えば35mA)よりも小さい。従って、BLEの消費電力は、クラシックBTの消費電力よりも低い。また、BLEでは、Advertise信号が利用されるが、クラシックBTでは、Advertise信号が利用されない。 The differences between classic BT and BLE will be described. The number of channels of BLE (ie, 40) is smaller than the number of channels of classic BT (ie, 79). Current consumption during BLE data communication (for example, 15 mA) is smaller than current consumption during classic BT data communication (for example, 35 mA). Therefore, the power consumption of BLE is lower than that of classic BT. Further, in BLE, an Advertise signal is used, but in classic BT, an Advertise signal is not used.

Wi-Fi方式とBT方式との相違点を記述しておく。Wi-Fi通信の通信速度(例えば最大の通信速度が600Mbps)は、BT通信の通信速度(例えば最大の通信速度が24Mbps)よりも速い。Wi-Fi通信における搬送波の周波数は、2.4GHz帯又は5.0GHz帯である。BT通信における搬送波の周波数は、2.4GHz帯である。即ち、Wi-Fi通信における搬送波の周波数として5.0GHz帯が採用される場合には、Wi-Fi通信における搬送波の周波数とBT通信における搬送波の周波数とは
異なる。また、Wi-Fi通信を実行可能な最大の距離(例えば約100m)は、BT通信を実行可能な最大の距離(例えば約数十m)よりも大きい。
The differences between the Wi-Fi method and the BT method will be described. The communication speed of Wi-Fi communication (for example, the maximum communication speed is 600 Mbps) is faster than the communication speed of BT communication (for example, the maximum communication speed is 24 Mbps). The frequency of a carrier wave in Wi-Fi communication is a 2.4 GHz band or a 5.0 GHz band. The frequency of carrier waves in BT communication is the 2.4 GHz band. That is, when the 5.0 GHz band is adopted as the frequency of the carrier wave in Wi-Fi communication, the frequency of the carrier wave in Wi-Fi communication is different from the frequency of the carrier wave in BT communication. Further, the maximum distance at which Wi-Fi communication can be performed (for example, approximately 100 m) is greater than the maximum distance at which BT communication can be performed (for example, approximately several tens of meters).

制御部30は、CPU32と、メモリ34と、を備える。CPU32は、メモリ34に格納されているプログラム36に従って、様々な処理を実行する。メモリ34は、揮発性メモリ、不揮発性メモリ等によって構成される。メモリ34は、プリンタPRのBTデバイス名「NP」を格納する。BTデバイス名「NP」は、BTI/F22に割り当てられているユニークな名称であり、換言すると、プリンタPRがBT通信を実行するために、プリンタPRを識別するための情報として利用される名称である。なお、図1では、メモリ34が領域40を備えるように示されているが、当該領域40は、後述の第2及び第4実施例で利用される。 The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 executes various processes according to the program 36 stored in the memory 34. The memory 34 is composed of volatile memory, nonvolatile memory, and the like. The memory 34 stores the BT device name "NP" of the printer PR. The BT device name "NP" is a unique name assigned to the BTI/F 22. In other words, it is a name used as information to identify the printer PR in order for the printer PR to execute BT communication. be. Note that although the memory 34 is shown to include an area 40 in FIG. 1, the area 40 will be used in the second and fourth embodiments described later.

(携帯端末PT1,PT2の構成)
各携帯端末PT1,PT2は、例えば、携帯電話(例えばスマートフォン)、PDA、ノートPC、タブレットPC、携帯型音楽再生装置、携帯型動画再生装置等の可搬型の端末装置である。以下では、携帯端末PT1の構成を説明するが、携帯端末PT2も携帯端末PT1と同様の構成を備える。
(Configuration of mobile terminals PT1 and PT2)
Each of the mobile terminals PT1 and PT2 is a portable terminal device such as a mobile phone (for example, a smartphone), a PDA, a notebook PC, a tablet PC, a portable music playback device, a portable video playback device, or the like. Although the configuration of the mobile terminal PT1 will be described below, the mobile terminal PT2 also has the same configuration as the mobile terminal PT1.

携帯端末PT1は、操作部52と、表示部54と、Wi-FiI/F60と、BTI/F62と、制御部70と、を備える。各部52~70は、バス線(符号省略)に接続されている。なお、NFCI/F64は、後述の第3及び第4実施例で利用されるI/Fであり、第1及び第2実施例の携帯端末PT1に設けられていてもよいし設けられていなくてもよい。 The mobile terminal PT1 includes an operation section 52, a display section 54, a Wi-Fi I/F 60, a BTI/F 62, and a control section 70. Each part 52 to 70 is connected to a bus line (numerals omitted). Note that the NFC I/F 64 is an I/F used in the third and fourth embodiments described later, and may or may not be provided in the mobile terminal PT1 of the first and second embodiments. Good too.

操作部52は、複数のキーを備える。ユーザは、操作部52を操作することによって、様々な指示を携帯端末PT1に入力することができる。表示部54は、様々な情報を表示するためのディスプレイである。表示部54は、いわゆるタッチパネルとしても機能する(即ち操作部としても機能する)。Wi-FiI/F60は、Wi-Fi通信を実行するためのI/Fである。Wi-FiI/F60は、WFDをサポートしていてもよいし、WFDをサポートしていなくてもよい。BTI/F62は、BT通信を実行するためのI/Fであり、BLEをサポートしている。各I/F60,62の相違は、プリンタPRの各I/F20,22の相違と同様である。 The operation unit 52 includes a plurality of keys. By operating the operation unit 52, the user can input various instructions to the mobile terminal PT1. The display unit 54 is a display for displaying various information. The display section 54 also functions as a so-called touch panel (that is, it also functions as an operation section). The Wi-Fi I/F 60 is an I/F for performing Wi-Fi communication. The Wi-Fi I/F 60 may or may not support WFD. The BTI/F 62 is an I/F for executing BT communication and supports BLE. The differences between the respective I/Fs 60 and 62 are the same as the differences between the respective I/Fs 20 and 22 of the printer PR.

制御部70は、CPU72とメモリ74とを備える。CPU72は、メモリ74に格納されているOSプログラム76に従って、様々な処理を実行する。メモリ74は、揮発性メモリ、不揮発性メモリ等によって構成される。メモリ74は、OSプログラム76のみならず、プリンタアプリケーション78を格納する。プリンタアプリケーション78は、プリンタPRに印刷機能を実行させるためのアプリケーションである。ユーザがプリンタPRに印刷機能を実行させることを望む際に、プリンタアプリケーション78がユーザによって起動される。プリンタアプリケーション78は、例えば、プリンタPRのベンダによって提供されるインターネット上のサーバから携帯端末PT1にインストールされてもよいし、プリンタPRと共に出荷されるメディアから携帯端末PT1にインストールされてもよい。 The control unit 70 includes a CPU 72 and a memory 74. The CPU 72 executes various processes according to the OS program 76 stored in the memory 74. The memory 74 is composed of volatile memory, nonvolatile memory, and the like. The memory 74 stores not only the OS program 76 but also a printer application 78. The printer application 78 is an application for causing the printer PR to execute a printing function. Printer application 78 is launched by the user when the user desires to have the printer PR perform a printing function. For example, the printer application 78 may be installed on the mobile terminal PT1 from a server on the Internet provided by the vendor of the printer PR, or may be installed on the mobile terminal PT1 from a medium shipped together with the printer PR.

メモリ74は、さらに、携帯端末PT1のBTデバイス名「N1」を格納する。BTデバイス名「N1」は、BTI/F62に割り当てられているユニークな名称であり、換言すると、携帯端末PT1がBT通信を実行するために、携帯端末PT1を識別するための情報として利用される名称である。なお、携帯端末PT2は、BTデバイス名「N1」とは異なるBTデバイス名「N2」を有する。メモリ74は、BTデバイス名格納領域80を備える。BTデバイス名格納領域80は、Wi-FiI/F60を介した無線接続、即
ち、Wi-Fi方式に従った無線接続が確立されたプリンタ(以下では「確立済みプリンタ」と呼ぶ)のBTデバイス名を格納するための領域である。
The memory 74 further stores the BT device name "N1" of the mobile terminal PT1. The BT device name "N1" is a unique name assigned to the BTI/F62, and in other words, is used as information for identifying the mobile terminal PT1 in order for the mobile terminal PT1 to perform BT communication. It is a name. Note that the mobile terminal PT2 has a BT device name "N2" that is different from the BT device name "N1". The memory 74 includes a BT device name storage area 80. The BT device name storage area 80 stores the BT device name of a printer (hereinafter referred to as an "established printer") with which a wireless connection via the Wi-Fi I/F 60, that is, a wireless connection according to the Wi-Fi method has been established. This is an area for storing.

(プリンタPRの処理;図2)
続いて、図2を参照して、プリンタPRのCPU32が実行する処理について説明する。CPU32は、プリンタPRの電源がONされると、図2の処理を開始する。
(Printer PR process; Figure 2)
Next, with reference to FIG. 2, the processing executed by the CPU 32 of the printer PR will be described. The CPU 32 starts the process shown in FIG. 2 when the printer PR is powered on.

S2では、CPU32は、ランダムに文字列を生成することによって、SSID(Service SetIdentifierの略)を生成する。そして、CPU32は、SSIDをメモリ34に
格納させる。SSIDは、Wi-Fi通信を実行するための無線ネットワークを識別するための識別子である。
In S2, the CPU 32 generates an SSID (abbreviation for Service Set Identifier) by randomly generating a character string. Then, the CPU 32 stores the SSID in the memory 34. SSID is an identifier for identifying a wireless network for performing Wi-Fi communication.

S4では、CPU32は、BTI/F22をOFF状態からON状態に変更する。ここで、BTI/F22のOFF状態は、BTI/F22に電力が供給されていない状態、即ち、BT通信を実行不可能な状態である。また、BTI/F22のON状態は、BTI/F22に電力が供給されている状態、即ち、BT通信を実行可能な状態である。ON状態であるBTI/F22の消費電力(即ちBLEの消費電力)は、ON状態であるWi-FiI/F20の消費電力よりも低い。 In S4, the CPU 32 changes the BTI/F 22 from the OFF state to the ON state. Here, the OFF state of the BTI/F 22 is a state in which power is not supplied to the BTI/F 22, that is, a state in which BT communication cannot be performed. Further, the ON state of the BTI/F 22 is a state in which power is supplied to the BTI/F 22, that is, a state in which BT communication can be executed. The power consumption of the BTI/F 22 in the ON state (that is, the power consumption of BLE) is lower than the power consumption of the Wi-Fi I/F 20 in the ON state.

S6では、CPU32は、BTI/F22を介して、Advertise信号を繰り返しブロードキャスト送信する送信処理を開始する。Advertise信号は、メモリ34内のプリンタPRのBTデバイス名「NP」を含む。Advertise信号は、プリンタPRの周囲の機器にプリンタ自身の存在を知らせるための信号である。特に、CPU32は、Bluetoothの論理リンク(即ちBluetooth方式の無線接続)を確立することなく、Advertise信号を外部に送信する。より具体的には、Bluetoothのプロトコルスタックのうち、L2CAP層以上の通信が実行されず、L2CAP層よりも下位層(即ちLink Maneger層又はLink Layer層)の通信が実行されて、Advertise信号が通信される。L2CAP層は、Bluetoothの論理リンクを確立するための最上位層である。即ち、論理リンクを確立するための最上位層の通信が実行されずに、当該最上位層よりも下位層の通信が実行されて、Advertise信号が通信される。 In S6, the CPU 32 starts a transmission process of repeatedly broadcasting the Advertise signal via the BTI/F 22. The Advertise signal includes the BT device name "NP" of the printer PR in the memory 34. The Advertise signal is a signal for notifying devices around the printer PR of the existence of the printer itself. In particular, the CPU 32 transmits the Advertise signal to the outside without establishing a Bluetooth logical link (that is, a Bluetooth wireless connection). More specifically, in the Bluetooth protocol stack, communication at the L2CAP layer or above is not executed, communication at a layer lower than the L2CAP layer (i.e., Link Manager layer or Link Layer layer) is executed, and the Advertise signal is not communicated. be done. The L2CAP layer is the top layer for establishing a Bluetooth logical link. In other words, communication at the uppermost layer for establishing a logical link is not executed, but communication at a lower layer than the uppermost layer is executed, and the Advertise signal is communicated.

S10では、CPU32は、携帯端末から、BTI/F22を介して、Scan Request信号(以下では「Scan_Req信号」と記載する)を受信することを監視する。Scan_Req信号は、Advertise信号を受信した携帯端末から送信される信号である。Scan_Req信号は、ユニキャスト信号であり、送信先を示す情報としてプリンタPRのBTデバイス名「NP」を含むと共に、送信元を示す情報として携帯端末のBTデバイス名(例えば携帯端末PT1のBTデバイス名「N1」)を含む。Scan_Req信号は、SSID及びパスワードを含むネットワーク情報をプリンタPRに要求するための信号である。特に、CPU32は、論理リンクを確立しなくても、Scan_Req信号を受信することができる。即ち、論理リンクを確立するための最上位層の通信が実行されずに、当該最上位層よりも下位層の通信が実行されて、Scan_Req信号が通信される。CPU32は、Scan_Req信号を受信した場合には、S10でYESと判断して、S12に進む。 In S10, the CPU 32 monitors reception of a Scan Request signal (hereinafter referred to as "Scan_Req signal") from the mobile terminal via the BT I/F 22. The Scan_Req signal is a signal transmitted from a mobile terminal that has received the Advertise signal. The Scan_Req signal is a unicast signal, and includes the BT device name "NP" of the printer PR as information indicating the transmission destination, and the BT device name of the mobile terminal (for example, the BT device name of the mobile terminal PT1) as information indicating the transmission source. "N1"). The Scan_Req signal is a signal for requesting network information including the SSID and password from the printer PR. In particular, the CPU 32 can receive the Scan_Req signal without establishing a logical link. That is, the communication of the uppermost layer for establishing a logical link is not executed, but the communication of the lower layer than the uppermost layer is executed, and the Scan_Req signal is communicated. When the CPU 32 receives the Scan_Req signal, it determines YES in S10 and proceeds to S12.

S12では、CPU32は、BTI/F22を介して、Scan_Req信号の送信元の携帯端末にScan Response信号(以下では「Scan_Res信号」と記載する)を送信する。Scan_Res信号は、Scan_Req信号に対する応答信号であるユニキャスト信号であり、送信先を示す情報として携帯端末のBTデバイス名(即ち、Scan_Req信号内の送信元のBTデバイス名)を含むと共に、送信元を示す情
報としてプリンタPRのBTデバイス名「NP」を含む。CPU32は、論理リンクを確立することなく、Scan_Res信号を送信する。即ち、論理リンクを確立するための最上位層の通信が実行されずに、当該最上位層よりも下位層の通信が実行されて、Scan_Res信号が通信される。
In S12, the CPU 32 transmits a Scan Response signal (hereinafter referred to as a "Scan_Res signal") to the mobile terminal that is the source of the Scan_Req signal via the BTI/F 22. The Scan_Res signal is a unicast signal that is a response signal to the Scan_Req signal, and includes the BT device name of the mobile terminal (i.e., the BT device name of the transmission source in the Scan_Req signal) as information indicating the transmission destination, and also the transmission source. The information includes the BT device name "NP" of the printer PR. The CPU 32 transmits the Scan_Res signal without establishing a logical link. That is, the communication of the uppermost layer for establishing a logical link is not executed, but the communication of the lower layer than the uppermost layer is executed, and the Scan_Res signal is communicated.

Scan_Res信号は、メモリ34内のSSIDと、所定のパスワードと、を含む。上述したように、S2において、SSIDがメモリ34に格納される。ただし、S2が実行された後に、後述のS32が実行されると、メモリ34内の古いSSIDに代えて、新たなSSIDがメモリ34に格納される。従って、S2が実行された後に、S32が1回も実行されていない状況では、Scan_Res信号内のSSIDは、S2で生成されたSSIDである。また、S2が実行された後に、S32が実行済みである状況では、Scan_Res信号内のSSIDは、最新のS32で生成されたSSIDである。以下では、メモリ34に現在格納されているSSIDのことを「現行SSID」と呼ぶ。所定のパスワードは、プリンタPRに予め設定されている固定の文字列である。即ち、本実施例では、プリンタPRの電源がONされたり、後述のS32が実行されたりすると、SSIDが変更されるが、パスワードは変更されない。 The Scan_Res signal includes the SSID in memory 34 and a predetermined password. As mentioned above, the SSID is stored in memory 34 at S2. However, when S32, which will be described later, is executed after S2 is executed, a new SSID is stored in the memory 34 in place of the old SSID in the memory 34. Therefore, in a situation where S32 is not executed even once after S2 is executed, the SSID in the Scan_Res signal is the SSID generated in S2. Furthermore, in a situation where S32 has been executed after S2 has been executed, the SSID in the Scan_Res signal is the latest SSID generated in S32. Hereinafter, the SSID currently stored in the memory 34 will be referred to as the "current SSID." The predetermined password is a fixed character string that is preset in the printer PR. That is, in this embodiment, when the power of the printer PR is turned on or when S32, which will be described later, is executed, the SSID is changed, but the password is not changed.

S14では、CPU32は、Wi-FiI/F20をOFF状態からON状態に変更する。ここで、Wi-FiI/F20のOFF状態は、Wi-FiI/F20に電力が供給されていない状態、即ち、Wi-Fi通信を実行不可能な状態である。また、Wi-FiI/F20のON状態は、Wi-FiI/F20に電力が供給されている状態、即ち、Wi-Fi通信を実行可能な状態である。S14が実行されるまでWi-FiI/F20をOFF状態に設定することができるので、プリンタPRの消費電力を低減させることができる。 In S14, the CPU 32 changes the Wi-Fi I/F 20 from the OFF state to the ON state. Here, the OFF state of the Wi-Fi I/F 20 is a state in which power is not supplied to the Wi-Fi I/F 20, that is, a state in which Wi-Fi communication cannot be performed. Further, the ON state of the Wi-Fi I/F 20 is a state in which power is supplied to the Wi-Fi I/F 20, that is, a state in which Wi-Fi communication can be executed. Since the Wi-Fi I/F 20 can be set to the OFF state until S14 is executed, the power consumption of the printer PR can be reduced.

S14では、CPU32は、さらに、WFDのG/O(Group Ownerの略)ネゴシエー
ションを実行することなく、プリンタPRの動作状態をWFDのデバイス状態からG/O状態に自発的に移行させる。G/O状態であるプリンタPRは、Wi-FiI/F20を介して、周囲の機器に自身の存在を知らせるためのビーコン信号を送信する。一方、G/O状態以外の状態(例えば、上記のデバイス状態、クライアント状態)であるプリンタPRは、ビーコン信号を送信しない。このために、G/O状態であるプリンタPRの消費電力は、G/O状態以外の状態であるプリンタPRの消費電力よりも高い。S14が実行されるまでプリンタPRの動作状態をデバイス状態に設定することができるので、プリンタPRの消費電力を低減させることができる。
In S14, the CPU 32 further spontaneously shifts the operating state of the printer PR from the WFD device state to the G/O state without executing WFD G/O (abbreviation for Group Owner) negotiation. The printer PR in the G/O state transmits a beacon signal to notify surrounding devices of its presence via the Wi-Fi I/F 20. On the other hand, a printer PR in a state other than the G/O state (for example, the above device state or client state) does not transmit a beacon signal. For this reason, the power consumption of the printer PR in the G/O state is higher than the power consumption of the printer PR in states other than the G/O state. Since the operating state of the printer PR can be set to the device state until S14 is executed, the power consumption of the printer PR can be reduced.

S16では、CPU32は、携帯端末から、Wi-FiI/F20を介して、現行SSIDを含むWi-Fi接続要求信号を受信する。Wi-Fi接続要求信号は、Wi-Fi方式に従った無線接続(以下では「Wi-Fi接続」と呼ぶ)の確立をプリンタPRに要求するための信号であり、具体的には、Association Request信号である。 In S16, the CPU 32 receives a Wi-Fi connection request signal including the current SSID from the mobile terminal via the Wi-Fi I/F 20. The Wi-Fi connection request signal is a signal for requesting the printer PR to establish a wireless connection according to the Wi-Fi method (hereinafter referred to as "Wi-Fi connection"). Specifically, the Wi-Fi connection request signal It's a signal.

S18では、CPU32は、Wi-Fi接続を携帯端末と確立する。具体的には、CPU32は、Wi-FiI/F20を介して、各種の信号の通信(例えば、Association Response信号の送信、4-WayHandshakeの通信等)を
携帯端末と実行する。CPU32は、上記の各種の信号の通信の過程で、携帯端末からSSID及びパスワードを含むネットワーク情報を受信して、ネットワーク情報の認証を実行する。CPU32は、受信済みのSSIDが現行SSIDに一致し、かつ、受信済みのパスワードが所定のパスワードに一致する場合に、ネットワーク情報の認証が成功したと判断して、携帯端末とのWi-Fi接続を確立する。上述したように、S12において、現行SSID及び所定のパスワードを含むScan_Res信号が携帯端末に送信される
ので、携帯端末から現行SSID及び所定のパスワードを含むネットワーク情報が受信される。従って、S18では、通常、ネットワーク情報の認証が成功し、携帯端末とのWi-Fi接続が確立される。
In S18, the CPU 32 establishes a Wi-Fi connection with the mobile terminal. Specifically, the CPU 32 communicates various signals (for example, transmission of an Association Response signal, 4-Way Handshake communication, etc.) with the mobile terminal via the Wi-Fi I/F 20. During the process of communicating the various signals described above, the CPU 32 receives network information including the SSID and password from the mobile terminal, and authenticates the network information. If the received SSID matches the current SSID and the received password matches a predetermined password, the CPU 32 determines that the network information has been successfully authenticated and establishes a Wi-Fi connection with the mobile terminal. Establish. As described above, in S12, the Scan_Res signal including the current SSID and the predetermined password is transmitted to the mobile terminal, so that the network information including the current SSID and the predetermined password is received from the mobile terminal. Therefore, in S18, the network information is normally authenticated successfully, and a Wi-Fi connection with the mobile terminal is established.

上述したように、S18において、プリンタPRと携帯端末との間にWi-Fi接続が確立される。これにより、プリンタPRがG/O状態で動作し、かつ、携帯端末がいわゆるレガシーとして動作するWi-Fi方式の無線ネットワーク(以下では「Wi-Fiネットワーク」と記載する)が形成される。レガシーは、WFDに従った動作を実行することなく、Wi-Fiネットワークに参加する機器を意味する。G/O状態であるプリンタPRがWi-Fiネットワークを管理するので、G/O状態であるプリンタPRは、Wi-Fiネットワークの親局(換言するとマスタデバイス)であると言える。また、レガシーである携帯端末が当該Wi-Fiネットワークに参加するので、レガシーである携帯端末は、Wi-Fiネットワークの子局(換言するとスレーブデバイス)であると言える。 As described above, in S18, a Wi-Fi connection is established between the printer PR and the mobile terminal. As a result, a Wi-Fi type wireless network (hereinafter referred to as a "Wi-Fi network") is formed in which the printer PR operates in the G/O state and the mobile terminal operates as a so-called legacy. Legacy refers to devices that participate in a Wi-Fi network without performing operations according to WFD. Since the printer PR in the G/O state manages the Wi-Fi network, the printer PR in the G/O state can be said to be a master station (in other words, a master device) of the Wi-Fi network. Further, since the legacy mobile terminal participates in the Wi-Fi network, the legacy mobile terminal can be said to be a slave station (in other words, a slave device) of the Wi-Fi network.

次いで、CPU32は、S20及びS30の各監視処理を順次実行することを繰り返す。S20では、CPU32は、Wi-Fiネットワークを利用して、携帯端末から、Wi-FiI/F20を介して、印刷対象の画像を表わす印刷データを受信したのか否かを判断する。CPU32は、印刷データを受信する場合(S20でYES)には、S22において、印刷データを印刷実行部16に供給して、印刷データに従った印刷を印刷実行部16に実行させる。S22が終了すると、S20に戻る。 Next, the CPU 32 repeats sequentially executing each monitoring process in S20 and S30. In S20, the CPU 32 uses the Wi-Fi network to determine whether print data representing an image to be printed has been received from the mobile terminal via the Wi-Fi I/F 20. When receiving print data (YES in S20), the CPU 32 supplies the print data to the print execution unit 16 in S22, and causes the print execution unit 16 to execute printing according to the print data. When S22 ends, the process returns to S20.

また、S30では、CPU32は、Wi-Fiネットワークを利用して、携帯端末から、Wi-FiI/F20を介して、切断信号を受信したのか否かを判断する。切断信号は、Wi-Fi接続の切断を要求するための信号である。従って、切断信号が受信される場合(S30でYES)には、プリンタPRと携帯端末との間のWi-Fi接続が切断され、S32に進む。 Further, in S30, the CPU 32 uses the Wi-Fi network to determine whether or not a disconnection signal has been received from the mobile terminal via the Wi-Fi I/F 20. The disconnection signal is a signal for requesting disconnection of the Wi-Fi connection. Therefore, if the disconnection signal is received (YES in S30), the Wi-Fi connection between the printer PR and the mobile terminal is disconnected, and the process advances to S32.

S32では、CPU32は、プリンタPRの動作状態をG/O状態からデバイス状態に移行させる。これにより、プリンタPRの消費電力を低減させることができる。また、S32では、CPU32は、さらに、Wi-FiI/F20をON状態からOFF状態に変更する。これにより、プリンタPRの消費電力を低減させることができる。なお、変形例では、電力が供給されないOFF状態に変更される代わりに、電力が供給されるスタンバイ状態に変更されてもよい。ここで、スタンバイ状態の消費電力は、ON状態の消費電力よりも低い。S32では、CPU32は、さらに、新たなSSIDを生成して、メモリ34内の古いSSIDに代えて、新たなSSIDをメモリ34に格納させる。即ち、CPU32は、SSIDを変更する。このように、プリンタPRがG/O状態を停止する毎に、SSIDが変更されるので、Wi-Fiネットワークのセキュリティを高め得る。S32が終了すると、S10に戻る。 In S32, the CPU 32 shifts the operating state of the printer PR from the G/O state to the device state. Thereby, the power consumption of the printer PR can be reduced. Further, in S32, the CPU 32 further changes the Wi-Fi I/F 20 from the ON state to the OFF state. Thereby, the power consumption of the printer PR can be reduced. In addition, in a modified example, instead of being changed to the OFF state where power is not supplied, the state may be changed to a standby state where power is supplied. Here, power consumption in the standby state is lower than power consumption in the ON state. In S32, the CPU 32 further generates a new SSID and stores the new SSID in the memory 34 in place of the old SSID in the memory 34. That is, the CPU 32 changes the SSID. In this way, the SSID is changed every time the printer PR stops the G/O state, so the security of the Wi-Fi network can be improved. When S32 ends, the process returns to S10.

(携帯端末PT1の処理;図3)
続いて、図3を参照して、携帯端末PT1のCPU72が実行する処理について説明する。なお、携帯端末PT2も同様の処理を実行可能である。CPU72は、プリンタアプリケーション78を起動するための操作が携帯端末PT1に実行されると、プリンタアプリケーション78に従って、図3の処理を開始する。なお、携帯端末PT1に対する操作は、操作部52に実行されてもよいし、表示部54(即ちタッチパネル)に実行されてもよい。この点は、以下でも同様である。
(Processing of mobile terminal PT1; Figure 3)
Next, with reference to FIG. 3, the processing executed by the CPU 72 of the mobile terminal PT1 will be described. Note that the mobile terminal PT2 can also execute similar processing. When the operation for activating the printer application 78 is executed on the mobile terminal PT1, the CPU 72 starts the process shown in FIG. 3 according to the printer application 78. Note that the operation on the mobile terminal PT1 may be performed on the operation unit 52 or the display unit 54 (ie, touch panel). This point also applies below.

S50では、CPU72は、BTI/F62を介して、Advertise信号を受信することを監視する。上述したように、プリンタPRは、BTデバイス名「NP」を含むAdvertise信号をブロードキャスト送信する(図2のS6参照)。従って、プリ
ンタPRと携帯端末PT1との間の距離が、BT通信を実行可能な最大の距離よりも短ければ、CPU72は、BTI/F62を介して、プリンタPRからAdvertise信号を受信する。この場合、CPU72は、S50でYESと判断して、S52に進む。
In S50, the CPU 72 monitors reception of the Advertise signal via the BTI/F 62. As described above, the printer PR broadcasts an Advertise signal including the BT device name "NP" (see S6 in FIG. 2). Therefore, if the distance between the printer PR and the mobile terminal PT1 is shorter than the maximum distance at which BT communication can be performed, the CPU 72 receives the Advertise signal from the printer PR via the BT I/F 62. In this case, the CPU 72 determines YES in S50 and proceeds to S52.

S52では、CPU72は、受信済みのAdvertise信号内のBTデバイス名(即ち受信済みのBTデバイス名)がBTデバイス名格納領域80に格納されているのか否かを判断する。上述したように、BTデバイス名格納領域80は、確立済みプリンタのBTデバイス名を格納する。従って、S52の判断は、Advertise信号の送信元のプリンタPRが確立済みプリンタであるのか否かを判断することを意味する。CPU72は、受信済みのBTデバイス名がBTデバイス名格納領域80に格納されていると判断する場合(S52でYES)には、S60に進む。一方、CPU72は、受信済みのBTデバイス名がBTデバイス名格納領域80に格納されていないと判断する場合(S52でNO)には、S54に進む。 In S52, the CPU 72 determines whether the BT device name in the received Advertise signal (that is, the received BT device name) is stored in the BT device name storage area 80. As described above, the BT device name storage area 80 stores the BT device names of established printers. Therefore, the determination in S52 means determining whether or not the printer PR that is the sender of the Advertise signal is an established printer. If the CPU 72 determines that the received BT device name is stored in the BT device name storage area 80 (YES in S52), the process proceeds to S60. On the other hand, if the CPU 72 determines that the received BT device name is not stored in the BT device name storage area 80 (NO in S52), the process proceeds to S54.

S54では、CPU72は、Advertise信号の送信元のプリンタPRと携帯端末PT1との間の距離が閾値未満であるのか否かを判断する。ここで、閾値は、BT通信を実行可能な最大の距離(例えば数十m)よりも小さい距離(例えば1m)である。具体的には、プリンタアプリケーション78には、プリンタPRから送信される時点のAdvertise信号の電波強度(以下では「送信時強度」と呼ぶ)が記述されている。そして、CPU72は、BTI/F62から、BTI/F62で受信される時点のAdvertise信号の電波強度(以下では「受信時強度」と呼ぶ)を取得し、送信時強度に対する受信時強度の減衰率を算出する。プリンタアプリケーション78には、さらに、減衰率と距離との関係が記述されている。CPU72は、算出済みの減衰率と上記の関係とを利用して、プリンタPRと携帯端末PT1との間の距離を特定し、特定済みの距離が閾値未満であるのか否かを判断する。CPU72は、特定済みの距離が閾値未満であると判断する場合(S54でYES)には、S60に進み、特定済みの距離が閾値以上であると判断する場合(S54でNO)には、S50に戻る。 In S54, the CPU 72 determines whether the distance between the printer PR, which is the source of the Advertise signal, and the mobile terminal PT1 is less than a threshold value. Here, the threshold value is a distance (for example, 1 m) that is smaller than the maximum distance (for example, several tens of meters) at which BT communication can be performed. Specifically, the printer application 78 describes the radio field strength of the Advertise signal at the time it is transmitted from the printer PR (hereinafter referred to as "transmission strength"). Then, the CPU 72 acquires the radio field strength of the Advertise signal at the time it is received by the BTI/F 62 (hereinafter referred to as "reception strength") from the BTI/F 62, and calculates the attenuation rate of the reception strength with respect to the transmission strength. calculate. The printer application 78 further describes the relationship between attenuation rate and distance. The CPU 72 uses the calculated attenuation rate and the above relationship to specify the distance between the printer PR and the mobile terminal PT1, and determines whether the specified distance is less than the threshold value. If the CPU 72 determines that the specified distance is less than the threshold (YES in S54), the process proceeds to S60, and if it determines that the specified distance is greater than or equal to the threshold (NO in S54), the process proceeds to S50. Return to

S60では、CPU72は、BTI/F62を介して、Scan_Req信号をプリンタPRにユニキャスト送信する。これにより、プリンタPRによってScan_Req信号が受信され得る(図2のS10でYES参照)。そして、S62では、CPU72は、プリンタPRから、BTI/F62を介して、Scan_Res信号を受信する(図2のS12参照)。 In S60, the CPU 72 unicast transmits the Scan_Req signal to the printer PR via the BTI/F 62. Thereby, the Scan_Req signal can be received by the printer PR (see YES in S10 of FIG. 2). Then, in S62, the CPU 72 receives the Scan_Res signal from the printer PR via the BT I/F 62 (see S12 in FIG. 2).

S64では、CPU72は、Wi-FiI/F60を介して、S62で受信されたScan_Res信号内のSSID(即ちプリンタPRの現行SSID)を含むWi-Fi接続要求信号をプリンタPRに送信する。これにより、Wi-Fi接続要求信号は、プリンタPRによって受信され得る(図2のS16参照)。 In S64, the CPU 72 transmits a Wi-Fi connection request signal including the SSID (ie, the current SSID of the printer PR) in the Scan_Res signal received in S62 to the printer PR via the Wi-Fi I/F 60. Thereby, the Wi-Fi connection request signal can be received by the printer PR (see S16 in FIG. 2).

S66では、CPU72は、Wi-FiI/F60を介した無線接続(即ちWi-Fi接続)をプリンタPRと確立する。具体的には、CPU72は、Wi-FiI/F60を介して、各種の信号の通信(例えば、Association Response信号の受信、4-WayHandshakeの通信等)をプリンタPRと実行する。CPU7
2は、上記の各種の信号の通信の過程で、S62で受信されたScan_Res信号内のSSID及びパスワードを含むネットワーク情報をプリンタPRに送信する。プリンタPRでネットワーク情報の認証が成功する場合には、プリンタPRとのWi-Fi接続が確立される。これにより、プリンタPRがG/O状態で動作し、かつ、携帯端末PT1がレガシーとして動作するWi-Fiネットワークが形成される(図2のS18参照)。
In S66, the CPU 72 establishes a wireless connection (ie, a Wi-Fi connection) with the printer PR via the Wi-Fi I/F 60. Specifically, the CPU 72 communicates various signals (for example, reception of an Association Response signal, 4-Way Handshake communication, etc.) with the printer PR via the Wi-Fi I/F 60. CPU7
2 transmits network information including the SSID and password in the Scan_Res signal received in S62 to the printer PR in the process of communicating the various signals described above. If the network information is successfully authenticated by the printer PR, a Wi-Fi connection with the printer PR is established. As a result, a Wi-Fi network is formed in which the printer PR operates in the G/O state and the mobile terminal PT1 operates as a legacy device (see S18 in FIG. 2).

S70では、CPU72は、印刷指示操作がユーザによって携帯端末PT1に実行され
たのか否かを判断する。印刷指示操作は、メモリ74に格納されている1個以上の画像ファイルの中から1個の画像ファイルを選択する操作と、印刷の実行を示すボタンを選択する操作と、を含む。ここで選択される画像ファイルが、プリンタPRで印刷されるべき画像を表わす印刷データである。CPU72は、印刷指示操作が実行される場合には、S70でYESと判断して、S72に進む。一方、CPU72は、S66が終了してから所定時間が経過するまでに印刷指示操作が実行されない場合、又は、キャンセルを示すボタンを選択する操作がユーザによって携帯端末PT1に実行される場合には、S70でNOと判断し、S72及びS74をスキップして、S80に進む。
In S70, the CPU 72 determines whether the user has performed a print instruction operation on the mobile terminal PT1. The print instruction operation includes an operation of selecting one image file from among one or more image files stored in the memory 74, and an operation of selecting a button indicating execution of printing. The image file selected here is print data representing the image to be printed by the printer PR. If the print instruction operation is to be executed, the CPU 72 determines YES in S70 and proceeds to S72. On the other hand, if the print instruction operation is not executed within a predetermined period of time after the end of S66, or if the user performs an operation of selecting a button indicating cancellation on the mobile terminal PT1, the CPU 72 It is determined NO in S70, skips S72 and S74, and proceeds to S80.

S72では、CPU72は、Wi-Fiネットワークを利用して、Wi-FiI/F60を介して、印刷データをプリンタPRに送信する。これにより、印刷データによって表わされる画像の印刷をプリンタPRに実行させることができる(図2のS22参照)。 In S72, the CPU 72 uses the Wi-Fi network to transmit the print data to the printer PR via the Wi-Fi I/F 60. This allows the printer PR to print the image represented by the print data (see S22 in FIG. 2).

S74では、CPU72は、S62で受信されたScan_Res信号内のプリンタPRのBTデバイス名「NP」をBTデバイス名格納領域80に格納させる。これにより、確立済みプリンタのBTデバイス名「NP」がBTデバイス名格納領域80に格納される。なお、S52でYESと判断された後にS74が実行される場合には、BTデバイス名「NP」がBTデバイス名格納領域80に既に格納されている。この場合、CPU72は、S74をスキップして、S80に進む。 In S74, the CPU 72 stores the BT device name “NP” of the printer PR in the Scan_Res signal received in S62 in the BT device name storage area 80. As a result, the BT device name “NP” of the established printer is stored in the BT device name storage area 80. Note that if S74 is executed after determining YES in S52, the BT device name “NP” has already been stored in the BT device name storage area 80. In this case, the CPU 72 skips S74 and proceeds to S80.

S80では、CPU72は、プリンタPRへの印刷データの送信が完了する場合に、Wi-Fiネットワークを利用して、Wi-FiI/F60を介して、切断信号をプリンタPRに送信する。この結果、プリンタPRと携帯端末PT1との間のWi-Fi接続が切断される(図2のS30でYES参照)。S80が終了すると、S50に戻る。 In S80, when the transmission of print data to the printer PR is completed, the CPU 72 uses the Wi-Fi network to transmit a disconnection signal to the printer PR via the Wi-Fi I/F 60. As a result, the Wi-Fi connection between the printer PR and the mobile terminal PT1 is disconnected (see YES in S30 of FIG. 2). When S80 ends, the process returns to S50.

(具体的なケース)
続いて、図4及び図5を参照して、図2及び図3の各処理によって実現される具体的なケースについて説明する。図4及び図5において、プリンタPRと携帯端末PT1,PT2との間の太線矢印、細線矢印は、それぞれ、Wi-Fi通信、BT通信を示す。この点は、後述の第2実施例以降でも同様である。
(Specific case)
Next, with reference to FIGS. 4 and 5, specific cases realized by each process in FIGS. 2 and 3 will be described. In FIGS. 4 and 5, thick line arrows and thin line arrows between printer PR and mobile terminals PT1 and PT2 indicate Wi-Fi communication and BT communication, respectively. This point also applies to the second and subsequent embodiments to be described later.

(ケースA;図4)
ケースAの初期状態では、プリンタPRの電源がOFFされている。また、携帯端末PT1は、プリンタPRとのWi-Fi接続を過去に確立していない。即ち、携帯端末PT1のBTデバイス名格納領域80には、プリンタPRのBTデバイス名「NP」が格納されていない。
(Case A; Figure 4)
In the initial state of case A, the printer PR is powered off. Furthermore, the mobile terminal PT1 has not established a Wi-Fi connection with the printer PR in the past. That is, the BT device name "NP" of the printer PR is not stored in the BT device name storage area 80 of the mobile terminal PT1.

A0では、プリンタPRの電源がユーザによってONされる。この場合、プリンタPRは、T2において、SSID「X1」を生成し(図2のS2)、T4において、BTI/F22をON状態に変更する(S4)。そして、T6では、プリンタPRは、Advertise信号を送信することを繰り返す(S6)。 At A0, the power of the printer PR is turned on by the user. In this case, the printer PR generates the SSID "X1" at T2 (S2 in FIG. 2), and changes the BTI/F 22 to the ON state at T4 (S4). Then, at T6, the printer PR repeats sending the Advertise signal (S6).

A1では、プリンタアプリケーション78を起動するための操作がユーザによって携帯端末PT1に実行される。この時点では、プリンタPRと携帯端末PT1との間の距離が閾値(即ち1m)以上である。この場合、携帯端末PT1は、プリンタPRからAdvertise信号を受信すると(図3のS50でYES)、T10において、Advertise信号内のBTデバイス名「NP」を格納済みでないと判断し(S52でNO)、さらに、プリンタPRと携帯端末PT1との間の距離が閾値以上であると判断する(S54でNO)。この場合、携帯端末PT1は、Scan_Req信号をプリンタPRに送信しない(S54でNOの場合にS60に進まない)。この結果、プリンタPRと携帯端末P
T1との間にWi-Fi接続が確立されない。
At A1, the user performs an operation on the mobile terminal PT1 to start the printer application 78. At this point, the distance between the printer PR and the mobile terminal PT1 is greater than or equal to the threshold value (ie, 1 m). In this case, when the mobile terminal PT1 receives the Advertise signal from the printer PR (YES in S50 of FIG. 3), it determines in T10 that the BT device name "NP" in the Advertise signal has not been stored (NO in S52). , Furthermore, it is determined that the distance between the printer PR and the mobile terminal PT1 is greater than or equal to the threshold value (NO in S54). In this case, the mobile terminal PT1 does not transmit the Scan_Req signal to the printer PR (if NO in S54, the process does not proceed to S60). As a result, printer PR and mobile terminal P
Wi-Fi connection is not established with T1.

ユーザは、プリンタPRに印刷を実行させることを望む場合に、A2において、携帯端末PT1をプリンタPRに近づける。これにより、プリンタPRと携帯端末PT1との間の距離が閾値未満になる。この場合、携帯端末PT1は、プリンタPRからAdvertise信号を受信すると(図3のS50でYES)、T12において、Advertise信号内のBTデバイス名「NP」を格納済みでないと判断し(S52でNO)、さらに、プリンタPRと携帯端末PT1との間の距離が閾値未満であると判断する(S54でYES)。この場合、T20では、携帯端末PT1は、Scan_Req信号をプリンタPRに送信する(S60)。Scan_Req信号は、送信先を示す情報としてBTデバイス名「NP」を含むと共に、送信元を示す情報としてBTデバイス名「N1」を含む。 When the user desires to have the printer PR perform printing, the user brings the mobile terminal PT1 close to the printer PR in A2. As a result, the distance between the printer PR and the mobile terminal PT1 becomes less than the threshold value. In this case, when the mobile terminal PT1 receives the Advertise signal from the printer PR (YES in S50 of FIG. 3), it determines in T12 that the BT device name "NP" in the Advertise signal has not been stored (NO in S52). , Furthermore, it is determined that the distance between the printer PR and the mobile terminal PT1 is less than the threshold value (YES in S54). In this case, at T20, the mobile terminal PT1 transmits a Scan_Req signal to the printer PR (S60). The Scan_Req signal includes the BT device name "NP" as information indicating the destination, and the BT device name "N1" as information indicating the source.

プリンタPRは、携帯端末PT1からScan_Req信号を受信する場合に、T22において、Scan_Res信号を携帯端末PT1に送信する(図2のS10でYES、S12)。Scan_Res信号は、送信先を示す情報としてBTデバイス名「N1」を含むと共に、送信元を示す情報としてBTデバイス名「NP」を含む。また、Scan_Res信号は、SSID「X1」及びパスワード「PS」を含む。そして、T24では、プリンタPRは、Wi-FiI/F20をON状態に変更し、G/O状態に移行する(S14)。 When receiving the Scan_Req signal from the mobile terminal PT1, the printer PR transmits the Scan_Res signal to the mobile terminal PT1 at T22 (YES at S10 in FIG. 2, S12). The Scan_Res signal includes the BT device name "N1" as information indicating the destination, and the BT device name "NP" as information indicating the source. Further, the Scan_Res signal includes the SSID "X1" and the password "PS". Then, at T24, the printer PR changes the Wi-Fi I/F 20 to the ON state and shifts to the G/O state (S14).

携帯端末PT1は、プリンタPRからScan_Res信号を受信する場合(図3のS62)に、T30において、Scan_Res信号内のSSID「X1」を含むWi-Fi接続要求信号をプリンタPRに送信する(S64)。携帯端末PT1からプリンタPRにWi-Fi接続要求信号が送信されると、T32において、プリンタPRと携帯端末PT1との間にWi-Fi接続が確立される(図2のS18、図3のS66)。なお、プリンタPRは、T32の過程で、携帯端末PT1からSSID「X1」及びパスワード「PS」を含むネットワーク情報を受信して、ネットワーク情報の認証を実行し、本ケースでは認証が成功するので、携帯端末PT1とのWi-Fi接続を確立する。これにより、プリンタPRが親局として動作し、かつ、携帯端末PT1が子局として動作するWi-Fiネットワークが形成される。 When receiving the Scan_Res signal from the printer PR (S62 in FIG. 3), the mobile terminal PT1 transmits a Wi-Fi connection request signal including the SSID "X1" in the Scan_Res signal to the printer PR at T30 (S64). . When a Wi-Fi connection request signal is transmitted from the mobile terminal PT1 to the printer PR, a Wi-Fi connection is established between the printer PR and the mobile terminal PT1 at T32 (S18 in FIG. 2, S66 in FIG. 3). ). Note that in the process of T32, the printer PR receives the network information including the SSID "X1" and the password "PS" from the mobile terminal PT1, and authenticates the network information, and in this case, the authentication is successful. A Wi-Fi connection is established with the mobile terminal PT1. As a result, a Wi-Fi network is formed in which the printer PR operates as a master station and the mobile terminal PT1 operates as a slave station.

A3では、印刷指示操作が携帯端末PT1に実行される(図3のS70でYES)。この場合、携帯端末PT1は、T40において、Wi-Fi接続を利用して、印刷データをプリンタPRに送信し(S72)、T42において、T22のScan_Res信号内のBTデバイス名「NP」を格納する(S74)。 At A3, a print instruction operation is executed on the mobile terminal PT1 (YES at S70 in FIG. 3). In this case, the mobile terminal PT1 transmits print data to the printer PR at T40 using the Wi-Fi connection (S72), and stores the BT device name "NP" in the Scan_Res signal at T22 at T42. (S74).

プリンタPRは、携帯端末PT1から印刷データを受信する場合に、T44において、印刷データに従った印刷処理を実行する(図2のS22)。なお、プリンタPRがBT通信を利用して携帯端末PT1から印刷データを受信する構成が考えられる。ただし、印刷データのデータサイズが大きい可能性があり、さらに、BT通信の通信速度は、Wi-Fi通信の通信速度よりも遅い。従って、仮に、BT通信を利用して印刷データを通信する構成を採用すると、印刷データの通信に長時間を要し得る。これに対し、本実施例では、Wi-Fi通信を利用して印刷データを通信するので、印刷データを迅速に通信することができる。 When the printer PR receives print data from the mobile terminal PT1, at T44, the printer PR executes a print process according to the print data (S22 in FIG. 2). Note that a configuration is conceivable in which the printer PR receives print data from the mobile terminal PT1 using BT communication. However, the data size of the print data may be large, and furthermore, the communication speed of BT communication is slower than the communication speed of Wi-Fi communication. Therefore, if a configuration is adopted in which print data is communicated using BT communication, it may take a long time to communicate the print data. In contrast, in this embodiment, the print data is communicated using Wi-Fi communication, so the print data can be communicated quickly.

携帯端末PT1は、印刷データをプリンタPRに送信した後に、T50において、Wi-Fi接続を切断するための切断信号をプリンタPRに送信する(図3のS80)。これにより、プリンタPRと携帯端末PT1との間のWi-Fi接続が切断される。 After transmitting the print data to the printer PR, the mobile terminal PT1 transmits a disconnection signal for disconnecting the Wi-Fi connection to the printer PR at T50 (S80 in FIG. 3). As a result, the Wi-Fi connection between the printer PR and the mobile terminal PT1 is disconnected.

プリンタPRは、携帯端末PT1から切断信号を受信した後(図2のS30でYES)
に、T52において、G/O状態からデバイス状態に移行し、Wi-FiI/F20をOFF状態に変更し、SSID「X1」とは異なるSSID「X2」を生成する(S32)。T52が実行されるので、プリンタPRの消費電力を低減させることができる。
After the printer PR receives the disconnection signal from the mobile terminal PT1 (YES in S30 in FIG. 2)
Next, at T52, the state is changed from the G/O state to the device state, the Wi-Fi I/F 20 is changed to the OFF state, and an SSID "X2" different from the SSID "X1" is generated (S32). Since T52 is executed, the power consumption of the printer PR can be reduced.

(ケースB1;図5)
図5のケースB1は、図4のケースAの続きであり、Wi-FiI/F20がOFF状態であり(図4のT52参照)、BTI/F22がON状態である(T4参照)。また、携帯端末PT1のBTデバイス名格納領域80には、確立済みプリンタであるプリンタPRのBTデバイス名「NP」が格納されている(T42参照)。
(Case B1; Figure 5)
Case B1 in FIG. 5 is a continuation of case A in FIG. 4, in which the Wi-Fi I/F 20 is in the OFF state (see T52 in FIG. 4) and the BTI/F 22 is in the ON state (see T4). Furthermore, the BT device name storage area 80 of the mobile terminal PT1 stores the BT device name "NP" of the printer PR, which is an established printer (see T42).

A11では、プリンタアプリケーション78を起動するための操作がユーザによって携帯端末PT1に実行される。この時点では、プリンタPRと携帯端末PT1との間の距離が閾値以上である。携帯端末PT1は、プリンタPRからT106のAdvertise信号を受信すると(図3のS50でYES)、T110において、Advertise信号内のBTデバイス名「NP」を格納済みであると判断する(S52でYES)。そして、T120では、携帯端末PT1は、プリンタPRと携帯端末PT1との間の距離が閾値以上であるにも関わらず、Scan_Req信号をプリンタPRに送信する(S60)。 At A11, the user performs an operation on the mobile terminal PT1 to start the printer application 78. At this point, the distance between the printer PR and the mobile terminal PT1 is greater than or equal to the threshold value. When the mobile terminal PT1 receives the Advertise signal at T106 from the printer PR (YES at S50 in FIG. 3), it determines at T110 that the BT device name "NP" in the Advertise signal has been stored (YES at S52). . Then, at T120, the mobile terminal PT1 transmits the Scan_Req signal to the printer PR even though the distance between the printer PR and the mobile terminal PT1 is equal to or greater than the threshold value (S60).

A13及びT122~T152は、図4のA3及びT22~T52と同様である。ただし、SSID「X2」が利用される点がケースAとは異なる。また、携帯端末PT1がBTデバイス名「NP」を格納済みであるので、図4のT42に相当する処理が実行されない。また、T152では、SSID「X1」及び「X2」とは異なるSSID「X3」が生成される。 A13 and T122 to T152 are similar to A3 and T22 to T52 in FIG. However, this differs from case A in that SSID "X2" is used. Furthermore, since the mobile terminal PT1 has already stored the BT device name "NP", the process corresponding to T42 in FIG. 4 is not executed. Furthermore, at T152, SSID "X3", which is different from SSIDs "X1" and "X2", is generated.

(ケースB2)
ケースB2もケースAの続きである。携帯端末PT2のBTデバイス名格納領域(図示省略)には、BTデバイス名「NP」が格納されていない。
(Case B2)
Case B2 is also a continuation of case A. The BT device name "NP" is not stored in the BT device name storage area (not shown) of the mobile terminal PT2.

A15では、プリンタアプリケーション(図示省略)を起動するための操作がユーザによって携帯端末PT2に実行される。この時点では、プリンタPRと携帯端末PT2との間の距離が閾値以上である。携帯端末PT2は、プリンタPRからT206のAdvertise信号を受信する場合(図3のS50でYES)に、T210において、Advertise信号内のBTデバイス名「NP」を格納済みでないと判断し(S52でNO)、さらに、プリンタPRと携帯端末PT2との間の距離が閾値以上であると判断する(S54でNO)。この場合、携帯端末PT2は、Scan_Req信号をプリンタPRに送信しない(S54でNOの場合にS60に進まない)。この結果、プリンタPRと携帯端末PT2との間にWi-Fi接続が確立されない。 At A15, the user performs an operation on the mobile terminal PT2 to start a printer application (not shown). At this point, the distance between the printer PR and the mobile terminal PT2 is greater than or equal to the threshold value. When the mobile terminal PT2 receives the Advertise signal at T206 from the printer PR (YES at S50 in FIG. 3), the mobile terminal PT2 determines at T210 that the BT device name "NP" in the Advertise signal has not been stored (NO at S52). ), and further determines that the distance between the printer PR and the mobile terminal PT2 is equal to or greater than the threshold (NO in S54). In this case, the mobile terminal PT2 does not transmit the Scan_Req signal to the printer PR (if NO in S54, the process does not proceed to S60). As a result, a Wi-Fi connection is not established between the printer PR and the mobile terminal PT2.

(本実施例の効果)
携帯端末PT1は、プリンタPRと携帯端末PT1との間の距離が閾値未満である状態、即ち、ユーザがプリンタPRと携帯端末PT1との間にWi-Fi接続が確立されることを望んでいる可能性が高い状態において、プリンタPRからAdvertise信号を受信する場合(図4のT6)に、Scan_Req信号をプリンタPRに送信して(T20)、Scan_Res信号を受信する(T22)。これにより、携帯端末PT1は、Scan_Res信号内のネットワーク情報を利用して、プリンタPRとのWi-Fi接続を確立し、印刷データをプリンタPRに送信することができる(T30、T32、T40)。そして、携帯端末PT1は、確立済みプリンタであるプリンタPRのBTデバイス名「NP」を格納する(T42)。
(Effects of this example)
The mobile terminal PT1 is in a state where the distance between the printer PR and the mobile terminal PT1 is less than a threshold value, that is, the user wants a Wi-Fi connection to be established between the printer PR and the mobile terminal PT1. When receiving the Advertise signal from the printer PR in a state where the possibility is high (T6 in FIG. 4), the Scan_Req signal is transmitted to the printer PR (T20), and the Scan_Res signal is received (T22). Thereby, the mobile terminal PT1 can establish a Wi-Fi connection with the printer PR using the network information in the Scan_Res signal, and can send print data to the printer PR (T30, T32, T40). Then, the mobile terminal PT1 stores the BT device name "NP" of the printer PR, which is an established printer (T42).

携帯端末PT1は、プリンタPRのBTデバイス名「NP」を格納した後に、携帯端末
PT1とのWi-Fi接続が確立されていない未接続プリンタ(図示省略)からAdvertise信号を受信し得る。携帯端末PT1は、未接続プリンタと携帯端末PT1との間の距離が閾値以上である状態、即ち、ユーザが未接続プリンタと携帯端末PT1との間にWi-Fi接続が確立されることを望んでいる可能性が低い状態において、未接続プリンタからAdvertise信号を受信しても、Scan_Req信号を未接続プリンタに送信しない(図4のS52でNO、S54でNO)。この結果、携帯端末PT1は、未接続プリンタとのWi-Fi接続を確立しない。
After storing the BT device name "NP" of the printer PR, the mobile terminal PT1 can receive an Advertise signal from an unconnected printer (not shown) that has not established a Wi-Fi connection with the mobile terminal PT1. The mobile terminal PT1 is in a state where the distance between the unconnected printer and the mobile terminal PT1 is greater than or equal to a threshold value, that is, the user desires to establish a Wi-Fi connection between the unconnected printer and the mobile terminal PT1. In a state where there is a low possibility that the printer will be connected, even if an Advertise signal is received from the unconnected printer, the Scan_Req signal is not sent to the unconnected printer (NO in S52 and NO in S54 in FIG. 4). As a result, the mobile terminal PT1 does not establish a Wi-Fi connection with the unconnected printer.

一方、携帯端末PT1は、確立済みプリンタであるプリンタPRからAdvertise信号を受信する場合(図5のT106)に、Advertise信号内のBTデバイス名「NP」を格納済みであると判断する(T110)。この場合、プリンタPRが確立済みプリンタであるので、ユーザがプリンタPRと携帯端末PT1との間にWi-Fi接続が再び確立されることを望んでいる可能性が高い。従って、携帯端末PT1は、プリンタPRと携帯端末PT1との間の距離が閾値以上であるにも関わらず、Scan_Req信号をプリンタPRに送信して(T120)、Scan_Res信号を受信する(T122)。これにより、携帯端末PT1は、Scan_Res信号内のネットワーク情報を利用して、プリンタPRとのWi-Fi接続を再び確立し、印刷データをプリンタPRに送信することができる(T130、T132、T140)。このように、携帯端末PT1は、BT通信を実行した後に、適切な状況で、確立済みプリンタであるプリンタPRとのWi-Fi接続を確立することができる。 On the other hand, when receiving the Advertise signal from the printer PR which is an established printer (T106 in FIG. 5), the mobile terminal PT1 determines that the BT device name "NP" in the Advertise signal has already been stored (T110). . In this case, since the printer PR is an established printer, there is a high possibility that the user desires to re-establish the Wi-Fi connection between the printer PR and the mobile terminal PT1. Therefore, the mobile terminal PT1 transmits the Scan_Req signal to the printer PR (T120) and receives the Scan_Res signal (T122) even though the distance between the printer PR and the mobile terminal PT1 is greater than or equal to the threshold value. As a result, the mobile terminal PT1 can re-establish a Wi-Fi connection with the printer PR by using the network information in the Scan_Res signal, and can send print data to the printer PR (T130, T132, T140). . In this way, after performing BT communication, the mobile terminal PT1 can establish a Wi-Fi connection with the printer PR, which is an established printer, in an appropriate situation.

また、本実施例では、携帯端末PT1は、BT方式の論理リンクを確立することなく、Advertise信号の受信(例えば図5のT106)、Scan_Req信号の送信(T120)、及び、Scan_Res信号(T122)の受信を実行する。BT方式の論理リンクを確立せずに済むので、携帯端末PT1の処理負荷を軽減させ得る。 Furthermore, in this embodiment, the mobile terminal PT1 receives the Advertise signal (for example, T106 in FIG. 5), transmits the Scan_Req signal (T120), and sends the Scan_Res signal (T122) without establishing a BT-based logical link. Execute the reception. Since there is no need to establish a BT-based logical link, the processing load on the mobile terminal PT1 can be reduced.

(対応関係)
携帯端末PT1が、「第2の通信機器」の一例である。プリンタPRが、「第1の通信機器」及び「第3の通信機器」の一例である。プリンタPRのBTデバイス名「NP」が、「第1の機器識別情報」及び「第3の機器識別情報」の一例である。Wi-Fi方式、BT方式が、それぞれ、「第1の通信方式」、「第2の通信方式」の一例である。携帯端末PT1のWi-FiI/F60、BTI/F62が、それぞれ、「第1のインターフェース」、「第2のインターフェース」の一例である。図3のS54の閾値が、「所定距離」の一例である。図5のT106のAdvertise信号、図4のT6のAdvertise信号が、それぞれ、「第1の所定信号」、「第2の所定信号」の一例である。図4のT20のScan_Req信号、図5のT120のScan_Req信号が、それぞれ、「第1の所定要求」、「第2の所定要求」の一例である。図4のT22のScan_Res信号内のSSID「X1」及びパスワード「PS」が、「第1のネットワーク関係情報」の一例である。T30のWi-Fi接続要求信号、T32のWi-Fi接続が、それぞれ、「第1の無線接続要求」、「第1の無線接続」の一例である。図5のT122のScan_Res信号内のSSID「X2」及びパスワード「PS」が、「第2のネットワーク関係情報」の一例である。T130のWi-Fi接続要求信号、T132のWi-Fi接続が、それぞれ、「第2の無線接続要求」、「第2の無線接続」の一例である。
(correspondence)
Mobile terminal PT1 is an example of a "second communication device." The printer PR is an example of a "first communication device" and a "third communication device." The BT device name "NP" of the printer PR is an example of the "first device identification information" and the "third device identification information." The Wi-Fi method and the BT method are examples of the "first communication method" and the "second communication method", respectively. The Wi-Fi I/F 60 and BTI/F 62 of the mobile terminal PT1 are examples of the "first interface" and "second interface", respectively. The threshold value in S54 of FIG. 3 is an example of a "predetermined distance." The Advertise signal at T106 in FIG. 5 and the Advertise signal at T6 in FIG. 4 are examples of the "first predetermined signal" and the "second predetermined signal", respectively. The Scan_Req signal at T20 in FIG. 4 and the Scan_Req signal at T120 in FIG. 5 are examples of the "first predetermined request" and the "second predetermined request", respectively. SSID "X1" and password "PS" in the Scan_Res signal at T22 in FIG. 4 are an example of "first network related information." The Wi-Fi connection request signal at T30 and the Wi-Fi connection at T32 are examples of a "first wireless connection request" and a "first wireless connection," respectively. SSID "X2" and password "PS" in the Scan_Res signal at T122 in FIG. 5 are an example of "second network related information." The Wi-Fi connection request signal at T130 and the Wi-Fi connection at T132 are examples of a "second wireless connection request" and a "second wireless connection," respectively.

(第2実施例)
第1実施例と異なる点を中心に説明する。本実施例では、携帯端末PT1は、BTデバイス名格納領域80を備えない。プリンタPRは、BTデバイス名格納領域40を備え、プリンタPRとのWi-Fi接続が確立された携帯端末(以下では「確立済み端末」と呼ぶ)のBTデバイス名を格納可能である。
(Second example)
The explanation will focus on the differences from the first embodiment. In this embodiment, the mobile terminal PT1 does not include the BT device name storage area 80. The printer PR includes a BT device name storage area 40, which can store the BT device name of a mobile terminal (hereinafter referred to as an "established terminal") that has established a Wi-Fi connection with the printer PR.

(プリンタPRの処理;図6)
プリンタPRのCPU32は、図2の処理に代えて、図6の処理を実行する。S2~S6は、図2と同様である。S100では、CPU32は、携帯端末から、BTI/F22を介して、BT接続要求を受信することを監視する。BT接続要求は、Advertise信号を受信した携帯端末から送信される信号であり、BT方式の論理リンク(即ちBT接続)の確立を要求するための信号である。BT接続要求は、ユニキャスト信号であり、送信先を示す情報としてプリンタPRのBTデバイス名「NP」を含むと共に、送信元を示す情報として携帯端末のBTデバイス名を含む。CPU32は、BT接続要求を受信した場合には、S100でYESと判断して、S102に進む。
(Printer PR process; Figure 6)
The CPU 32 of the printer PR executes the process shown in FIG. 6 instead of the process shown in FIG. S2 to S6 are similar to those in FIG. In S100, the CPU 32 monitors reception of a BT connection request from the mobile terminal via the BT I/F 22. The BT connection request is a signal transmitted from a mobile terminal that has received the Advertise signal, and is a signal for requesting establishment of a BT type logical link (ie, BT connection). The BT connection request is a unicast signal, and includes the BT device name "NP" of the printer PR as information indicating the destination, and the BT device name of the mobile terminal as information indicating the source. When the CPU 32 receives the BT connection request, it determines YES in S100 and proceeds to S102.

S102では、CPU32は、BTI/F22を介して、BT設定情報を携帯端末に送信し、BT設定情報を利用したペアリングを携帯端末と実行して、携帯端末とのBT接続を確立する。BT設定情報は、メモリ34に予め格納されている情報であり、BT接続を確立するための各種の情報(認証方式、暗号化方式、パスキー等)を含む。 In S102, the CPU 32 transmits the BT setting information to the mobile terminal via the BT I/F 22, performs pairing with the mobile terminal using the BT setting information, and establishes a BT connection with the mobile terminal. The BT setting information is information stored in advance in the memory 34, and includes various information (authentication method, encryption method, passkey, etc.) for establishing a BT connection.

S104は、図2のS14と同様である。S110では、CPU32は、BT接続を利用して、BTI/F22を介して、距離情報を受信することを監視する。距離情報は、BT接続を確立している携帯端末から繰り返し送信される信号であり、プリンタPRと携帯端末との間の距離を示す。距離情報は、プリンタPRと携帯端末との間の距離が閾値以上であることを意味する「Far」と、距離が閾値未満であることを意味する「Near」と、のどちらかを示す。ここで、閾値は、BT通信を実行可能な最大の距離(例えば数十m)よりも小さい距離(例えば3m)である。距離情報は、BT接続を利用して通信される。従って、論理リンクを形成するための最上位層(即ちL2CAP)の通信、及び、さらに上位層(例えば、Attribute Protocol、Generic Attribute Profile等)の通信を実行して、距離情報が通信される。距離情報は、ユニキャスト信号であり、送信先を示す情報としてプリンタPRのBTデバイス名「NP」を含むと共に、送信元を示す情報として携帯端末のBTデバイス名を含む。CPU32は、距離情報を受信した場合には、S110でYESと判断して、S112に進む。 S104 is similar to S14 in FIG. In S110, the CPU 32 monitors the reception of distance information via the BT I/F 22 using the BT connection. The distance information is a signal repeatedly transmitted from a mobile terminal that has established a BT connection, and indicates the distance between the printer PR and the mobile terminal. The distance information indicates either "Far", which means that the distance between the printer PR and the mobile terminal is greater than or equal to a threshold value, or "Near", which means that the distance is less than a threshold value. Here, the threshold value is a distance (for example, 3 m) that is smaller than the maximum distance (for example, several tens of meters) at which BT communication can be performed. Distance information is communicated using a BT connection. Therefore, distance information is communicated by performing communication at the top layer (ie, L2CAP) for forming a logical link and communication at an even higher layer (eg, Attribute Protocol, Generic Attribute Profile, etc.). The distance information is a unicast signal, and includes the BT device name "NP" of the printer PR as information indicating the destination, and the BT device name of the mobile terminal as information indicating the source. When the CPU 32 receives the distance information, it determines YES in S110 and proceeds to S112.

S112では、CPU32は、受信済みの距離情報内の送信元のBTデバイス名(即ち携帯端末のBTデバイス名)がBTデバイス名格納領域40に格納されているのか否かを判断する。上述したように、BTデバイス名格納領域40は、確立済み端末のBTデバイス名を格納する。従って、S112の判断は、距離情報の送信元の携帯端末が確立済み端末であるのか否かを判断することを意味する。CPU32は、送信元のBTデバイス名がBTデバイス名格納領域40に格納されていると判断する場合(S112でYES)には、S116に進む。一方、CPU32は、送信元のBTデバイス名がBTデバイス名格納領域40に格納されていないと判断する場合(S112でNO)には、S114に進む。 In S<b>112 , the CPU 32 determines whether the BT device name of the transmission source (that is, the BT device name of the mobile terminal) in the received distance information is stored in the BT device name storage area 40 . As described above, the BT device name storage area 40 stores the BT device names of established terminals. Therefore, the determination in S112 means determining whether the mobile terminal that is the source of the distance information is an established terminal. If the CPU 32 determines that the BT device name of the transmission source is stored in the BT device name storage area 40 (YES in S112), the process proceeds to S116. On the other hand, if the CPU 32 determines that the BT device name of the transmission source is not stored in the BT device name storage area 40 (NO in S112), the process proceeds to S114.

S114では、CPU32は、距離情報が「Near」を示すのか否かを判断する。CPU32は、距離情報が「Near」を示すと判断する場合(S114でYES)には、S116に進み、距離情報が「Far」を示すと判断する場合(S114でNO)には、S110に戻る。 In S114, the CPU 32 determines whether the distance information indicates "Near". If the CPU 32 determines that the distance information indicates "Near" (YES in S114), the process proceeds to S116, and if it determines that the distance information indicates "Far" (NO in S114), the process returns to S110. .

S116では、CPU32は、BT接続を利用して、BTI/F22を介して、現行SSID及び所定のパスワードを含むネットワーク情報を携帯端末に送信する。ネットワーク情報は、ユニキャスト通信によって送信され、送信先を示す情報として携帯端末のBTデバイス名を含むと共に、送信元を示す情報としてプリンタPRのBTデバイス名「NP」を含む。その後のS16~S32は、図2と同様である。S22の後のS120では、CPU32は、S110で受信された距離情報内の携帯端末のBTデバイス名をBTデバイス名格納領域40に格納させる。これにより、確立済み端末のBTデバイス名がBTデ
バイス名格納領域40に格納される。なお、距離情報内のBTデバイス名がBTデバイス名格納領域40に既に格納されている場合には、S120がスキップされる。
In S116, the CPU 32 uses the BT connection to transmit network information including the current SSID and a predetermined password to the mobile terminal via the BT I/F 22. The network information is transmitted by unicast communication, and includes the BT device name of the mobile terminal as information indicating the destination, and the BT device name "NP" of the printer PR as information indicating the source. The subsequent steps S16 to S32 are similar to those in FIG. In S120 after S22, the CPU 32 stores the BT device name of the mobile terminal in the distance information received in S110 in the BT device name storage area 40. As a result, the BT device name of the established terminal is stored in the BT device name storage area 40. Note that if the BT device name in the distance information is already stored in the BT device name storage area 40, S120 is skipped.

(携帯端末PT1の処理;図7)
携帯端末PT1のCPU72は、図3の処理に代えて、図7の処理を実行する。S50は、図3と同様である。S150では、CPU72は、BTI/F62を介して、BT接続要求をプリンタPRに送信する(図6のS100でYES参照)。S152では、CPU72は、プリンタPRから、BTI/F62を介して、BT設定情報を受信し、BT設定情報を利用したペアリングをプリンタPRと実行して、プリンタPRとのBT接続を確立する((図6のS102参照)。
(Processing of mobile terminal PT1; Figure 7)
The CPU 72 of the mobile terminal PT1 executes the process shown in FIG. 7 instead of the process shown in FIG. S50 is similar to FIG. 3. In S150, the CPU 72 transmits a BT connection request to the printer PR via the BT I/F 62 (see YES in S100 in FIG. 6). In S152, the CPU 72 receives BT setting information from the printer PR via the BT I/F 62, executes pairing with the printer PR using the BT setting information, and establishes a BT connection with the printer PR ( (See S102 in FIG. 6).

S154では、CPU72は、BT接続を利用して、BTI/F62を介して、距離情報をプリンタPRに送信する送信処理を開始する(図6のS110でYES参照)。プリンタPRと携帯端末PT1との間の距離を特定する手法は、第1実施例と同様である。 In S154, the CPU 72 starts a transmission process for transmitting the distance information to the printer PR via the BT I/F 62 using the BT connection (see YES in S110 in FIG. 6). The method of specifying the distance between printer PR and mobile terminal PT1 is the same as in the first embodiment.

S160では、CPU72は、BT接続を利用して、プリンタPRから、BTI/F62を介して、現行SSID及び所定のパスワードを含むネットワーク情報を受信することを監視する。CPU72は、ネットワーク情報を受信した場合には、S160でYESと判断して、S64に進む。S64~S80は、図3と同様である。ただし、本実施例では、図3のS74が実行されない。 In S160, the CPU 72 monitors the reception of network information including the current SSID and a predetermined password from the printer PR via the BT I/F 62 using the BT connection. When the CPU 72 receives the network information, it determines YES in S160 and proceeds to S64. S64 to S80 are similar to those in FIG. However, in this embodiment, S74 in FIG. 3 is not executed.

(ケースC:図8)
続いて、図8及び図9を参照して、図6及び図7の各処理によって実現される具体的なケースについて説明する。図8のケースCの初期状態は、図4のケースAの初期状態と同様である。図4のケースAと異なる点を中心として、ケースCの内容を説明する。A0,A1,T2~T6は、図4と同様である。
(Case C: Figure 8)
Next, with reference to FIGS. 8 and 9, specific cases realized by the processes shown in FIGS. 6 and 7 will be described. The initial state of case C in FIG. 8 is similar to the initial state of case A in FIG. The contents of case C will be explained, focusing on the differences from case A in FIG. 4. A0, A1, T2 to T6 are the same as in FIG.

携帯端末PT1は、プリンタPRからAdvertise信号を受信する場合に、T13において、プリンタPRと携帯端末PT1との間の距離に関わらず、BT接続要求をプリンタPRに送信する(図7のS150)。 When receiving the Advertise signal from the printer PR, the mobile terminal PT1 transmits a BT connection request to the printer PR at T13, regardless of the distance between the printer PR and the mobile terminal PT1 (S150 in FIG. 7).

プリンタPRは、携帯端末PT1からBT接続要求を受信する場合に、T14において、携帯端末PT1とのBT接続を確立する(図6のS100でYES,S102)。T15は、図4のT24と同様である。 When receiving the BT connection request from the mobile terminal PT1, the printer PR establishes a BT connection with the mobile terminal PT1 at T14 (YES at S100 in FIG. 6, S102). T15 is similar to T24 in FIG.

T16では、携帯端末PT1は、BT接続を利用して、距離情報をプリンタPRに送信する(図7のS154)。この時点では、プリンタPRと携帯端末PT1との間の距離が閾値以上である。従って、距離情報は、「Far」を示す。 At T16, the mobile terminal PT1 uses the BT connection to transmit distance information to the printer PR (S154 in FIG. 7). At this point, the distance between the printer PR and the mobile terminal PT1 is greater than or equal to the threshold value. Therefore, the distance information indicates "Far".

プリンタPRは、携帯端末PT1からT16の距離情報を受信する場合に、T16Aにおいて、距離情報内のBTデバイス名「N1」を格納済みでないと判断し(図6のS112でNO)、さらに、距離情報が「Far」を示すと判断する(S114でNO)。この場合、プリンタPRは、ネットワーク情報を携帯端末PT1に送信しない(S114でNOの場合にS116に進まない)。この結果、プリンタPRと携帯端末PT1との間にWi-Fi接続が確立されない。 When the printer PR receives the distance information of T16 from the mobile terminal PT1, it determines in T16A that the BT device name "N1" in the distance information has not been stored (NO in S112 of FIG. 6), and further It is determined that the information indicates "Far" (NO in S114). In this case, the printer PR does not transmit the network information to the mobile terminal PT1 (if NO in S114, the process does not proceed to S116). As a result, a Wi-Fi connection is not established between the printer PR and the mobile terminal PT1.

ユーザは、プリンタPRに印刷を実行させることを望む場合に、A2において、携帯端末PT1をプリンタPRに近づける。これにより、プリンタPRと携帯端末PT1との間の距離が閾値未満になる。この場合、T18では、携帯端末PT1は、BT接続を利用して、「Near」を示す距離情報をプリンタPRに送信する(図7のS154)。 When the user desires to have the printer PR perform printing, the user brings the mobile terminal PT1 close to the printer PR in A2. As a result, the distance between the printer PR and the mobile terminal PT1 becomes less than the threshold value. In this case, at T18, the mobile terminal PT1 uses the BT connection to transmit distance information indicating "Near" to the printer PR (S154 in FIG. 7).

プリンタPRは、携帯端末PT1からT18の距離情報を受信する場合に、T18Aにおいて、距離情報内の携帯端末PT1のBTデバイス名「N1」を格納済みでないと判断し(図6のS112でNO)、さらに、距離情報が「Near」を示すと判断する(S114でYES)。この場合、T19では、プリンタPRは、SSID「X1」及びパスワード「PS」を含むネットワーク情報を携帯端末PT1に送信する(S116)。T45を除くT30~T52は、図4と同様である。ただし、図4のT42が実行されない。また、T45では、プリンタPRは、T18の距離情報内のBTデバイス名「N1」を格納する(S120)。 When the printer PR receives the distance information of T18 from the mobile terminal PT1, it determines in T18A that the BT device name "N1" of the mobile terminal PT1 in the distance information has not been stored (NO in S112 of FIG. 6). , Furthermore, it is determined that the distance information indicates "Near" (YES in S114). In this case, at T19, the printer PR transmits network information including the SSID "X1" and the password "PS" to the mobile terminal PT1 (S116). T30 to T52 except T45 are the same as in FIG. 4. However, T42 in FIG. 4 is not executed. Further, at T45, the printer PR stores the BT device name "N1" in the distance information at T18 (S120).

(ケースD1;図9)
図9のケースD1は、図8のケースCの続きであり、Wi-FiI/F20がOFF状態であり(図8のT52参照)、BTI/F22がON状態である(T4参照)。また、プリンタPRのBTデバイス名格納領域40には、確立済み端末である携帯端末PT1のBTデバイス名「N1」が格納されている(T45参照)。
(Case D1; Figure 9)
Case D1 in FIG. 9 is a continuation of case C in FIG. 8, in which the Wi-Fi I/F 20 is in the OFF state (see T52 in FIG. 8) and the BTI/F 22 is in the ON state (see T4). Furthermore, the BT device name storage area 40 of the printer PR stores the BT device name "N1" of the mobile terminal PT1, which is an established terminal (see T45).

A11、T106~T116は、図8のA1、T6~T16と同様である。プリンタPRは、携帯端末PT1からT116の距離情報(即ち「Far」を示す距離情報)を受信する場合に、T116Aにおいて、距離情報内のBTデバイス名「N1」を格納済みであると判断する(図6のS112でYES)。この場合、T119では、プリンタPRは、プリンタPRと携帯端末PT1との間の距離が閾値以上であるにも関わらず、SSID「X2」及びパスワード「PS」を含むネットワーク情報を携帯端末PT1に送信する(S116)。A13及びT130~T152は、図5と同様である。 A11 and T106 to T116 are the same as A1 and T6 to T16 in FIG. When the printer PR receives the distance information of T116 from the mobile terminal PT1 (that is, the distance information indicating "Far"), it determines in T116A that the BT device name "N1" in the distance information has been stored ( (YES in S112 of FIG. 6). In this case, at T119, the printer PR sends network information including the SSID "X2" and the password "PS" to the mobile terminal PT1 even though the distance between the printer PR and the mobile terminal PT1 is greater than or equal to the threshold value. (S116). A13 and T130 to T152 are the same as in FIG.

(ケースD2)
ケースD2もケースCの続きである。プリンタPRのBTデバイス名格納領域40には、携帯端末PT2のBTデバイス名「N2」が格納されていない。T106~T115は、携帯端末PT1に代えて携帯端末PT2が利用される点を除くと、ケースD1と同様である。
(Case D2)
Case D2 is also a continuation of case C. The BT device name storage area 40 of the printer PR does not store the BT device name "N2" of the mobile terminal PT2. T106 to T115 are the same as case D1 except that the mobile terminal PT2 is used instead of the mobile terminal PT1.

プリンタPRは、携帯端末PT2からT216の距離情報を受信する場合に、T216Aにおいて、距離情報内のBTデバイス名「N2」がBTデバイス名格納領域40に格納されていないと判断し(S112でNO)、さらに、距離情報が「Far」を示すと判断する(S114でNO)。この場合、プリンタPRは、ネットワーク情報を携帯端末PT2に送信しない(S114でNOの場合にS116に進まない)。この結果、プリンタPRと携帯端末PT2との間にWi-Fi接続が確立されない。 When the printer PR receives the distance information of T216 from the mobile terminal PT2, it determines in T216A that the BT device name "N2" in the distance information is not stored in the BT device name storage area 40 (NO in S112). ), and further determines that the distance information indicates "Far" (NO in S114). In this case, the printer PR does not transmit the network information to the mobile terminal PT2 (if NO in S114, the process does not proceed to S116). As a result, a Wi-Fi connection is not established between the printer PR and the mobile terminal PT2.

(本実施例の効果)
プリンタPRは、プリンタPRと携帯端末PT1との間の距離が閾値未満である状態、即ち、ユーザがプリンタPRと携帯端末PT1との間にWi-Fi接続が確立されることを望んでいる可能性が高い状態において、ネットワーク情報を携帯端末PT1に送信する(図8のT19)。これにより、プリンタPRは、携帯端末PT1とのWi-Fi接続を確立し、携帯端末PT1から印刷データを受信することができる(T30、T32、T40)。そして、プリンタPRは、確立済み端末である携帯端末PT1のBTデバイス名「N1」を格納する(T45)。
(Effects of this example)
The printer PR is in a state where the distance between the printer PR and the mobile terminal PT1 is less than a threshold value, that is, the user wants to establish a Wi-Fi connection between the printer PR and the mobile terminal PT1. In a state where the network information is high, the network information is transmitted to the mobile terminal PT1 (T19 in FIG. 8). Thereby, the printer PR can establish a Wi-Fi connection with the mobile terminal PT1 and receive print data from the mobile terminal PT1 (T30, T32, T40). Then, the printer PR stores the BT device name "N1" of the mobile terminal PT1, which is an established terminal (T45).

プリンタPRは、BTデバイス名「N1」を格納した後に、プリンタPRとのWi-Fi接続が確立されていない未接続端末である携帯端末PT2から距離情報を受信する(図9のケースD2のT216)。プリンタPRは、プリンタPRと未接続端末(即ち携帯端末PT2)との間の距離が閾値以上である状態、即ち、ユーザが未接続端末とのWi-F
i接続が確立されることを望んでいる可能性が低い状態において、未接続端末から距離情報を受信しても、ネットワーク情報を未接続端末に送信しない(図6のS112でNO、S114でNO)。この結果、プリンタPRは、未接続端末である携帯端末PT2とのWi-Fi接続を確立しない。
After storing the BT device name "N1", the printer PR receives distance information from the mobile terminal PT2, which is an unconnected terminal that has not established a Wi-Fi connection with the printer PR (T216 in case D2 in FIG. 9). ). The printer PR is in a state where the distance between the printer PR and the unconnected terminal (i.e., the mobile terminal PT2) is greater than or equal to the threshold value, that is, the user
In a state where there is a low possibility that an i-connection is desired to be established, network information is not sent to the unconnected terminal even if distance information is received from the unconnected terminal (NO in S112 in FIG. 6, NO in S114) ). As a result, the printer PR does not establish a Wi-Fi connection with the unconnected mobile terminal PT2.

一方、プリンタPRは、携帯端末PT1から距離情報を受信する場合(図9のケースD1のT116)に、距離情報内のBTデバイス名「N1」を格納済みであると判断する(T116A)。この場合、携帯端末PT1が確立済み端末であるので、ユーザがプリンタPRと携帯端末PT1との間にWi-Fi接続が再び確立されることを望んでいる可能性が高い。従って、プリンタPRは、プリンタPRと携帯端末PT1との間の距離が閾値以上であるにも関わらず、ネットワーク情報をプリンタPRに送信する(T119)。これにより、プリンタPRは、携帯端末PT1とのWi-Fi接続を確立し、携帯端末PT1から印刷データを受信することができる(T130、T132、T140)。このように、プリンタPRは、BT通信を実行した後に、適切な状況で、確立済み端末である携帯端末PT1とのWi-Fi接続を確立することができる。 On the other hand, when printer PR receives distance information from mobile terminal PT1 (T116 in case D1 in FIG. 9), printer PR determines that the BT device name "N1" in the distance information has already been stored (T116A). In this case, since the mobile terminal PT1 is an established terminal, there is a high possibility that the user desires to re-establish the Wi-Fi connection between the printer PR and the mobile terminal PT1. Therefore, the printer PR transmits the network information to the printer PR even though the distance between the printer PR and the mobile terminal PT1 is greater than or equal to the threshold value (T119). Thereby, the printer PR can establish a Wi-Fi connection with the mobile terminal PT1 and receive print data from the mobile terminal PT1 (T130, T132, T140). In this way, after executing BT communication, the printer PR can establish a Wi-Fi connection with the mobile terminal PT1, which is an established terminal, in an appropriate situation.

(対応関係)
プリンタPRが、「第1の通信機器」の一例である。携帯端末PT1が、「第2の通信機器」及び「第3の通信機器」の一例である。携帯端末PT1のBTデバイス名「N1」が、「第2の機器識別情報」及び「第3の機器識別情報」の一例である。プリンタPRのWi-FiI/F20、BTI/F22が、それぞれ、「第1のインターフェース」、「第2のインターフェース」の一例である。図7のS154の距離情報に含まれる「Near」と「Far」との境界の閾値(例えば3m)が、「所定距離」の一例である。Advertise信号が、「所定信号」の一例である。図8のT16(又はT18)の距離情報が、「第1の距離情報」の一例であり、図9のT116の距離情報が、「特定情報」及び「第2の距離情報」の一例である。図8のT19のネットワーク情報、図9のT119のネットワーク情報が、それぞれ、「第1のネットワーク関係情報」、「第2のネットワーク関係情報」の一例である。
(correspondence)
The printer PR is an example of a "first communication device." The mobile terminal PT1 is an example of a "second communication device" and a "third communication device." The BT device name "N1" of the mobile terminal PT1 is an example of the "second device identification information" and the "third device identification information". The Wi-Fi I/F 20 and BTI/F 22 of the printer PR are examples of the "first interface" and "second interface", respectively. The threshold value (for example, 3 m) at the boundary between "Near" and "Far" included in the distance information in S154 of FIG. 7 is an example of the "predetermined distance." The Advertise signal is an example of a "predetermined signal." The distance information at T16 (or T18) in FIG. 8 is an example of "first distance information", and the distance information at T116 in FIG. 9 is an example of "specific information" and "second distance information". . The network information at T19 in FIG. 8 and the network information at T119 in FIG. 9 are examples of "first network related information" and "second network related information", respectively.

(第3実施例)
第1及び第2実施例と異なる点を中心に説明する。図1に示されるように、プリンタPRは、NFC方式に従った無線通信(以下では「NFC通信」と呼ぶ)を実行するためのNFCI/F24を備える。NFCI/F24は、メモリ26を備える。また、携帯端末PT1,PT2も、それぞれ、NFCI/F64を備える。本実施例では、携帯端末PT1がBTデバイス名格納領域80を備えており、プリンタPRがBTデバイス名格納領域40を備えていない。
(Third example)
The explanation will focus on the points that are different from the first and second embodiments. As shown in FIG. 1, the printer PR includes an NFC I/F 24 for performing wireless communication according to the NFC method (hereinafter referred to as "NFC communication"). The NFC I/F 24 includes a memory 26. Furthermore, the mobile terminals PT1 and PT2 each include an NFC I/F64. In this embodiment, the mobile terminal PT1 is provided with the BT device name storage area 80, and the printer PR is not provided with the BT device name storage area 40.

NFC方式は、いわゆる近距離無線通信のための無線通信方式であり、例えば、ISO/IEC21481又は18092の国際標準規格に基づく無線通信方式である。NFC通信の通信速度(例えば最大の通信速度が424Kbps)は、BT通信の通信速度(例えば最大の通信速度が24Mbps)よりも遅い。NFC通信における搬送波の周波数(例えば13.56MHz帯)は、Wi-Fi通信における搬送波の周波数(例えば2.4GHz帯又は5.0GHz帯)及びBT通信における搬送波の周波数(例えば2.4GHz帯)とは異なる。また、NFC通信を実行可能な最大の距離(例えば約10cm)は、BT通信を実行可能な最大の距離(例えば約数十m)よりも小さい。 The NFC method is a wireless communication method for so-called short-range wireless communication, and is, for example, a wireless communication method based on the international standard of ISO/IEC21481 or 18092. The communication speed of NFC communication (for example, the maximum communication speed is 424 Kbps) is slower than the communication speed of BT communication (for example, the maximum communication speed is 24 Mbps). The carrier wave frequency in NFC communication (for example, 13.56 MHz band) is the same as the carrier wave frequency in Wi-Fi communication (for example, 2.4 GHz band or 5.0 GHz band) and the carrier wave frequency in BT communication (for example, 2.4 GHz band). is different. Further, the maximum distance at which NFC communication can be performed (for example, approximately 10 cm) is smaller than the maximum distance at which BT communication can be performed (for example, approximately several tens of meters).

(プリンタPRの処理;図10)
プリンタPRのCPU32は、図2の処理に代えて、図10の処理を実行する。S2は、図2と同様である。S200では、CPU32は、BTI/F22をOFF状態からON状態に変更し、さらに、NFCI/F24をOFF状態からON状態に変更する(即ち
NFCI/F24に電力が供給される)。S202では、CPU32は、S2で生成されたSSIDと、所定のパスワードと、をNFCI/F24に供給する。これにより、現行SSID及び所定のパスワードがNFCI/F24のメモリ26に格納される。S6は、図2と同様である。CPU32は、S210及びS212の各監視処理を順次実行することを繰り返す。
(Printer PR processing; Figure 10)
The CPU 32 of the printer PR executes the process shown in FIG. 10 instead of the process shown in FIG. S2 is similar to FIG. 2. In S200, the CPU 32 changes the BTI/F 22 from the OFF state to the ON state, and further changes the NFCI/F 24 from the OFF state to the ON state (that is, power is supplied to the NFCI/F 24). In S202, the CPU 32 supplies the SSID generated in S2 and a predetermined password to the NFC I/F 24. As a result, the current SSID and predetermined password are stored in the memory 26 of the NFC I/F 24. S6 is similar to FIG. 2. The CPU 32 repeats sequentially executing each monitoring process in S210 and S212.

S210では、CPU32は、NFCI/F24を介した通信リンク(以下では「NFCリンク」と呼ぶ)が確立されることを監視する。CPU32は、NFCI/F24から、NFCリンクが確立されたことを示す情報を取得する場合に、S210でYESと判断して、S14に進む。S14~S18は、図2と同様である。S220では、CPU32は、Wi-Fi接続を利用して、Wi-FiI/F20を介して、プリンタPRのBTデバイス名「NP」を携帯端末に送信する。 In S210, the CPU 32 monitors that a communication link (hereinafter referred to as "NFC link") via the NFC I/F 24 is established. When acquiring information indicating that an NFC link has been established from the NFC I/F 24, the CPU 32 determines YES in S210 and proceeds to S14. S14 to S18 are similar to those in FIG. In S220, the CPU 32 uses the Wi-Fi connection to transmit the BT device name "NP" of the printer PR to the mobile terminal via the Wi-Fi I/F 20.

S212では、CPU32は、携帯端末から、BTI/F22を介して、Scan_Req信号を受信することを監視する。CPU32は、Scan_Req信号を受信した場合には、S212でYESと判断して、S12に進む。S12~S18は、図2と同様である。 In S212, the CPU 32 monitors reception of the Scan_Req signal from the mobile terminal via the BT I/F 22. When the CPU 32 receives the Scan_Req signal, it determines YES in S212 and proceeds to S12. S12 to S18 are similar to those in FIG.

S20~S32は、図2と同様である。S240では、CPU32は、S32で生成されたSSIDと、所定のパスワードと、をNFCI/F24に供給する。これにより、NFCI/F24のメモリ26内の所定のパスワードは変更されないが、メモリ26内の現行SSIDが変更される。 S20 to S32 are similar to those in FIG. 2. In S240, the CPU 32 supplies the SSID generated in S32 and a predetermined password to the NFC I/F 24. As a result, the predetermined password in the memory 26 of the NFC I/F 24 is not changed, but the current SSID in the memory 26 is changed.

(携帯端末PT1の処理;図11)
携帯端末PT1のCPU72は、図3の処理に代えて、図11の処理を実行する。CPU72は、S50及びS250の各監視処理を順次実行することを繰り返す。S50とS50でYESの後のS52~S80とは、図3と同様である。ただし、本実施例では、図3のS54の処理が実行されず、S50でYESの場合に、図3のS74の処理が実行されない。
(Processing of mobile terminal PT1; Figure 11)
The CPU 72 of the mobile terminal PT1 executes the process shown in FIG. 11 instead of the process shown in FIG. The CPU 72 repeats sequentially executing each monitoring process in S50 and S250. S50 and S52 to S80 after YES in S50 are the same as in FIG. However, in this embodiment, the process of S54 in FIG. 3 is not executed, and if YES in S50, the process of S74 in FIG. 3 is not executed.

S250では、CPU72は、NFCI/F64を介した通信リンク(即ちNFCリンク)が確立されることを監視する。CPU72は、NFCI/F64から、NFCリンクが確立されたことを示す情報を取得する場合に、S250でYESと判断して、S64に進む。S64及びS66は、図3と同様である。S260では、CPU72は、Wi-Fi接続を利用して、プリンタPRから、Wi-FiI/F60を介して、BTデバイス名「NP」を受信する(図10のS220参照)。S260の後のS70~S80は、図3と同様である。ただし、S74では、CPU72は、Wi-Fi通信によってS260で受信されたBTデバイス名「NP」をBTデバイス名格納領域80に格納させる。 In S250, the CPU 72 monitors that a communication link (ie, NFC link) via the NFC I/F 64 is established. When acquiring information indicating that an NFC link has been established from the NFC I/F 64, the CPU 72 determines YES in S250 and proceeds to S64. S64 and S66 are similar to those in FIG. 3. In S260, the CPU 72 uses the Wi-Fi connection to receive the BT device name "NP" from the printer PR via the Wi-Fi I/F 60 (see S220 in FIG. 10). S70 to S80 after S260 are similar to those in FIG. 3. However, in S74, the CPU 72 stores the BT device name “NP” received in S260 through Wi-Fi communication in the BT device name storage area 80.

(ケースE:図12)
続いて、図12及び図13を参照して、図10及び図11の各処理によって実現される具体的なケースについて説明する。なお、図12及び図13において、プリンタPRと携帯端末PT1,PT2との間の太線矢印、細線矢印、破線矢印は、それぞれ、Wi-Fi通信、BT通信、NFC通信を示す。この点は、後述の第4実施例でも同様である。図12のケースEの初期状態は、図4のケースAの初期状態と同様である。図4のケースAと異なる点を中心として、ケースEの内容を説明する。
(Case E: Figure 12)
Next, with reference to FIGS. 12 and 13, specific cases realized by the processes shown in FIGS. 10 and 11 will be described. Note that in FIGS. 12 and 13, thick line arrows, thin line arrows, and broken line arrows between printer PR and mobile terminals PT1 and PT2 indicate Wi-Fi communication, BT communication, and NFC communication, respectively. This point also applies to the fourth embodiment described later. The initial state of case E in FIG. 12 is similar to the initial state of case A in FIG. The contents of case E will be explained, focusing on the differences from case A in FIG. 4.

プリンタPRは、電源がユーザによってONされる場合(A0)に、T302において、SSID「X1」を生成し(図10のS2)、T304において、BTI/F22及びNFCI/F24のそれぞれをON状態に変更し(S200)、T305において、SS
ID「X1」及びパスワード「PS」をNFCI/F24に供給する。A1及びT306は、図4のA1及びT6と同様である。
When the power is turned on by the user (A0), the printer PR generates SSID "X1" in T302 (S2 in FIG. 10), and turns on each of the BTI/F 22 and NFCI/F 24 in T304. (S200), and at T305, the SS
The ID "X1" and password "PS" are supplied to the NFC I/F 24. A1 and T306 are similar to A1 and T6 in FIG.

携帯端末PT1は、プリンタPRからAdvertise信号を受信する場合に、T310において、Advertise信号内のBTデバイス名「NP」を格納済みでないと判断する(図11のS52でNO)。この場合、携帯端末PT1は、Scan_Req信号をプリンタPRに送信しない(S54でNOの場合にS60に進まない)。この結果、プリンタPRと携帯端末PT1との間にWi-Fi接続が確立されない。 When receiving the Advertise signal from the printer PR, the mobile terminal PT1 determines in T310 that the BT device name "NP" in the Advertise signal has not been stored (NO in S52 of FIG. 11). In this case, the mobile terminal PT1 does not transmit the Scan_Req signal to the printer PR (if NO in S54, the process does not proceed to S60). As a result, a Wi-Fi connection is not established between the printer PR and the mobile terminal PT1.

ユーザは、プリンタPRに印刷を実行させることを望む場合に、A2において、携帯端末PT1をプリンタPRに近づける。これにより、プリンタPRと携帯端末PT1との間の距離がNFC通信を実行可能な最大の距離(例えば10cm)未満になる。この場合、プリンタPRと携帯端末PT1との間にNFCリンクが確立される。 When the user desires to have the printer PR perform printing, the user brings the mobile terminal PT1 close to the printer PR in A2. As a result, the distance between the printer PR and the mobile terminal PT1 becomes less than the maximum distance (for example, 10 cm) that allows NFC communication to be performed. In this case, an NFC link is established between the printer PR and the mobile terminal PT1.

プリンタPRのNFCI/F24のメモリ26には、SSID「X1」及びパスワード「PS」が格納されている(T305)。そして、NFCI/F24は、NFCリンクが確立される場合に、制御部30のCPU32から指示を受けることなく、T320において、メモリ26内のSSID「X1」及びパスワード「PS」を携帯端末PT1に送信する。T324,T330,T332は、図4のT24,T30,T32と同様である(図10のS210でYES、S14~S18、図11のS250でYES、S64、S66)。そして、T334において、プリンタPRは、Wi-Fi接続を利用して、BTデバイス名「NP」を携帯端末PT1に送信する(図10のS220)。 The memory 26 of the NFC I/F 24 of the printer PR stores the SSID "X1" and the password "PS" (T305). Then, when the NFC link is established, the NFC I/F 24 transmits the SSID "X1" and the password "PS" in the memory 26 to the mobile terminal PT1 at T320 without receiving an instruction from the CPU 32 of the control unit 30. do. T324, T330, and T332 are the same as T24, T30, and T32 in FIG. 4 (YES in S210 in FIG. 10, S14 to S18, YES in S250 in FIG. 11, S64, and S66). Then, at T334, the printer PR uses the Wi-Fi connection to transmit the BT device name "NP" to the mobile terminal PT1 (S220 in FIG. 10).

A3,T340~T352は、図4のA3,T40~T52と同様である。ただし、T342では、携帯端末PT1は、T334のWi-Fi通信によってプリンタPRから受信されたBTデバイス名「NP」を格納する(図11のS74)。T354では、プリンタPRは、SSID「X2」及びパスワード「PS」をNFCI/F24に供給する(図10のS240)。 A3, T340 to T352 are similar to A3, T40 to T52 in FIG. However, at T342, the mobile terminal PT1 stores the BT device name "NP" received from the printer PR through the Wi-Fi communication at T334 (S74 in FIG. 11). At T354, the printer PR supplies the SSID "X2" and the password "PS" to the NFC I/F 24 (S240 in FIG. 10).

(ケースF1;図13)
図13のケースF1は、図12のケースEの続きであり、Wi-FiI/F20がOFF状態であり(図12のT352参照)、BTI/F22及びNFCI/F24がON状態である(T304参照)。また、携帯端末PT1のBTデバイス名格納領域80には、確立済みプリンタであるプリンタPRのBTデバイス名「NP」が格納されている(T342参照)。
(Case F1; Figure 13)
Case F1 in FIG. 13 is a continuation of case E in FIG. 12, in which the Wi-Fi I/F 20 is in the OFF state (see T352 in FIG. 12), and the BTI/F 22 and NFCI/F 24 are in the ON state (see T304). ). Furthermore, the BT device name storage area 80 of the mobile terminal PT1 stores the BT device name "NP" of the printer PR, which is an established printer (see T342).

A11,A13は、図5と同様であり、T406~T452は、図5のT106~T152と同様である(図10のS212でYES、S12~S18、S30~S32、図11のS50でYES、S52でYES、S60~S80)。T454では、プリンタPRは、SSID「X3」及びパスワード「PS」をNFCI/F24に供給する(図10のS240)。 A11 and A13 are the same as in FIG. 5, and T406 to T452 are the same as T106 to T152 in FIG. 5 (YES in S212 in FIG. 10, S12 to S18, S30 to S32, YES in S50 in FIG. 11, YES in S52, S60 to S80). At T454, the printer PR supplies the SSID "X3" and the password "PS" to the NFC I/F 24 (S240 in FIG. 10).

(ケースF2)
ケースF2もケースEの続きである。携帯端末PT2のBTデバイス名格納領域(図示省略)には、プリンタPRのBTデバイス名「NP」が格納されていない。
(Case F2)
Case F2 is also a continuation of case E. The BT device name "NP" of the printer PR is not stored in the BT device name storage area (not shown) of the mobile terminal PT2.

A15は、図5と同様である。携帯端末PT2は、プリンタPRからT506のAdvertise信号を受信する場合(図11のS50でYES)に、T510において、Advertise信号内のBTデバイス名「NP」を格納済みでないと判断する(S52でNO)。この場合、携帯端末PT2は、Scan_Req信号をプリンタPRに送信し
ない(S52でNOの場合にS60に進まない)。この結果、プリンタPRと携帯端末PT2との間にWi-Fi接続が確立されない。
A15 is the same as in FIG. When the mobile terminal PT2 receives the Advertise signal at T506 from the printer PR (YES at S50 in FIG. 11), it determines at T510 that the BT device name "NP" in the Advertise signal has not been stored (NO at S52). ). In this case, the mobile terminal PT2 does not transmit the Scan_Req signal to the printer PR (if NO in S52, the process does not proceed to S60). As a result, a Wi-Fi connection is not established between the printer PR and the mobile terminal PT2.

(本実施例の効果)
本実施例でも、第1実施例と同様に、携帯端末PT1は、BT通信を実行した後に、適切な状況で、確立済みプリンタであるプリンタPRとのWi-Fi接続を確立することができる。また、携帯端末PT1は、BT方式の論理リンクを確立せずに済むので、携帯端末PT1の処理負荷を軽減させ得る。
(Effects of this example)
In this embodiment as well, similarly to the first embodiment, the mobile terminal PT1 can establish a Wi-Fi connection with the printer PR, which is an established printer, in an appropriate situation after executing BT communication. Furthermore, since the mobile terminal PT1 does not need to establish a BT-based logical link, the processing load on the mobile terminal PT1 can be reduced.

(対応関係)
BT方式、NFC方式が、それぞれ、「第1種の通信方式」、「第2種の通信方式」の一例である。携帯端末PT1のBTI/F62、NFCI/F64が、それぞれ、「第1種のインターフェース」、「第2種のインターフェース」の一例である。NFC通信を実行可能な最大の距離(例えば10cm)が、「所定距離」の一例である。図12のT320のSSID「X1」及びパスワード「PS」が、「第1のネットワーク関係情報」の一例であり、図13のT422のScan_Res信号内のSSID「X2」及びパスワード「PS」が、「第2のネットワーク関係情報」の一例である。
(correspondence)
The BT method and the NFC method are examples of the "first type communication method" and the "second type communication method", respectively. The BTI/F62 and NFCI/F64 of the mobile terminal PT1 are examples of a "first type interface" and a "second type interface", respectively. The maximum distance (for example, 10 cm) at which NFC communication can be performed is an example of the "predetermined distance." SSID "X1" and password "PS" of T320 in FIG. 12 are an example of "first network related information", and SSID "X2" and password "PS" in the Scan_Res signal of T422 in FIG. 13 are " This is an example of "second network related information".

(第4実施例)
第3実施例と異なる点を中心に説明する。本実施例では、プリンタPRがBTデバイス名格納領域40を備えており、携帯端末PT1がBTデバイス名格納領域80を備えていない。
(Fourth example)
The explanation will focus on the differences from the third embodiment. In this embodiment, the printer PR is provided with the BT device name storage area 40, and the mobile terminal PT1 is not provided with the BT device name storage area 80.

(プリンタPRの処理;図14)
プリンタPRのCPU32は、図10の処理に代えて、図14の処理を実行する。S2、S200、S202、S6、S210、及び、S212は、図10と同様である。また、S210でYESの後のS14~S18は、図10と同様である。S18の後のS221では、CPU32は、Wi-Fi接続を利用して、携帯端末から、Wi-FiI/F20を介して、携帯端末のBTデバイス名を受信する。
(Printer PR processing; Figure 14)
The CPU 32 of the printer PR executes the process shown in FIG. 14 instead of the process shown in FIG. S2, S200, S202, S6, S210, and S212 are the same as in FIG. 10. Further, steps S14 to S18 after YES in S210 are the same as those in FIG. 10. In S221 after S18, the CPU 32 receives the BT device name of the mobile terminal from the mobile terminal via the Wi-Fi I/F 20 using the Wi-Fi connection.

S212でYESの後のS213では、CPU32は、Scan_Req信号内の送信元のBTデバイス名がBTデバイス名格納領域40に格納されているのか否かを判断する。S213でYESの後のS12~S18は、図10と同様である。また、S20~S32、S240は、図10と同様である。S230では、CPU32は、S221で受信されたBTデバイス名をBTデバイス名格納領域40に格納させる。 In S213 after YES in S212, the CPU 32 determines whether the BT device name of the transmission source in the Scan_Req signal is stored in the BT device name storage area 40. Steps S12 to S18 after YES in S213 are the same as those in FIG. Further, S20 to S32 and S240 are the same as those in FIG. In S230, the CPU 32 stores the BT device name received in S221 in the BT device name storage area 40.

(携帯端末PT1の処理;図11)
携帯端末PT1のCPU72は、図11の処理を実行するが、S260が第3実施例とは異なる。S260では、携帯端末PT1のCPU72は、Wi-Fi接続を利用して、Wi-FiI/F60を介して、携帯端末PT1のBTデバイス名「N1」をプリンタPRに送信する(図14のS221参照)。また、本実施例では、S52及びS74が実行されない。
(Processing of mobile terminal PT1; Figure 11)
The CPU 72 of the mobile terminal PT1 executes the process shown in FIG. 11, but S260 is different from the third embodiment. In S260, the CPU 72 of the mobile terminal PT1 uses the Wi-Fi connection to transmit the BT device name "N1" of the mobile terminal PT1 to the printer PR via the Wi-Fi I/F 60 (see S221 in FIG. 14). ). Further, in this embodiment, S52 and S74 are not executed.

(ケースE:図12)
続いて、図12及び図15を参照して、図11及び図14の各処理によって実現される具体的なケースについて説明する。図12のケースEでは、T334が実行されず、その代わりにT336が実行される。T336では、携帯端末PT1は、Wi-Fi接続を利用して、携帯端末PT1のBTデバイス名「N1」をプリンタPRに送信する(図11のS260)。また、T342が実行されず、その代わりにT345が実行される。T345では、プリンタPRは、T336のWi-Fi通信によって携帯端末PT1から受信さ
れたBTデバイス名「N1」を格納する(図14のS230)。
(Case E: Figure 12)
Next, with reference to FIGS. 12 and 15, specific cases realized by the processes shown in FIGS. 11 and 14 will be described. In case E of FIG. 12, T334 is not executed and T336 is executed instead. At T336, the mobile terminal PT1 uses the Wi-Fi connection to transmit the BT device name "N1" of the mobile terminal PT1 to the printer PR (S260 in FIG. 11). Also, T342 is not executed, and T345 is executed instead. At T345, the printer PR stores the BT device name "N1" received from the mobile terminal PT1 through the Wi-Fi communication at T336 (S230 in FIG. 14).

(ケースG1;図15)
図15のケースG1は、図12のケースEの続きである。プリンタPRのBTデバイス名格納領域40には、確立済み端末である携帯端末PT1のBTデバイス名「N1」が格納されている(図12のT345参照)。図13のケースF1と異なる点を中心として、ケースG1を説明する。
(Case G1; Figure 15)
Case G1 in FIG. 15 is a continuation of case E in FIG. The BT device name storage area 40 of the printer PR stores the BT device name "N1" of the mobile terminal PT1, which is an established terminal (see T345 in FIG. 12). Case G1 will be explained focusing on the points that are different from case F1 in FIG. 13.

A11、T406~T420は、図13と同様である。T421では、プリンタPRは、Scan_Req信号内のBTデバイス名「N1」を格納済みであると判断する(図14のS213でYES)。この場合、T422では、プリンタPRは、プリンタPRと携帯端末PT1との間の距離が閾値以上であるにも関わらず、SSID「X2」及びパスワード「PS」を含むScan_Res信号を携帯端末PT1に送信する(S12)。A13、T424~T454は、図13と同様である。 A11 and T406 to T420 are the same as in FIG. At T421, the printer PR determines that the BT device name "N1" in the Scan_Req signal has been stored (YES at S213 in FIG. 14). In this case, at T422, the printer PR sends a Scan_Res signal containing the SSID "X2" and the password "PS" to the mobile terminal PT1 even though the distance between the printer PR and the mobile terminal PT1 is greater than or equal to the threshold value. (S12). A13 and T424 to T454 are the same as in FIG.

(ケースG2)
ケースG2もケースEの続きである。プリンタPRのBTデバイス名格納領域40には、携帯端末PT2のBTデバイス名「N2」が格納されていない。
(Case G2)
Case G2 is also a continuation of case E. The BT device name storage area 40 of the printer PR does not store the BT device name "N2" of the mobile terminal PT2.

携帯端末PT2は、A15の操作が実行された後に、プリンタPRからT506のAdvertise信号を受信する場合(図11のS50でYES)に、T520において、プリンタPRと携帯端末PT2との間の距離が閾値以上であるにも関わらず、Scan_Req信号をプリンタPRに送信する。 When the mobile terminal PT2 receives the Advertise signal at T506 from the printer PR after the operation at A15 is executed (YES at S50 in FIG. 11), the mobile terminal PT2 determines at T520 that the distance between the printer PR and the mobile terminal PT2 is The Scan_Req signal is sent to the printer PR even though it is equal to or greater than the threshold value.

プリンタPRは、携帯端末PT2からScan_Req信号を受信する場合に、T521おいて、Scan_Req信号内のBTデバイス名「N2」を格納済みでないと判断する(図14のS213でNO)。この場合、プリンタPRは、SSID「X2」等を携帯端末PT2に送信しない(S213でNOの場合にS12に進まない)。この結果、プリンタPRと携帯端末PT2との間にWi-Fi接続が確立されない。 When receiving the Scan_Req signal from the mobile terminal PT2, the printer PR determines at T521 that the BT device name "N2" in the Scan_Req signal has not been stored (NO at S213 in FIG. 14). In this case, the printer PR does not transmit the SSID "X2" etc. to the mobile terminal PT2 (if NO in S213, the process does not proceed to S12). As a result, a Wi-Fi connection is not established between the printer PR and the mobile terminal PT2.

(本実施例の効果)
本実施例でも、第2実施例と同様に、プリンタPRは、BT通信を実行した後に、適切な状況で、確立済みプリンタであるプリンタPRとのWi-Fi接続を確立することができる。また、プリンタPRは、BT方式の論理リンクを確立せずに済むので、プリンタPRの処理負荷を軽減させ得る。
(Effects of this example)
In this embodiment as well, similarly to the second embodiment, the printer PR can establish a Wi-Fi connection with the printer PR, which is an established printer, in an appropriate situation after executing BT communication. Furthermore, since the printer PR does not need to establish a BT-based logical link, the processing load on the printer PR can be reduced.

(対応関係)
プリンタPRのBTI/F22、NFCI/F24が、それぞれ、「第1種のインターフェース」、「第2種のインターフェース」の一例である。NFC通信を実行可能な最大の距離(例えば10cm)が、「所定距離」の一例である。図15のT420のScan_Req信号が、「所定要求」及び「特定情報」の一例である。また、T422のScan_Res信号が、「応答」の一例である。図12のT320のSSID「X1」及びパスワード「PS」が、「第1のネットワーク関係情報」の一例であり、図15のT422のScan_Res信号内のSSID「X2」及びパスワード「PS」が、「第2のネットワーク関係情報」の一例である。
(correspondence)
The BTI/F 22 and NFCI/F 24 of the printer PR are examples of a "first type interface" and a "second type interface", respectively. The maximum distance (for example, 10 cm) at which NFC communication can be performed is an example of the "predetermined distance." The Scan_Req signal at T420 in FIG. 15 is an example of a "predetermined request" and "specific information." Further, the Scan_Res signal of T422 is an example of a "response". SSID "X1" and password "PS" of T320 in FIG. 12 are an example of "first network related information", and SSID "X2" and password "PS" in the Scan_Res signal of T422 in FIG. 15 are " This is an example of "second network related information".

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

(変形例1)携帯端末PT1は、図3又は図11のS60及びS62を実行する代わりに、BT接続要求をプリンタPRに送信して、プリンタPRとのBT接続を確立した後に、BT接続を利用して、プリンタPRからSSID及びパスワードを受信してもよい。本変形例では、BT接続要求が、「第1の所定要求」及び「第2の所定要求」の一例である。一般的に言うと、「第1(又は第2)の所定要求」、「第1(又は第2)のネットワーク関係情報」は、上記の第1及び第3実施例のように、第2の通信方式の論理リンクを確立するための最上位層の通信を実行せずに通信されてもよいし、本変形例のように、論理リンクを利用して通信されてもよい。 (Modification 1) Instead of executing S60 and S62 in FIG. 3 or FIG. 11, the mobile terminal PT1 sends a BT connection request to the printer PR, establishes a BT connection with the printer PR, and then establishes a BT connection. The SSID and password may be received from the printer PR using the printer PR. In this modification, the BT connection request is an example of a "first predetermined request" and a "second predetermined request." Generally speaking, the "first (or second) predetermined request" and "first (or second) network related information" are, as in the first and third embodiments above, the "first (or second) predetermined request" and "first (or second) network related information" Communication may be performed without performing top layer communication for establishing a logical link of the communication method, or communication may be performed using a logical link as in this modification.

(変形例2)携帯端末PT1がAdvertise信号を繰り返し送信する場合には、プリンタPRは、図6のS6を実行しなくてもよい。この場合、プリンタPRは、携帯端末PT1からAdvertise信号を受信する場合に、Advertise信号内の携帯端末PT1のBTデバイス名「N1」を格納済みであるのか否かを判断してもよい。プリンタPRは、BTデバイス名「N1」を格納済みであると判断する場合に、S116以降の処理を実行してもよい。プリンタPRは、BTデバイス名「N1」を格納済みでないと判断する場合に、受信済みのAdvertise信号の電波強度に基づいて、プリンタPRと携帯端末PT1との間の距離を特定し、特定済みの距離が閾値未満であるのか否かを判断してもよい。プリンタPRは、特定済みの距離が閾値未満であると判断する場合には、S116以降の処理を実行し、特定済みの距離が閾値以上であると判断する場合には、S116以降の処理を実行しなくてもよい。S116では、BT接続が確立されることなく、ネットワーク情報が送信されてもよいし、BT接続が確立された後に、ネットワーク情報が送信されてもよい。本変形例では、Advertise信号が、「特定情報」の一例であり、「所定信号送信部」及び「距離情報受信部」を省略可能である。 (Modification 2) When the mobile terminal PT1 repeatedly transmits the Advertise signal, the printer PR does not need to execute S6 in FIG. 6. In this case, when receiving the Advertise signal from the mobile terminal PT1, the printer PR may determine whether the BT device name "N1" of the mobile terminal PT1 in the Advertise signal has already been stored. If the printer PR determines that the BT device name "N1" has been stored, it may execute the processes from S116 onwards. If the printer PR determines that the BT device name "N1" is not stored, it identifies the distance between the printer PR and the mobile terminal PT1 based on the radio field strength of the received Advertise signal, and stores the identified BT device name "N1". It may also be determined whether the distance is less than a threshold. If the printer PR determines that the identified distance is less than the threshold, it executes the processes from S116 onwards, and when it determines that the identified distance is greater than or equal to the threshold, it executes the processes from S116 onwards. You don't have to. In S116, network information may be transmitted without establishing a BT connection, or may be transmitted after a BT connection is established. In this modification, the Advertise signal is an example of "specific information", and the "predetermined signal transmitter" and "distance information receiver" can be omitted.

(変形例3)携帯端末PT1がAdvertise信号を繰り返し送信する場合には、プリンタPRは、図14のS6を実行しなくてもよい。この場合、プリンタPRは、携帯端末PT1からAdvertise信号を受信する場合に、Advertise信号内の携帯端末PT1のBTデバイス名「N1」を格納済みであるのか否かを判断してもよい。プリンタPRは、BTデバイス名「N1」を格納済みであると判断する場合に、S12以降の処理を実行し、BTデバイス名「N1」を格納済みでないと判断する場合に、S12以降の処理を実行しなくてもよい。S12では、BT接続が確立されることなく、ネットワーク情報が送信されてもよいし、BT接続が確立された後に、ネットワーク情報が送信されてもよい。本変形例では、Advertise信号が、「特定情報」及び「所定要求」の一例である。 (Modification 3) If the mobile terminal PT1 repeatedly transmits the Advertise signal, the printer PR does not need to execute S6 in FIG. 14. In this case, when receiving the Advertise signal from the mobile terminal PT1, the printer PR may determine whether the BT device name "N1" of the mobile terminal PT1 in the Advertise signal has already been stored. If the printer PR determines that the BT device name "N1" has been stored, it executes the processes from S12 onwards, and when it determines that the BT device name "N1" has not been stored, it executes the processes from S12 onwards. It doesn't have to be executed. In S12, network information may be transmitted without establishing a BT connection, or may be transmitted after a BT connection is established. In this modification, the Advertise signal is an example of "specific information" and "predetermined request."

(変形例4)携帯端末PT1は、図11の第3実施例のS260を実行せずに、NFC通信によってプリンタPRからBTデバイス名「NP」を受信してもよい。即ち、「機器識別情報受信処理」では、上記の第3実施例のように、第1のインターフェースを介して第1の機器識別情報を受信してもよいし、本変形例のように、第2のインターフェース(特に第2種のインターフェース)を介して第1の機器識別情報を受信してもよい。 (Modification 4) The mobile terminal PT1 may receive the BT device name "NP" from the printer PR through NFC communication without executing S260 of the third embodiment in FIG. That is, in the "device identification information reception process", the first device identification information may be received via the first interface as in the third embodiment, or the first device identification information may be received via the first interface as in the present modification. The first device identification information may be received via a second type of interface (particularly a second type of interface).

(変形例5)プリンタPRは、図14のS221を実行せずに、NFC通信によって携帯端末PT1からBTデバイス名「N1」を受信してもよい。即ち、「機器識別情報受信部」は、上記の第4実施例のように、第1のインターフェースを介して第2の機器識別情報を受信してもよいし、本変形例のように、第2のインターフェース(特に第2種のインターフェース)を介して第2の機器識別情報を受信してもよい。 (Variation 5) The printer PR may receive the BT device name "N1" from the mobile terminal PT1 via NFC communication without executing S221 in FIG. 14. That is, the "device identification information receiving section" may receive the second device identification information via the first interface as in the fourth embodiment, or may receive the second device identification information via the first interface as in the fourth embodiment. The second device identification information may be received via a second interface (particularly a second type of interface).

(変形例6)上記の各実施例では、プリンタPRから携帯端末PT1にSSID及びパスワードが送信される(例えば図2のS12)。これに代えて、プリンタPRは、SSIDを携帯端末PT1に送信するが、パスワードを携帯端末PT1に送信しなくてもよい。こ
の場合、携帯端末PT1においてパスワード入力画面が表示されて、パスワードがユーザによって携帯端末PT1に入力される。本変形例では、SSIDのみが、「第1(又は第2)のネットワーク関係情報」の一例である。
(Variation 6) In each of the above embodiments, the SSID and password are transmitted from the printer PR to the mobile terminal PT1 (for example, S12 in FIG. 2). Alternatively, the printer PR transmits the SSID to the mobile terminal PT1, but does not need to transmit the password to the mobile terminal PT1. In this case, a password input screen is displayed on the mobile terminal PT1, and the password is input into the mobile terminal PT1 by the user. In this modification, only the SSID is an example of "first (or second) network related information."

(変形例7)プリンタPRのBTI/F22は、CPUとメモリとを備えていてもよい。BTI/F22のメモリは、プログラムを格納していてもよい。BTI/F22のCPUは、制御部30内のCPU32から指示を受けなくても、BTI/F22のメモリ内のプログラムに従って、上記の各実施例の動作を実行可能であってもよい。一般的に言うと、「第1の通信機器」は、2個以上のプロセッサ(例えばプリンタPRの制御部30内のCPU32とBTI/F22内のCPU)と、2個以上のメモリ(例えば制御部30内のメモリ34とBTI/F22内のメモリ)と、を備えていてもよく、各プロセッサが各メモリに格納されている各プログラムに従って処理を実行してもよい。 (Modification 7) The BT I/F 22 of the printer PR may include a CPU and a memory. The memory of the BT I/F 22 may store a program. The CPU of the BTI/F 22 may be able to execute the operations of each of the above embodiments according to the program in the memory of the BTI/F 22 without receiving instructions from the CPU 32 in the control unit 30. Generally speaking, the "first communication device" includes two or more processors (for example, the CPU 32 in the control unit 30 of the printer PR and the CPU in the BTI/F 22) and two or more memories (for example, the control unit BT I/F 22), and each processor may execute processing according to each program stored in each memory.

(変形例8)第3及び第4実施例では、図10及び図14のS202及びS240において、プリンタPRのCPU32は、現行SSID及びパスワードをNFCI/F24に供給して、NFCI/F24のメモリ26にこれらの情報を格納させる。この結果、NFCI/F24は、携帯端末とのNFCリンクが確立される場合に、制御部30(即ちCPU32)から指示を受けなくても、現行SSID及びパスワードを携帯端末に送信することができる。これに代えて、NFCI/F24は、携帯端末とのNFCリンクが確立される場合に、NFCリンクが確立されたことを制御部30(即ちCPU32)に通知し、制御部30から現行SSID及びパスワードを取得してこれらの情報を携帯端末に送信してもよい。一般的に言うと、「第1のネットワーク関係情報送信部」は、第2種のインターフェースを介して、第1のネットワーク関係情報を第2の通信機器に送信すればよい。 (Modification 8) In the third and fourth embodiments, in S202 and S240 of FIGS. 10 and 14, the CPU 32 of the printer PR supplies the current SSID and password to the NFCI/F 24, and stores this information. As a result, when an NFC link with the mobile terminal is established, the NFC I/F 24 can transmit the current SSID and password to the mobile terminal without receiving an instruction from the control unit 30 (ie, CPU 32). Instead, when an NFC link with the mobile terminal is established, the NFC I/F 24 notifies the control unit 30 (i.e., the CPU 32) that the NFC link has been established, and the control unit 30 sends the current SSID and password. may be acquired and sent to the mobile terminal. Generally speaking, the "first network related information transmitter" may transmit the first network related information to the second communication device via the second type of interface.

(変形例9)各実施例では、プリンタPRは、例えば図2のS32において、Wi-FiI/F20をOFF状態に変更する。これに代えて、プリンタPRの電源がONされている間に、Wi-FiI/F20が常にON状態に維持されていてもよい。 (Modification 9) In each embodiment, the printer PR changes the Wi-Fi I/F 20 to the OFF state, for example in S32 of FIG. Alternatively, the Wi-Fi I/F 20 may be kept in the ON state at all times while the printer PR is powered on.

(変形例10)プリンタPRは、WFDをサポートしていなくてもよく、その代わりに、いわゆるSoftAPをサポートしていてもよい。この場合、プリンタPRは、例えば図2のS14において、SoftAPを起動し、S32において、SoftAPを停止する。 (Modification 10) The printer PR does not need to support WFD, and instead may support so-called SoftAP. In this case, the printer PR starts SoftAP in S14 of FIG. 2, for example, and stops SoftAP in S32.

(変形例11)「機器識別情報」は、プリンタPR又は携帯端末PT1等のBTデバイス名でなくてもよく、他の識別情報(例えば、MACアドレス、IPアドレス等)であってもよい。 (Modification 11) "Device identification information" does not need to be a BT device name such as printer PR or mobile terminal PT1, and may be other identification information (for example, MAC address, IP address, etc.).

(変形例12)「第1のインターフェース」は、Wi-Fi通信を実行するためのI/Fでなくてもよく、無線LANを構築可能な他の通信方式に従った無線通信を実行するためのI/Fであってもよい。また、「第2のインターフェース」は、BT通信を実行するためのI/Fでなくてもよく、例えば、近距離無線通信を実行可能な他の通信方式(例えばTransferJet(登録商標)方式)に従った無線通信を実行するためのI/Fであってもよい。 (Modification 12) The "first interface" does not have to be an I/F for performing Wi-Fi communication, but is for performing wireless communication according to other communication methods that can construct a wireless LAN. It may be an I/F. Furthermore, the "second interface" does not need to be an I/F for performing BT communication, but may be an I/F for performing short-range wireless communication (for example, TransferJet (registered trademark) method). It may also be an I/F for performing wireless communication according to the above.

(変形例13)「第1の通信機器」は、プリンタPRでなくてもよく、例えば、スキャナであってもよい。この場合、スキャナは、例えば、図2のS20において、携帯端末PT1から印刷データを受信する代わりに、原稿のスキャンを実行することによって生成されるスキャンデータを携帯端末PT1に送信してもよい。また、「第1の通信機器」は、プリンタ及びスキャナとは異なる機器(例えば、コピー機、ファクシミリ、電話機、PC、サーバ、携帯端末等)であってもよい。また、「第2の通信機器」は、携帯端末でなくて
もよく、他の機器(例えば、プリンタ、スキャナ、コピー機、ファクシミリ、電話機、デスクトップ型PC、サーバ等)であってもよい。
(Modification 13) The "first communication device" may not be a printer PR, but may be a scanner, for example. In this case, for example, in S20 of FIG. 2, the scanner may transmit scan data generated by scanning the document to the mobile terminal PT1 instead of receiving print data from the mobile terminal PT1. Further, the "first communication device" may be a device other than a printer and a scanner (for example, a copy machine, a facsimile, a telephone, a PC, a server, a mobile terminal, etc.). Further, the "second communication device" does not need to be a mobile terminal, and may be other devices (for example, a printer, a scanner, a copier, a facsimile, a telephone, a desktop PC, a server, etc.).

(変形例14)各実施例では、プリンタPRのCPU32及び携帯端末PT1のCPU72がプログラム(即ちソフトウェア)を実行することによって、図2~図15の各処理が実現される。これに代えて、図2~図15の各処理のうちの少なくとも1つの処理は、論理回路等のハードウェアによって実現されてもよい。 (Modification 14) In each embodiment, the processes shown in FIGS. 2 to 15 are realized by the CPU 32 of the printer PR and the CPU 72 of the mobile terminal PT1 executing programs (ie, software). Alternatively, at least one of the processes shown in FIGS. 2 to 15 may be realized by hardware such as a logic circuit.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。
(項目1)
第1の通信機器であって、
第1の通信方式に従った無線通信を実行するための第1のインターフェースと、
前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、
前記第1の通信機器と第2の通信機器との間の距離が所定距離未満である状態で、前記第2のインターフェースを介して、第1の無線ネットワークに関係する第1のネットワーク関係情報を前記第2の通信機器に送信する第1のネットワーク関係情報送信部であって、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記第1のネットワーク関係情報送信部と、
前記第1のネットワーク関係情報を受信した前記第2の通信機器から、前記第1のインターフェースを介して、第1の無線接続要求を受信する第1の接続要求受信部と、
前記第2の通信機器から前記第1の無線接続要求を受信することに応じて、前記第1のネットワーク関係情報を利用して、前記第1のインターフェースを介した第1の無線接続を前記第2の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立部と、
前記第2の通信機器から、前記第2の通信機器を識別するための第2の機器識別情報を受信する機器識別情報受信部と、
前記第2の機器識別情報を前記第1の通信機器のメモリに格納させる格納制御部と、
前記第2の機器識別情報が前記メモリに格納された後に、第3の通信機器から、前記第2のインターフェースを介して、前記第3の通信機器を識別するための第3の機器識別情報を含む特定情報を受信する特定情報受信部と、
前記特定情報内の前記第3の機器識別情報が前記メモリ内の前記第2の機器識別情報に一致するのか否かを判断する識別情報判断部と、
前記第3の機器識別情報が前記第2の機器識別情報に一致すると判断される場合に、前記第2のインターフェースを介して、第2の無線ネットワークに関係する第2のネットワーク関係情報を前記第3の通信機器に一致する前記第2の通信機器に送信し、前記第3の機器識別情報が前記第2の機器識別情報に一致しないと判断される場合に、前記第2のネットワーク関係情報を前記第3の通信機器に送信しない第2のネットワーク関係情報送信部であって、前記第2の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークであり、前記第2のネットワーク関係情報は、前記第1のネットワーク関係情報とは異なる、前記第2のネットワーク関係情報送信部と、
前記第2のネットワーク関係情報を受信した前記第2の通信機器から、前記第1のインターフェースを介して、第2の無線接続要求を受信する第2の接続要求受信部と、
前記第2の通信機器から前記第2の無線接続要求を受信することに応じて、前記第2のネットワーク関係情報を利用して、前記第1のインターフェースを介した第2の無線接続を前記第2の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第2の無線ネットワークを形成する第2の確立部と、
を備える第1の通信機器。
(項目2)
前記第1の通信機器は、さらに、
前記第2の通信方式の論理リンクを確立するための最上位層の通信を実行せずに、前記最上位層よりも下位である下位層の通信を実行して、前記第2のインターフェースを介して、所定信号を送信することを繰り返す所定信号送信部を備え、
前記特定情報受信部は、前記所定信号を受信した前記第3の通信機器から、前記第2のインターフェースを介して、前記特定情報を受信する、項目1に記載の第1の通信機器。
(項目3)
前記第1の通信機器は、さらに、
前記第2の通信機器から、前記第2のインターフェースを介して、前記第1の通信機器と前記第2の通信機器との間の距離に関係する第1の距離情報を受信する距離情報受信部を備え、
前記第1のネットワーク関係情報送信部は、
前記第1の距離情報が、前記第1の通信機器と前記第2の通信機器との間の距離が前記所定距離未満であることを示す場合に、前記第2のインターフェースを介して、前記第1のネットワーク関係情報を前記第2の通信機器に送信し、
前記第1の距離情報が、前記第1の通信機器と前記第2の通信機器との間の距離が前記所定距離より大きいことを示す場合に、前記第1のネットワーク関係情報を前記第2の通信機器に送信せず、
前記特定情報受信部は、前記第3の通信機器から、前記第2のインターフェースを介して、前記第1の通信機器と前記第3の通信機器との間の距離に関係する第2の距離情報である前記特定情報を受信する、項目1又は項目2に記載の第1の通信機器。
(項目4)
前記距離情報受信部は、前記第1の通信機器と前記第2の通信機器との間に確立される前記第2の通信方式の論理リンクを利用して、前記第2の通信機器から、前記第2のインターフェースを介して、前記第1の距離情報を受信し、
前記特定情報受信部は、前記第1の通信機器と前記第3の通信機器との間に確立される前記第2の通信方式の論理リンクを利用して、前記第3の通信機器から、前記第2のインターフェースを介して、前記第2の距離情報である前記特定情報を受信する、項目3に記載の第1の通信機器。
(項目5)
前記機器識別情報受信部は、前記第2の通信機器から、前記第2のインターフェースを介して、前記第2の機器識別情報を受信する、項目1から項目4のいずれか一項に記載の第1の通信機器。
(項目6)
前記第2のインターフェースは、
前記第2の通信方式のうちの第1種の通信方式に従った無線通信を実行するための第1種のインターフェースと、
前記第2の通信方式のうちの第2種の通信方式であって、前記第1種の通信方式とは異なる前記第2種の通信方式に従った無線通信を実行するための第2種のインターフェースであって、前記第2種のインターフェースを介した無線通信を実行可能な距離は、前記第1種のインターフェースを介した無線通信を実行可能な距離よりも小さい、前記第2種のインターフェースと、を備え、
前記第1のネットワーク関係情報送信部は、前記第1の通信機器と前記第2の通信機器との間の距離が前記所定距離未満である状態で、前記第2種のインターフェースを介して、前記第1のネットワーク関係情報を前記第2の通信機器に送信し、
前記特定情報受信部は、前記第1の通信機器と前記第3の通信機器との間の距離が前記所定距離より大きい状態で、前記第3の通信機器から、前記第1種のインターフェースを介して、前記特定情報を受信し、
前記第2のネットワーク関係情報送信部は、前記第3の機器識別情報が前記第2の機器識別情報に一致すると判断される場合に、前記第1種のインターフェースを介して、前記第2のネットワーク関係情報を前記第3の通信機器に一致する前記第2の通信機器に送信する、項目1又は項目2に記載の第1の通信機器。
(項目7)
前記機器識別情報受信部は、前記第1の無線ネットワークを利用して、前記第2の通信機器から、前記第1のインターフェースを介して、前記第2の機器識別情報を受信する、項目6に記載の第1の通信機器。
(項目8)
前記特定情報受信部は、前記第3の通信機器から、前記第1種のインターフェースを介して、ネットワーク関係情報を要求するための所定要求である前記特定情報を受信し、
前記第2のネットワーク関係情報送信部は、前記第3の機器識別情報が前記第2の機器識別情報に一致すると判断される場合に、前記第1種のインターフェースを介して、前記所定要求に対する応答であって、前記第2のネットワーク関係情報を含む前記応答を、前記第3の通信機器に一致する前記第2の通信機器に送信する、項目6又は項目7に記載の第1の通信機器。
(項目9)
前記特定情報受信部は、前記第1種の通信方式の論理リンクを確立するための最上位層の通信を実行せずに、前記最上位層よりも下位である下位層の通信を実行して、前記第3の通信機器から、前記第1種のインターフェースを介して、前記所定要求である前記特定情報を受信し、
前記第2のネットワーク関係情報送信部は、前記第3の機器識別情報が前記第2の機器識別情報に一致すると判断される場合に、前記最上位層の通信を実行せずに、前記下位層の通信を実行して、前記第1種のインターフェースを介して、前記応答を前記第3の通信機器に一致する前記第2の通信機器に送信する、項目8に記載の第1の通信機器。
(項目10)
第2の通信機器のためのコンピュータプログラムであって、
前記第2の通信機器は、
第1の通信方式に従った無線通信を実行するための第1のインターフェースと、
前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、
プロセッサと、を備え、
前記コンピュータプログラムは、前記プロセッサに、以下の各処理、即ち、
第1の通信機器と前記第2の通信機器との間の距離が所定距離未満である状態で、前記第1の通信機器から、前記第2のインターフェースを介して、第1の無線ネットワークに関係する第1のネットワーク関係情報を受信する第1のネットワーク関係情報受信処理であって、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記第1のネットワーク関係情報受信処理と、
前記第1の通信機器から前記第1のネットワーク関係情報を受信することに応じて、前記第1のインターフェースを介して、第1の無線接続要求を前記第1の通信機器に送信する第1の接続要求送信処理と、
前記第1の無線接続要求を前記第1の通信機器に送信することに応じて、前記第1のネットワーク関係情報を利用して、前記第1のインターフェースを介した第1の無線接続を前記第1の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立処理と、
前記第1の通信機器から、前記第1の通信機器を識別するための第1の機器識別情報を受信する機器識別情報受信処理と、
前記第1の機器識別情報を前記第2の通信機器のメモリに格納させる格納制御処理と、
前記第1の機器識別情報が前記メモリに格納された後に、第3の通信機器から、前記第2のインターフェースを介して、前記第3の通信機器を識別するための第3の機器識別情報を含む第1の所定信号を受信する第1の所定信号受信処理と、
前記第1の所定信号内の前記第3の機器識別情報が前記メモリ内の前記第1の機器識別情報に一致するのか否かを判断する識別情報判断処理と、
前記第3の機器識別情報が前記第1の機器識別情報に一致すると判断される場合に、前記第2のインターフェースを介して、無線ネットワークに関係するネットワーク関係情報を要求するための第1の所定要求を前記第3の通信機器に一致する前記第1の通信機器に送信し、前記第3の機器識別情報が前記第1の機器識別情報に一致しないと判断される場合に、前記第1の所定要求を前記第3の通信機器に送信しない第1の所定要求送信処理と、
前記第1の所定要求を前記第1の通信機器に送信することに応じて、前記第1の通信機器から、前記第2のインターフェースを介して、第2の無線ネットワークに関係する第2のネットワーク関係情報を受信する第2のネットワーク関係情報受信処理であって、前記第2の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークであり、前記第2のネットワーク関係情報は、前記第1のネットワーク関係情報とは異なる、前記第2のネットワーク関係情報受信処理と、
前記第1の通信機器から前記第2のネットワーク関係情報を受信することに応じて、前記第1のインターフェースを介して、第2の無線接続要求を前記第1の通信機器に送信する第2の接続要求送信処理と、
前記第2の無線接続要求を前記第1の通信機器に送信することに応じて、前記第2のネットワーク関係情報を利用して、前記第1のインターフェースを介した第2の無線接続を前記第1の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第2の無線ネットワークを形成する第2の確立処理と、
を実行させる、コンピュータプログラム。
(項目11)
前記第1の所定信号受信処理では、前記第2の通信方式の論理リンクを確立するための最上位層の通信を実行せずに、前記最上位層よりも下位である下位層の通信を実行して、前記第3の通信機器から、前記第2のインターフェースを介して、前記第1の所定信号を受信する、項目10に記載のコンピュータプログラム。
(項目12)
前記第1の所定要求送信処理では、前記第3の機器識別情報が前記第1の機器識別情報に一致すると判断される場合に、前記第2の通信方式の論理リンクを確立するための最上位層の通信を実行せずに、前記最上位層よりも下位である下位層の通信を実行して、前記第2のインターフェースを介して、前記第1の所定要求を前記第3の通信機器に一致する前記第1の通信機器に送信し、
前記第2のネットワーク関係情報受信処理では、前記最上位層の通信を実行せずに、前記下位層の通信を実行して、前記第1の通信機器から、前記第2のインターフェースを介して、前記第2のネットワーク関係情報を受信する、項目10又は項目11に記載のコンピュータプログラム。
(項目13)
前記コンピュータプログラムは、前記プロセッサに、さらに、以下の各処理、即ち、
前記第1の通信機器から、前記第2のインターフェースを介して、前記第1の機器識別情報を含む第2の所定信号を受信する第2の所定信号受信処理と、
前記第2の所定信号の電波強度を利用して、前記第1の通信機器と前記第2の通信機器との間の距離が前記所定距離未満であるのか否かを判断する距離判断処理と、
前記第1の通信機器と前記第2の通信機器との間の距離が前記所定距離未満であると判断される場合に、前記第2のインターフェースを介して、無線ネットワークに関係するネットワーク関係情報を要求するための第2の所定要求を前記第1の通信機器に送信し、前記第1の通信機器と前記第2の通信機器との間の距離が前記所定距離未満でないと判断される場合に、前記第2の所定要求を前記第1の通信機器に送信しない第2の所定要求送信処理と、を実行させ、
前記第1のネットワーク関係情報受信処理では、前記第2の所定要求を前記第1の通信機器に送信することに応じて、前記第1の通信機器から、前記第2のインターフェースを介して、前記第1のネットワーク関係情報を受信する、項目10から項目12のいずれか一項に記載のコンピュータプログラム。
(項目14)
前記機器識別情報受信処理では、前記第1の通信機器から、前記第2のインターフェースを介して、前記第1の機器識別情報を受信する、項目10から項目13のいずれか一項に記載のコンピュータプログラム。
(項目15)
前記第2のインターフェースは、
前記第2の通信方式のうちの第1種の通信方式に従った無線通信を実行するための第1種のインターフェースと、
前記第2の通信方式のうちの第2種の通信方式であって、前記第1種の通信方式とは異なる前記第2種の通信方式に従った無線通信を実行するための第2種のインターフェースであって、前記第2種のインターフェースを介した無線通信を実行可能な距離は、前記第1種のインターフェースを介した無線通信を実行可能な距離よりも小さい、前記第2種のインターフェースと、を備え、
前記第1のネットワーク関係情報受信処理では、前記第1の通信機器と前記第2の通信機器との間の距離が前記所定距離未満である状態で、前記第1の通信機器から、前記第2種のインターフェースを介して、前記第1のネットワーク関係情報を受信し、
前記第1の所定信号受信処理では、前記第1の通信機器と前記第3の通信機器との間の距離が前記所定距離より大きい状態で、前記第3の通信機器から、前記第1種のインターフェースを介して、前記第3の機器識別情報を含む前記所定信号を受信し、
前記第1の所定要求送信処理では、前記第3の機器識別情報が前記第1の機器識別情報に一致すると判断される場合に、前記第1種のインターフェースを介して、前記所定要求を前記第3の通信機器に一致する前記第1の通信機器に送信し、
前記第2のネットワーク関係情報受信処理では、前記第1の通信機器から、前記第1種のインターフェースを介して、前記第2のネットワーク関係情報を受信する、項目10から項目12のいずれか一項に記載のコンピュータプログラム。
(項目16)
前記機器識別情報受信処理では、前記第1の無線ネットワークを利用して、前記第1の通信機器から、前記第1のインターフェースを介して、前記第1の機器識別情報を受信する、項目15に記載のコンピュータプログラム。
(項目17)
第2の通信機器であって、
第1の通信方式に従った無線通信を実行するための第1のインターフェースと、
前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、
第1の通信機器と前記第2の通信機器との間の距離が所定距離未満である状態で、前記第1の通信機器から、前記第2のインターフェースを介して、第1の無線ネットワークに関係する第1のネットワーク関係情報を受信する第1のネットワーク関係情報受信部であって、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記第1のネットワーク関係情報受信部と、
前記第1の通信機器から前記第1のネットワーク関係情報を受信することに応じて、前記第1のインターフェースを介して、第1の無線接続要求を前記第1の通信機器に送信する第1の接続要求送信部と、
前記第1の無線接続要求を前記第1の通信機器に送信することに応じて、前記第1のネットワーク関係情報を利用して、前記第1のインターフェースを介した第1の無線接続を前記第1の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立部と、
前記第1の通信機器から、前記第1の通信機器を識別するための第1の機器識別情報を受信する機器識別情報受信部と、
前記第1の機器識別情報を前記第2の通信機器のメモリに格納させる格納制御部と、
前記第1の機器識別情報が前記メモリに格納された後に、第3の通信機器から、前記第2のインターフェースを介して、前記第3の通信機器を識別するための第3の機器識別情報を含む第1の所定信号を受信する第1の所定信号受信部と、
前記第1の所定信号内の前記第3の機器識別情報が前記メモリ内の前記第1の機器識別情報に一致するのか否かを判断する識別情報判断部と、
前記第3の機器識別情報が前記第1の機器識別情報に一致すると判断される場合に、前記第2のインターフェースを介して、無線ネットワークに関係するネットワーク関係情報を要求するための第1の所定要求を前記第3の通信機器に一致する前記第1の通信機器に送信し、前記第3の機器識別情報が前記第1の機器識別情報に一致しないと判断される場合に、前記第1の所定要求を前記第3の通信機器に送信しない第1の所定要求送信部と、
前記第1の所定要求を前記第1の通信機器に送信することに応じて、前記第1の通信機器から、前記第2のインターフェースを介して、第2の無線ネットワークに関係する第2のネットワーク関係情報を受信する第2のネットワーク関係情報受信部であって、前記第2の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークであり、前記第2のネットワーク関係情報は、前記第1のネットワーク関係情報とは異なる、前記第2のネットワーク関係情報受信部と、
前記第1の通信機器から前記第2のネットワーク関係情報を受信することに応じて、前記第1のインターフェースを介して、第2の無線接続要求を前記第1の通信機器に送信する第2の接続要求送信部と、
前記第2の無線接続要求を前記第1の通信機器に送信することに応じて、前記第2のネットワーク関係情報を利用して、前記第1のインターフェースを介した第2の無線接続を前記第1の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第2の無線ネットワークを形成する第2の確立部と、
を備える第2の通信機器。
Further, the technical elements described in this specification or the drawings exhibit technical usefulness singly or in various combinations, and are not limited to the combinations described in the claims as filed. Furthermore, the techniques illustrated in this specification or the drawings simultaneously achieve multiple objectives, and achieving one of the objectives has technical utility in itself.
(Item 1)
A first communication device,
a first interface for performing wireless communication according to a first communication method;
a second interface for performing wireless communication according to a second communication method different from the first communication method;
transmitting first network related information related to the first wireless network via the second interface in a state where the distance between the first communication device and the second communication device is less than a predetermined distance; a first network-related information transmitter that transmits to the second communication device, the first wireless network being a network for performing wireless communication via the first interface; 1 network-related information transmission unit;
a first connection request receiving unit that receives, via the first interface, a first wireless connection request from the second communication device that has received the first network related information;
In response to receiving the first wireless connection request from the second communication device, the first wireless connection via the first interface is established using the first network related information. a first establishing unit that establishes with a second communication device to form the first wireless network to which both the first communication device and the second communication device belong;
a device identification information receiving unit that receives second device identification information for identifying the second communication device from the second communication device;
a storage control unit that stores the second device identification information in a memory of the first communication device;
After the second device identification information is stored in the memory, third device identification information for identifying the third communication device is sent from the third communication device via the second interface. a specific information receiving unit that receives specific information including;
an identification information determination unit that determines whether the third device identification information in the specific information matches the second device identification information in the memory;
If it is determined that the third device identification information matches the second device identification information, the second network related information related to the second wireless network is sent to the second wireless network via the second interface. 3, and when it is determined that the third device identification information does not match the second device identification information, the second network related information is transmitted to the second communication device that matches the third communication device. a second network-related information transmitter that does not transmit to the third communication device, the second wireless network being a network for performing wireless communication via the first interface; The second network related information includes the second network related information transmitter, which is different from the first network related information;
a second connection request receiving unit that receives, via the first interface, a second wireless connection request from the second communication device that has received the second network related information;
In response to receiving the second wireless connection request from the second communication device, the second wireless connection via the first interface is established using the second network related information. a second establishment unit that establishes with the second communication device to form the second wireless network to which both the first communication device and the second communication device belong;
A first communication device comprising:
(Item 2)
The first communication device further includes:
without performing top layer communication for establishing a logical link of the second communication method, by performing communication in a lower layer that is lower than the top layer, and communicating through the second interface. a predetermined signal transmitter that repeatedly transmits a predetermined signal;
The first communication device according to item 1, wherein the specific information receiving unit receives the specific information from the third communication device that has received the predetermined signal, via the second interface.
(Item 3)
The first communication device further includes:
a distance information receiving unit that receives first distance information related to a distance between the first communication device and the second communication device from the second communication device via the second interface; Equipped with
The first network-related information transmitter includes:
If the first distance information indicates that the distance between the first communication device and the second communication device is less than the predetermined distance, transmitting the network related information of No. 1 to the second communication device;
When the first distance information indicates that the distance between the first communication device and the second communication device is greater than the predetermined distance, the first network related information is replaced with the second communication device. without sending to communication equipment,
The specific information receiving unit receives second distance information related to the distance between the first communication device and the third communication device from the third communication device via the second interface. The first communication device according to item 1 or item 2, which receives the specific information.
(Item 4)
The distance information receiving unit is configured to receive data from the second communication device using a logical link of the second communication method established between the first communication device and the second communication device. receiving the first distance information via a second interface;
The specific information receiving unit is configured to receive information from the third communication device using a logical link of the second communication method established between the first communication device and the third communication device. The first communication device according to item 3, which receives the specific information, which is the second distance information, via a second interface.
(Item 5)
The device identification information receiving unit receives the second device identification information from the second communication device via the second interface, and the device identification information receiving unit receives the second device identification information from the second communication device via the second interface. 1 communication equipment.
(Item 6)
The second interface is:
a first type interface for performing wireless communication according to a first type communication method of the second communication method;
A second type of communication method of the second type of communication method, the second type for performing wireless communication according to the second type of communication method, which is different from the first type of communication method. an interface, wherein a distance at which wireless communication can be performed via the second type interface is smaller than a distance at which wireless communication can be performed via the first type interface; , comprising;
The first network-related information transmitting unit transmits the information via the second type of interface in a state where the distance between the first communication device and the second communication device is less than the predetermined distance. transmitting first network related information to the second communication device;
The specific information receiving unit receives information from the third communication device through the first type interface in a state where the distance between the first communication device and the third communication device is greater than the predetermined distance. and receive the specific information,
The second network related information transmitter transmits information to the second network via the first type interface when it is determined that the third device identification information matches the second device identification information. The first communication device according to item 1 or item 2, which transmits related information to the second communication device that matches the third communication device.
(Item 7)
Item 6, wherein the device identification information receiving unit receives the second device identification information from the second communication device via the first interface using the first wireless network. The first communication device described.
(Item 8)
The specific information receiving unit receives the specific information, which is a predetermined request for requesting network related information, from the third communication device via the first type interface,
The second network-related information transmitter is configured to send a response to the predetermined request via the first type of interface when it is determined that the third device identification information matches the second device identification information. The first communication device according to item 6 or 7, wherein the response including the second network related information is sent to the second communication device that matches the third communication device.
(Item 9)
The specific information receiving unit executes communication in a lower layer lower than the uppermost layer without executing communication in the uppermost layer for establishing a logical link of the first type communication method. , receiving the specific information that is the predetermined request from the third communication device via the first type interface;
When it is determined that the third device identification information matches the second device identification information, the second network related information transmitting unit transmits the communication to the lower layer without performing the communication in the top layer. 9. The first communication device according to item 8, wherein the first communication device transmits the response to the second communication device that matches the third communication device via the first type of interface.
(Item 10)
A computer program for a second communication device, the computer program comprising:
The second communication device is
a first interface for performing wireless communication according to a first communication method;
a second interface for performing wireless communication according to a second communication method different from the first communication method;
comprising a processor;
The computer program causes the processor to perform each of the following processes, namely:
When the distance between the first communication device and the second communication device is less than a predetermined distance, the first communication device connects to the first wireless network via the second interface. a first network related information receiving process of receiving first network related information, wherein the first wireless network is a network for performing wireless communication via the first interface; a first network related information reception process;
a first transmitting a first wireless connection request to the first communication device via the first interface in response to receiving the first network related information from the first communication device; Connection request sending processing,
In response to transmitting the first wireless connection request to the first communication device, the first wireless connection via the first interface is established using the first network related information. a first establishment process of establishing with one communication device to form the first wireless network to which both the first communication device and the second communication device belong;
a device identification information receiving process of receiving first device identification information for identifying the first communication device from the first communication device;
storage control processing for storing the first device identification information in a memory of the second communication device;
After the first device identification information is stored in the memory, third device identification information for identifying the third communication device is sent from the third communication device via the second interface. a first predetermined signal reception process of receiving a first predetermined signal including;
identification information determination processing for determining whether the third device identification information in the first predetermined signal matches the first device identification information in the memory;
a first predetermined method for requesting network related information related to a wireless network via the second interface when it is determined that the third device identification information matches the first device identification information; a request to the first communication device that matches the third communication device, and when it is determined that the third device identification information does not match the first device identification information, the first communication device a first predetermined request transmission process in which the predetermined request is not sent to the third communication device;
in response to transmitting the first predetermined request to the first communication device, from the first communication device, via the second interface, a second network related to the second wireless network; a second network related information receiving process of receiving related information, wherein the second wireless network is a network for performing wireless communication via the first interface, and the second network relationship the information is different from the first network related information, and the second network related information receiving process;
a second communication device that transmits a second wireless connection request to the first communication device via the first interface in response to receiving the second network related information from the first communication device; Connection request sending processing,
In response to transmitting the second wireless connection request to the first communication device, the second wireless connection via the first interface is established using the second network related information. a second establishment process of establishing with one communication device to form the second wireless network to which both the first communication device and the second communication device belong;
A computer program that runs
(Item 11)
In the first predetermined signal reception process, communication of a lower layer lower than the uppermost layer is performed without performing communication of the uppermost layer for establishing a logical link of the second communication method. The computer program product according to item 10, wherein the computer program product receives the first predetermined signal from the third communication device via the second interface.
(Item 12)
In the first predetermined request transmission process, when it is determined that the third device identification information matches the first device identification information, the top level for establishing a logical link of the second communication method is determined. transmitting the first predetermined request to the third communication device via the second interface by performing communication in a lower layer that is lower than the top layer without executing communication in the layer; transmitting it to the matching first communication device;
In the second network-related information reception process, the lower layer communication is executed without executing the uppermost layer communication, and from the first communication device via the second interface, The computer program according to item 10 or item 11, which receives the second network related information.
(Item 13)
The computer program further causes the processor to perform each of the following processes, namely:
a second predetermined signal reception process of receiving a second predetermined signal including the first device identification information from the first communication device via the second interface;
distance determination processing that uses the radio field intensity of the second predetermined signal to determine whether the distance between the first communication device and the second communication device is less than the predetermined distance;
When it is determined that the distance between the first communication device and the second communication device is less than the predetermined distance, transmitting network related information related to a wireless network via the second interface. transmitting a second predetermined request to the first communication device, and when it is determined that the distance between the first communication device and the second communication device is not less than the predetermined distance; , a second predetermined request transmission process in which the second predetermined request is not sent to the first communication device,
In the first network related information receiving process, in response to transmitting the second predetermined request to the first communication device, the first communication device receives the information from the first communication device via the second interface. The computer program product according to any one of items 10 to 12, receiving first network related information.
(Item 14)
In the device identification information receiving process, the computer according to any one of items 10 to 13 receives the first device identification information from the first communication device via the second interface. program.
(Item 15)
The second interface is:
a first type interface for performing wireless communication according to a first type communication method of the second communication method;
A second type of communication method of the second type of communication method, the second type for performing wireless communication according to the second type of communication method, which is different from the first type of communication method. an interface, wherein a distance at which wireless communication can be performed via the second type interface is smaller than a distance at which wireless communication can be performed via the first type interface; , comprising;
In the first network related information receiving process, when the distance between the first communication device and the second communication device is less than the predetermined distance, receiving the first network related information via a seed interface;
In the first predetermined signal reception process, the first type of signal is received from the third communication device in a state where the distance between the first communication device and the third communication device is greater than the predetermined distance. receiving the predetermined signal including the third device identification information via an interface;
In the first predetermined request transmission process, if it is determined that the third device identification information matches the first device identification information, the predetermined request is sent to the first predetermined request via the first type of interface. to the first communication device matching the communication device of No. 3;
In the second network related information receiving process, the second network related information is received from the first communication device via the first type interface, any one of items 10 to 12. The computer program described in .
(Item 16)
In item 15, in the device identification information receiving process, the first device identification information is received from the first communication device via the first interface using the first wireless network. The computer program described.
(Item 17)
A second communication device,
a first interface for performing wireless communication according to a first communication method;
a second interface for performing wireless communication according to a second communication method different from the first communication method;
When the distance between the first communication device and the second communication device is less than a predetermined distance, the first communication device connects to the first wireless network via the second interface. a first network-related information receiving unit that receives first network-related information, wherein the first wireless network is a network for performing wireless communication via the first interface; a first network related information receiving section;
a first transmitting a first wireless connection request to the first communication device via the first interface in response to receiving the first network related information from the first communication device; a connection request transmitter;
In response to transmitting the first wireless connection request to the first communication device, the first wireless connection via the first interface is established using the first network related information. a first establishing unit that establishes with one communication device to form the first wireless network to which both the first communication device and the second communication device belong;
a device identification information receiving unit that receives, from the first communication device, first device identification information for identifying the first communication device;
a storage control unit that stores the first device identification information in a memory of the second communication device;
After the first device identification information is stored in the memory, third device identification information for identifying the third communication device is sent from the third communication device via the second interface. a first predetermined signal receiving section that receives a first predetermined signal including;
an identification information determination unit that determines whether the third device identification information in the first predetermined signal matches the first device identification information in the memory;
a first predetermined method for requesting network related information related to a wireless network via the second interface when it is determined that the third device identification information matches the first device identification information; a request to the first communication device that matches the third communication device, and when it is determined that the third device identification information does not match the first device identification information, the first communication device a first predetermined request transmitter that does not transmit the predetermined request to the third communication device;
in response to transmitting the first predetermined request to the first communication device, from the first communication device, via the second interface, a second network related to the second wireless network; a second network related information receiving unit that receives related information, the second wireless network being a network for performing wireless communication via the first interface, and the second network related information receiving unit receiving related information; the second network related information receiving section, the information being different from the first network related information;
a second communication device that transmits a second wireless connection request to the first communication device via the first interface in response to receiving the second network related information from the first communication device; a connection request transmitter;
In response to transmitting the second wireless connection request to the first communication device, the second wireless connection via the first interface is established using the second network related information. a second establishing unit that establishes with one communication device to form the second wireless network to which both the first communication device and the second communication device belong;
A second communication device comprising:

2:通信システム、PR:プリンタ、12:操作部、14:表示部、16:印刷実行部、20:Wi-FiI/F(インターフェース)、22:BTI/F、24:NFCI/F、26:メモリ、30:制御部、32:CPU、34:メモリ、36:プログラム、40:BTデバイス名格納領域、PT1,PT2:携帯端末、52:操作部、54:表示部、60:Wi-FiI/F、62:BTI/F、64:NFCI/F、70:制御部、72:CPU、74:メモリ、76:OSプログラム、78:プリンタアプリケーション、80:BTデバイス名格納領域 2: Communication system, PR: Printer, 12: Operation unit, 14: Display unit, 16: Print execution unit, 20: Wi-Fi I/F (interface), 22: BTI/F, 24: NFCI/F, 26: Memory, 30: Control unit, 32: CPU, 34: Memory, 36: Program, 40: BT device name storage area, PT1, PT2: Mobile terminal, 52: Operation unit, 54: Display unit, 60: Wi-FiI/ F, 62: BTI/F, 64: NFC I/F, 70: Control unit, 72: CPU, 74: Memory, 76: OS program, 78: Printer application, 80: BT device name storage area

Claims (10)

第1の通信機器であって、
Wi-Fi方式に従った無線通信を実行するためのWi-Fiインターフェースと、
Bluetooth(登録商標)方式の4.0以降のバージョンに従った無線通信を実行するためのBluetoothインターフェースと、
前記Bluetoothインターフェースを介して、前記第1の通信機器を識別する識別情報を含むAdvertise信号を送信するAdvertise信号送信部と、
前記Bluetoothインターフェースを介して、第2の通信機器から、前記Advertise信号に含まれる前記識別情報によって識別される前記第1の通信機器に対するBluetooth接続要求を受信する第1の要求受信部と、
前記第2の通信機器から受信した前記Bluetooth接続要求に従って、前記Bluetoothインターフェースを介したBluetooth接続を前記第2の通信機器と確立する第1の確立部と、
前記Wi-Fiインターフェースを介して、前記第1の通信機器の周囲に、親局として動作する前記第1の通信機器の存在を知らせるための特定信号を送信する特定信号送信部と、
前記特定信号の送信後に、前記第2の通信機器を前記第1の通信機器が前記親局として所属するWi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための第1の接続情報を、前記Bluetoothインターフェースを介した前記Bluetooth接続を利用して、前記第2の通信機器に送信する第1の接続情報送信部と、
前記第1の接続情報が前記第2通信機器に送信され、かつ、前記第1の通信機器が前記Wi-Fiネットワークにおいて前記親局として動作可能な状態である場合に、前記第2の通信機器から、前記Wi-Fiインターフェースを介して、前記Wi-Fiネットワークを識別するためのSSID(Service Set Identifierの略)を含む第1のWi-Fi接続要求を受信する第2の要求受信部と、
前記第2の通信機器から前記第1のWi-Fi接続要求を受信すると、前記Wi-Fiインターフェースを介した第1のWi-Fi接続を前記第2の通信機器と確立する第2の確立部と、
前記第1のWi-Fi接続の切断とともに、前記特定信号の送信を停止する停止部と、
前記SSIDを生成する生成部であって、前記第1のWi-Fi接続が切断される毎に異なるSSIDを生成する前記生成部と、
を備える第1の通信機器。
A first communication device,
a Wi-Fi interface for performing wireless communication according to the Wi-Fi method;
a Bluetooth interface for performing wireless communication according to version 4.0 or later of the Bluetooth (registered trademark) method;
an Advertise signal transmitter that transmits an Advertise signal including identification information for identifying the first communication device via the Bluetooth interface;
a first request receiving unit that receives, via the Bluetooth interface, a Bluetooth connection request from a second communication device to the first communication device identified by the identification information included in the Advertise signal;
a first establishing unit that establishes a Bluetooth connection with the second communication device via the Bluetooth interface in accordance with the Bluetooth connection request received from the second communication device;
a specific signal transmitter that transmits a specific signal to inform the surroundings of the first communication device of the presence of the first communication device operating as a master station via the Wi-Fi interface;
a first connection for enabling the second communication device to connect to the Wi-Fi network to which the first communication device belongs as the master station via the Wi-Fi interface after transmitting the specific signal; a first connection information transmitter that transmits information to the second communication device using the Bluetooth connection via the Bluetooth interface;
When the first connection information is transmitted to the second communication device and the first communication device is in a state where it can operate as the master station in the Wi-Fi network, the second communication a second request receiving unit that receives a first Wi-Fi connection request including an SSID (abbreviation for Service Set Identifier) for identifying the Wi-Fi network from the device via the Wi-Fi interface; ,
a second establishing unit that, upon receiving the first Wi-Fi connection request from the second communication device, establishes a first Wi-Fi connection with the second communication device via the Wi-Fi interface; and,
a stop unit that stops transmitting the specific signal when the first Wi-Fi connection is disconnected;
a generation unit that generates the SSID, the generation unit that generates a different SSID each time the first Wi-Fi connection is disconnected;
A first communication device comprising:
前記第2の確立部による前記第1のWi-Fi接続の確立後に、前記第1の通信機器と前記第2の通信機器との間で特定の通信が終了する場合に、前記第1のWi-Fi接続を切断する切断部を備える、請求項1に記載の第1の通信機器。 If a specific communication between the first communication device and the second communication device ends after the second establishment unit establishes the first Wi-Fi connection, the first - The first communication device according to claim 1 , comprising a disconnection unit that disconnects the Fi connection. 前記Advertise信号送信部は、前記Bluetooth方式の論理リンクを確立するための最上位層の通信を実行せずに、前記最上位層よりも下位である下位層の通信を実行して、前記Bluetoothインターフェースを介して、前記Advertise信号を送信することを繰り返す、請求項1又は2に記載の第1の通信機器。 The Advertise signal transmitting unit executes lower layer communication below the uppermost layer without executing the uppermost layer communication for establishing the Bluetooth logical link, and connects the Bluetooth interface. The first communication device according to claim 1 or 2 , wherein the first communication device repeats transmitting the Advertise signal via. 前記第1の通信機器は、さらに、
前記第2の通信機器から、前記Bluetoothインターフェースを介して、前記第1の通信機器と前記第2の通信機器との間の距離に関係する第1の距離情報を受信する距離情報受信部を備え、
前記第1の接続情報送信部は、
前記第1の距離情報が、前記第1の通信機器と前記第2の通信機器との間の距離が所定距離未満であることを示す場合に、前記Bluetoothインターフェースを介して、前記第1の接続情報を前記第2の通信機器に送信し、
前記第1の距離情報が、前記第1の通信機器と前記第2の通信機器との間の距離が前記所定距離より大きいことを示す場合に、前記第1の接続情報を前記第2の通信機器に送信しない、請求項1からのいずれか一項に記載の第1の通信機器。
The first communication device further includes:
comprising a distance information receiving unit that receives first distance information related to the distance between the first communication device and the second communication device from the second communication device via the Bluetooth interface. ,
The first connection information transmitter includes:
If the first distance information indicates that the distance between the first communication device and the second communication device is less than a predetermined distance, the first connection is made via the Bluetooth interface. transmitting information to the second communication device;
When the first distance information indicates that the distance between the first communication device and the second communication device is greater than the predetermined distance, the first connection information is transmitted to the second communication device. The first communication device according to any one of claims 1 to 3 , wherein the first communication device does not transmit to the device.
前記距離情報受信部は、前記第1の通信機器と前記第2の通信機器との間に確立される前記Bluetooth方式の論理リンクである前記Bluetooth接続を利用して、前記第2の通信機器から、前記Bluetoothインターフェースを介して、前記第1の距離情報を受信する、請求項に記載の第1の通信機器。 The distance information receiving unit uses the Bluetooth connection, which is the Bluetooth logical link established between the first communication device and the second communication device, to receive information from the second communication device. 5. The first communication device according to claim 4 , wherein the first distance information is received via the Bluetooth interface. 前記第1の通信機器は、さらに、
前記第2の通信機器から、前記Bluetoothインターフェースを介して、前記第2の通信機器を識別するための第2の機器識別情報を受信する機器識別情報受信部を備え、
前記第1の接続情報送信部は、前記第2の通信機器から受信した前記第2の機器識別情報と一致する情報が前記第1の通信機器に記憶されている場合に、前記第1の接続情報を前記第2の通信機器に送信し、
前記第2の通信機器から受信した前記第2の機器識別情報と一致する情報が前記第1の通信機器に記憶されていない場合に、前記第1の接続情報は前記第2の通信機器に送信されない、請求項1からのいずれか一項に記載の第1の通信機器。
The first communication device further includes:
comprising a device identification information receiving unit that receives second device identification information for identifying the second communication device from the second communication device via the Bluetooth interface;
The first connection information transmitting unit transmits the first connection information when information matching the second device identification information received from the second communication device is stored in the first communication device. transmitting information to the second communication device;
If information matching the second device identification information received from the second communication device is not stored in the first communication device, the first connection information is transmitted to the second communication device. The first communication device according to any one of claims 1 to 5 , wherein the first communication device is not configured.
前記第1の通信機器は、さらに、
前記Bluetooth方式とは異なる特定の通信方式に従った無線通信を実行するための特定のインターフェースであって、前記特定のインターフェースを介した無線通信を実行可能な距離は、前記Bluetoothインターフェースを介した無線通信を実行可能な距離よりも小さい、前記特定のインターフェースと、
前記特定のインターフェースを介して、第3の通信機器を前記第1の通信機器が所属する前記Wi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための第2の接続情報を前記第3の通信機器に送信する第2の接続情報送信部と、
前記第2の接続情報を受信した前記第3の通信機器から、前記Wi-Fiインターフェースを介して、第2のWi-Fi接続要求を受信する第3の要求受信部と、
前記第3の通信機器から前記第2のWi-Fi接続要求を受信すると、前記Wi-Fiインターフェースを介した第2のWi-Fi接続を前記第3の通信機器と確立する第3の確立部と、
前記第3の通信機器から、前記第3の通信機器を識別するための第3の機器識別情報を受信する第3の機器識別情報受信部と、
前記第2の通信機器から、前記Bluetoothインターフェースを介して、前記第2の通信機器を識別するための第2の機器識別情報を受信する第2の機器識別情報受信部と、
を備え、
前記第1の接続情報送信部は、前記第3の機器識別情報が前記第2の機器識別情報に一致すると判断される場合に、前記Bluetoothインターフェースを介して、前記第1の接続情報を前記第3の通信機器に一致する前記第2の通信機器に送信する、請求項1からのいずれか一項に記載の第1の通信機器。
The first communication device further includes:
A specific interface for performing wireless communication according to a specific communication method different from the Bluetooth method, and a distance at which wireless communication can be performed via the specific interface is a wireless communication method that is different from the Bluetooth method. the specific interface, the distance being smaller than the distance at which communication is possible;
the second connection information for enabling the third communication device to connect to the Wi-Fi network to which the first communication device belongs via the Wi-Fi interface via the specific interface; a second connection information transmitter that transmits to a third communication device;
a third request receiving unit that receives, via the Wi-Fi interface, a second Wi-Fi connection request from the third communication device that has received the second connection information;
a third establishment unit that, upon receiving the second Wi-Fi connection request from the third communication device, establishes a second Wi-Fi connection with the third communication device via the Wi-Fi interface; and,
a third device identification information receiving unit that receives third device identification information for identifying the third communication device from the third communication device;
a second device identification information receiving unit that receives second device identification information for identifying the second communication device from the second communication device via the Bluetooth interface;
Equipped with
The first connection information transmitter transmits the first connection information to the first connection information via the Bluetooth interface when it is determined that the third device identification information matches the second device identification information. The first communication device according to any one of claims 1 to 3 , wherein the first communication device transmits to the second communication device corresponding to the third communication device.
前記第3の機器識別情報受信部は、前記第2のWi-Fi接続を利用して、前記第3の通信機器から、前記Wi-Fiインターフェースを介して、前記第3の機器識別情報を受信する、請求項に記載の第1の通信機器。 The third device identification information receiving unit receives the third device identification information from the third communication device via the Wi-Fi interface using the second Wi-Fi connection. The first communication device according to claim 7 . 第1の通信機器のためのコンピュータプログラムであって、
前記第1の通信機器は、
Wi-Fi方式に従った無線通信を実行するためのWi-Fiインターフェースと、
Bluetooth(登録商標)方式の4.0以降のバージョンに従った無線通信を実行するためのBluetoothインターフェースと、
コンピュータと、
を備え、
前記コンピュータは、前記コンピュータプログラムを以下の各部、即ち、
前記Bluetoothインターフェースを介して、前記第1の通信機器を識別する識別情報を含むAdvertise信号を送信するAdvertise信号送信部と、
前記Bluetoothインターフェースを介して、第2の通信機器から、前記Advertise信号に含まれる前記識別情報によって識別される前記第1の通信機器に対するBluetooth接続要求を受信する第1の要求受信部と、
前記第2の通信機器から受信した前記Bluetooth接続要求に従って、前記Bluetoothインターフェースを介したBluetooth接続を前記第2の通信機器と確立する第1の確立部と、
前記Wi-Fiインターフェースを介して、前記第1の通信機器の周囲に、親局として動作する前記第1の通信機器の存在を知らせるための特定信号を送信する特定信号送信部と、
前記特定信号の送信後に、前記第2の通信機器を前記第1の通信機器が前記親局として所属するWi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための第1の接続情報を、前記Bluetoothインターフェースを介した前記Bluetooth接続を利用して、前記第2の通信機器に送信する第1の接続情報送信部と、
前記第1の接続情報が前記第2の通信機器に送信され、かつ、前記第1の通信機器が前記Wi-Fiネットワークにおいて前記親局として動作可能な状態である場合に、前記第2の通信機器から、前記Wi-Fiインターフェースを介して、前記Wi-Fiネットワークを識別するためのSSID(Service Set Identifierの略)を含む第1のWi-Fi接続要求を受信する第2の要求受信部と、
前記第2の通信機器から前記第1のWi-Fi接続要求を受信すると、前記Wi-Fiインターフェースを介した第1のWi-Fi接続を前記第2の通信機器と確立する第2の確立部と、
前記第1のWi-Fi接続の切断とともに、前記特定信号の送信を停止する停止部と、
前記SSIDを生成する生成部であって、前記第1のWi-Fi接続が切断される毎に異なるSSIDを生成する前記生成部と、
として機能させるコンピュータプログラム。
A computer program for a first communication device, the computer program comprising:
The first communication device includes:
a Wi-Fi interface for performing wireless communication according to the Wi-Fi method;
a Bluetooth interface for performing wireless communication according to version 4.0 or later of the Bluetooth (registered trademark) method;
computer and
Equipped with
The computer runs the computer program into the following parts:
an Advertise signal transmitter that transmits an Advertise signal including identification information for identifying the first communication device via the Bluetooth interface;
a first request receiving unit that receives, via the Bluetooth interface, a Bluetooth connection request from a second communication device to the first communication device identified by the identification information included in the Advertise signal;
a first establishing unit that establishes a Bluetooth connection with the second communication device via the Bluetooth interface in accordance with the Bluetooth connection request received from the second communication device;
a specific signal transmitter that transmits a specific signal to inform the surroundings of the first communication device of the presence of the first communication device operating as a master station via the Wi-Fi interface;
a first connection for enabling the second communication device to connect to the Wi-Fi network to which the first communication device belongs as the master station via the Wi-Fi interface after transmitting the specific signal; a first connection information transmitter that transmits information to the second communication device using the Bluetooth connection via the Bluetooth interface;
When the first connection information is transmitted to the second communication device and the first communication device is in a state where it can operate as the master station in the Wi-Fi network, the second communication a second request receiving unit that receives a first Wi-Fi connection request including an SSID (abbreviation for Service Set Identifier) for identifying the Wi-Fi network from the device via the Wi-Fi interface; ,
a second establishing unit that, upon receiving the first Wi-Fi connection request from the second communication device, establishes a first Wi-Fi connection with the second communication device via the Wi-Fi interface; and,
a stop unit that stops transmitting the specific signal when the first Wi-Fi connection is disconnected;
a generation unit that generates the SSID, the generation unit that generates a different SSID each time the first Wi-Fi connection is disconnected;
A computer program that functions as
第2の通信機器であって、
Wi-Fi方式に従った無線通信を実行するためのWi-Fiインターフェースと、
Bluetooth(登録商標)方式の4.0以降のバージョンに従った無線通信を実行するためのBluetoothインターフェースと、
前記Bluetoothインターフェースを介して、第1の通信機器から、前記第1の通信機器を識別する識別情報を含むAdvertise信号を受信するAdvertise信号受信部と、
前記Bluetoothインターフェースを介して、前記Advertise信号に含まれる前記識別情報によって識別される前記第1の通信機器に対するBluetooth接続要求を前記第1の通信機器に送信する第1の要求送信部と、
前記Bluetoothインターフェースを介したBluetooth接続を、前記Bluetooth接続要求を受信した前記第1の通信機器と確立する第1の確立部と、
前記Wi-Fiインターフェースを介して、前記第1の通信機器から特定信号を受信する受信部であって、前記特定信号は、前記第1の通信機器の周囲に、親局として動作する前記第1の通信機器の存在を知らせるための信号である、特定信号受信部と、
前記特定信号の受信後に、前記第1の通信機器から、前記第2の通信機器を前記第1の通信機器が前記親局として所属するWi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための接続情報を、前記Bluetoothインターフェースを介した前記Bluetooth接続を利用して受信する接続情報受信部と、
前記接続情報が前記第1の通信機器から受信され、かつ、前記第1の通信機器が前記Wi-Fiネットワークにおいて前記親局として動作可能な状態である場合に、前記Wi-Fiインターフェースを介して、前記Wi-Fiネットワークを識別するためのSSID(Service Set Identifierの略)を含むWi-Fi接続要求を前記第1の通信機器に送信する第2の要求送信部と、
前記Wi-Fi接続要求を前記第1の通信機器に送信すると、前記Wi-Fiインターフェースを介したWi-Fi接続を前記第1の通信機器と確立する第2の確立部であって、前記Wi-Fi接続の切断とともに、前記第1の通信機器により前記特定信号の送信が停止され、前記Wi-Fi接続が切断される毎に前記第1の通信機器によって異なるSSIDが生成される、前記第2の確立部と、
を備える第2の通信機器。

A second communication device,
a Wi-Fi interface for performing wireless communication according to the Wi-Fi method;
a Bluetooth interface for performing wireless communication according to version 4.0 or later of the Bluetooth (registered trademark) method;
an Advertise signal receiving unit that receives an Advertise signal including identification information for identifying the first communication device from the first communication device via the Bluetooth interface;
a first request transmitting unit that transmits a Bluetooth connection request to the first communication device identified by the identification information included in the Advertise signal to the first communication device via the Bluetooth interface;
a first establishment unit that establishes a Bluetooth connection via the Bluetooth interface with the first communication device that has received the Bluetooth connection request;
A receiving unit that receives a specific signal from the first communication device via the Wi-Fi interface, the specific signal being transmitted to the first communication device that operates as a master station around the first communication device. a specific signal receiving unit that is a signal for notifying the presence of the communication device;
After receiving the specific signal, the first communication device can connect the second communication device to the Wi-Fi network to which the first communication device belongs as the master station via the Wi-Fi interface. a connection information receiving unit that receives connection information for using the Bluetooth connection via the Bluetooth interface;
If the connection information is received from the first communication device and the first communication device is in a state capable of operating as the master station in the Wi-Fi network, , a second request transmitting unit that transmits a Wi-Fi connection request including an SSID (abbreviation for Service Set Identifier) for identifying the Wi-Fi network to the first communication device;
a second establishing unit that establishes a Wi-Fi connection with the first communication device via the Wi-Fi interface when the Wi-Fi connection request is sent to the first communication device ; - upon disconnection of the Wi-Fi connection, the transmission of the specific signal is stopped by the first communication device, and a different SSID is generated by the first communication device each time the Wi-Fi connection is disconnected; 2, an establishment part ;
A second communication device comprising:

JP2022112639A 2019-08-15 2022-07-13 communication equipment Active JP7388491B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2022112639A JP7388491B2 (en) 2019-08-15 2022-07-13 communication equipment
JP2023193869A JP2024003159A (en) 2019-08-15 2023-11-14 Communication apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2019149030A JP6927255B2 (en) 2018-10-18 2019-08-15 Communication equipment
JP2021128191A JP7107415B2 (en) 2019-08-15 2021-08-04 communication equipment
JP2022112639A JP7388491B2 (en) 2019-08-15 2022-07-13 communication equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2021128191A Division JP7107415B2 (en) 2019-08-15 2021-08-04 communication equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2023193869A Division JP2024003159A (en) 2019-08-15 2023-11-14 Communication apparatus

Publications (2)

Publication Number Publication Date
JP2022132424A JP2022132424A (en) 2022-09-08
JP7388491B2 true JP7388491B2 (en) 2023-11-29

Family

ID=78149732

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2021128191A Active JP7107415B2 (en) 2019-08-15 2021-08-04 communication equipment
JP2022112639A Active JP7388491B2 (en) 2019-08-15 2022-07-13 communication equipment
JP2023193869A Pending JP2024003159A (en) 2019-08-15 2023-11-14 Communication apparatus

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2021128191A Active JP7107415B2 (en) 2019-08-15 2021-08-04 communication equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2023193869A Pending JP2024003159A (en) 2019-08-15 2023-11-14 Communication apparatus

Country Status (1)

Country Link
JP (3) JP7107415B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013128162A (en) 2011-12-16 2013-06-27 Brother Ind Ltd Radio communication device
JP2013162381A (en) 2012-02-07 2013-08-19 Seiko Epson Corp Radio communication device
JP2014027384A (en) 2012-07-25 2014-02-06 Brother Ind Ltd Communication device and mobile terminal
WO2014146563A1 (en) 2013-03-18 2014-09-25 华为终端有限公司 Connection switching method and corresponding device based on near field communication

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6224891B2 (en) 2012-12-13 2017-11-01 キヤノン株式会社 Wireless communication system, wireless communication device, communication method, control method, and program
JP5945961B2 (en) 2012-12-26 2016-07-05 ブラザー工業株式会社 Communication equipment
JP5945965B2 (en) 2013-02-28 2016-07-05 ブラザー工業株式会社 Communication equipment
EP2974095B1 (en) 2013-03-12 2020-06-17 Nipro diagnostics, Inc. Wireless pairing of personal health device with a computing device
JP6239903B2 (en) * 2013-08-29 2017-11-29 シャープ株式会社 Sales data processor
KR20160057442A (en) 2013-09-17 2016-05-23 퀄컴 인코포레이티드 Interleaving advertising packets for improved detectability and security

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013128162A (en) 2011-12-16 2013-06-27 Brother Ind Ltd Radio communication device
JP2013162381A (en) 2012-02-07 2013-08-19 Seiko Epson Corp Radio communication device
JP2014027384A (en) 2012-07-25 2014-02-06 Brother Ind Ltd Communication device and mobile terminal
WO2014146563A1 (en) 2013-03-18 2014-09-25 华为终端有限公司 Connection switching method and corresponding device based on near field communication

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
タウンゼンド ケヴィン Kevin Townsend,Bluetooth Low Energyをはじめよう 初版 Getting Started with Bluetooth Low Energy,第1版,株式会社オライリー・ジャパン オライリー ティム
鄭 立 Li Zheng,Bluetooth LE入門 第1版 ,第1版,株式会社秀和システム 斉藤 和邦

Also Published As

Publication number Publication date
JP7107415B2 (en) 2022-07-27
JP2022132424A (en) 2022-09-08
JP2021170848A (en) 2021-10-28
JP2024003159A (en) 2024-01-11

Similar Documents

Publication Publication Date Title
JP6421673B2 (en) Communication equipment
JP6406092B2 (en) Communication equipment
US10631155B2 (en) Communication apparatus
JP5857850B2 (en) Communication device
JP2022189843A (en) Communication device and computer program for communication device
JP2016005069A (en) Communication device
JP7414100B2 (en) Communication devices and computer programs for communication devices
JP2019180037A (en) Communication device and computer program for communication device
JP2023168594A (en) Communication device and computer program therefor
JP7388491B2 (en) communication equipment
JP6573018B2 (en) Communication equipment
JP6927255B2 (en) Communication equipment
JP2019068179A (en) Communication apparatus and terminal device
JP2016036190A (en) Communication device
JP7156461B2 (en) communication equipment
JP6919704B2 (en) Communication equipment
JP6398750B2 (en) Communication equipment
JP6638786B2 (en) Communication equipment
JP6601463B2 (en) Communication device
JP2019075833A (en) Communication device and mobile terminal

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220805

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220809

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230606

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230804

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231030

R150 Certificate of patent or registration of utility model

Ref document number: 7388491

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150