JP2019030024A - Communication apparatus - Google Patents

Communication apparatus Download PDF

Info

Publication number
JP2019030024A
JP2019030024A JP2018196947A JP2018196947A JP2019030024A JP 2019030024 A JP2019030024 A JP 2019030024A JP 2018196947 A JP2018196947 A JP 2018196947A JP 2018196947 A JP2018196947 A JP 2018196947A JP 2019030024 A JP2019030024 A JP 2019030024A
Authority
JP
Japan
Prior art keywords
communication device
communication
network
interface
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018196947A
Other languages
Japanese (ja)
Other versions
JP6573018B2 (en
Inventor
訓史 寺下
Norifumi Terashita
訓史 寺下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2018196947A priority Critical patent/JP6573018B2/en
Publication of JP2019030024A publication Critical patent/JP2019030024A/en
Priority to JP2019149030A priority patent/JP6927255B2/en
Application granted granted Critical
Publication of JP6573018B2 publication Critical patent/JP6573018B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

To disclose a technique to allow wireless connection in accordance with a first communication system to be established in an appropriate situation after wireless communication in accordance with a second communication system is performed.SOLUTION: If a printer PR performs BT communication and receives distance information from a mobile terminal PT1, the printer PR determines that a BT device name "N1" in the distance information is already stored (T116A). In this case, the printer PR performs BT communication, transmits network information to the mobile terminal PT1 (T119), and establishes Wi-Fi connection with the mobile terminal PT1 (T132). Meanwhile, if the printer PR performs BT communication and receives distance information from a mobile terminal PT2, the printer PR determines that a BT device name "N2" in the distance information is not stored yet (T216A). In this case, the printer PR does not transmit the network information to the mobile terminal PT2, and does not establish Wi-Fi connection with the mobile terminal PT2.SELECTED DRAWING: Figure 9

Description

本明細書では、複数の通信方式に従った無線通信を実行可能な通信機器を開示する。   The present specification discloses a communication device capable of performing 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 allowing a first terminal and an external device to perform wireless communication according to Wi-Fi. The first terminal obtains information (that is, MAC address, SSID, channel number, security key, etc.) related to the AP (access point) to which the first terminal is connected to BLE (Bluetooth (registered trademark) Low Energy). To the external device. In this case, the external device activates the Wi-Fi module and uses the information to connect to the AP. Accordingly, the first terminal and the external device can execute wireless communication according to Wi-Fi.

特開2014−53007号公報JP 2014-53007 A

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

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

本明細書によって開示される第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の確立部と、を備える。   The first communication device disclosed in this specification includes a first interface for performing wireless communication according to the first communication method, and a second communication method different from the first communication method. In a state where the distance between the second interface for executing the wireless communication according to the first communication device and the second communication device is less than a predetermined distance, via the second interface, A first network-related information transmitting unit that transmits first network-related information related to a first wireless network to the second communication device, wherein the first wireless network includes the first interface. From the first network-related information transmitting unit, which is a network for performing wireless communication via the network, and the second communication device that has received the first network-related information A first connection request receiving unit configured to receive a first wireless connection request via the first interface; and receiving the first wireless connection request from the second communication device; Using the first network related information, a first wireless connection via the first interface is established with the second communication device, and the first communication device and the second communication device are A first establishing unit that forms the first wireless network to which both belong, and a device that receives second device identification information for identifying the second communication device from the second communication device An identification information receiving unit; a storage control unit for storing the second device identification information in a memory of the first communication device; and a third communication after the second device identification information is stored in the memory. From the device, the second interface A specific information receiving unit for receiving specific information including third device identification information for identifying the third communication device via the network, and the third device identification information in the specific information is stored in the memory. An identification information determination unit that determines whether or not the second device identification information matches the second device identification information, and when the third device identification information matches the second device identification information, 2nd network-related information related to the second wireless network is transmitted to the second communication device that matches the third communication device via the second interface, and the third device identification information is A second network-related information transmitting unit that does not transmit the second network-related information to the third communication device when it is determined not to match the second device identification information, Network , A network for performing wireless communication via the first interface, wherein the second network relationship information is different from the first network relationship information, and the second network relationship information transmission unit A second connection request receiving unit that receives a second wireless connection request from the second communication device that has received the second network-related information via the first interface; and In response to receiving the second wireless connection request from the communication device, the second communication device uses the second network-related information to establish a second wireless connection via the first interface. And a second establishing unit that forms 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 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 wirelessly follows the first communication method. In a state where it is highly likely that a connection is desired, the first network related information is transmitted to the second communication device via the second interface. As a result, 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. After that, when the first communication device receives the specific information from the third communication device via the second interface, the third device identification information in the specific information becomes the second device identification information in the memory. It is determined whether or not it matches. The fact that the third device identification information matches the second device identification information means that the third communication device has received the second communication in which the first wireless connection according to the first communication method has been established in the past. It means to match the device. Therefore, when the third device identification information matches the second device identification information, it is highly likely that the user wants to re-establish 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 wants 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. As a result, the wireless connection according to the first communication method is not established with the third communication device. When the first communication device determines that the third device identification information matches the second device identification information, the first communication device sends the second network-related information to the third communication device via the second interface. To a second communication device that matches Accordingly, the first communication device can establish the second wireless connection according to the first communication method with the second communication device to form the second wireless network. In this way, the first communication device can establish wireless connection according to the first communication method in an appropriate situation after executing 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 are also novel and useful.

本明細書では、第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の確立処理と、を実行させる。   Also disclosed herein is a computer program for a second communication device. The second communication device executes a first interface for performing wireless communication according to the first communication method, and wireless communication according to a second communication method different from the first communication method. A second interface and a processor. The computer program causes the processor to execute the following processes, that is, from the first 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 for receiving first network-related information related to a first wireless network via the second interface, wherein the first wireless network includes the first network-related information; In response to receiving the first network-related information receiving process from the first communication device and the first network-related information receiving process, which is a network for performing wireless communication via an interface, A first connection request transmission process for transmitting a first wireless connection request to the first communication device via the first interface; and the first wireless connection. In response to transmitting a request to the first communication device, a first wireless connection via the first interface is established with the first communication device using the first network related information. Then, from the first communication device, the first establishment process for forming the first wireless network to which both the first communication device and the second communication device belong, and the first communication device A device identification information receiving process for receiving first device identification information for identifying a communication device, a storage control process for storing the first device identification information in a memory of the second communication device, and the first First information including third device identification information for identifying the third communication device from the third communication device via the second interface after the device identification information is stored in the memory. Receiving a predetermined signal of the first A constant signal reception process; an identification information determination process for determining whether the third device identification information in the first predetermined signal matches the first device identification information in the memory; When it is determined that the device identification information of 3 matches the first device identification information, a first predetermined request for requesting network-related information related to a wireless network is made via the second interface. The first predetermined request is transmitted 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. Is transmitted from the first communication device to the first communication device in response to transmitting the first predetermined request to the first communication device. Via 2 interfaces Second network related information reception processing for receiving second network related information related to the second wireless network, wherein the second wireless network performs wireless communication via the first interface. The second network relation information is different from the first network relation information, the second network relation information receiving process, and the second communication information from the first communication device. A second connection request transmission process for transmitting a second wireless connection request to the first communication device via the first interface in response to receiving the network-related information; and the second wireless connection In response to transmitting a connection request to the first communication device, the second network related information is used to transmit the connection request via the first interface. And establishing a second wireless connection with the first communication device to form the second wireless network to which both the first communication device and the second communication device belong. Process.

上記のコンピュータプログラムは、以下の第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 establishes a wireless connection according to the first communication method. In a state where there is a high possibility that the first network related information is desired, the first network related information is received from the first communication device via the second interface. As a result, the second communication device can establish a first wireless connection with the first communication device in accordance with the first communication method to form a first wireless network. Then, the second communication device receives the first device identification information from the first communication device and stores it in the 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 or not it matches the first device identification information. The fact that the third device identification information matches the first device identification information means that the first communication in which the third communication device has established the first wireless connection according to the first communication method in the past. It means to match the device. Therefore, it is highly likely that the user wants to re-establish a wireless connection according to the first communication method. On the other hand, if the third device identification information does not match the first device identification information, it is unlikely that the user wants 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, The wireless connection according to the first communication method is not established with the third communication device. When the second communication device determines that the third device identification information matches the first device identification information, the second communication device sends a first predetermined request to the third communication device via the second interface. Transmit to the matching first communication device. Accordingly, the second communication device receives the second network-related information from the first communication device via the second interface, and establishes the second wireless connection according to the first communication method in the first A second wireless network can be formed by establishing with a communication device. As described above, the second communication device can establish a wireless connection according to the first communication method in an appropriate situation after executing the wireless communication according to the second communication method.

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

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

(第1実施例)
(通信システム2の構成)
図1に示されるように、通信システム2は、プリンタPRと、複数個の携帯端末PT1,PT2と、を備える。プリンタPRと各携帯端末PT1,PT2とは、無線通信を相互に実行可能である。
(First embodiment)
(Configuration of communication system 2)
As shown in FIG. 1, the communication system 2 includes a printer PR and a plurality of portable terminals PT1 and PT2. The printer PR and each of the portable 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(Near Field Communicationの略)I/F24も開示されているが、NFCI/F24は、後述の第3及び第4実施例で利用されるI/Fであり、第1及び第2実施例のプリンタPRに設けられていてもよいし設けられていなくてもよい。
(Configuration of printer PR)
The printer PR is a peripheral device that can execute a printing function, that is, a peripheral device such as the portable terminal PT1. The printer PR includes an operation unit 12, a display unit 14, a print execution unit 16, a Wi-Fi interface 20, a BT (abbreviation of Bluetooth (registered trademark)) interface 22, and a control unit 30. Each part 12-30 is connected to a bus line (reference number omitted). Hereinafter, the interface is referred to as “I / F”. 1 also discloses an NFC (abbreviation of Near Field Communication) I / F 24. The NFC I / F 24 is an I / F used in third and fourth embodiments described later. The printers PR of the first and second embodiments may or may not be provided.

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

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 executing wireless communication (hereinafter referred to as “Wi-Fi communication”) according to the Wi-Fi scheme. The Wi-Fi system conforms to, for example, IEEE (abbreviation of The Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and standards (for example, 802.11a, 11b, 11g, 11n, etc.). Based wireless communication scheme. More specifically, the Wi-Fi I / F 20 supports a WFD (abbreviation of Wi-Fi Direct (registered trademark)) method formulated by the Wi-Fi Alliance. The WFD method is a wireless communication method described in a standard document “Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1” created by 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が、「Bluetooth Smart Ready」、又は、BT方式で定められている「Bluetooth Smart」に対応していてもよい。「Bluetooth Smart Ready」に対応するBTI/Fは、BLEに従った動作とクラシックBTに従った動作との双方を実行可能なI/F(即ちいわゆるデュアルモードのI/F)である。「Bluetooth Smart」に対応するBTI/Fは、BLEに従った動作を実行可能であるが、クラシックBTに従った動作を実行不可能な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 BTI / F 22 is an I / F for executing wireless communication (hereinafter referred to as “BT communication”) according to the Bluetooth method. The Bluetooth system is a wireless communication system based on, for example, the IEEE 802.15.1 standard and a standard conforming thereto. More specifically, the BTI / F 22 supports BLE (abbreviation for Bluetooth Low Energy). BLE is a standard realized by the version 4.0 or later of the Bluetooth system. In the following, Bluetooth version less than 4.0 is referred to as “classic BT”. In order to execute BT communication according to BLE between a pair of BTI / Fs, one BTI / F corresponds to “Bluetooth Smart Ready” defined by the BT method, and the other BTI / F However, it may correspond to “Bluetooth Smart Ready” or “Bluetooth Smart” defined by the BT method. The BTI / F corresponding to “Bluetooth Smart Ready” is an I / F (that is, a so-called dual mode I / F) capable of executing both an operation according to BLE and an operation according to classic BT. A BTI / F corresponding to “Bluetooth Smart” is an I / F that can execute an operation according to BLE but cannot execute an operation according to classic BT. In this embodiment, BT communication according to BLE is executed between the printer PR and the portable terminals PT1 and PT2. Since BTI / F (for example, reference numeral 62) described later of the portable terminals PT1 and PT2 is compatible with “Bluetooth Smart Ready”, the BTI / F 22 of the printer PR is set to “Bluetooth Smart Ready” and “Bluetooth Smart”. Either one may be supported. However, in a modified example, when the BTI / F 22 of the printer PR is compatible with “Bluetooth Smart Ready”, the BTI / F of the portable terminals PT1, PT2 may be compatible with “Bluetooth Smart”.

クラシックBTとBLEとの相違点を記述しておく。BLEのチャネル数(即ち40)は、クラシックBTのチャネル数(即ち79)よりも少ない。BLEのデータ通信時の消費電流(例えば15mA)は、クラシックBTのデータ通信時の消費電流(例えば35mA)よりも小さい。従って、BLEの消費電力は、クラシックBTの消費電力よりも低い。また、BLEでは、Advertise信号が利用されるが、クラシックBTでは、Advertise信号が利用されない。   Describe the differences between Classic BT and BLE. The number of BLE channels (ie 40) is less than the number of classic BT channels (ie 79). The current consumption (for example, 15 mA) during BLE data communication is smaller than the current consumption (for example, 35 mA) during classic BT data communication. Therefore, the power consumption of BLE is lower than the power consumption of classic BT. In BLE, Advertise signal is used, but in Classic BT, 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)よりも大きい。   Differences between the Wi-Fi system and the BT system 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 the carrier wave in Wi-Fi communication is the 2.4 GHz band or the 5.0 GHz band. The frequency of the carrier wave in BT communication is the 2.4 GHz band. That is, when the 5.0 GHz band is adopted as the carrier frequency in Wi-Fi communication, the carrier frequency in Wi-Fi communication is different from the carrier frequency in BT communication. Further, the maximum distance (for example, about 100 m) at which Wi-Fi communication can be performed is larger than the maximum distance (for example, about several tens of meters) at which BT communication can be performed.

制御部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 configured by a volatile memory, a nonvolatile memory, or 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, the name is used as information for identifying the printer PR in order for the printer PR to execute BT communication. is there. In FIG. 1, the memory 34 is shown to include an area 40, but the area 40 is used in second and fourth embodiments described later.

(携帯端末PT1,PT2の構成)
各携帯端末PT1,PT2は、例えば、携帯電話(例えばスマートフォン)、PDA、ノートPC、タブレットPC、携帯型音楽再生装置、携帯型動画再生装置等の可搬型の端末装置である。以下では、携帯端末PT1の構成を説明するが、携帯端末PT2も携帯端末PT1と同様の構成を備える。
(Configuration of portable terminals PT1, 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 mobile music playback device, a mobile video playback device, and the like. Below, although the structure of portable terminal PT1 is demonstrated, portable terminal PT2 is also equipped with the structure similar to portable terminal PT1.

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

操作部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. The user can input various instructions to the portable terminal PT1 by operating the operation unit 52. The display unit 54 is a display for displaying various information. The display unit 54 also functions as a so-called touch panel (that is, also functions as an operation unit). The Wi-Fi I / F 60 is an I / F for executing Wi-Fi communication. The Wi-Fi I / F 60 may support WFD or may not support WFD. The BTI / F 62 is an I / F for executing BT communication, and supports BLE. The difference between the I / Fs 60 and 62 is the same as the difference between the 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 configured by a volatile memory, a nonvolatile memory, or the like. The memory 74 stores not only the OS program 76 but also the printer application 78. The printer application 78 is an application for causing the printer PR to execute a printing function. When the user desires the printer PR to execute the printing function, the printer application 78 is activated by the user. For example, the printer application 78 may be installed in the portable terminal PT1 from a server on the Internet provided by the vendor of the printer PR, or may be installed in the portable terminal PT1 from a medium shipped 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 portable terminal PT1. The BT device name “N1” is a unique name assigned to the BTI / F 62. In other words, the BT device name “N1” is used as information for identifying the portable terminal PT1 so that the portable terminal PT1 performs BT communication. It is a name. The mobile terminal PT2 has a BT device name “N2” 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 is a BT device name of a printer (hereinafter referred to as “established printer”) in which wireless connection via the Wi-Fi I / F 60, that is, wireless connection according to the Wi-Fi method is established. Is an area for storing.

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

S2では、CPU32は、ランダムに文字列を生成することによって、SSID(Service Set Identifierの略)を生成する。そして、CPU32は、SSIDをメモリ34に格納させる。SSIDは、Wi−Fi通信を実行するための無線ネットワークを識別するための識別子である。   In S2, the CPU 32 generates an SSID (abbreviation of Service Set Identifier) by randomly generating a character string. Then, the CPU 32 stores the SSID in the memory 34. The SSID is an identifier for identifying a wireless network for executing 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 where power is not supplied to the BTI / F 22, that is, a state where BT communication cannot be performed. The ON state of the BTI / F 22 is a state where power is supplied to the BTI / F 22, that is, a state where BT communication can be performed. The power consumption of the BTI / F 22 in the ON state (that is, the power consumption of the 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 for repeatedly broadcasting the Advertise signal via the BTI / F22. The Advertise signal includes the BT device name “NP” of the printer PR in the memory 34. The Advertise signal is a signal for informing the devices around the printer PR of the existence of the printer itself. In particular, the CPU 32 transmits an 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 higher is not executed, communication at a layer lower than the L2CAP layer (that is, the Link Manager layer or Link Layer layer) is executed, and the Advertise signal is communicated. Is done. The L2CAP layer is the highest layer for establishing a Bluetooth logical link. That is, communication at the lower layer than the highest layer is executed without communication of the highest layer for establishing a logical link, 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 whether a Scan Request signal (hereinafter referred to as “Scan_Req signal”) is received from the portable terminal via the BTI / F22. The Scan_Req signal is a signal transmitted from the 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 portable terminal (for example, the BT device name of the portable terminal PT1) as information indicating the transmission source. “N1”). The Scan_Req signal is a signal for requesting the printer PR for network information including an SSID and a password. In particular, the CPU 32 can receive the Scan_Req signal without establishing a logical link. That is, the communication of the lower layer than the highest layer is executed without performing the communication of the highest layer for establishing the logical link, and the Scan_Req signal is communicated. When receiving the Scan_Req signal, the CPU 32 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 S <b> 12, the CPU 32 transmits a Scan Response signal (hereinafter referred to as “Scan_Res signal”) to the mobile terminal that is the transmission 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 (that is, the BT device name of the transmission source in the Scan_Req signal) as information indicating the transmission destination and the transmission source. Information to be included includes the BT device name “NP” of the printer PR. The CPU 32 transmits a Scan_Res signal without establishing a logical link. That is, the communication of the Scan_Res signal is performed by performing communication of a lower layer than the highest layer without performing communication of the highest layer for establishing a logical link.

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 the memory 34 and a predetermined password. As described above, the SSID is stored in the memory 34 in S2. However, when S32 described later is executed after S2 is executed, a new SSID is stored in the memory 34 instead of the old SSID in the memory 34. Therefore, in a situation where S32 has not been executed once after S2 is executed, the SSID in the Scan_Res signal is the SSID generated in S2. In a situation where S32 has been executed after S2 is executed, the SSID in the Scan_Res signal is the SSID generated in the latest S32. Hereinafter, the SSID currently stored in the memory 34 is referred to as “current SSID”. The predetermined password is a fixed character string preset in the printer PR. That is, in this embodiment, when the printer PR is turned on or S32 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 where power is not supplied to the Wi-Fi I / F 20, that is, a state where Wi-Fi communication cannot be performed. The ON state of the Wi-Fi I / F 20 is a state where power is supplied to the Wi-Fi I / F 20, that is, a state where Wi-Fi communication can be performed. 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 voluntarily shifts the operation state of the printer PR from the WFD device state to the G / O state without executing WFD G / O (abbreviation of Group Owner) negotiation. The printer PR in the G / O state transmits a beacon signal for informing the surrounding devices of its presence via the Wi-Fi I / F 20. On the other hand, the printer PR that is in a state other than the G / O state (for example, the above-described 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 a state other than the G / O state. Since the operation 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 (hereinafter referred to as “Wi-Fi connection”) according to the Wi-Fi method, and specifically, an association request. Signal.

S18では、CPU32は、Wi−Fi接続を携帯端末と確立する。具体的には、CPU32は、Wi−FiI/F20を介して、各種の信号の通信(例えば、Association Response信号の送信、4−Way Handshakeの通信等)を携帯端末と実行する。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 performs communication of various signals (for example, transmission of Association Response signal, 4-Way Handshake communication, etc.) with the mobile terminal via the Wi-Fi I / F 20. The CPU 32 receives network information including the SSID and password from the portable terminal in the course of communication of the various signals described above, and executes authentication of the network information. When the received SSID matches the current SSID and the received password matches the predetermined password, the CPU 32 determines that the authentication of the network information has succeeded and establishes a Wi-Fi connection with the mobile terminal. Establish. As described above, in S12, since the Scan_Res signal including the current SSID and the predetermined password is transmitted to the mobile terminal, network information including the current SSID and the predetermined password is received from the mobile terminal. Accordingly, in S18, the network information is normally successfully authenticated, and the 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 portable terminal. Thus, a Wi-Fi wireless network (hereinafter referred to as “Wi-Fi network”) in which the printer PR operates in the G / O state and the mobile terminal operates as a so-called legacy is formed. Legacy means a device that participates in a Wi-Fi network without executing an operation according to the WFD. Since the printer PR in the G / O state manages the Wi-Fi network, it can be said that the printer PR in the G / O state is a master station (in other words, a master device) of the Wi-Fi network. In addition, since the legacy mobile terminal participates in the Wi-Fi network, it can be said that the legacy mobile terminal is 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 the monitoring processes of S20 and S30. In S20, the CPU 32 determines whether print data representing an image to be printed has been received from the portable terminal via the Wi-Fi I / F 20 using the Wi-Fi network. When receiving the print data (YES in S20), the CPU 32 supplies the print data to the print execution unit 16 and causes the print execution unit 16 to execute printing according to the print data in S22. When S22 ends, the process returns to S20.

また、S30では、CPU32は、Wi−Fiネットワークを利用して、携帯端末から、Wi−FiI/F20を介して、切断信号を受信したのか否かを判断する。切断信号は、Wi−Fi接続の切断を要求するための信号である。従って、切断信号が受信される場合(S30でYES)には、プリンタPRと携帯端末との間のWi−Fi接続が切断され、S32に進む。   In S <b> 30, the CPU 32 determines whether a disconnection signal is received from the mobile terminal via the Wi-Fi I / F 20 using the Wi-Fi network. The disconnect signal is a signal for requesting disconnection of the Wi-Fi connection. Therefore, when the disconnection signal is received (YES in S30), the Wi-Fi connection between the printer PR and the portable terminal is disconnected, and the process proceeds 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 operation 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. 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 the modification, instead of changing to the OFF state in which power is not supplied, the standby state may be changed in which power is supplied. Here, the power consumption in the standby state is lower than the power consumption in the ON state. In S <b> 32, the CPU 32 further generates a new SSID and stores the new SSID in the memory 34 instead of the old SSID in the memory 34. That is, the CPU 32 changes the SSID. Thus, since the SSID is changed every time the printer PR stops the G / O state, 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 portable terminal PT1; FIG. 3)
Subsequently, a process executed by the CPU 72 of the portable terminal PT1 will be described with reference to FIG. Note that the portable terminal PT2 can execute the same processing. When the operation for starting up the printer application 78 is executed on the portable terminal PT1, the CPU 72 starts the process of FIG. In addition, operation with respect to portable terminal PT1 may be performed by the operation part 52, and may be performed by the display part 54 (namely, touch panel). This also applies to the following.

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 / F62. As described above, the printer PR broadcasts the Advertise signal including the BT device name “NP” (see S6 in FIG. 2). Therefore, if the distance between the printer PR and the portable 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 BTI / F62. 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 S <b> 52, the CPU 72 determines whether or not the BT device name (that is, the received BT device name) in the received Advertise signal is stored in the BT device name storage area 80. As described above, the BT device name storage area 80 stores the BT device name of the established printer. Therefore, the determination in S52 means determining whether or not the printer PR that is the source 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 or not the distance between the printer PR that is the source of the Advertise signal and the portable terminal PT1 is less than a threshold value. Here, the threshold value is a distance (for example, 1 m) 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 intensity (hereinafter referred to as “transmission intensity”) of the Advertise signal at the time of transmission from the printer PR. Then, the CPU 72 acquires the radio wave intensity of the Advertise signal at the time of reception by the BTI / F 62 from the BTI / F 62 (hereinafter referred to as “reception intensity”), and sets the attenuation rate of the reception intensity relative to the transmission intensity. calculate. The printer application 78 further describes the relationship between the attenuation rate and the distance. The CPU 72 specifies the distance between the printer PR and the portable terminal PT1 using the calculated attenuation rate and the above relationship, and determines whether or not 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 is determined that the specified distance is equal to or greater than the threshold (NO in S54), 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 unicasts a Scan_Req signal to the printer PR via the BTI / F62. Accordingly, the Scan_Req signal can be received by the printer PR (see YES in S10 of FIG. 2). In S62, the CPU 72 receives a Scan_Res signal from the printer PR via the BTI / 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 (that is, 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. Thus, 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−Way Handshakeの通信等)をプリンタPRと実行する。CPU72は、上記の各種の信号の通信の過程で、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, Wi-Fi connection) via the Wi-Fi I / F 60 with the printer PR. Specifically, the CPU 72 performs communication of 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. The CPU 72 transmits network information including the SSID and password in the Scan_Res signal received in S62 to the printer PR in the course of communication of 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. Thus, a Wi-Fi network is formed in which the printer PR operates in the G / O state and the portable terminal PT1 operates as a legacy (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 or not a print instruction operation has been performed on the portable terminal PT1 by the user. The print instruction operation includes an operation of selecting one image file from 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 an image to be printed by the printer PR. When the print instruction operation is executed, the CPU 72 determines YES in S70 and proceeds to S72. On the other hand, when the print instruction operation is not executed until a predetermined time has elapsed after the completion of S66, or when the operation for selecting a button indicating cancellation is executed on the portable terminal PT1 by the user, It is determined NO in S70, S72 and S74 are skipped, and the process proceeds to S80.

S72では、CPU72は、Wi−Fiネットワークを利用して、Wi−FiI/F60を介して、印刷データをプリンタPRに送信する。これにより、印刷データによって表わされる画像の印刷をプリンタPRに実行させることができる(図2のS22参照)。   In S72, the CPU 72 transmits print data to the printer PR via the Wi-Fi I / F 60 using the Wi-Fi network. 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 S 74, the CPU 72 stores the BT device name “NP” of the printer PR in the Scan_Res signal received in S 62 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. If S74 is executed after YES is determined in S52, the BT device name “NP” is already 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 the print data to the printer PR is completed, the CPU 72 transmits a disconnection signal to the printer PR through the Wi-Fi I / F 60 using the Wi-Fi network. As a result, the Wi-Fi connection between the printer PR and the portable 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 the processes in FIGS. 2 and 3 will be described. 4 and 5, thick line arrows and thin line arrows between the printer PR and the portable terminals PT1 and PT2 indicate Wi-Fi communication and BT communication, respectively. This also applies to the second embodiment and later described later.

(ケースA;図4)
ケースAの初期状態では、プリンタPRの電源がOFFされている。また、携帯端末PT1は、プリンタPRとのWi−Fi接続を過去に確立していない。即ち、携帯端末PT1のBTデバイス名格納領域80には、プリンタPRのBTデバイス名「NP」が格納されていない。
(Case A; Fig. 4)
In the initial state of case A, the printer PR is powered off. Further, the portable 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 portable terminal PT1.

A0では、プリンタPRの電源がユーザによってONされる。この場合、プリンタPRは、T2において、SSID「X1」を生成し(図2のS2)、T4において、BTI/F22をON状態に変更する(S4)。そして、T6では、プリンタPRは、Advertise信号を送信することを繰り返す(S6)。   In A0, the power source 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). 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と携帯端末PT1との間にWi−Fi接続が確立されない。   In A1, an operation for activating the printer application 78 is performed on the portable terminal PT1 by the user. At this time, the distance between the printer PR and the portable terminal PT1 is equal to or greater than a threshold value (that is, 1 m). In this case, when the portable 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). Further, it is determined that the distance between the printer PR and the portable terminal PT1 is equal to or greater than the threshold (NO in S54). In this case, the portable 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 portable terminal PT1.

ユーザは、プリンタ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 the printer PR to perform printing, in A2, the user brings the portable terminal PT1 closer to the printer PR. As a result, the distance between the printer PR and the portable 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). Further, it is determined that the distance between the printer PR and the portable terminal PT1 is less than the threshold (YES in S54). In this case, at T20, the portable 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 transmission destination, and includes the BT device name “N1” as information indicating the transmission 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 portable terminal PT1, the printer PR transmits the Scan_Res signal to the portable terminal PT1 at T22 (YES in S10 of FIG. 2, S12). The Scan_Res signal includes the BT device name “N1” as information indicating the transmission destination and the BT device name “NP” as information indicating the transmission source. Further, the Scan_Res signal includes the SSID “X1” and the password “PS”. In 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 portable 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 portable terminal PT1 to the printer PR, a Wi-Fi connection is established between the printer PR and the portable terminal PT1 at T32 (S18 in FIG. 2, S66 in FIG. 3). ). The printer PR receives the network information including the SSID “X1” and the password “PS” from the portable terminal PT1 in the process of T32 and executes authentication of the network information. In this case, the authentication is successful. A Wi-Fi connection is established with the portable terminal PT1. Thus, 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)。   In A3, a print instruction operation is executed on the portable terminal PT1 (YES in S70 of FIG. 3). In this case, the portable terminal PT1 transmits the print data to the printer PR using the Wi-Fi connection at T40 (S72), and stores the BT device name “NP” in the Scan_Res signal of T22 at T42. (S74).

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

プリンタPRは、携帯端末PT1から切断信号を受信した後(図2のS30でYES)に、T52において、G/O状態からデバイス状態に移行し、Wi−FiI/F20をOFF状態に変更し、SSID「X1」とは異なるSSID「X2」を生成する(S32)。T52が実行されるので、プリンタPRの消費電力を低減させることができる。   After receiving the disconnect signal from the portable terminal PT1 (YES in S30 of FIG. 2), the printer PR shifts from the G / O state to the device state at T52, changes the Wi-Fi I / F 20 to the OFF state, 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; FIG. 5)
Case B1 in FIG. 5 is a continuation of case A in FIG. 4, Wi-Fi I / F 20 is in the OFF state (see T52 in FIG. 4), and BTI / F 22 is in the ON state (see T4). Further, the BT device name “NP” of the printer PR that is an established printer is stored in the BT device name storage area 80 of the portable terminal PT1 (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)。   In A11, an operation for starting the printer application 78 is performed on the portable terminal PT1 by the user. At this time, the distance between the printer PR and the portable terminal PT1 is equal to or greater than the threshold value. When the mobile terminal PT1 receives the Advertise signal of T106 from the printer PR (YES in S50 of FIG. 3), it determines in T110 that the BT device name “NP” in the Advertise signal has been stored (YES in S52). . At T120, the portable terminal PT1 transmits a Scan_Req signal to the printer PR even though the distance between the printer PR and the portable terminal PT1 is equal to or greater than the threshold (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 the same as A3 and T22 to T52 in FIG. However, it differs from Case A in that SSID “X2” is used. Further, since the portable terminal PT1 has already stored the BT device name “NP”, the process corresponding to T42 in FIG. 4 is not executed. Further, at T152, an SSID “X3” different from the SSIDs “X1” and “X2” is generated.

(ケースB2)
ケースB2もケースAの続きである。携帯端末PT2のBTデバイス名格納領域(図示省略)には、BTデバイス名「NP」が格納されていない。
(Case B2)
Case B2 is a continuation of case A. The BT device name “NP” is not stored in the BT device name storage area (not shown) of the portable 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接続が確立されない。   In A15, an operation for starting a printer application (not shown) is executed on the portable terminal PT2 by the user. At this time, the distance between the printer PR and the portable terminal PT2 is equal to or greater than the threshold value. When receiving the T206 Advertise signal from the printer PR (YES in S50 of FIG. 3), the portable terminal PT2 determines in T210 that the BT device name “NP” in the Advertise signal has not been stored (NO in S52). Further, it is determined that the distance between the printer PR and the portable terminal PT2 is equal to or greater than the threshold (NO in S54). In this case, the portable 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 portable 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)。
(Effect of this embodiment)
The portable terminal PT1 is in a state where the distance between the printer PR and the portable terminal PT1 is less than the threshold value, that is, the user wants to establish a Wi-Fi connection between the printer PR and the portable terminal PT1. When the Advertise signal is received from the printer PR in a highly likely state (T6 in FIG. 4), the Scan_Req signal is transmitted to the printer PR (T20), and the Scan_Res signal is received (T22). Accordingly, the portable terminal PT1 can establish a Wi-Fi connection with the printer PR using the network information in the Scan_Res signal, and can transmit print data to the printer PR (T30, T32, T40). Then, the portable terminal PT1 stores the BT device name “NP” of the printer PR that 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 portable terminal PT1 can receive an Advertise signal from an unconnected printer (not shown) in which a Wi-Fi connection with the portable terminal PT1 is not established. In the portable terminal PT1, the distance between the unconnected printer and the portable terminal PT1 is greater than or equal to the threshold, that is, the user desires that a Wi-Fi connection be established between the unconnected printer and the portable terminal PT1. Even if an Advertise signal is received from an unconnected printer in a state where there is a low possibility of being untouched, the Scan_Req signal is not transmitted to the unconnected printer (NO in S52 of FIG. 4, NO in S54). As a result, the portable 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 portable terminal PT1 determines that the BT device name “NP” in the Advertise signal has 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 a Wi-Fi connection between the printer PR and the portable terminal PT1. Accordingly, the portable 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 portable terminal PT1 is equal to or greater than the threshold value. Thereby, the portable 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 transmit print data to the printer PR (T130, T132, T140). . As described above, the portable terminal PT1 can establish a Wi-Fi connection with the printer PR, which is an established printer, in an appropriate situation after executing the BT communication.

また、本実施例では、携帯端末PT1は、BT方式の論理リンクを確立することなく、Advertise信号の受信(例えば図5のT106)、Scan_Req信号の送信(T120)、及び、Scan_Res信号(T122)の受信を実行する。BT方式の論理リンクを確立せずに済むので、携帯端末PT1の処理負荷を軽減させ得る。   In this embodiment, the mobile terminal PT1 receives the Advertise signal (for example, T106 in FIG. 5), transmits the Scan_Req signal (T120), and the Scan_Res signal (T122) without establishing a BT logical link. Receive. Since it is not necessary to establish a BT logical link, the processing load on the portable 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)
The portable terminal PT1 is an example of a “second communication device”. The printer PR is an example of “first communication device” and “third communication device”. The BT device name “NP” of the printer PR is an example of “first device identification information” and “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 the BTI / F 62 of the portable terminal PT1 are examples of “first interface” and “second interface”, respectively. The threshold value of S54 in FIG. 3 is an example of “predetermined distance”. The Advertise signal at T106 in FIG. 5 and the Advertise signal at T6 in FIG. 4 are examples of “first predetermined signal” and “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 “first predetermined request” and “second predetermined request”, respectively. The SSID “X1” and the password “PS” in the Scan_Res signal of T22 in FIG. 4 are an example of “first network related information”. The Wi-Fi connection request signal of T30 and the Wi-Fi connection of T32 are examples of “first wireless connection request” and “first wireless connection”, respectively. The SSID “X2” and the password “PS” in the Scan_Res signal of T122 in FIG. 5 are an example of “second network related information”. The Wi-Fi connection request signal of T130 and the Wi-Fi connection of T132 are examples of “second wireless connection request” and “second wireless connection”, respectively.

(第2実施例)
第1実施例と異なる点を中心に説明する。本実施例では、携帯端末PT1は、BTデバイス名格納領域80を備えない。プリンタPRは、BTデバイス名格納領域40を備え、プリンタPRとのWi−Fi接続が確立された携帯端末(以下では「確立済み端末」と呼ぶ)のBTデバイス名を格納可能である。
(Second embodiment)
A description will be given centering on differences from the first embodiment. In the present embodiment, the portable terminal PT1 does not include the BT device name storage area 80. The printer PR includes a BT device name storage area 40 and can store a BT device name of a portable terminal (hereinafter referred to as “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に進む。
(Processing of printer PR; FIG. 6)
The CPU 32 of the printer PR executes the process of FIG. 6 instead of the process of FIG. S2 to S6 are the same as in FIG. In S100, the CPU 32 monitors whether a BT connection request is received from the portable terminal via the BTI / F22. The BT connection request is a signal transmitted from the mobile terminal that has received the Advertise signal, and is a signal for requesting establishment of a BT 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 transmission destination, and includes the BT device name of the portable terminal as information indicating the transmission source. When receiving the BT connection request, the CPU 32 determines YES in S100 and proceeds to S102.

S102では、CPU32は、BTI/F22を介して、BT設定情報を携帯端末に送信し、BT設定情報を利用したペアリングを携帯端末と実行して、携帯端末とのBT接続を確立する。BT設定情報は、メモリ34に予め格納されている情報であり、BT接続を確立するための各種の情報(認証方式、暗号化方式、パスキー等)を含む。   In S102, the CPU 32 transmits BT setting information to the mobile terminal via the BTI / F 22, executes pairing using the BT setting information with the mobile terminal, 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 (such as an authentication method, an encryption method, and a pass key) 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 the same as S14 of FIG. In S110, the CPU 32 monitors whether distance information is received via the BTI / F 22 using the BT connection. The distance information is a signal repeatedly transmitted from the mobile terminal that has established the 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 portable terminal is equal to or greater than the threshold value, or “Near”, which means that the distance is less than the threshold value. Here, the threshold value is a distance (for example, 3 m) smaller than the maximum distance (for example, several tens of meters) at which BT communication can be performed. The distance information is communicated using a BT connection. Accordingly, distance information is communicated by executing communication of the highest layer (that is, L2CAP) for forming a logical link and communication of higher layers (for example, 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 transmission destination, and includes the BT device name of the portable terminal as information indicating the transmission source. If the CPU 32 receives the distance information, the CPU 32 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 or not the transmission source BT device name (that is, the BT device name of the portable 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 name of the established terminal. Therefore, the determination in S112 means determining whether or not the portable terminal that is the transmission 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 source BT device name 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 or not the distance information indicates “Near”. When determining that the distance information indicates “Near” (YES in S114), the CPU 32 proceeds to S116, and when determining that the distance information indicates “Far” (NO in S114), the CPU 32 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 transmits network information including the current SSID and a predetermined password to the portable terminal via the BTI / F 22 using the BT connection. The network information is transmitted by unicast communication, and includes the BT device name of the portable terminal as information indicating the transmission destination, and includes the BT device name “NP” of the printer PR as information indicating the transmission source. Subsequent S16 to S32 are the same as 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. 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 portable terminal PT1; FIG. 7)
CPU72 of portable terminal PT1 replaces the process of FIG. 3, and performs the process of FIG. S50 is the same as FIG. In S150, the CPU 72 transmits a BT connection request to the printer PR via the BTI / F 62 (see YES in S100 of FIG. 6). In S152, the CPU 72 receives BT setting information from the printer PR via the BTI / F 62, executes pairing using the BT setting information with the printer PR, 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 transmission processing for transmitting distance information to the printer PR via the BTI / F 62 using the BT connection (see YES in S110 of FIG. 6). The method for specifying the distance between the printer PR and the portable 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 reception of network information including the current SSID and a predetermined password from the printer PR via the BTI / F 62 using the BT connection. When the network information is received, the CPU 72 determines YES in S160, and proceeds to S64. S64 to S80 are the same as 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: Fig. 8)
Next, specific cases realized by the processes in FIGS. 6 and 7 will be described with reference to FIGS. The initial state of case C in FIG. 8 is the same as the initial state of case A in FIG. The contents of case C will be described focusing on the differences from case A in FIG. A0, A1, T2 to T6 are the same as those in FIG.

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

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

T16では、携帯端末PT1は、BT接続を利用して、距離情報をプリンタPRに送信する(図7のS154)。この時点では、プリンタPRと携帯端末PT1との間の距離が閾値以上である。従って、距離情報は、「Far」を示す。   At T16, the portable terminal PT1 transmits distance information to the printer PR using BT connection (S154 in FIG. 7). At this time, the distance between the printer PR and the portable terminal PT1 is equal to or greater than 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 receiving the distance information of T16 from the portable terminal PT1, the printer PR determines that the BT device name “N1” in the distance information has not been stored in T16A (NO in S112 of FIG. 6), and further the distance 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 portable terminal PT1 (if NO in S114, the printer PR does not proceed to S116). As a result, a Wi-Fi connection is not established between the printer PR and the portable terminal PT1.

ユーザは、プリンタPRに印刷を実行させることを望む場合に、A2において、携帯端末PT1をプリンタPRに近づける。これにより、プリンタPRと携帯端末PT1との間の距離が閾値未満になる。この場合、T18では、携帯端末PT1は、BT接続を利用して、「Near」を示す距離情報をプリンタPRに送信する(図7のS154)。   When the user desires the printer PR to perform printing, in A2, the user brings the portable terminal PT1 closer to the printer PR. As a result, the distance between the printer PR and the portable terminal PT1 becomes less than the threshold value. In this case, at T18, the portable terminal PT1 transmits distance information indicating “Near” to the printer PR using the BT connection (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 portable terminal PT1, it determines that the BT device name “N1” of the portable terminal PT1 in the distance information has not been stored in T18A (NO in S112 of FIG. 6). Further, it is determined that the distance information indicates “Near” (YES in S114). In this case, in T19, the printer PR transmits network information including the SSID “X1” and the password “PS” to the portable terminal PT1 (S116). T30 to T52 except T45 are the same as those in FIG. However, T42 in FIG. 4 is not executed. In T45, the printer PR stores the BT device name “N1” in the distance information of 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; FIG. 9)
Case D1 in FIG. 9 is a continuation of case C in FIG. 8, Wi-Fi I / F 20 is in an OFF state (see T52 in FIG. 8), and BTI / F 22 is in an ON state (see T4). The BT device name storage area 40 of the printer PR stores the BT device name “N1” of the portable terminal PT1 that 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 portable terminal PT1 (that is, distance information indicating “Far”), the printer PR determines that the BT device name “N1” in the distance information has been stored in T116A ( YES in S112 of FIG. In this case, in T119, the printer PR transmits network information including the SSID “X2” and the password “PS” to the portable terminal PT1 even though the distance between the printer PR and the portable terminal PT1 is equal to or greater than the threshold. (S116). A13 and T130 to T152 are the same as those in FIG.

(ケースD2)
ケースD2もケースCの続きである。プリンタPRのBTデバイス名格納領域40には、携帯端末PT2のBTデバイス名「N2」が格納されていない。T106〜T115は、携帯端末PT1に代えて携帯端末PT2が利用される点を除くと、ケースD1と同様である。
(Case D2)
Case D2 is a continuation of case C. The BT device name “N2” of the portable terminal PT2 is not stored in the BT device name storage area 40 of the printer PR. T106 to T115 are the same as Case D1 except that the portable terminal PT2 is used instead of the portable 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 receiving the distance information of T216 from the portable terminal PT2, the printer PR determines that the BT device name “N2” in the distance information is not stored in the BT device name storage area 40 in T216A (NO in S112). Further, it is determined that the distance information indicates “Far” (NO in S114). In this case, the printer PR does not transmit the network information to the portable terminal PT2 (in the case of NO in S114, the printer PR does not proceed to S116). As a result, a Wi-Fi connection is not established between the printer PR and the portable 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)。
(Effect of this embodiment)
The printer PR may be in a state where the distance between the printer PR and the portable terminal PT1 is less than the threshold value, that is, the user wants to establish a Wi-Fi connection between the printer PR and the portable terminal PT1. Network information is transmitted to the portable terminal PT1 in a state with high performance (T19 in FIG. 8). Accordingly, the printer PR can establish a Wi-Fi connection with the portable terminal PT1 and can receive print data from the portable terminal PT1 (T30, T32, T40). Then, the printer PR stores the BT device name “N1” of the portable terminal PT1, which is an established terminal (T45).

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

一方、プリンタ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 receiving the distance information from the portable terminal PT1 (T116 in case D1 in FIG. 9), the printer PR determines that the BT device name “N1” in the distance information has already been stored (T116A). In this case, since the portable terminal PT1 is an established terminal, there is a high possibility that the user desires to re-establish a Wi-Fi connection between the printer PR and the portable terminal PT1. Accordingly, the printer PR transmits network information to the printer PR even though the distance between the printer PR and the portable terminal PT1 is equal to or greater than the threshold (T119). Accordingly, the printer PR can establish a Wi-Fi connection with the portable terminal PT1, and can receive print data from the portable terminal PT1 (T130, T132, T140). In this way, after executing the BT communication, the printer PR can establish a Wi-Fi connection with the portable terminal PT1 that 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 portable terminal PT1 is an example of a “second communication device” and a “third communication device”. The BT device name “N1” of the portable terminal PT1 is an example of “second device identification information” and “third device identification information”. The Wi-Fi I / F 20 and BTI / F 22 of the printer PR are examples of “first interface” and “second interface”, respectively. The threshold value (for example, 3 m) between “Near” and “Far” included in the distance information in S154 of FIG. 7 is an example of “predetermined distance”. The Advertise signal is an example of a “predetermined signal”. The distance information of T16 (or T18) in FIG. 8 is an example of “first distance information”, and the distance information of T116 in FIG. 9 is an example of “specific information” and “second distance information”. . The network information of T19 in FIG. 8 and the network information of T119 in FIG. 9 are examples of “first network relation information” and “second network relation 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 embodiment)
The description will focus on the differences from the first and second embodiments. As shown in FIG. 1, the printer PR includes an NFC I / F 24 for executing wireless communication (hereinafter referred to as “NFC communication”) according to the NFC method. The NFC I / F 24 includes a memory 26. In addition, the portable terminals PT1 and PT2 each include an NFC I / F 64. In the present embodiment, the portable terminal PT1 includes the BT device name storage area 80, and the printer PR does not include 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, 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 frequency of the carrier wave (for example, 13.56 MHz band) in NFC communication is the frequency of the carrier wave (for example, 2.4 GHz band or 5.0 GHz band) in Wi-Fi communication and the frequency of the carrier wave in BT communication (for example, 2.4 GHz band). Is different. Moreover, the maximum distance (for example, about 10 cm) at which NFC communication can be performed is smaller than the maximum distance (for example, about several tens of meters) at which BT communication can be performed.

(プリンタ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の各監視処理を順次実行することを繰り返す。
(Processing of printer PR; FIG. 10)
The CPU 32 of the printer PR executes the process of FIG. 10 instead of the process of FIG. S2 is the same as FIG. In S200, the CPU 32 changes the BTI / F 22 from the OFF state to the ON state, and further changes the NFC I / F 24 from the OFF state to the ON state (that is, power is supplied to the NFC I / 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 the predetermined password are stored in the memory 26 of the NFC I / F 24. S6 is the same as FIG. The CPU 32 repeats sequentially executing the monitoring processes of 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 whether a communication link (hereinafter referred to as “NFC link”) via the NFC I / F 24 is established. When acquiring information indicating that the 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 the same as in FIG. In S <b> 220, the CPU 32 transmits the BT device name “NP” of the printer PR to the portable terminal via the Wi-Fi I / F 20 using the Wi-Fi connection.

S212では、CPU32は、携帯端末から、BTI/F22を介して、Scan_Req信号を受信することを監視する。CPU32は、Scan_Req信号を受信した場合には、S212でYESと判断して、S12に進む。S12〜S18は、図2と同様である。   In S212, the CPU 32 monitors whether a Scan_Req signal is received from the portable terminal via the BTI / F22. When receiving the Scan_Req signal, the CPU 32 determines YES in S212 and proceeds to S12. S12 to S18 are the same as in FIG.

S20〜S32は、図2と同様である。S240では、CPU32は、S32で生成されたSSIDと、所定のパスワードと、をNFCI/F24に供給する。これにより、NFCI/F24のメモリ26内の所定のパスワードは変更されないが、メモリ26内の現行SSIDが変更される。   S20 to S32 are the same as in FIG. 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 portable terminal PT1; FIG. 11)
The CPU 72 of the portable terminal PT1 executes the process of FIG. 11 instead of the process of FIG. CPU72 repeats performing each monitoring process of S50 and S250 sequentially. S52 to S80 after YES in S50 and S50 are the same as in FIG. However, in the present embodiment, the process of S54 of FIG. 3 is not executed, and the process of S74 of FIG. 3 is not executed when S50 is YES.

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 (that is, an NFC link) via the NFC I / F 64 is established. When acquiring information indicating that the 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 the same as in FIG. In S260, the CPU 72 receives the BT device name “NP” from the printer PR via the Wi-Fi I / F 60 using the Wi-Fi connection (see S220 in FIG. 10). S70 to S80 after S260 are the same as those in FIG. However, in S 74, the CPU 72 stores the BT device name “NP” received in S 260 by 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: Fig. 12)
Next, specific cases realized by the processes in FIGS. 10 and 11 will be described with reference to FIGS. 12 and 13. In FIGS. 12 and 13, thick line arrows, thin line arrows, and broken line arrows between the printer PR and the portable terminals PT1 and PT2 indicate Wi-Fi communication, BT communication, and NFC communication, respectively. This is the same in the fourth embodiment described later. The initial state of case E in FIG. 12 is the same as the initial state of case A in FIG. The contents of case E will be described focusing on the differences from case A in FIG.

プリンタPRは、電源がユーザによってONされる場合(A0)に、T302において、SSID「X1」を生成し(図10のS2)、T304において、BTI/F22及びNFCI/F24のそれぞれをON状態に変更し(S200)、T305において、SSID「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” at T302 (S2 in FIG. 10), and at T304, each of the BTI / F22 and NFCI / F24 is turned on. In step S305, the SSID “X1” and the password “PS” are supplied to the NFC I / F 24. A1 and T306 are the same as 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 portable terminal PT1 determines that the BT device name “NP” in the Advertise signal has not been stored in T310 (NO in S52 of FIG. 11). In this case, the portable 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 portable terminal PT1.

ユーザは、プリンタPRに印刷を実行させることを望む場合に、A2において、携帯端末PT1をプリンタPRに近づける。これにより、プリンタPRと携帯端末PT1との間の距離がNFC通信を実行可能な最大の距離(例えば10cm)未満になる。この場合、プリンタPRと携帯端末PT1との間にNFCリンクが確立される。   When the user desires the printer PR to perform printing, in A2, the user brings the portable terminal PT1 closer to the printer PR. As a result, the distance between the printer PR and the portable terminal PT1 becomes less than the maximum distance (for example, 10 cm) at which NFC communication can be performed. In this case, an NFC link is established between the printer PR and the portable 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 SSID “X1” and the password “PS” are stored in the memory 26 of the NFC I / F 24 of the printer PR (T305). Then, when the NFC I / F 24 is established, the NFC I / F 24 transmits the SSID “X1” and the password “PS” in the memory 26 to the portable terminal PT1 at T320 without receiving an instruction from the CPU 32 of the control unit 30. To 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). In T334, the printer PR transmits the BT device name “NP” to the portable terminal PT1 using the Wi-Fi connection (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 the same as A3, T40 to T52 in FIG. However, at T342, the portable terminal PT1 stores the BT device name “NP” received from the printer PR by the Wi-Fi communication at T334 (S74 in FIG. 11). In 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; FIG. 13)
Case F1 in FIG. 13 is a continuation of case E in FIG. 12, Wi-Fi I / F 20 is in an OFF state (see T352 in FIG. 12), and BTI / F 22 and NFC I / F 24 are in an ON state (see T304). ). Further, the BT device name “NP” of the printer PR which is an established printer is stored in the BT device name storage area 80 of the portable terminal PT1 (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. YES in S52, S60 to S80). In 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 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 portable 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 FIG. When receiving the Advertise signal of T506 from the printer PR (YES in S50 of FIG. 11), the portable terminal PT2 determines in T510 that the BT device name “NP” in the Advertise signal has not been stored (NO in S52). ). In this case, the portable 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 portable terminal PT2.

(本実施例の効果)
本実施例でも、第1実施例と同様に、携帯端末PT1は、BT通信を実行した後に、適切な状況で、確立済みプリンタであるプリンタPRとのWi−Fi接続を確立することができる。また、携帯端末PT1は、BT方式の論理リンクを確立せずに済むので、携帯端末PT1の処理負荷を軽減させ得る。
(Effect of this embodiment)
Also in the present embodiment, like the first embodiment, the portable terminal PT1 can establish a Wi-Fi connection with the printer PR, which is an established printer, in an appropriate situation after executing the BT communication. Also, since the portable terminal PT1 does not need to establish a BT logical link, the processing load on the portable 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 / F 62 and the NFC I / F 64 of the portable terminal PT1 are examples of “first type interface” and “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 SSID “X1” and the password “PS” of T320 in FIG. 12 are an example of “first network related information”. The SSID “X2” and the password “PS” in the Scan_Res signal of T422 in FIG. It is an example of “second network related information”.

(第4実施例)
第3実施例と異なる点を中心に説明する。本実施例では、プリンタPRがBTデバイス名格納領域40を備えており、携帯端末PT1がBTデバイス名格納領域80を備えていない。
(Fourth embodiment)
The description will focus on the differences from the third embodiment. In the present embodiment, the printer PR includes the BT device name storage area 40, and the portable terminal PT1 does not include 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デバイス名を受信する。
(Processing of printer PR; FIG. 14)
The CPU 32 of the printer PR executes the process of FIG. 14 instead of the process of FIG. S2, S200, S202, S6, S210, and S212 are the same as those in FIG. S14 to S18 after YES in S210 are the same as those in FIG. 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 or not the BT device name of the transmission source in the Scan_Req signal is stored in the BT device name storage area 40. S12 to S18 after YES in S213 are the same as in FIG. 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 portable terminal PT1; FIG. 11)
The CPU 72 of the portable terminal PT1 executes the process of FIG. 11, but S260 is different from the third embodiment. In S260, the CPU 72 of the portable terminal PT1 transmits the BT device name “N1” of the portable terminal PT1 to the printer PR via the Wi-Fi I / F 60 using the Wi-Fi connection (see S221 in FIG. 14). ). 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: Fig. 12)
Next, specific cases realized by the processes in FIGS. 11 and 14 will be described with reference to FIGS. 12 and 15. In case E of FIG. 12, T334 is not executed, and T336 is executed instead. At T336, the mobile terminal PT1 transmits the BT device name “N1” of the mobile terminal PT1 to the printer PR using Wi-Fi connection (S260 in FIG. 11). Further, T342 is not executed, and T345 is executed instead. In T345, the printer PR stores the BT device name “N1” received from the portable terminal PT1 by Wi-Fi communication in T336 (S230 in FIG. 14).

(ケースG1;図15)
図15のケースG1は、図12のケースEの続きである。プリンタPRのBTデバイス名格納領域40には、確立済み端末である携帯端末PT1のBTデバイス名「N1」が格納されている(図12のT345参照)。図13のケースF1と異なる点を中心として、ケースG1を説明する。
(Case G1; FIG. 15)
A 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 portable terminal PT1, which is an established terminal (see T345 in FIG. 12). The case G1 will be described focusing on differences from the case F1 in FIG.

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 those in FIG. In T421, the printer PR determines that the BT device name “N1” in the Scan_Req signal has been stored (YES in S213 in FIG. 14). In this case, at T422, the printer PR transmits a Scan_Res signal including the SSID “X2” and the password “PS” to the portable terminal PT1 even though the distance between the printer PR and the portable terminal PT1 is equal to or greater than the threshold value. (S12). A13 and T424 to T454 are the same as those in FIG.

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

携帯端末PT2は、A15の操作が実行された後に、プリンタPRからT506のAdvertise信号を受信する場合(図11のS50でYES)に、T520において、プリンタPRと携帯端末PT2との間の距離が閾値以上であるにも関わらず、Scan_Req信号をプリンタPRに送信する。   When the mobile terminal PT2 receives the Advertise signal of T506 from the printer PR after the operation of A15 is executed (YES in S50 of FIG. 11), the distance between the printer PR and the mobile terminal PT2 is determined at T520. The Scan_Req signal is transmitted 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 portable terminal PT2, the printer PR determines that the BT device name “N2” in the Scan_Req signal has not been stored in T521 (NO in S213 of FIG. 14). In this case, the printer PR does not transmit the SSID “X2” or the like to the portable terminal PT2 (in the case of NO in S213, the printer PR does not proceed to S12). As a result, a Wi-Fi connection is not established between the printer PR and the portable terminal PT2.

(本実施例の効果)
本実施例でも、第2実施例と同様に、プリンタPRは、BT通信を実行した後に、適切な状況で、確立済みプリンタであるプリンタPRとのWi−Fi接続を確立することができる。また、プリンタPRは、BT方式の論理リンクを確立せずに済むので、プリンタPRの処理負荷を軽減させ得る。
(Effect of this embodiment)
Also in this embodiment, as in 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 the BT communication. Further, since the printer PR does not need to establish a BT 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 NFC I / F 24 of the printer PR are examples of “first type interface” and “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 “predetermined request” and “specific information”. Further, the Scan_Res signal of T422 is an example of “response”. The SSID “X1” and the password “PS” of T320 in FIG. 12 are an example of “first network related information”, and the SSID “X2” and the password “PS” in the Scan_Res signal of T422 in FIG. It is an example of “second network related information”.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。   Specific examples of the present invention have been described in detail above, but these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples illustrated above. The 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 of FIG. 3 or FIG. 11, the portable terminal PT1 transmits a BT connection request to the printer PR, establishes the BT connection with the printer PR, and then establishes the BT connection. The SSID and password may be received from 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 the same as those in the first and third embodiments described above. Communication may be performed without executing communication of the highest layer for establishing a logical link of a 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 portable terminal PT1 repeatedly transmits the Advertise signal, the printer PR does not have to execute S6 of FIG. In this case, when receiving the Advertise signal from the portable terminal PT1, the printer PR may determine whether or not the BT device name “N1” of the portable terminal PT1 in the Advertise signal has already been stored. When the printer PR determines that the BT device name “N1” has already been stored, the printer PR may execute the processing from S116 onward. When the printer PR determines that the BT device name “N1” has not been stored, the printer PR identifies the distance between the printer PR and the portable terminal PT1 based on the radio field intensity of the received Advertise signal, It may be determined whether the distance is less than a threshold value. If the printer PR determines that the specified distance is less than the threshold value, the printer PR executes the process from S116 onward. If the printer PR determines that the specified distance is greater than or equal to the threshold value, the printer PR executes the process on and after S116. You don't have to. In S116, the network information may be transmitted without establishing the BT connection, or the network information may be transmitted after the BT connection is established. In this modification, the Advertise signal is an example of “specific information”, and the “predetermined signal transmission unit” and the “distance information reception unit” 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) When the portable terminal PT1 repeatedly transmits the Advertise signal, the printer PR does not have to execute S6 of FIG. In this case, when receiving the Advertise signal from the portable terminal PT1, the printer PR may determine whether or not the BT device name “N1” of the portable terminal PT1 in the Advertise signal has already been stored. When the printer PR determines that the BT device name “N1” has already been stored, the printer PR executes the processes after S12. When the printer PR determines that the BT device name “N1” has not been stored, the printer PR performs the processes after S12. It is not necessary to execute. In S12, the network information may be transmitted without establishing the BT connection, or the network information may be transmitted after the 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 by NFC communication without executing S260 of the third embodiment of FIG. That is, in the “device identification information receiving 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 as in the present modification. You may receive 1st apparatus identification information via 2 interfaces (especially 2nd type interface).

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

(変形例6)上記の各実施例では、プリンタPRから携帯端末PT1にSSID及びパスワードが送信される(例えば図2のS12)。これに代えて、プリンタPRは、SSIDを携帯端末PT1に送信するが、パスワードを携帯端末PT1に送信しなくてもよい。この場合、携帯端末PT1においてパスワード入力画面が表示されて、パスワードがユーザによって携帯端末PT1に入力される。本変形例では、SSIDのみが、「第1(又は第2)のネットワーク関係情報」の一例である。 (Modification 6) In each of the above embodiments, the SSID and the password are transmitted from the printer PR to the portable terminal PT1 (for example, S12 in FIG. 2). Instead, the printer PR transmits the SSID to the portable terminal PT1, but does not have to transmit the password to the portable terminal PT1. In this case, a password input screen is displayed on the mobile terminal PT1, and the password is input to the mobile terminal PT1 by the user. In the present 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 BTI / F 22 of the printer PR may include a CPU and a memory. The memory of the BTI / F 22 may store a program. The CPU of the BTI / F 22 may be able to execute the operations of the above embodiments according to the program in the memory of the BTI / F 22 without receiving an instruction 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). 30, and a memory in the BTI / 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 NFC I / F 24 and the memory 26 of the NFC I / F 24. To store these information. As a result, the NFC I / F 24 can transmit the current SSID and password to the portable terminal without receiving an instruction from the control unit 30 (that is, the CPU 32) when the NFC link with the portable terminal is established. Instead, the NFC I / F 24 notifies the control unit 30 (that is, the CPU 32) that the NFC link has been established when the NFC link with the mobile terminal is established, and the current SSID and password are transmitted from the control unit 30. The information may be acquired and transmitted to the mobile terminal. Generally speaking, the “first network-related information transmission unit” may transmit the first network-related information to the second communication device via the second type 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 always be kept on while the printer PR is powered on.

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

(変形例11)「機器識別情報」は、プリンタPR又は携帯端末PT1等のBTデバイス名でなくてもよく、他の識別情報(例えば、MACアドレス、IPアドレス等)であってもよい。 (Modification 11) The “device identification information” may not be a BT device name such as the printer PR or the portable terminal PT1, but may be other identification information (for example, a MAC address, an 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 executing Wi-Fi communication, but for executing wireless communication according to another communication method capable of constructing a wireless LAN. It may be I / F. In addition, the “second interface” may not be an I / F for executing BT communication. For example, another communication method (for example, TransferJet (registered trademark)) that can execute short-range wireless communication is used. It may be an I / F for executing the following wireless communication.

(変形例13)「第1の通信機器」は、プリンタPRでなくてもよく、例えば、スキャナであってもよい。この場合、スキャナは、例えば、図2のS20において、携帯端末PT1から印刷データを受信する代わりに、原稿のスキャンを実行することによって生成されるスキャンデータを携帯端末PT1に送信してもよい。また、「第1の通信機器」は、プリンタ及びスキャナとは異なる機器(例えば、コピー機、ファクシミリ、電話機、PC、サーバ、携帯端末等)であってもよい。また、「第2の通信機器」は、携帯端末でなくてもよく、他の機器(例えば、プリンタ、スキャナ、コピー機、ファクシミリ、電話機、デスクトップ型PC、サーバ等)であってもよい。 (Modification 13) The “first communication device” may not be the printer PR, and may be a scanner, for example. In this case, for example, instead of receiving print data from the portable terminal PT1 in S20 of FIG. 2, the scanner may transmit scan data generated by scanning a document to the portable terminal PT1. Further, the “first communication device” may be a device (for example, a copier, a facsimile, a telephone, a PC, a server, a portable terminal, etc.) different from the printer and the scanner. Further, the “second communication device” may not be a portable terminal, but 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 CPU 32 of the printer PR and the CPU 72 of the portable terminal PT1 execute programs (that is, software), thereby realizing the processes shown in FIGS. Instead, at least one of the processes in FIGS. 2 to 15 may be realized by hardware such as a logic circuit.

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

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: NFC I / F, 26: Memory, 30: Control unit, 32: CPU, 34: Memory, 36: Program, 40: BT device name storage area, PT1, PT2: Portable 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

本明細書によって開示される第1の通信機器は、第1の通信方式に従った無線通信を実行するための第1のインターフェースと、前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、第2の識別情報が前記第1の通信機器のメモリに記憶されていない場合に、前記第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の識別情報を前記メモリに格納させる格納制御部と、前記第2の識別情報が前記メモリに格納された後に、第3の通信機器から、前記第2のインターフェースを介して、第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の確立部と、を備えてもよい。
また、本明細書では、第2の通信機器のためのコンピュータプログラムを開示する。前記第2の通信機器は、第1の通信方式に従った無線通信を実行するための第1のインターフェースと、前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、プロセッサと、を備え、前記コンピュータプログラムは、前記プロセッサに、以下の各処理、即ち、第1の識別情報が前記第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の識別情報が受信され、かつ、前記第1の無線ネットワークが形成される場合に、前記第1の識別情報を前記メモリに格納させる格納制御処理と、前記第1の識別情報が前記メモリに格納された後に、第3の通信機器から、前記第2のインターフェースを介して、第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の確立処理と、を実行させてもよい。
また、本明細書によって開示される他の第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の確立部と、を備える。
The first communication device disclosed in this specification includes a first interface for performing wireless communication according to the first communication method, and a second communication method different from the first communication method. A second interface for executing the wireless communication according to the first communication device and the second communication device when the second identification information is not stored in the memory of the first communication device; A first network that transmits first network-related information related to the first wireless network to the second communication device via the second interface in a state where the distance between the two is less than a predetermined distance It is a relationship information transmitting unit, wherein the first wireless network is a network for executing wireless communication via the first interface. A first connection request receiving unit that receives a first wireless connection request from the second communication device that has received the first network-related information via the first interface; and In response to receiving the first wireless connection request from the communication device, the first wireless connection via the first interface is used for the second communication using the first network related information. A first establishing unit that forms the first wireless network to which both the first communication device and the second communication device belong, and the second communication device; An identification information receiving unit that receives second identification information; and the second identification information is received from the second communication device and the second wireless network is formed. Store identification information in the memory And a storage control unit configured to receive the specific information including the third identification information from the third communication device via the second interface after the second identification information is stored in the memory. An information receiving unit; an identification information judging unit for judging whether or not the third identification information in the specific information matches the second identification information in the memory; and When it is determined that it matches the second identification information, the second network-related information related to the second wireless network matches the third communication device via the second interface. The second network related information is not transmitted to the third communication device when it is determined that the third identification information does not match the second identification information. Network An information transmission unit, wherein the second wireless network is a network for performing wireless communication via the first interface, and the second network related information is the first network related information. And receiving a second wireless connection request via the first interface from the second network relation information transmitting unit and the second communication device that has received the second network relation information. A second connection request receiving unit that receives the second wireless connection request from the second communication device, and uses the second network relation information to change the first interface. A second wireless connection via the second communication device and the second wireless network to which both the first communication device and the second communication device belong. A second establishing unit for forming a may be provided.
The present specification also discloses a computer program for the second communication device. The second communication device executes a first interface for performing wireless communication according to the first communication method, and wireless communication according to a second communication method different from the first communication method. The computer program is not stored in the memory of the second communication device in the following processes, that is, the first identification information is stored in the memory of the second communication device. In this case, the first wireless communication device is connected to the first wireless device from the first communication device 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 reception process for receiving first network-related information related to a network, wherein the first wireless network is wireless via the first interface. Via the first interface in response to receiving the first network-related information receiving process, which is a network for executing communication, and the first network-related information from the first communication device. A first connection request transmission process for transmitting a first wireless connection request to the first communication device, and transmitting the first wireless connection request to the first communication device, Establishing a first wireless connection via the first interface with the first communication device using the first network related information, and the first communication device and the second communication device A first establishment process for forming the first wireless network to which both belong to, an identification information reception process for receiving the first identification information from the first communication apparatus, and the first communication apparatus To the above When the first identification information is received and the first wireless network is formed, a storage control process for storing the first identification information in the memory and the first identification information stored in the memory And a first predetermined signal receiving process for receiving a first predetermined signal including third identification information from the third communication device via the second interface, and the first predetermined signal. An identification information determination process for determining whether or not the third identification information in the memory matches the first identification information in the memory; and the third identification information matches the first identification information If determined, a first predetermined request for requesting network-related information related to a wireless network is sent to the first communication device that matches the third communication device via the second interface. Send A first predetermined request transmission process that does not transmit the first predetermined request to the third communication device when it is determined that the third identification information does not match the first identification information; Second network related information related to the second wireless network from the first communication device via the second interface in response to transmitting one predetermined request to the first communication device. In which the second wireless network is a network for performing wireless communication via the first interface, and the second network related information is: The second network relation information receiving process, which is different from the first network relation information, and the second network relation information is received from the first communication device. In response, a second connection request transmission process for transmitting a second wireless connection request to the first communication device via the first interface, and the second wireless connection request for the first wireless connection request. A second wireless connection via the first interface is established with the first communication device using the second network related information in response to transmitting to the first communication device, and A second establishment process for forming the second wireless network to which both the first communication device and the second communication device belong may be executed.
Further, another first communication device disclosed in the present specification includes a first interface for executing wireless communication according to the first communication method, and a second interface different from the first communication method. In a state where the distance between the second interface for executing wireless communication in accordance with the communication method and the distance between the first communication device and the second communication device is less than a predetermined distance, A first network-related information transmitting unit that transmits first network-related information related to the first wireless network to the second communication device via the first wireless network, wherein the first wireless network A first network-related information transmitting unit that is a network for performing wireless communication via one interface; and the second communication that has received the first network-related information. A first connection request receiving unit that receives a first wireless connection request from a device via the first interface, and a response to receiving the first wireless connection request from the second communication device. Then, using the first network-related information, a first wireless connection via the first interface is established with the second communication device, and the first communication device and the second communication device are established. The first establishment unit forming the first wireless network to which both communication devices belong and second device identification information for identifying the second communication device from the second communication device. A device identification information receiving unit for receiving, a storage control unit for storing the second device identification information in a memory of the first communication device, and after the second device identification information is stored in the memory, 3 communication devices, the second device A specific information receiving unit that receives specific information including third device identification information for identifying the third communication device via the interface, and the third device identification information in the specific information is An identification information determination unit that determines whether or not the second device identification information in the memory matches, and when it is determined that the third device identification information matches the second device identification information, Via the second interface, the second network related information related to the second wireless network is transmitted to the second communication device matching the third communication device, and the third device identification information is A second network-related information transmitting unit that does not transmit the second network-related information to the third communication device when it is determined not to match the second device-identifying information; Wireless network The network is a network for executing wireless communication via the first interface, and the second network relation information is different from the first network relation information, and the second network relation information is transmitted. A second connection request receiving unit that receives a second wireless connection request from the second communication device that has received the second network-related information via the first interface; In response to receiving the second wireless connection request from the second communication device, the second wireless connection via the first interface is performed using the second network related information. A second establishing unit that establishes with the communication device and forms the second wireless network to which both the first communication device and the second communication device belong.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。
(項目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の通信機器。
The technical elements described in this specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technology illustrated in the present specification or the drawings achieves a plurality of objects at the same time, and has technical utility by achieving one of the objects.
(Item 1)
A first communication device,
A first interface for executing wireless communication according to the first communication method;
A second interface for executing wireless communication according to a second communication method different from the first communication method;
In a state where the distance between the first communication device and the second communication device is less than a predetermined distance, the first network related information related to the first wireless network is obtained via the second interface. A first network-related information transmitting unit configured to transmit to the second communication device, wherein the first wireless network is a network for executing wireless communication via the first interface; 1 network-related information transmitter,
A first connection request receiving unit that receives a first wireless connection request from the second communication device that has received the first network-related information via the first interface;
In response to receiving the first wireless connection request from the second communication device, the first wireless connection via the first interface is made using the first network related information. A first establishing unit that establishes the first wireless network to which both the first communication device and the second communication device belong;
A device identification information receiving unit for receiving second device identification information for identifying the second communication device from the second communication device;
A storage control unit for storing 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 transmitted from the third communication device via the second interface. A specific information receiving unit for receiving 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;
When 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 obtained via the second interface. If the third device identification information is determined not to match the second device identification information, the second network related information is transmitted to the second communication device matching the third communication device. A second network-related information transmitting unit that does not transmit to the third communication device, wherein the second wireless network is a network for performing wireless communication via the first interface; The network relation information of 2 is different from the first network relation information, the second network relation information transmission unit,
A second connection request receiving unit that receives a second wireless connection request from the second communication device that has received the second network-related information via the first interface;
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 establishing unit that establishes 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 executing communication of the highest layer for establishing a logical link of the second communication method, communication of a lower layer that is lower than the highest layer is executed, and via the second interface A predetermined signal transmission unit that repeats transmitting the 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 the distance between the first communication device and the second communication device from the second communication device via the second interface. With
The first network-related information transmitting unit is
When the first distance information indicates that the distance between the first communication device and the second communication device is less than the predetermined distance, the first distance information is sent via the second interface. 1 network-related 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 network related information is set to the second network information. Do not send to communication equipment,
The specific information receiving unit receives second distance information related to a 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 2, wherein the specific information is received.
(Item 4)
The distance information receiving unit uses the logical link of the second communication method established between the first communication device and the second communication device, from the second communication device, Receiving the first distance information via a second interface;
The specific information receiving unit uses the logical link of the second communication method established between the first communication device and the third communication device, from the third communication device, Item 4. The first communication device according to Item 3, wherein the specific information that is the second distance information is received via a second interface.
(Item 5)
The device identification information receiving unit according to any one of Items 1 to 4, wherein 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 of communication method of the second communication methods;
A second type of communication method of the second communication methods, a second type for executing wireless communication according to the second type of communication method different from the first type of communication method. A distance at which wireless communication through the second type interface can be performed is smaller than a distance at which wireless communication through the first type interface can be performed; and With
The first network-related information transmitting unit is configured so that the distance between the first communication device and the second communication device is less than the predetermined distance via the second type interface. Transmitting first network related information to the second communication device;
The specific information receiving unit is configured so that the distance between the first communication device and the third communication device is larger than the predetermined distance from the third communication device via the first type interface. And receiving the specific information,
When it is determined that the third device identification information matches the second device identification information, the second network-related information transmission unit transmits the second network via the first type interface. The first communication device according to item 1 or item 2, wherein the relationship information is transmitted to the second communication device that matches the third communication device.
(Item 7)
Item 6 is that 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. 1st communication apparatus of description.
(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 transmission unit responds to the predetermined request 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 6 or Item 7, wherein the response including the second network-related information is transmitted to the second communication device that matches the third communication device.
(Item 9)
The specific information receiving unit executes communication of a lower layer that is lower than the highest layer without executing communication of the highest layer for establishing a logical link of the first type communication method. , Receiving the specific information as the predetermined request from the third communication device via the first type interface;
The second network-related information transmitting unit does not execute the communication of the highest layer when the third device identification information is determined to match the second device identification information. The first communication device according to item 8, wherein the response is transmitted to the second communication device that matches the third communication device via the first type interface.
(Item 10)
A computer program for a second communication device,
The second communication device is:
A first interface for executing wireless communication according to the first communication method;
A second interface for executing wireless communication according to a second communication method different from the first communication method;
And a processor,
The computer program causes the processor to execute the following processes:
In relation to the first wireless network from the first communication device 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. In the first network related information receiving process for receiving the first network related information, the first wireless network is a network for executing wireless communication via the first interface. A first network-related information reception process;
A first wireless connection request is transmitted 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 transmission 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 that establishes with the first communication device and forms the first wireless network to which both the first communication device and the second communication device belong;
A device identification information receiving process for receiving first device identification information for identifying the first communication device from the first communication device;
A storage control process 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 transmitted from the third communication device via the second interface. First predetermined signal reception processing for receiving a first predetermined signal including:
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;
When it is determined that the third device identification information matches the first device identification information, a first predetermined for requesting network related information related to a wireless network via the second interface When the request is transmitted to the first communication device that matches the third communication device, and 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 that does not transmit a predetermined request to the third communication device;
A second network related to a second wireless network from the first communication device via the second interface in response to transmitting the first predetermined request to the first communication device; A second network relationship information reception process for receiving relationship information, wherein the second wireless network is a network for executing wireless communication via the first interface; and the second network relationship The information is different from the first network related information, the second network related information receiving process,
A second wireless connection request is transmitted 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 transmission 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 that establishes with the first communication device and forms the second wireless network to which both the first communication device and the second communication device belong;
A computer program that executes
(Item 11)
In the first predetermined signal reception process, communication in a lower layer that is lower than the highest layer is performed without performing communication in the highest layer for establishing a logical link of the second communication method. The computer program according to item 10, wherein the computer program 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 highest level for establishing the logical link of the second communication method Without performing layer communication, perform lower layer communication lower than the uppermost layer, and pass the first predetermined request to the third communication device via the second interface. Send 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 the first communication device via the second interface, Item 12. The computer program according to item 10 or 11, which receives the second network related information.
(Item 13)
The computer program further performs the following processes on the processor:
A second predetermined signal receiving process for receiving a second predetermined signal including the first device identification information from the first communication device via the second interface;
A distance determination process for determining whether a distance between the first communication device and the second communication device is less than the predetermined distance using a radio wave intensity of the second predetermined signal;
When it is determined that the distance between the first communication device and the second communication device is less than the predetermined distance, network-related information related to a wireless network is obtained via the second interface. When a second predetermined request for requesting is transmitted to the first communication device, and 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 that does not transmit the second predetermined request to the first communication device,
In the first network-related information reception process, in response to transmitting the second predetermined request to the first communication device, from the first communication device via the second interface, The computer program according to any one of items 10 to 12, which receives the first network-related information.
(Item 14)
The computer according to any one of Items 10 to 13, wherein, in the device identification information receiving process, the first device identification information is received 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 of communication method of the second communication methods;
A second type of communication method of the second communication methods, a second type for executing wireless communication according to the second type of communication method different from the first type of communication method. A distance at which wireless communication through the second type interface can be performed is smaller than a distance at which wireless communication through the first type interface can be performed; and With
In the first network-related information reception process, the second communication device receives the second communication device from the first communication device in a state where 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 communication device receives the first type of signal from the third communication device in a state where the distance between the first communication device and the third communication device is larger than the predetermined distance. Receiving the predetermined signal including the third device identification information via an interface;
In the first predetermined request transmission process, when it is determined that the third device identification information matches the first device identification information, the predetermined request is transmitted through the first type interface. To the first communication device that matches the three communication devices,
In the second network-related information reception process, any one of items 10 to 12, wherein the second network-related information is received from the first communication device via the first type interface. A computer program described in 1.
(Item 16)
Item 15 includes receiving the first device identification information from the first communication device via the first interface using the first wireless network in the device identification information receiving process. The computer program described.
(Item 17)
A second communication device,
A first interface for executing wireless communication according to the first communication method;
A second interface for executing wireless communication according to a second communication method different from the first communication method;
In relation to the first wireless network from the first communication device 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 receiving unit that receives the 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 unit;
A first wireless connection request is transmitted 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 transmission unit;
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 unit that establishes with the first communication device and forms the first wireless network to which both the first communication device and the second communication device belong;
A device identification information receiving unit for receiving first device identification information for identifying the first communication device from the first communication device;
A storage control unit 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 transmitted from the third communication device via the second interface. A first predetermined signal receiving unit for receiving a first predetermined signal including:
An identification information determination unit that determines whether or not the third device identification information in the first predetermined signal matches the first device identification information in the memory;
When it is determined that the third device identification information matches the first device identification information, a first predetermined for requesting network related information related to a wireless network via the second interface When the request is transmitted to the first communication device that matches the third communication device, and 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 a predetermined request to the third communication device;
A second network related to a second wireless network from the first communication device via the second interface in response to transmitting the first predetermined request to the first communication device; A second network relation information receiving unit for receiving relation information, wherein the second wireless network is a network for performing wireless communication via the first interface, and the second network relation The information is different from the first network related information, the second network related information receiving unit,
A second wireless connection request is transmitted 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 transmission unit;
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 the first communication device and forms the second wireless network to which both the first communication device and the second communication device belong;
A second communication device comprising:

Claims (17)

第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の通信機器。
A first communication device,
A first interface for executing wireless communication according to the first communication method;
A second interface for executing wireless communication according to a second communication method different from the first communication method;
In a state where the distance between the first communication device and the second communication device is less than a predetermined distance, the first network related information related to the first wireless network is obtained via the second interface. A first network-related information transmitting unit configured to transmit to the second communication device, wherein the first wireless network is a network for executing wireless communication via the first interface; 1 network-related information transmitter,
A first connection request receiving unit that receives a first wireless connection request from the second communication device that has received the first network-related information via the first interface;
In response to receiving the first wireless connection request from the second communication device, the first wireless connection via the first interface is made using the first network related information. A first establishing unit that establishes the first wireless network to which both the first communication device and the second communication device belong;
A device identification information receiving unit for receiving second device identification information for identifying the second communication device from the second communication device;
A storage control unit for storing 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 transmitted from the third communication device via the second interface. A specific information receiving unit for receiving 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;
When 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 obtained via the second interface. If the third device identification information is determined not to match the second device identification information, the second network related information is transmitted to the second communication device matching the third communication device. A second network-related information transmitting unit that does not transmit to the third communication device, wherein the second wireless network is a network for performing wireless communication via the first interface; The network relation information of 2 is different from the first network relation information, the second network relation information transmission unit,
A second connection request receiving unit that receives a second wireless connection request from the second communication device that has received the second network-related information via the first interface;
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 establishing unit that establishes the second wireless network to which both the first communication device and the second communication device belong,
A first communication device comprising:
前記第1の通信機器は、さらに、
前記第2の通信方式の論理リンクを確立するための最上位層の通信を実行せずに、前記最上位層よりも下位である下位層の通信を実行して、前記第2のインターフェースを介して、所定信号を送信することを繰り返す所定信号送信部を備え、
前記特定情報受信部は、前記所定信号を受信した前記第3の通信機器から、前記第2のインターフェースを介して、前記特定情報を受信する、請求項1に記載の第1の通信機器。
The first communication device further includes:
Without executing communication of the highest layer for establishing a logical link of the second communication method, communication of a lower layer that is lower than the highest layer is executed, and via the second interface A predetermined signal transmission unit that repeats transmitting the predetermined signal,
2. The first communication device according to claim 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.
前記第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の通信機器。
The first communication device further includes:
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 second interface. With
The first network-related information transmitting unit is
When the first distance information indicates that the distance between the first communication device and the second communication device is less than the predetermined distance, the first distance information is sent via the second interface. 1 network-related 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 network related information is set to the second network information. Do not send to communication equipment,
The specific information receiving unit receives second distance information related to a 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 claim 1, wherein the specific information is received.
前記距離情報受信部は、前記第1の通信機器と前記第2の通信機器との間に確立される前記第2の通信方式の論理リンクを利用して、前記第2の通信機器から、前記第2のインターフェースを介して、前記第1の距離情報を受信し、
前記特定情報受信部は、前記第1の通信機器と前記第3の通信機器との間に確立される前記第2の通信方式の論理リンクを利用して、前記第3の通信機器から、前記第2のインターフェースを介して、前記第2の距離情報である前記特定情報を受信する、請求項3に記載の第1の通信機器。
The distance information receiving unit uses the logical link of the second communication method established between the first communication device and the second communication device, from the second communication device, Receiving the first distance information via a second interface;
The specific information receiving unit uses the logical link of the second communication method established between the first communication device and the third communication device, from the third communication device, 4. The first communication device according to claim 3, wherein the specific information that is the second distance information is received via a second interface. 5.
前記機器識別情報受信部は、前記第2の通信機器から、前記第2のインターフェースを介して、前記第2の機器識別情報を受信する、請求項1から請求項4のいずれか一項に記載の第1の通信機器。   5. The device identification information receiving unit according to claim 1, wherein the device identification information receiving unit receives the second device identification information from the second communication device via the second interface. 6. The first communication device. 前記第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の通信機器。
The second interface is
A first type interface for performing wireless communication according to a first type of communication method of the second communication methods;
A second type of communication method of the second communication methods, a second type for executing wireless communication according to the second type of communication method different from the first type of communication method. A distance at which wireless communication through the second type interface can be performed is smaller than a distance at which wireless communication through the first type interface can be performed; and With
The first network-related information transmitting unit is configured so that the distance between the first communication device and the second communication device is less than the predetermined distance via the second type interface. Transmitting first network related information to the second communication device;
The specific information receiving unit is configured so that the distance between the first communication device and the third communication device is larger than the predetermined distance from the third communication device via the first type interface. And receiving the specific information,
When it is determined that the third device identification information matches the second device identification information, the second network-related information transmission unit transmits the second network via the first type interface. The first communication device according to claim 1, wherein the relationship information is transmitted to the second communication device that matches the third communication device.
前記機器識別情報受信部は、前記第1の無線ネットワークを利用して、前記第2の通信機器から、前記第1のインターフェースを介して、前記第2の機器識別情報を受信する、請求項6に記載の第1の通信機器。   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. 1st communication apparatus. 前記特定情報受信部は、前記第3の通信機器から、前記第1種のインターフェースを介して、ネットワーク関係情報を要求するための所定要求である前記特定情報を受信し、
前記第2のネットワーク関係情報送信部は、前記第3の機器識別情報が前記第2の機器識別情報に一致すると判断される場合に、前記第1種のインターフェースを介して、前記所定要求に対する応答であって、前記第2のネットワーク関係情報を含む前記応答を、前記第3の通信機器に一致する前記第2の通信機器に送信する、請求項6又は請求項7に記載の第1の通信機器。
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 transmission unit responds to the predetermined request via the first type interface when it is determined that the third device identification information matches the second device identification information. The first communication according to claim 6 or 7, wherein the response including the second network-related information is transmitted to the second communication device that matches the third communication device. machine.
前記特定情報受信部は、前記第1種の通信方式の論理リンクを確立するための最上位層の通信を実行せずに、前記最上位層よりも下位である下位層の通信を実行して、前記第3の通信機器から、前記第1種のインターフェースを介して、前記所定要求である前記特定情報を受信し、
前記第2のネットワーク関係情報送信部は、前記第3の機器識別情報が前記第2の機器識別情報に一致すると判断される場合に、前記最上位層の通信を実行せずに、前記下位層の通信を実行して、前記第1種のインターフェースを介して、前記応答を前記第3の通信機器に一致する前記第2の通信機器に送信する、請求項8に記載の第1の通信機器。
The specific information receiving unit executes communication of a lower layer that is lower than the highest layer without executing communication of the highest layer for establishing a logical link of the first type communication method. , Receiving the specific information as the predetermined request from the third communication device via the first type interface;
The second network-related information transmitting unit does not execute the communication of the highest layer when the third device identification information is determined to match the second device identification information. 9. The first communication device according to claim 8, wherein the response is transmitted to the second communication device that matches the third communication device via the first type interface. .
第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 computer program for a second communication device,
The second communication device is:
A first interface for executing wireless communication according to the first communication method;
A second interface for executing wireless communication according to a second communication method different from the first communication method;
And a processor,
The computer program causes the processor to execute the following processes:
In relation to the first wireless network from the first communication device 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. In the first network related information receiving process for receiving the first network related information, the first wireless network is a network for executing wireless communication via the first interface. A first network-related information reception process;
A first wireless connection request is transmitted 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 transmission 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 that establishes with the first communication device and forms the first wireless network to which both the first communication device and the second communication device belong;
A device identification information receiving process for receiving first device identification information for identifying the first communication device from the first communication device;
A storage control process 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 transmitted from the third communication device via the second interface. First predetermined signal reception processing for receiving a first predetermined signal including:
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;
When it is determined that the third device identification information matches the first device identification information, a first predetermined for requesting network related information related to a wireless network via the second interface When the request is transmitted to the first communication device that matches the third communication device, and 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 that does not transmit a predetermined request to the third communication device;
A second network related to a second wireless network from the first communication device via the second interface in response to transmitting the first predetermined request to the first communication device; A second network relationship information reception process for receiving relationship information, wherein the second wireless network is a network for executing wireless communication via the first interface; and the second network relationship The information is different from the first network related information, the second network related information receiving process,
A second wireless connection request is transmitted 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 transmission 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 that establishes with the first communication device and forms the second wireless network to which both the first communication device and the second communication device belong;
A computer program that executes
前記第1の所定信号受信処理では、前記第2の通信方式の論理リンクを確立するための最上位層の通信を実行せずに、前記最上位層よりも下位である下位層の通信を実行して、前記第3の通信機器から、前記第2のインターフェースを介して、前記第1の所定信号を受信する、請求項10に記載のコンピュータプログラム。   In the first predetermined signal reception process, communication in a lower layer that is lower than the highest layer is performed without performing communication in the highest layer for establishing a logical link of the second communication method. The computer program according to claim 10, wherein the first predetermined signal is received from the third communication device via the second interface. 前記第1の所定要求送信処理では、前記第3の機器識別情報が前記第1の機器識別情報に一致すると判断される場合に、前記第2の通信方式の論理リンクを確立するための最上位層の通信を実行せずに、前記最上位層よりも下位である下位層の通信を実行して、前記第2のインターフェースを介して、前記第1の所定要求を前記第3の通信機器に一致する前記第1の通信機器に送信し、
前記第2のネットワーク関係情報受信処理では、前記最上位層の通信を実行せずに、前記下位層の通信を実行して、前記第1の通信機器から、前記第2のインターフェースを介して、前記第2のネットワーク関係情報を受信する、請求項10又は請求項11に記載のコンピュータプログラム。
In the first predetermined request transmission process, when it is determined that the third device identification information matches the first device identification information, the highest level for establishing the logical link of the second communication method Without performing layer communication, perform lower layer communication lower than the uppermost layer, and pass the first predetermined request to the third communication device via the second interface. Send 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 the first communication device via the second interface, The computer program according to claim 10, wherein the computer program receives the second network-related information.
前記コンピュータプログラムは、前記プロセッサに、さらに、以下の各処理、即ち、
前記第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のいずれか一項に記載のコンピュータプログラム。
The computer program further performs the following processes on the processor:
A second predetermined signal receiving process for receiving a second predetermined signal including the first device identification information from the first communication device via the second interface;
A distance determination process for determining whether a distance between the first communication device and the second communication device is less than the predetermined distance using a radio wave intensity of the second predetermined signal;
When it is determined that the distance between the first communication device and the second communication device is less than the predetermined distance, network-related information related to a wireless network is obtained via the second interface. When a second predetermined request for requesting is transmitted to the first communication device, and 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 that does not transmit the second predetermined request to the first communication device,
In the first network-related information reception process, in response to transmitting the second predetermined request to the first communication device, from the first communication device via the second interface, The computer program according to any one of claims 10 to 12, which receives first network-related information.
前記機器識別情報受信処理では、前記第1の通信機器から、前記第2のインターフェースを介して、前記第1の機器識別情報を受信する、請求項10から請求項13のいずれか一項に記載のコンピュータプログラム。   14. The device identification information receiving process according to claim 10, wherein the first device identification information is received from the first communication device via the second interface. 15. Computer program. 前記第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のいずれか一項に記載のコンピュータプログラム。
The second interface is
A first type interface for performing wireless communication according to a first type of communication method of the second communication methods;
A second type of communication method of the second communication methods, a second type for executing wireless communication according to the second type of communication method different from the first type of communication method. A distance at which wireless communication through the second type interface can be performed is smaller than a distance at which wireless communication through the first type interface can be performed; and With
In the first network-related information reception process, the second communication device receives the second communication device from the first communication device in a state where 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 communication device receives the first type of signal from the third communication device in a state where the distance between the first communication device and the third communication device is larger than the predetermined distance. Receiving the predetermined signal including the third device identification information via an interface;
In the first predetermined request transmission process, when it is determined that the third device identification information matches the first device identification information, the predetermined request is transmitted through the first type interface. To the first communication device that matches the three communication devices,
The said 2nd network related information receiving process WHEREIN: The said 2nd network related information is received from the said 1st communication apparatus via the said 1st type interface. The computer program according to one item.
前記機器識別情報受信処理では、前記第1の無線ネットワークを利用して、前記第1の通信機器から、前記第1のインターフェースを介して、前記第1の機器識別情報を受信する、請求項15に記載のコンピュータプログラム。   16. The device identification information receiving process receives the first device identification information from the first communication device via the first interface using the first wireless network. A computer program described in 1. 第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の通信機器。
A second communication device,
A first interface for executing wireless communication according to the first communication method;
A second interface for executing wireless communication according to a second communication method different from the first communication method;
In relation to the first wireless network from the first communication device 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 receiving unit that receives the 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 unit;
A first wireless connection request is transmitted 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 transmission unit;
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 unit that establishes with the first communication device and forms the first wireless network to which both the first communication device and the second communication device belong;
A device identification information receiving unit for receiving first device identification information for identifying the first communication device from the first communication device;
A storage control unit 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 transmitted from the third communication device via the second interface. A first predetermined signal receiving unit for receiving a first predetermined signal including:
An identification information determination unit that determines whether or not the third device identification information in the first predetermined signal matches the first device identification information in the memory;
When it is determined that the third device identification information matches the first device identification information, a first predetermined for requesting network related information related to a wireless network via the second interface When the request is transmitted to the first communication device that matches the third communication device, and 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 a predetermined request to the third communication device;
A second network related to a second wireless network from the first communication device via the second interface in response to transmitting the first predetermined request to the first communication device; A second network relation information receiving unit for receiving relation information, wherein the second wireless network is a network for performing wireless communication via the first interface, and the second network relation The information is different from the first network related information, the second network related information receiving unit,
A second wireless connection request is transmitted 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 transmission unit;
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 the first communication device and forms the second wireless network to which both the first communication device and the second communication device belong;
A second communication device comprising:
JP2018196947A 2018-10-18 2018-10-18 Communication equipment Active JP6573018B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018196947A JP6573018B2 (en) 2018-10-18 2018-10-18 Communication equipment
JP2019149030A JP6927255B2 (en) 2018-10-18 2019-08-15 Communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018196947A JP6573018B2 (en) 2018-10-18 2018-10-18 Communication equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015066068A Division JP6421673B2 (en) 2015-03-27 2015-03-27 Communication equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019149030A Division JP6927255B2 (en) 2018-10-18 2019-08-15 Communication equipment

Publications (2)

Publication Number Publication Date
JP2019030024A true JP2019030024A (en) 2019-02-21
JP6573018B2 JP6573018B2 (en) 2019-09-11

Family

ID=65476732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018196947A Active JP6573018B2 (en) 2018-10-18 2018-10-18 Communication equipment

Country Status (1)

Country Link
JP (1) JP6573018B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013214803A (en) * 2012-03-30 2013-10-17 Brother Ind Ltd Communication device
JP2014168215A (en) * 2013-02-28 2014-09-11 Brother Ind Ltd Communication apparatus
JP2014192822A (en) * 2013-03-28 2014-10-06 Brother Ind Ltd Communication device
JP2015029262A (en) * 2013-06-28 2015-02-12 キヤノン株式会社 Communication system, communication terminal, information processing device, control method and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013214803A (en) * 2012-03-30 2013-10-17 Brother Ind Ltd Communication device
JP2014168215A (en) * 2013-02-28 2014-09-11 Brother Ind Ltd Communication apparatus
JP2014192822A (en) * 2013-03-28 2014-10-06 Brother Ind Ltd Communication device
JP2015029262A (en) * 2013-06-28 2015-02-12 キヤノン株式会社 Communication system, communication terminal, information processing device, control method and program

Also Published As

Publication number Publication date
JP6573018B2 (en) 2019-09-11

Similar Documents

Publication Publication Date Title
JP6421673B2 (en) Communication equipment
JP6406092B2 (en) Communication equipment
US10631155B2 (en) Communication apparatus
JP2013214801A (en) Communication device
JP2016005069A (en) Communication device
JP2017069721A (en) Communication apparatus
JP6879155B2 (en) Communication equipment and terminal equipment
JP6573018B2 (en) Communication equipment
JP7388491B2 (en) communication equipment
JP6927255B2 (en) Communication equipment
JP2016036190A (en) Communication device
JP7456470B2 (en) communication equipment
JP6919704B2 (en) Communication equipment
JP6638786B2 (en) Communication equipment
JP6398750B2 (en) Communication equipment
JP2019207479A (en) Computer program for communication device, and communication device
JP6601463B2 (en) Communication device
JP2018174433A (en) Communication device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181115

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181116

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190729

R150 Certificate of patent or registration of utility model

Ref document number: 6573018

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150