JP7568035B2 - Telecommunications Equipment - Google Patents
Telecommunications Equipment Download PDFInfo
- Publication number
- JP7568035B2 JP7568035B2 JP2023193869A JP2023193869A JP7568035B2 JP 7568035 B2 JP7568035 B2 JP 7568035B2 JP 2023193869 A JP2023193869 A JP 2023193869A JP 2023193869 A JP2023193869 A JP 2023193869A JP 7568035 B2 JP7568035 B2 JP 7568035B2
- Authority
- JP
- Japan
- Prior art keywords
- communication device
- interface
- connection
- communication
- printer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004891 communication Methods 0.000 claims description 668
- 238000000034 method Methods 0.000 claims description 168
- 230000005540 biological transmission Effects 0.000 claims description 47
- 238000004590 computer program Methods 0.000 claims description 19
- 230000008054 signal transmission Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 description 82
- 230000015654 memory Effects 0.000 description 60
- 230000004044 response Effects 0.000 description 28
- 238000012545 processing Methods 0.000 description 14
- 238000007639 printing Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 4
- 230000007704 transition Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 108010025037 T140 peptide Proteins 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 102220321320 rs202148988 Human genes 0.000 description 1
- 102220093584 rs772221366 Human genes 0.000 description 1
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Description
本明細書では、複数の通信方式に従った無線通信を実行可能な通信機器を開示する。 This specification discloses a communication device capable of performing wireless communication according to multiple communication methods.
特許文献1には、第1端末と外部機器とがWi-Fiに従った無線通信を実行するための技術が開示されている。第1端末は、第1端末自身が接続されているAP(Access Pointの略)に関する情報(即ち、MACアドレス、SSID、チャネル番号、保安キー等)を、BLE(Bluetooth(登録商標) Low Energyの略)を介して、外部機器に送信する。この場合、外部機器は、Wi-Fiモジュールを活性化し、当該情報を利用してAPに接続する。これにより、第1端末と外部機器とがWi-Fiに従った無線通信を実行することができる。
特許文献1の技術では、外部機器がAPに接続されることをユーザが望んでいない状況であっても、APに関する情報がBLEを介して第1端末から外部機器に送信されると、外部機器がAPに接続されてしまう。
In the technology of
本明細書では、第1の通信機器と第2の通信機器との間において、第2の通信方式に従った無線通信が実行された後に、適切な状況で、第1の通信方式に従った無線接続が確立され得る技術を開示する。 This specification discloses a technique that, after wireless communication according to a second communication method is performed between a first communication device and a second communication device, a wireless connection according to a first communication method can be established in an appropriate situation.
本明細書によって開示される第1の通信機器は、Wi-Fi方式に従った無線通信を実行するためのWi-Fiインターフェースと、Bluetooth(登録商標)方式の4.0以降のバージョン従った無線通信を実行するためのBluetoothインターフェースと、前記Bluetoothインターフェースを介して、前記第1の通信機器を識別する識別情報を含むAdvertise信号を送信するAdvertise信号送信部と、前記Bluetoothインターフェースを介して、第2の通信機器から、前記Advertise信号に含まれる前記識別情報によって識別される前記第1の通信機器に対するBluetooth接続要求を受信する第1の要求受信部と、前記第2の通信機器から受信した前記Bluetooth接続要求に従って、前記Bluetoothインターフェースを介したBluetooth接続を前記第2の通信機器と確立する第1の確立部と、前記Wi-Fiインターフェースを介して、前記第1の通信機器の周囲に、親局として動作する前記第1の通信機器の存在を知らせるための第1の特定信号を送信する特定信号送信部と、前記第1の特定信号の送信後に、前記第2の通信機器を前記第1の通信機器が前記親局として所属するWi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための第1の接続情報を、前記Bluetoothインターフェースを介した前記Bluetooth接続を利用して、前記第2の通信機器に送信する第1の接続情報送信部と、前記第1の接続情報が前記第2の通信機器に送信され、かつ、前記第1の通信機器の状態が前記Wi-Fiネットワークにおいて前記親局として動作可能な状態である場合に、前記第2の通信機器から、前記Wi-Fiインターフェースを介して、前記Wi-Fiネットワークを識別するための第1のSSID(Service Set Identifierの略)を含む第1のWi-Fi接続要求を受信する第2の要求受信部と、前記第2の通信機器から前記第1のWi-Fi接続要求を受信すると、前記Wi-Fiのインターフェースを介した第1のWi-Fi接続を前記第2の通信機器と確立する第2の確立部と、前記第1の通信機器の状態が、前記親局として動作可能な状態から前記親局として動作しない状態に変更されると、前記第1の特定信号の送信を停止する停止部と、前記停止部が前記第1の特定信号の送信を停止した後、前記第1のSSIDと異なる第2のSSIDを生成する生成部と、を備え、前記特定信号送信部は、前記停止部が前記第1の特定信号の送信を停止した後に、前記第1の通信機器の状態が前記親局として動作しない状態から前記親局として動作可能な状態に変更されると、前記親局として動作する前記第1の通信機器の存在を知らせるための第2の特定信号を送信し、前記第2の要求受信部は、前記第2の特定信号の送信後に、前記第2の通信機器から、前記Wi-Fiインターフェースを介して、前記生成部によって生成された前記第2のSSIDを含む第2のWi-Fi接続要求を受信し、前記第2の確立部は、前記第2の通信機器から前記第2のWi-Fi接続要求を受信すると、前記Wi-Fiのインターフェースを介した第2のWi-Fi接続を前記第2の通信機器と確立する。
本明細書によって開示される他の第1の通信機器は、第1の通信方式に従った無線通信を実行するための第1のインターフェースと、前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、前記第1の通信機器と第2の通信機器との間の距離が所定距離未満である状態で、前記第2のインターフェースを介して、第1の無線ネットワークに関係する第1のネットワーク関係情報を前記第2の通信機器に送信する第1のネットワーク関係情報送信部であって、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記第1のネットワーク関係情報送信部と、前記第1のネットワーク関係情報を受信した前記第2の通信機器から、前記第1のインターフェースを介して、第1の無線接続要求を受信する第1の接続要求受信部と、前記第2の通信機器から前記第1の無線接続要求を受信することに応じて、前記第1のネットワーク関係情報を利用して、前記第1のインターフェースを介した第1の無線接続を前記第2の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立部と、前記第2の通信機器から、前記第2の通信機器を識別するための第2の機器識別情報を受信する機器識別情報受信部と、前記第2の機器識別情報を前記第1の通信機器のメモリに格納させる格納制御部と、前記第2の機器識別情報が前記メモリに格納された後に、第3の通信機器から、前記第2のインターフェースを介して、前記第3の通信機器を識別するための第3の機器識別情報を含む特定情報を受信する特定情報受信部と、前記特定情報内の前記第3の機器識別情報が前記メモリ内の前記第2の機器識別情報に一致するのか否かを判断する識別情報判断部と、前記第3の機器識別情報が前記第2の機器識別情報に一致すると判断される場合に、前記第2のインターフェースを介して、第2の無線ネットワークに関係する第2のネットワーク関係情報を前記第3の通信機器に一致する前記第2の通信機器に送信し、前記第3の機器識別情報が前記第2の機器識別情報に一致しないと判断される場合に、前記第2のネットワーク関係情報を前記第3の通信機器に送信しない第2のネットワーク関係情報送信部であって、前記第2の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークであり、前記第2のネットワーク関係情報は、前記第1のネットワーク関係情報とは異なる、前記第2のネットワーク関係情報送信部と、前記第2のネットワーク関係情報を受信した前記第2の通信機器から、前記第1のインターフェースを介して、第2の無線接続要求を受信する第2の接続要求受信部と、前記第2の通信機器から前記第2の無線接続要求を受信することに応じて、前記第2のネットワーク関係情報を利用して、前記第1のインターフェースを介した第2の無線接続を前記第2の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第2の無線ネットワークを形成する第2の確立部と、を備える。
A first communication device disclosed in the present specification includes a Wi-Fi interface for performing wireless communication according to a Wi-Fi system, a Bluetooth interface for performing wireless communication according to version 4.0 or later of the Bluetooth (registered trademark) system, an Advertise signal transmitting unit for transmitting an Advertise signal including identification information for identifying the first communication device via the Bluetooth interface, a first request receiving unit for receiving, from a second communication device via the Bluetooth interface, a Bluetooth connection request for the first communication device identified by the identification information included in the Advertise signal, and a first establishment unit for establishing a Bluetooth connection with the second communication device via the Bluetooth interface in accordance with the Bluetooth connection request received from the second communication device. a specific signal transmission unit that transmits a first specific signal for notifying a periphery of the first communication device of the presence of the first communication device operating as a master station via the Wi-Fi interface; a first connection information transmission unit that transmits, after transmitting the first specific signal, to the second communication device by utilizing a Bluetooth connection via the Bluetooth interface, first connection information for enabling the second communication device to connect to a Wi-Fi network to which the first communication device belongs as the master station via the Wi-Fi interface; and a first SSID (Service Set Identifier) for identifying the Wi-Fi network, from the second communication device via the Wi-Fi interface when the first connection information is transmitted to the second communication device and the state of the first communication device is operable as the master station in the Wi-Fi network. a second establishment unit that, when receiving the first Wi-Fi connection request from the second communication device, establishes a first Wi-Fi connection with the second communication device via an interface of the Wi-Fi; a stop unit that, when a state of the first communication device is changed from a state operable as the master station to a state in which the first communication device does not operate as the master station, stops transmission of the first specific signal; and a generation unit that generates a second SSID different from the first SSID after the stop unit stops transmission of the first specific signal, and the specific signal transmission unit generates a second SSID different from the first SSID after the stop unit stops transmission of the first specific signal. When the state of the first communication device is changed from a state in which it is not operating as a parent station to a state in which it is capable of operating as a parent station after being stopped, a second specific signal is transmitted to notify the presence of the first communication device operating as the parent station, and after transmitting the second specific signal, the second request receiving unit receives a second Wi-Fi connection request including the second SSID generated by the generation unit from the second communication device via the Wi-Fi interface, and upon receiving the second Wi-Fi connection request from the second communication device, the second establishment unit establishes a second Wi-Fi connection with the second communication device via the Wi-Fi interface.
Another first communication device disclosed in this specification includes a first interface for performing wireless communication according to a first communication method, a second interface for performing wireless communication according to a second communication method different from the first communication method, and a first network related information transmission unit that transmits first network related information related to a first wireless network to the second communication device via the second interface when a distance between the first communication device and a second communication device is less than a predetermined distance, the first wireless network being a network for performing wireless communication via the first interface, and a second communication device that receives the first network related information. a first connection request receiving unit that receives a first wireless connection request from a third communication device via the first interface; a first establishing unit that, in response to receiving the first wireless connection request from the second communication device, establishes a first wireless connection with the second communication device via the first interface by using the first network related information to form the first wireless network to which both the first communication device and the second communication device belong; a device identification information receiving unit that receives second device identification information for identifying the second communication device from the second communication device; a storage control unit that stores the second device identification information in a memory of the first communication device; and a storage control unit that receives, from a third communication device, an identification information receiving unit that receives, via a second interface, identification information including third device identification information for identifying the third communication device; an identification information determining unit that determines whether the third device identification information in the identification information matches the second device identification information in the memory; and a second network related information transmitting unit that, when it is determined that the third device identification information matches the second device identification information, transmits second network related information related to a second wireless network to the second communication device that matches the third communication device via the second interface, and, when it is determined that the third device identification information does not match the second device identification information, does not transmit the second network related information to the third communication device, the second network is a network for performing wireless communication via the first interface, and the second network related information is different from the first network related information; a second connection request receiving unit that receives a second wireless connection request via the first interface from the second communication device that has received the second network related information; and a second establishment unit that, in response to receiving the second wireless connection request from the second communication device, uses the second network related information to establish a second wireless connection with the second communication device via the first interface, thereby forming 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 transmits the first network related information to the second communication device via the second interface when the distance between the first communication device and the second communication device is less than a predetermined distance, i.e., when it is highly likely that the user desires to establish a wireless connection according to the first communication method. 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 specific information from the third communication device via the second interface, it determines whether the third device identification information in the specific information matches the second device identification information in the memory. Matching the third device identification information with the second device identification information means that the third communication device matches the second communication device with which the first wireless connection according to the first communication method was previously established. Therefore, when the third device identification information matches the second device identification information, it is highly likely that the user wants a wireless connection according to the first communication method to be established again. On the other hand, when the third device identification information does not match the second device identification information, it is highly unlikely that the user wants a wireless connection according to the first communication method to be established. Therefore, when the first communication device determines that the third device identification information does not match the second device identification information, it does not transmit the second network related information to the third communication device, and as a result, does not establish a wireless connection according to the first communication method with the third communication device. Then, when the first communication device determines that the third device identification information matches the second device identification information, it transmits the second network related information to the second communication device that matches the third communication device via the second interface. As a result, the first communication device can establish a second wireless connection according to the first communication method with the second communication device to form a second wireless network. In this way, the first communication device can establish a wireless connection according to the first communication method in an appropriate situation after performing wireless communication according to the second communication method.
上記の第1の通信機器を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。 The control method, computer program, and computer-readable recording medium storing the computer program for implementing the first communication device described above are also novel and useful.
本明細書で開示する第2の通信機器は、Wi-Fi方式に従った無線通信を実行するためのWi-Fiインターフェースと、Bluetooth(登録商標)方式の4.0以降のバージョンに従った無線通信を実行するためのBluetoothインターフェースと、前記Bluetoothインターフェースを介して、第1の通信機器から、前記第1の通信機器を識別する識別情報を含むAdvertise信号を受信するAdvertise信号受信部と、前記Bluetoothインターフェースを介して、前記Advertise信号に含まれる前記識別情報によって識別される前記第1の通信機器に対するBluetooth接続要求を前記第1の通信機器に送信する第1の要求送信部と、前記Bluetoothインターフェースを介したBluetooth接続を、前記Bluetooth接続要求を受信した前記第1の通信機器と確立する第1の確立部と、前記Wi-Fiインターフェースを介して、前記第1の通信機器から第1の特定信号を受信する受信部であって、前記第1の特定信号は、前記第1の通信機器の周囲に、親局として動作する前記第1の通信機器の存在を知らせるための信号である、特定信号受信部と、前記第1の通信機器から、前記第2の通信機器を前記第1の通信機器が所属するWi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための第1の接続情報を、前記Bluetoothインターフェースを介した前記Bluetooth接続を利用して受信する第1の接続情報受信部と、前記第1の通信機器から前記第1の接続情報が受信され、かつ、前記第1の通信機器の状態が前記Wi-Fiネットワークにおいて前記親局として動作可能な状態である場合に、前記Wi-Fiインターフェースを介して、前記Wi-Fiネットワークを識別するための第1のSSID(Service Set Identifierの略)を含む第1のWi-Fi接続要求を前記第1の通信機器に送信する第2の要求送信部と、前記第1のWi-Fi接続要求を前記第1の通信機器に送信すると、前記Wi-Fiインターフェースを介した第1のWi-Fi接続を前記第1の通信機器と確立する第2の確立部であって、前記第1の通信機器の状態が、前記親局として動作可能な状態から前記親局として動作しない状態に変更されると、前記第1の通信機器により前記第1の特定信号の送信が停止され、前記第1の特定信号の送信が停止された後、前記第1の通信機器によって前記第1のSSIDと異なる第2のSSIDが生成される、前記第2の確立部と、を備え、前記特定信号受信部は、前記第1の特定信号の送信を停止した後に、前記第1の通信機器の状態が前記親局として動作しない状態から前記親局として動作可能な状態に変更されると、前記Wi-Fiインターフェースを介して、前記第1の通信機器から第2の特定信号を受信し、前記第2の特定信号は、前記第1の通信機器の周囲に、親局として動作する前記第1の通信機器の存在を知らせるための信号であり、前記第2の要求送信部は、前記第2の特定信号の受信後に、前記Wi-Fiインターフェースを介して、前記第2のSSIDを含む第2のWi-Fi接続要求を前記第1の通信機器に送信し、前記第2の確立部は、前記第2のWi-Fi接続要求を前記第1の通信機器に送信すると、前記Wi-Fiインターフェースを介した第2のWi-Fi接続を前記第1の通信機器と確立する。
本明細書では、他の第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の確立処理と、を実行させる。
The second communication device disclosed in the present specification includes a Wi-Fi interface for performing wireless communication according to the Wi-Fi system, a Bluetooth interface for performing wireless communication according to version 4.0 or later of the Bluetooth (registered trademark) system, an Advertise signal receiving unit for receiving an Advertise signal including identification information for identifying the first communication device from a first communication device via the Bluetooth interface, a first request transmitting unit for transmitting a Bluetooth connection request to the first communication device via the Bluetooth interface, the Bluetooth connection request being directed to the first communication device identified by the identification information included in the Advertise signal, and a first establishing unit for establishing a Bluetooth connection via the Bluetooth interface with the first communication device that has received the Bluetooth connection request. a specific signal receiving unit that receives a first specific signal from the first communication device via a Bluetooth interface, the first specific signal being a signal for informing surroundings of the first communication device of the presence of the first communication device operating as a master station; a first connection information receiving unit that receives, from the first communication device, first connection information for enabling the second communication device to connect to a Wi-Fi network to which the first communication device belongs via the Wi-Fi interface, by utilizing a Bluetooth connection via the Wi-Fi interface; and a first SSID (Service Set Identifier) for identifying the Wi-Fi network, transmitted via the Wi-Fi interface when the first connection information is received from the first communication device and the state of the first communication device is operable as the master station in the Wi-Fi network. a second request transmitting unit configured to transmit a first Wi-Fi connection request including a Wi-Fi Identifier (abbreviation for Network Identifier) to the first communication device, and a second establishing unit configured to establish a first Wi-Fi connection with the first communication device via the Wi-Fi interface when the first Wi-Fi connection request is transmitted to the first communication device, wherein when a state of the first communication device is changed from a state in which it is operable as a master station to a state in which it is not operable as a master station, the first communication device stops transmitting the first specific signal, and after the transmission of the first specific signal is stopped, the first communication device generates a second SSID different from the first SSID, and the specific signal receiving unit, after stopping the transmission of the first specific signal, When the state of the first communication device is changed from a state in which it is not operating as a parent station to a state in which it is operable as a parent station, a second specific signal is received from the first communication device via the Wi-Fi interface, the second specific signal being a signal for notifying those around the first communication device of the presence of the first communication device operating as a parent station, and after receiving the second specific signal, the second request transmission unit transmits a second Wi-Fi connection request including the second SSID to the first communication device via the Wi-Fi interface, and upon sending the second Wi-Fi connection request to the first communication device, the second establishment unit establishes a second Wi-Fi connection with the first communication device via the Wi-Fi interface.
This specification also discloses a computer program for another second communication device. The second communication device includes a first interface for performing wireless communication according to a first communication method, a second interface for performing wireless communication according to a second communication method different from the first communication method, and a processor. The computer program causes the processor to perform the following processes: a first network related information receiving process for receiving first network related information related to a first wireless network from the first communication device via the second interface when a distance between the first communication device and the second communication device is less than a predetermined distance, the first wireless network being a network for performing wireless communication via the first interface; a first connection request transmitting process for transmitting a first wireless connection request to the first communication device via the first interface in response to receiving the first network related information from the first communication device; and a second connection request transmitting process for transmitting the first wireless connection request to the first communication device in response to transmitting the first wireless connection request to the first communication device. a first establishment process for establishing a first wireless connection with the first communication device via the first interface by using the first network relation information, thereby forming the first wireless network to which both the first communication device and the second communication device belong; a device identification information reception 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; a first predetermined signal reception process for receiving a first predetermined signal including third device identification information for identifying the third communication device from a third communication device via the second interface after the first device identification information is stored in the memory; a first predetermined request transmission process for transmitting a first predetermined request for requesting network related information related to a wireless network to the first communication device corresponding to the third communication device via the second interface when it is determined that the third device identification information matches the first device identification information, and not transmitting the first predetermined request to the third communication device when it is determined that the third device identification information does not match the first device identification information; and a second network related information reception process for receiving second network related information 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, The network is a network for performing wireless communication via the first interface, and the second network related information is different from the first network related information. The network executes: a second network related information receiving process, a second connection request sending process for sending a second wireless connection request to the first communication device via the first interface in response to receiving the second network related information from the first communication device; and a second establishment process for establishing a second wireless connection with the first communication device via the first interface using the second network related information in response to sending the second wireless connection request to the first communication device, thereby forming the second wireless network to which both the first communication device and the second communication device belong.
上記のコンピュータプログラムは、以下の第2の通信機器を実現することができる。即ち、第2の通信機器は、第1の通信機器と第2の通信機器との間の距離が所定距離未満である状態、即ち、ユーザが第1の通信方式に従った無線接続が確立されることを望んでいる可能性が高い状態において、第1の通信機器から第2のインターフェースを介して第1のネットワーク関係情報を受信する。これにより、第2の通信機器は、第1の通信方式に従った第1の無線接続を第1の通信機器と確立して、第1の無線ネットワークを形成することができる。そして、第2の通信機器は、第1の通信機器から第1の機器識別情報を受信してメモリに格納させる。その後、第2の通信機器は、第3の通信機器から第2のインターフェースを介して第1の所定信号を受信する場合に、第1の所定信号内の第3の機器識別情報がメモリ内の第1の機器識別情報に一致するのか否かを判断する。第3の機器識別情報が第1の機器識別情報に一致するということは、第3の通信機器が、第1の通信方式に従った第1の無線接続が過去に確立された第1の通信機器に一致することを意味する。従って、ユーザが第1の通信方式に従った無線接続が再び確立されることを望んでいる可能性が高い。一方、第3の機器識別情報が第1の機器識別情報に一致しない場合には、ユーザが第1の通信方式に従った無線接続が確立されることを望んでいる可能性が低い。従って、第2の通信機器は、第3の機器識別情報が第1の機器識別情報に一致しないと判断する場合には、第1の所定要求を第3の通信機器に送信せず、この結果、第1の通信方式に従った無線接続を第3の通信機器と確立しない。そして、第2の通信機器は、第3の機器識別情報が第1の機器識別情報に一致すると判断する場合には、第2のインターフェースを介して第1の所定要求を第3の通信機器に一致する第1の通信機器に送信する。これにより、第2の通信機器は、第1の通信機器から第2のインターフェースを介して第2のネットワーク関係情報を受信し、第1の通信方式に従った第2の無線接続を第1の通信機器と確立して、第2の無線ネットワークを形成することができる。このように、第2の通信機器は、第2の通信方式に従った無線通信を実行した後に、適切な状況で、第1の通信方式に従った無線接続を確立し得る。 The above computer program can realize the following second communication device. That is, the second communication device receives first network related information 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, that is, in a state where it is highly likely that the user desires to establish a wireless connection according to the first communication method. As a result, the second communication device can establish a first wireless connection according to the first communication method with the first communication device to form a first wireless network. Then, the second communication device receives first device identification information from the first communication device and stores it in the memory. Thereafter, when the second communication device receives a first predetermined signal from the third communication device via the second interface, it determines whether the third device identification information in the first predetermined signal matches the first device identification information in the memory. The fact that the third device identification information matches the first device identification information means that the third communication device matches the first communication device with which the first wireless connection according to the first communication method was previously established. Therefore, it is highly likely that the user wants the wireless connection according to the first communication method to be established again. On the other hand, if the third device identification information does not match the first device identification information, it is low that the user wants the wireless connection according to the first communication method to be established. Therefore, if the second communication device determines that the third device identification information does not match the first device identification information, it does not transmit the first predetermined request to the third communication device, and as a result, does not establish a wireless connection according to the first communication method with the third communication device. Then, if the second communication device determines that the third device identification information matches the first device identification information, it transmits the first predetermined request via the second interface to the first communication device that matches the third communication device. This allows the second communication device to receive second network related information from the first communication device via the second interface and establish a second wireless connection with the first communication device according to the first communication method to form a second wireless network. In this way, the second communication device can establish a wireless connection according to the first communication method in an appropriate situation after performing wireless communication according to the second communication method.
上記のコンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。また、上記の第2の通信機器そのものも新規で有用である。また、上記の第2の通信機器を実現するための制御方法も新規で有用である。また、上記の第1の通信機器と第2の通信機器とを備える通信システムも、新規で有用である。 The computer-readable recording medium storing the above computer program is also new and useful. The above second communication device itself is also new and useful. The control method for realizing the above second communication device is also new and useful. The communication system including the above first communication device and second communication device is also new and useful.
(第1実施例)
(通信システム2の構成)
図1に示されるように、通信システム2は、プリンタPRと、複数個の携帯端末PT1,PT2と、を備える。プリンタPRと各携帯端末PT1,PT2とは、無線通信を相互に実行可能である。
(First embodiment)
(Configuration of communication system 2)
1, the
(プリンタ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 the Printer PR)
The printer PR is a peripheral device capable of executing a printing function, that is, a peripheral device such as a portable terminal PT1. The printer PR includes an
操作部12は、複数のキーを備える。ユーザは、操作部12を操作することによって、様々な指示をプリンタPRに入力することができる。表示部14は、様々な情報を表示するためのディスプレイである。表示部14は、いわゆるタッチパネルとしても機能する。即ち、表示部14は、ユーザによって操作される操作部としても機能する。印刷実行部16は、インクジェット方式、レーザ方式等の印刷機構である。
The
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/
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 BT I/
クラシックBTとBLEとの相違点を記述しておく。BLEのチャネル数(即ち40)は、クラシックBTのチャネル数(即ち79)よりも少ない。BLEのデータ通信時の消費電流(例えば15mA)は、クラシックBTのデータ通信時の消費電流(例えば35mA)よりも小さい。従って、BLEの消費電力は、クラシックBTの消費電力よりも低い。また、BLEでは、Advertise信号が利用されるが、クラシックBTでは、Advertise信号が利用されない。 The differences between Classic BT and BLE are as follows. The number of channels in BLE (i.e. 40) is less than the number of channels in Classic BT (i.e. 79). The current consumption during data communication in BLE (e.g. 15 mA) is less than the current consumption during data communication in Classic BT (e.g. 35 mA). Therefore, the power consumption of BLE is lower than that of Classic BT. Also, Advertise signals are used in BLE, but Advertise signals are not used in Classic BT.
Wi-Fi方式とBT方式との相違点を記述しておく。Wi-Fi通信の通信速度(例えば最大の通信速度が600Mbps)は、BT通信の通信速度(例えば最大の通信速度が24Mbps)よりも速い。Wi-Fi通信における搬送波の周波数は、2.4GHz帯又は5.0GHz帯である。BT通信における搬送波の周波数は、2.4GHz帯である。即ち、Wi-Fi通信における搬送波の周波数として5.0GHz帯が採用される場合には、Wi-Fi通信における搬送波の周波数とBT通信における搬送波の周波数とは異なる。また、Wi-Fi通信を実行可能な最大の距離(例えば約100m)は、BT通信を実行可能な最大の距離(例えば約数十m)よりも大きい。 The differences between the Wi-Fi system and the BT system will now be described. The communication speed of Wi-Fi communication (for example, a maximum communication speed of 600 Mbps) is faster than the communication speed of BT communication (for example, a maximum communication speed of 24 Mbps). The carrier frequency in Wi-Fi communication is the 2.4 GHz band or the 5.0 GHz band. The carrier frequency in BT communication is the 2.4 GHz band. In other words, 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. In addition, the maximum distance at which Wi-Fi communication can be performed (for example, about 100 m) is greater than the maximum distance at which BT communication can be performed (for example, about several tens of meters).
制御部30は、CPU32と、メモリ34と、を備える。CPU32は、メモリ34に格納されているプログラム36に従って、様々な処理を実行する。メモリ34は、揮発性メモリ、不揮発性メモリ等によって構成される。メモリ34は、プリンタPRのBTデバイス名「NP」を格納する。BTデバイス名「NP」は、BTI/F22に割り当てられているユニークな名称であり、換言すると、プリンタPRがBT通信を実行するために、プリンタPRを識別するための情報として利用される名称である。なお、図1では、メモリ34が領域40を備えるように示されているが、当該領域40は、後述の第2及び第4実施例で利用される。
The
(携帯端末PT1,PT2の構成)
各携帯端末PT1,PT2は、例えば、携帯電話(例えばスマートフォン)、PDA、ノートPC、タブレットPC、携帯型音楽再生装置、携帯型動画再生装置等の可搬型の端末装置である。以下では、携帯端末PT1の構成を説明するが、携帯端末PT2も携帯端末PT1と同様の構成を備える。
(Configuration of portable terminals PT1 and PT2)
Each of the portable terminals PT1 and PT2 is, for example, a portable terminal device such as a mobile phone (for example, a smartphone), a PDA, a notebook PC, a tablet PC, a portable music player, a portable video player, etc. Below, the configuration of the portable terminal PT1 will be described, but the portable terminal PT2 also has a similar configuration to the 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
操作部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
制御部70は、CPU72とメモリ74とを備える。CPU72は、メモリ74に格納されているOSプログラム76に従って、様々な処理を実行する。メモリ74は、揮発性メモリ、不揮発性メモリ等によって構成される。メモリ74は、OSプログラム76のみならず、プリンタアプリケーション78を格納する。プリンタアプリケーション78は、プリンタPRに印刷機能を実行させるためのアプリケーションである。ユーザがプリンタPRに印刷機能を実行させることを望む際に、プリンタアプリケーション78がユーザによって起動される。プリンタアプリケーション78は、例えば、プリンタPRのベンダによって提供されるインターネット上のサーバから携帯端末PT1にインストールされてもよいし、プリンタPRと共に出荷されるメディアから携帯端末PT1にインストールされてもよい。
The
メモリ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
(プリンタPRの処理;図2)
続いて、図2を参照して、プリンタPRのCPU32が実行する処理について説明する。CPU32は、プリンタPRの電源がONされると、図2の処理を開始する。
(Printer PR processing; Figure 2)
Next, the process executed by the
S2では、CPU32は、ランダムに文字列を生成することによって、SSID(Service Set Identifierの略)を生成する。そして、CPU32は、SSIDをメモリ34に格納させる。SSIDは、Wi-Fi通信を実行するための無線ネットワークを識別するための識別子である。
In S2, the
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
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
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
S12では、CPU32は、BTI/F22を介して、Scan_Req信号の送信元の携帯端末にScan Response信号(以下では「Scan_Res信号」と記載する)を送信する。Scan_Res信号は、Scan_Req信号に対する応答信号であるユニキャスト信号であり、送信先を示す情報として携帯端末のBTデバイス名(即ち、Scan_Req信号内の送信元のBTデバイス名)を含むと共に、送信元を示す情報としてプリンタPRのBTデバイス名「NP」を含む。CPU32は、論理リンクを確立することなく、Scan_Res信号を送信する。即ち、論理リンクを確立するための最上位層の通信が実行されずに、当該最上位層よりも下位層の通信が実行されて、Scan_Res信号が通信される。
In S12, the
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
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
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
S16では、CPU32は、携帯端末から、Wi-FiI/F20を介して、現行SSIDを含むWi-Fi接続要求信号を受信する。Wi-Fi接続要求信号は、Wi-Fi方式に従った無線接続(以下では「Wi-Fi接続」と呼ぶ)の確立をプリンタPRに要求するための信号であり、具体的には、Association Request信号である。
In S16, the
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
上述したように、S18において、プリンタPRと携帯端末との間にWi-Fi接続が確立される。これにより、プリンタPRがG/O状態で動作し、かつ、携帯端末がいわゆるレガシーとして動作するWi-Fi方式の無線ネットワーク(以下では「Wi-Fiネットワーク」と記載する)が形成される。レガシーは、WFDに従った動作を実行することなく、Wi-Fiネットワークに参加する機器を意味する。G/O状態であるプリンタPRがWi-Fiネットワークを管理するので、G/O状態であるプリンタPRは、Wi-Fiネットワークの親局(換言するとマスタデバイス)であると言える。また、レガシーである携帯端末が当該Wi-Fiネットワークに参加するので、レガシーである携帯端末は、Wi-Fiネットワークの子局(換言するとスレーブデバイス)であると言える。 As described above, in S18, a Wi-Fi connection is established between the printer PR and the mobile terminal. This forms a Wi-Fi wireless network (hereinafter referred to as a "Wi-Fi network") in which the printer PR operates in a G/O state and the mobile terminal operates as a so-called legacy device. Legacy refers to a device that participates in a Wi-Fi network without performing operations according to WFD. Because the printer PR in the G/O state manages the Wi-Fi network, the printer PR in the G/O state can be said to be the parent station (in other words, the master device) of the Wi-Fi network. In addition, because a legacy mobile terminal participates in the Wi-Fi network, the legacy mobile terminal can be said to be a child 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に戻る。
Then, the
また、S30では、CPU32は、Wi-Fiネットワークを利用して、携帯端末から、Wi-FiI/F20を介して、切断信号を受信したのか否かを判断する。切断信号は、Wi-Fi接続の切断を要求するための信号である。従って、切断信号が受信される場合(S30でYES)には、プリンタPRと携帯端末との間のWi-Fi接続が切断され、S32に進む。
Also, in S30, the
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
(携帯端末PT1の処理;図3)
続いて、図3を参照して、携帯端末PT1のCPU72が実行する処理について説明する。なお、携帯端末PT2も同様の処理を実行可能である。CPU72は、プリンタアプリケーション78を起動するための操作が携帯端末PT1に実行されると、プリンタアプリケーション78に従って、図3の処理を開始する。なお、携帯端末PT1に対する操作は、操作部52に実行されてもよいし、表示部54(即ちタッチパネル)に実行されてもよい。この点は、以下でも同様である。
(Processing of the portable terminal PT1; FIG. 3)
Next, the process executed by the
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
S52では、CPU72は、受信済みのAdvertise信号内のBTデバイス名(即ち受信済みのBTデバイス名)がBTデバイス名格納領域80に格納されているのか否かを判断する。上述したように、BTデバイス名格納領域80は、確立済みプリンタのBTデバイス名を格納する。従って、S52の判断は、Advertise信号の送信元のプリンタPRが確立済みプリンタであるのか否かを判断することを意味する。CPU72は、受信済みのBTデバイス名がBTデバイス名格納領域80に格納されていると判断する場合(S52でYES)には、S60に進む。一方、CPU72は、受信済みのBTデバイス名がBTデバイス名格納領域80に格納されていないと判断する場合(S52でNO)には、S54に進む。
In S52, the
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
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
S64では、CPU72は、Wi-FiI/F60を介して、S62で受信されたScan_Res信号内のSSID(即ちプリンタPRの現行SSID)を含むWi-Fi接続要求信号をプリンタPRに送信する。これにより、Wi-Fi接続要求信号は、プリンタPRによって受信され得る(図2のS16参照)。
In S64, the
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
S70では、CPU72は、印刷指示操作がユーザによって携帯端末PT1に実行されたのか否かを判断する。印刷指示操作は、メモリ74に格納されている1個以上の画像ファイルの中から1個の画像ファイルを選択する操作と、印刷の実行を示すボタンを選択する操作と、を含む。ここで選択される画像ファイルが、プリンタPRで印刷されるべき画像を表わす印刷データである。CPU72は、印刷指示操作が実行される場合には、S70でYESと判断して、S72に進む。一方、CPU72は、S66が終了してから所定時間が経過するまでに印刷指示操作が実行されない場合、又は、キャンセルを示すボタンを選択する操作がユーザによって携帯端末PT1に実行される場合には、S70でNOと判断し、S72及びS74をスキップして、S80に進む。
In S70, the
S72では、CPU72は、Wi-Fiネットワークを利用して、Wi-FiI/F60を介して、印刷データをプリンタPRに送信する。これにより、印刷データによって表わされる画像の印刷をプリンタPRに実行させることができる(図2のS22参照)。
In S72, the
S74では、CPU72は、S62で受信されたScan_Res信号内のプリンタPRのBTデバイス名「NP」をBTデバイス名格納領域80に格納させる。これにより、確立済みプリンタのBTデバイス名「NP」がBTデバイス名格納領域80に格納される。なお、S52でYESと判断された後にS74が実行される場合には、BTデバイス名「NP」がBTデバイス名格納領域80に既に格納されている。この場合、CPU72は、S74をスキップして、S80に進む。
In S74, the
S80では、CPU72は、プリンタPRへの印刷データの送信が完了する場合に、Wi-Fiネットワークを利用して、Wi-FiI/F60を介して、切断信号をプリンタPRに送信する。この結果、プリンタPRと携帯端末PT1との間のWi-Fi接続が切断される(図2のS30でYES参照)。S80が終了すると、S50に戻る。
In S80, when the transmission of print data to the printer PR is complete, the
(具体的なケース)
続いて、図4及び図5を参照して、図2及び図3の各処理によって実現される具体的なケースについて説明する。図4及び図5において、プリンタPRと携帯端末PT1,PT2との間の太線矢印、細線矢印は、それぞれ、Wi-Fi通信、BT通信を示す。この点は、後述の第2実施例以降でも同様である。
(Specific case)
Next, specific cases realized by the processes in Fig. 2 and Fig. 3 will be described with reference to Fig. 4 and Fig. 5. In Fig. 4 and Fig. 5, the thick arrow and thin arrow between the printer PR and the portable terminals PT1 and PT2 respectively indicate Wi-Fi communication and BT communication. This also applies to the second and subsequent examples described later.
(ケースA;図4)
ケースAの初期状態では、プリンタPRの電源がOFFされている。また、携帯端末PT1は、プリンタPRとのWi-Fi接続を過去に確立していない。即ち、携帯端末PT1のBTデバイス名格納領域80には、プリンタPRのBTデバイス名「NP」が格納されていない。
(Case A; Figure 4)
In the initial state of case A, the power supply of the printer PR is OFF. Furthermore, the portable terminal PT1 has not previously established a Wi-Fi connection with the printer PR. In other words, 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)。
At A0, the printer PR is powered on by the user. In this case, the printer PR generates the SSID "X1" at T2 (S2 in FIG. 2), and at T4 changes the BT I/
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接続が確立されない。 At A1, the user executes an operation on the portable terminal PT1 to start the printer application 78. At this point, the distance between the printer PR and the portable terminal PT1 is equal to or greater than a threshold value (i.e., 1 m). In this case, when the portable terminal PT1 receives an Advertise signal from the printer PR (YES in S50 in FIG. 3), it determines at T10 that the BT device name "NP" in the Advertise signal has not been stored (NO in S52), and further determines that the distance between the printer PR and the portable terminal PT1 is equal to or greater than a threshold value (NO in S54). In this case, the portable terminal PT1 does not send a Scan_Req signal to the printer PR (does not proceed to S60 if NO in S54). 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 wishes to have the printer PR execute printing, at A2, the user moves 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 portable terminal PT1 receives an Advertise signal from the printer PR (YES in S50 in FIG. 3), at T12, it determines that the BT device name "NP" in the Advertise signal has not been stored (NO in S52), and further determines that the distance between the printer PR and the portable terminal PT1 is less than the threshold value (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 destination, and includes the BT device name "N1" as information indicating the source.
プリンタPRは、携帯端末PT1からScan_Req信号を受信する場合に、T22において、Scan_Res信号を携帯端末PT1に送信する(図2のS10でYES、S12)。Scan_Res信号は、送信先を示す情報としてBTデバイス名「N1」を含むと共に、送信元を示す情報としてBTデバイス名「NP」を含む。また、Scan_Res信号は、SSID「X1」及びパスワード「PS」を含む。そして、T24では、プリンタPRは、Wi-FiI/F20をON状態に変更し、G/O状態に移行する(S14)。
When the printer PR receives a Scan_Req signal from the portable terminal PT1, in T22 it sends a Scan_Res signal to the portable terminal PT1 (YES in S10, S12 in FIG. 2). The Scan_Res signal includes the BT device name "N1" as information indicating the destination, and includes the BT device name "NP" as information indicating the source. The Scan_Res signal also includes the SSID "X1" and the password "PS". Then, in T24, the printer PR changes the Wi-Fi I/
携帯端末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 the portable terminal PT1 receives a Scan_Res signal from the printer PR (S62 in FIG. 3), in T30, it transmits a Wi-Fi connection request signal including the SSID "X1" in the Scan_Res signal to the printer PR (S64). When the Wi-Fi connection request signal is transmitted from the portable terminal PT1 to the printer PR, in T32, a Wi-Fi connection is established between the printer PR and the portable terminal PT1 (S18 in FIG. 2, S66 in FIG. 3). Note that in the process of T32, the printer PR receives network information including the SSID "X1" and password "PS" from the portable terminal PT1 and performs authentication of the network information. Since the authentication is successful in this case, a Wi-Fi connection with the portable terminal PT1 is established. As a result, a Wi-Fi network is formed in which the printer PR operates as a parent station and the portable terminal PT1 operates as a child 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 in FIG. 3). In this case, in T40, the portable terminal PT1 uses a Wi-Fi connection to send print data to the printer PR (S72), and in T42, stores the BT device name "NP" in the Scan_Res signal of T22 (S74).
プリンタPRは、携帯端末PT1から印刷データを受信する場合に、T44において、印刷データに従った印刷処理を実行する(図2のS22)。なお、プリンタPRがBT通信を利用して携帯端末PT1から印刷データを受信する構成が考えられる。ただし、印刷データのデータサイズが大きい可能性があり、さらに、BT通信の通信速度は、Wi-Fi通信の通信速度よりも遅い。従って、仮に、BT通信を利用して印刷データを通信する構成を採用すると、印刷データの通信に長時間を要し得る。これに対し、本実施例では、Wi-Fi通信を利用して印刷データを通信するので、印刷データを迅速に通信することができる。 When the printer PR receives print data from the portable terminal PT1, in T44 it executes a print process according to the print data (S22 in FIG. 2). Note that a configuration is conceivable in which the printer PR receives print data from the portable terminal PT1 using BT communication. 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 adopted in which the print data is communicated using BT communication, it may take a long time to communicate the print data. In contrast, in this embodiment, the print data is communicated using Wi-Fi communication, so the print data can be communicated quickly.
携帯端末PT1は、印刷データをプリンタPRに送信した後に、T50において、Wi-Fi接続を切断するための切断信号をプリンタPRに送信する(図3のS80)。これにより、プリンタPRと携帯端末PT1との間のWi-Fi接続が切断される。 After sending the print data to the printer PR, the portable terminal PT1 sends a disconnection signal to the printer PR to disconnect the Wi-Fi connection at T50 (S80 in FIG. 3). This disconnects the Wi-Fi connection between the printer PR and the portable terminal PT1.
プリンタPRは、携帯端末PT1から切断信号を受信した後(図2のS30でYES)に、T52において、G/O状態からデバイス状態に移行し、Wi-FiI/F20をOFF状態に変更し、SSID「X1」とは異なるSSID「X2」を生成する(S32)。T52が実行されるので、プリンタPRの消費電力を低減させることができる。
After receiving a disconnection signal from the portable terminal PT1 (YES in S30 in FIG. 2), the printer PR transitions from the G/O state to the device state in T52, changes the Wi-Fi I/
(ケースB1;図5)
図5のケースB1は、図4のケースAの続きであり、Wi-FiI/F20がOFF状態であり(図4のT52参照)、BTI/F22がON状態である(T4参照)。また、携帯端末PT1のBTデバイス名格納領域80には、確立済みプリンタであるプリンタPRのBTデバイス名「NP」が格納されている(T42参照)。
(Case B1; Figure 5)
Case B1 in Fig. 5 is a continuation of case A in Fig. 4, in which the Wi-Fi I/
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, the user performs an operation on the portable terminal PT1 to start the printer application 78. At this point, the distance between the printer PR and the portable terminal PT1 is equal to or greater than a threshold value. When the portable 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). Then, in T120, the portable terminal PT1 sends a Scan_Req signal to the printer PR (S60), even though the distance between the printer PR and the portable terminal PT1 is equal to or greater than the threshold value.
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. 4. However, they differ from case A in that SSID "X2" is used. Also, since the mobile terminal PT1 has already stored the BT device name "NP", the process equivalent to T42 in FIG. 4 is not executed. Also, in T152, an SSID "X3" is generated that is different from SSIDs "X1" and "X2".
(ケース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 to start a printer application (not shown) is executed by the user on the portable terminal PT2. At this point, the distance between the printer PR and the portable terminal PT2 is equal to or greater than a threshold value. When the portable terminal PT2 receives the Advertise signal T206 from the printer PR (YES in S50 of FIG. 3), it determines in T210 that the BT device name "NP" in the Advertise signal has not been stored (NO in S52), and further determines that the distance between the printer PR and the portable terminal PT2 is equal to or greater than a threshold value (NO in S54). In this case, the portable terminal PT2 does not send a Scan_Req signal to the printer PR (does not proceed to S60 if NO in S54). 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)。
(Effects of this embodiment)
When the portable terminal PT1 receives an Advertise signal from the printer PR (T6 in FIG. 4) in a state where the distance between the printer PR and the portable terminal PT1 is less than a threshold, that is, in a state where it is highly likely that the user wants a Wi-Fi connection to be established between the printer PR and the portable terminal PT1, the portable terminal PT1 transmits a Scan_Req signal to the printer PR (T20) and receives a Scan_Res signal (T22). This enables the portable terminal PT1 to establish a Wi-Fi connection with the printer PR using the network information in the Scan_Res signal and transmit print data to the printer PR (T30, T32, T40). The portable terminal PT1 then stores the BT device name "NP" of the printer PR, which is the 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 may receive an Advertise signal from an unconnected printer (not shown) to which a Wi-Fi connection has not been established with the portable terminal PT1. When the distance between the unconnected printer and the portable terminal PT1 is equal to or greater than a threshold, that is, when it is unlikely that the user wants a Wi-Fi connection to be established between the unconnected printer and the portable terminal PT1, the portable terminal PT1 does not send a Scan_Req signal to the unconnected printer even if it receives an Advertise signal from the unconnected printer (NO in S52 and NO in S54 in FIG. 4). 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 the portable terminal PT1 receives an Advertise signal from the printer PR, which is an established printer (T106 in FIG. 5), it 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, it is highly likely that the user wants a Wi-Fi connection to be re-established between the printer PR and the portable terminal PT1. Therefore, even though the distance between the printer PR and the portable terminal PT1 is equal to or greater than the threshold, the portable terminal PT1 sends a Scan_Req signal to the printer PR (T120) and receives a Scan_Res signal (T122). This allows the portable terminal PT1 to use the network information in the Scan_Res signal to re-establish a Wi-Fi connection with the printer PR and send print data to the printer PR (T130, T132, T140). In this way, after performing BT communication, the portable terminal PT1 can establish a Wi-Fi connection with the printer PR, which is an established printer, in an appropriate situation.
また、本実施例では、携帯端末PT1は、BT方式の論理リンクを確立することなく、Advertise信号の受信(例えば図5のT106)、Scan_Req信号の送信(T120)、及び、Scan_Res信号(T122)の受信を実行する。BT方式の論理リンクを確立せずに済むので、携帯端末PT1の処理負荷を軽減させ得る。 In addition, in this embodiment, the mobile terminal PT1 receives an Advertise signal (e.g., T106 in FIG. 5), transmits a Scan_Req signal (T120), and receives a Scan_Res signal (T122) without establishing a logical link in the BT system. Since there is no need to establish a logical link in the BT system, the processing load on the mobile terminal PT1 can be reduced.
(対応関係)
携帯端末PT1が、「第2の通信機器」の一例である。プリンタPRが、「第1の通信機器」及び「第3の通信機器」の一例である。プリンタPRのBTデバイス名「NP」が、「第1の機器識別情報」及び「第3の機器識別情報」の一例である。Wi-Fi方式、BT方式が、それぞれ、「第1の通信方式」、「第2の通信方式」の一例である。携帯端末PT1のWi-FiI/F60、BTI/F62が、それぞれ、「第1のインターフェース」、「第2のインターフェース」の一例である。図3のS54の閾値が、「所定距離」の一例である。図5のT106のAdvertise信号、図4のT6のAdvertise信号が、それぞれ、「第1の所定信号」、「第2の所定信号」の一例である。図4のT20のScan_Req信号、図5のT120のScan_Req信号が、それぞれ、「第1の所定要求」、「第2の所定要求」の一例である。図4のT22のScan_Res信号内のSSID「X1」及びパスワード「PS」が、「第1のネットワーク関係情報」の一例である。T30のWi-Fi接続要求信号、T32のWi-Fi接続が、それぞれ、「第1の無線接続要求」、「第1の無線接続」の一例である。図5のT122のScan_Res信号内のSSID「X2」及びパスワード「PS」が、「第2のネットワーク関係情報」の一例である。T130のWi-Fi接続要求信号、T132のWi-Fi接続が、それぞれ、「第2の無線接続要求」、「第2の無線接続」の一例である。
(Correspondence)
The portable terminal PT1 is an example of a "second communication device". The printer PR is an example of a "first communication device" and a "third communication device". The BT device name "NP" of the printer PR is an example of a "first device identification information" and a "third device identification information". The Wi-Fi method and the BT method are examples of a "first communication method" and a "second communication method", respectively. The Wi-Fi I/
(第2実施例)
第1実施例と異なる点を中心に説明する。本実施例では、携帯端末PT1は、BTデバイス名格納領域80を備えない。プリンタPRは、BTデバイス名格納領域40を備え、プリンタPRとのWi-Fi接続が確立された携帯端末(以下では「確立済み端末」と呼ぶ)のBTデバイス名を格納可能である。
Second Example
The following mainly describes the differences from the first embodiment. In this embodiment, the portable terminal PT1 does not have a BT device name storage area 80. The printer PR has a BT device
(プリンタPRの処理;図6)
プリンタPRのCPU32は、図2の処理に代えて、図6の処理を実行する。S2~S6は、図2と同様である。S100では、CPU32は、携帯端末から、BTI/F22を介して、BT接続要求を受信することを監視する。BT接続要求は、Advertise信号を受信した携帯端末から送信される信号であり、BT方式の論理リンク(即ちBT接続)の確立を要求するための信号である。BT接続要求は、ユニキャスト信号であり、送信先を示す情報としてプリンタPRのBTデバイス名「NP」を含むと共に、送信元を示す情報として携帯端末のBTデバイス名を含む。CPU32は、BT接続要求を受信した場合には、S100でYESと判断して、S102に進む。
(Printer PR processing; FIG. 6)
The
S102では、CPU32は、BTI/F22を介して、BT設定情報を携帯端末に送信し、BT設定情報を利用したペアリングを携帯端末と実行して、携帯端末とのBT接続を確立する。BT設定情報は、メモリ34に予め格納されている情報であり、BT接続を確立するための各種の情報(認証方式、暗号化方式、パスキー等)を含む。
In S102, the
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 in FIG. 2. In S110, the
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 S112, the
S114では、CPU32は、距離情報が「Near」を示すのか否かを判断する。CPU32は、距離情報が「Near」を示すと判断する場合(S114でYES)には、S116に進み、距離情報が「Far」を示すと判断する場合(S114でNO)には、S110に戻る。
In S114, the
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
(携帯端末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 the portable terminal PT1; FIG. 7)
The
S154では、CPU72は、BT接続を利用して、BTI/F62を介して、距離情報をプリンタPRに送信する送信処理を開始する(図6のS110でYES参照)。プリンタPRと携帯端末PT1との間の距離を特定する手法は、第1実施例と同様である。
In S154, the
S160では、CPU72は、BT接続を利用して、プリンタPRから、BTI/F62を介して、現行SSID及び所定のパスワードを含むネットワーク情報を受信することを監視する。CPU72は、ネットワーク情報を受信した場合には、S160でYESと判断して、S64に進む。S64~S80は、図3と同様である。ただし、本実施例では、図3のS74が実行されない。
In S160, the
(ケースC:図8)
続いて、図8及び図9を参照して、図6及び図7の各処理によって実現される具体的なケースについて説明する。図8のケースCの初期状態は、図4のケースAの初期状態と同様である。図4のケースAと異なる点を中心として、ケースCの内容を説明する。A0,A1,T2~T6は、図4と同様である。
(Case C: Figure 8)
Next, specific cases realized by the processes in Figures 6 and 7 will be described with reference to Figures 8 and 9. The initial state of case C in Figure 8 is similar to the initial state of case A in Figure 4. The contents of case C will be described with a focus on the differences from case A in Figure 4. A0, A1, and T2 to T6 are similar to those in Figure 4.
携帯端末PT1は、プリンタPRからAdvertise信号を受信する場合に、T13において、プリンタPRと携帯端末PT1との間の距離に関わらず、BT接続要求をプリンタPRに送信する(図7のS150)。 When the portable terminal PT1 receives an Advertise signal from the printer PR, at T13 it sends a BT connection request to the printer PR 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 the printer PR receives a BT connection request from the portable terminal PT1, in T14, the printer PR establishes a BT connection with the portable terminal PT1 (YES in S100, S102 in FIG. 6). T15 is the same as T24 in FIG. 4.
T16では、携帯端末PT1は、BT接続を利用して、距離情報をプリンタPRに送信する(図7のS154)。この時点では、プリンタPRと携帯端末PT1との間の距離が閾値以上である。従って、距離情報は、「Far」を示す。 At T16, the portable terminal PT1 uses the BT connection to send distance information to the printer PR (S154 in FIG. 7). At this point, the distance between the printer PR and the portable terminal PT1 is greater than or equal to the threshold. Therefore, the distance information indicates "Far."
プリンタPRは、携帯端末PT1からT16の距離情報を受信する場合に、T16Aにおいて、距離情報内のBTデバイス名「N1」を格納済みでないと判断し(図6のS112でNO)、さらに、距離情報が「Far」を示すと判断する(S114でNO)。この場合、プリンタPRは、ネットワーク情報を携帯端末PT1に送信しない(S114でNOの場合にS116に進まない)。この結果、プリンタPRと携帯端末PT1との間にWi-Fi接続が確立されない。 When the printer PR receives the distance information T16 from the portable terminal PT1, it determines in T16A that the BT device name "N1" in the distance information has not been stored (NO in S112 of FIG. 6), and further determines that the distance information indicates "Far" (NO in S114). In this case, the printer PR does not send network information to the portable terminal PT1 (does not proceed to S116 if NO in S114). 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 wishes to have the printer PR execute printing, at A2, the user moves the portable terminal PT1 closer to the printer PR. This causes the distance between the printer PR and the portable terminal PT1 to become less than the threshold value. In this case, at T18, the portable terminal PT1 uses the BT connection to send distance information indicating "Near" to the printer PR (S154 in FIG. 7).
プリンタPRは、携帯端末PT1からT18の距離情報を受信する場合に、T18Aにおいて、距離情報内の携帯端末PT1のBTデバイス名「N1」を格納済みでないと判断し(図6のS112でNO)、さらに、距離情報が「Near」を示すと判断する(S114でYES)。この場合、T19では、プリンタPRは、SSID「X1」及びパスワード「PS」を含むネットワーク情報を携帯端末PT1に送信する(S116)。T45を除くT30~T52は、図4と同様である。ただし、図4のT42が実行されない。また、T45では、プリンタPRは、T18の距離情報内のBTデバイス名「N1」を格納する(S120)。 When the printer PR receives the distance information of T18 from the portable terminal PT1, it determines in T18A that the BT device name "N1" of the portable terminal PT1 in the distance information has not been stored (NO in S112 of FIG. 6), and further determines that the distance information indicates "Near" (YES in S114). In this case, in T19, the printer PR sends network information including the SSID "X1" and password "PS" to the portable terminal PT1 (S116). T30 to T52, except for T45, are the same as in FIG. 4. However, T42 in FIG. 4 is not executed. Also, 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; Figure 9)
Case D1 in Fig. 9 is a continuation of case C in Fig. 8, in which the Wi-Fi I/
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. 8. When the printer PR receives distance information of T116 (i.e., distance information indicating "Far") from the portable terminal PT1, it determines in T116A that the BT device name "N1" in the distance information has already been stored (YES in S112 in FIG. 6). In this case, in T119, the printer PR sends network information including the SSID "X2" and 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 (S116). A13 and T130 to T152 are the same as FIG. 5.
(ケース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
プリンタPRは、携帯端末PT2からT216の距離情報を受信する場合に、T216Aにおいて、距離情報内のBTデバイス名「N2」がBTデバイス名格納領域40に格納されていないと判断し(S112でNO)、さらに、距離情報が「Far」を示すと判断する(S114でNO)。この場合、プリンタPRは、ネットワーク情報を携帯端末PT2に送信しない(S114でNOの場合にS116に進まない)。この結果、プリンタPRと携帯端末PT2との間にWi-Fi接続が確立されない。 When the printer PR receives the distance information of T216 from the portable terminal PT2, it determines in T216A that the BT device name "N2" in the distance information is not stored in the BT device name storage area 40 (NO in S112), and further determines that the distance information indicates "Far" (NO in S114). In this case, the printer PR does not send network information to the portable terminal PT2 (does not proceed to S116 if NO in S114). 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)。
(Effects of this embodiment)
The printer PR transmits network information to the portable terminal PT1 when the distance between the printer PR and the portable terminal PT1 is less than the threshold, i.e., when it is highly likely that the user wants a Wi-Fi connection to be established between the printer PR and the portable terminal PT1 (T19 in FIG. 8). This enables the printer PR to establish a Wi-Fi connection with the portable terminal PT1 and receive print data from the portable terminal PT1 (T30, T32, T40). The printer PR then stores the BT device name "N1" of the portable terminal PT1, which is the 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 a Wi-Fi connection has not been established (T216 in case D2 in FIG. 9). When the distance between the printer PR and the unconnected terminal (i.e., the portable terminal PT2) is equal to or greater than a threshold, that is, when it is unlikely that the user wants a Wi-Fi connection to be established with the unconnected terminal, the printer PR does not send network information to the unconnected terminal even if it receives distance information from the unconnected terminal (NO in S112 and NO in S114 in FIG. 6). As a result, the printer PR does not establish a Wi-Fi connection with the portable terminal PT2, which 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 the printer PR receives distance information from the portable terminal PT1 (T116 in case D1 of FIG. 9), it 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, it is highly likely that the user wants a Wi-Fi connection to be re-established between the printer PR and the portable terminal PT1. Therefore, the printer PR transmits network information to the printer PR (T119) even though the distance between the printer PR and the portable terminal PT1 is equal to or greater than the threshold value. This enables the printer PR to establish a Wi-Fi connection with the portable terminal PT1 and receive print data from the portable terminal PT1 (T130, T132, T140). In this way, after performing BT communication, the printer PR can establish a Wi-Fi connection with the portable terminal PT1, which is an established terminal, in an appropriate situation.
(対応関係)
プリンタPRが、「第1の通信機器」の一例である。携帯端末PT1が、「第2の通信機器」及び「第3の通信機器」の一例である。携帯端末PT1のBTデバイス名「N1」が、「第2の機器識別情報」及び「第3の機器識別情報」の一例である。プリンタPRのWi-FiI/F20、BTI/F22が、それぞれ、「第1のインターフェース」、「第2のインターフェース」の一例である。図7のS154の距離情報に含まれる「Near」と「Far」との境界の閾値(例えば3m)が、「所定距離」の一例である。Advertise信号が、「所定信号」の一例である。図8のT16(又はT18)の距離情報が、「第1の距離情報」の一例であり、図9のT116の距離情報が、「特定情報」及び「第2の距離情報」の一例である。図8のT19のネットワーク情報、図9のT119のネットワーク情報が、それぞれ、「第1のネットワーク関係情報」、「第2のネットワーク関係情報」の一例である。
(Correspondence)
The printer PR is an example of a "first communication device". The 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/
(第3実施例)
第1及び第2実施例と異なる点を中心に説明する。図1に示されるように、プリンタPRは、NFC方式に従った無線通信(以下では「NFC通信」と呼ぶ)を実行するためのNFCI/F24を備える。NFCI/F24は、メモリ26を備える。また、携帯端末PT1,PT2も、それぞれ、NFCI/F64を備える。本実施例では、携帯端末PT1がBTデバイス名格納領域80を備えており、プリンタPRがBTデバイス名格納領域40を備えていない。
(Third Example)
The following mainly describes the differences from the first and second embodiments. As shown in Fig. 1, the printer PR has an NFC I/
NFC方式は、いわゆる近距離無線通信のための無線通信方式であり、例えば、ISO/IEC21481又は18092の国際標準規格に基づく無線通信方式である。NFC通信の通信速度(例えば最大の通信速度が424Kbps)は、BT通信の通信速度(例えば最大の通信速度が24Mbps)よりも遅い。NFC通信における搬送波の周波数(例えば13.56MHz帯)は、Wi-Fi通信における搬送波の周波数(例えば2.4GHz帯又は5.0GHz帯)及びBT通信における搬送波の周波数(例えば2.4GHz帯)とは異なる。また、NFC通信を実行可能な最大の距離(例えば約10cm)は、BT通信を実行可能な最大の距離(例えば約数十m)よりも小さい。 The NFC method is a wireless communication method for so-called short-range wireless communication, and is a wireless communication method based on the international standard specifications of, for example, ISO/IEC 21481 or 18092. The communication speed of NFC communication (for example, a maximum communication speed of 424 Kbps) is slower than the communication speed of BT communication (for example, a maximum communication speed of 24 Mbps). The carrier frequency in NFC communication (for example, the 13.56 MHz band) is different from the carrier frequency in Wi-Fi communication (for example, the 2.4 GHz band or 5.0 GHz band) and the carrier frequency in BT communication (for example, the 2.4 GHz band). In addition, the maximum distance at which NFC communication can be performed (for example, about 10 cm) is shorter than the maximum distance at which BT communication can be performed (for example, about several tens of meters).
(プリンタPRの処理;図10)
プリンタPRのCPU32は、図2の処理に代えて、図10の処理を実行する。S2は、図2と同様である。S200では、CPU32は、BTI/F22をOFF状態からON状態に変更し、さらに、NFCI/F24をOFF状態からON状態に変更する(即ちNFCI/F24に電力が供給される)。S202では、CPU32は、S2で生成されたSSIDと、所定のパスワードと、をNFCI/F24に供給する。これにより、現行SSID及び所定のパスワードがNFCI/F24のメモリ26に格納される。S6は、図2と同様である。CPU32は、S210及びS212の各監視処理を順次実行することを繰り返す。
(Printer PR processing; FIG. 10)
The
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
S212では、CPU32は、携帯端末から、BTI/F22を介して、Scan_Req信号を受信することを監視する。CPU32は、Scan_Req信号を受信した場合には、S212でYESと判断して、S12に進む。S12~S18は、図2と同様である。
In S212, the
S20~S32は、図2と同様である。S240では、CPU32は、S32で生成されたSSIDと、所定のパスワードと、をNFCI/F24に供給する。これにより、NFCI/F24のメモリ26内の所定のパスワードは変更されないが、メモリ26内の現行SSIDが変更される。
S20 to S32 are the same as in FIG. 2. In S240, the
(携帯端末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
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
(ケース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 Fig. 10 and Fig. 11 will be described with reference to Fig. 12 and Fig. 13. Note that in Fig. 12 and Fig. 13, the thick arrow, thin arrow, and dashed arrow between the printer PR and the portable terminals PT1 and PT2 respectively indicate Wi-Fi communication, BT communication, and NFC communication. This also applies to the fourth embodiment described below. The initial state of case E in Fig. 12 is the same as the initial state of case A in Fig. 4. The contents of case E will be described, focusing on the differences from case A in Fig. 4.
プリンタPRは、電源がユーザによってONされる場合(A0)に、T302において、SSID「X1」を生成し(図10のS2)、T304において、BTI/F22及びNFCI/F24のそれぞれをON状態に変更し(S200)、T305において、SSID「X1」及びパスワード「PS」をNFCI/F24に供給する。A1及びT306は、図4のA1及びT6と同様である。
When the power is turned on by the user (A0), the printer PR generates an SSID "X1" in T302 (S2 in FIG. 10), changes the BT I/
携帯端末PT1は、プリンタPRからAdvertise信号を受信する場合に、T310において、Advertise信号内のBTデバイス名「NP」を格納済みでないと判断する(図11のS52でNO)。この場合、携帯端末PT1は、Scan_Req信号をプリンタPRに送信しない(S54でNOの場合にS60に進まない)。この結果、プリンタPRと携帯端末PT1との間にWi-Fi接続が確立されない。 When the portable terminal PT1 receives an Advertise signal from the printer PR, it determines in T310 that the BT device name "NP" in the Advertise signal has not been stored (NO in S52 of FIG. 11). In this case, the portable terminal PT1 does not send a Scan_Req signal to the printer PR (does not proceed to S60 if NO in S54). 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 wishes to have the printer PR perform printing, the user moves the portable terminal PT1 closer to the printer PR at A2. This makes the distance between the printer PR and the portable terminal PT1 less than the maximum distance at which NFC communication can be performed (e.g., 10 cm). 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 memory 26 of the NFC I/
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. 4. However, in T342, the portable terminal PT1 stores the BT device name "NP" received from the printer PR by the Wi-Fi communication in T334 (S74 in FIG. 11). In T354, the printer PR supplies the SSID "X2" and 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, in which the Wi-Fi I/
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 at S212, S12 to S18, S30 to S32 in FIG. 10, YES at S50, YES at S52, S60 to S80 in FIG. 11). At T454, the printer PR supplies the SSID "X3" and 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 in FIG. 5. When the portable terminal PT2 receives the Advertise signal T506 from the printer PR (YES in S50 in FIG. 11), it 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 send a Scan_Req signal to the printer PR (does not proceed to S60 if NO in S52). 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の処理負荷を軽減させ得る。
(Effects of this embodiment)
In this embodiment, similarly to 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 performing BT communication. In addition, since the portable terminal PT1 does not need to establish a BT logical link, the processing load of 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 a "first type of communication method" and a "second type of communication method", respectively. The BT I/
(第4実施例)
第3実施例と異なる点を中心に説明する。本実施例では、プリンタPRがBTデバイス名格納領域40を備えており、携帯端末PT1がBTデバイス名格納領域80を備えていない。
(Fourth Example)
The following mainly describes the differences from the third embodiment. In this embodiment, the printer PR has a BT device
(プリンタPRの処理;図14)
プリンタPRのCPU32は、図10の処理に代えて、図14の処理を実行する。S2、S200、S202、S6、S210、及び、S212は、図10と同様である。また、S210でYESの後のS14~S18は、図10と同様である。S18の後のS221では、CPU32は、Wi-Fi接続を利用して、携帯端末から、Wi-FiI/F20を介して、携帯端末のBTデバイス名を受信する。
(Printer PR processing; FIG. 14)
The
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
(携帯端末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
(ケース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 Fig. 11 and Fig. 14 will be described with reference to Fig. 12 and Fig. 15. In case E in Fig. 12, T334 is not executed, and T336 is executed instead. In T336, the portable terminal PT1 transmits the BT device name "N1" of the portable terminal PT1 to the printer PR using a Wi-Fi connection (S260 in Fig. 11). Also, 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 the Wi-Fi communication of T336 (S230 in Fig. 14).
(ケースG1;図15)
図15のケースG1は、図12のケースEの続きである。プリンタPRのBTデバイス名格納領域40には、確立済み端末である携帯端末PT1のBTデバイス名「N1」が格納されている(図12のT345参照)。図13のケースF1と異なる点を中心として、ケースG1を説明する。
(Case G1; Figure 15)
Case G1 in Fig. 15 is a continuation of case E in Fig. 12. The BT device name "N1" of the portable terminal PT1, which is an established terminal, is stored in the BT device
A11、T406~T420は、図13と同様である。T421では、プリンタPRは、Scan_Req信号内のBTデバイス名「N1」を格納済みであると判断する(図14のS213でYES)。この場合、T422では、プリンタPRは、プリンタPRと携帯端末PT1との間の距離が閾値以上であるにも関わらず、SSID「X2」及びパスワード「PS」を含むScan_Res信号を携帯端末PT1に送信する(S12)。A13、T424~T454は、図13と同様である。 A11 and T406 to T420 are the same as in FIG. 13. At T421, the printer PR determines that the BT device name "N1" in the Scan_Req signal has already been stored (YES in S213 in FIG. 14). In this case, at T422, the printer PR sends a Scan_Res signal including the SSID "X2" and 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 (S12). A13 and T424 to T454 are the same as in FIG. 13.
(ケース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
携帯端末PT2は、A15の操作が実行された後に、プリンタPRからT506のAdvertise信号を受信する場合(図11のS50でYES)に、T520において、プリンタPRと携帯端末PT2との間の距離が閾値以上であるにも関わらず、Scan_Req信号をプリンタPRに送信する。 When the portable terminal PT2 receives an Advertise signal of T506 from the printer PR after the operation of A15 is executed (YES in S50 of FIG. 11), it sends a Scan_Req signal to the printer PR in T520, even though the distance between the printer PR and the portable terminal PT2 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 the printer PR receives a Scan_Req signal from the portable terminal PT2, it determines in T521 that the BT device name "N2" in the Scan_Req signal has not been stored (NO in S213 of FIG. 14). In this case, the printer PR does not send the SSID "X2" etc. to the portable terminal PT2 (does not proceed to S12 if NO in S213). 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の処理負荷を軽減させ得る。
(Effects of this embodiment)
In this embodiment, as in the second embodiment, the printer PR can establish a Wi-Fi connection with the printer PR that is an already established printer in an appropriate situation after performing BT communication. Also, since the printer PR does not need to establish a BT logical link, the processing load of 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 BT I/
以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。 Although specific examples of the present invention have been described above in detail, these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and variations of the specific examples given above. Modifications of the above examples 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の通信方式の論理リンクを確立するための最上位層の通信を実行せずに通信されてもよいし、本変形例のように、論理リンクを利用して通信されてもよい。 (Variation 1) Instead of executing S60 and S62 in FIG. 3 or FIG. 11, the portable terminal PT1 may send a BT connection request to the printer PR, establish a BT connection with the printer PR, and then use the BT connection to receive the SSID and password from the printer PR. In this variation, the BT connection request is an example of a "first specified request" and a "second specified request". Generally speaking, the "first (or second) specified request" and the "first (or second) network related information" may be communicated without performing the highest layer communication to establish a logical link of the second communication method, as in the first and third embodiments above, or may be communicated using a logical link, as in this variation.
(変形例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信号が、「特定情報」の一例であり、「所定信号送信部」及び「距離情報受信部」を省略可能である。 (Variation 2) When the portable terminal PT1 repeatedly transmits the Advertise signal, the printer PR may not execute S6 in FIG. 6. In this case, when the printer PR receives an 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 been stored. When the printer PR determines that the BT device name "N1" has been stored, the printer PR may execute the processes from S116 onward. When the printer PR determines that the BT device name "N1" has not been stored, the printer PR may determine the distance between the printer PR and the portable terminal PT1 based on the radio wave intensity of the received Advertise signal, and determine whether or not the determined distance is less than a threshold value. When the printer PR determines that the determined distance is less than the threshold value, the printer PR executes the processes from S116 onward, and when the printer PR determines that the determined distance is equal to or greater than the threshold value, the printer PR may not execute the processes from S116 onward. In S116, the network information may be transmitted without establishing a 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信号が、「特定情報」及び「所定要求」の一例である。 (Variation 3) When the portable terminal PT1 repeatedly transmits the Advertise signal, the printer PR may not execute S6 in FIG. 14. In this case, when the printer PR receives an 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 been stored. When the printer PR determines that the BT device name "N1" has been stored, the printer PR may execute the processes from S12 onward, and when the printer PR determines that the BT device name "N1" has not been stored, the printer PR may not execute the processes from S12 onward. In S12, the network information may be transmitted without establishing a BT connection, or the network information may be transmitted after the BT connection is established. In this variation, 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の機器識別情報を受信してもよい。 (Variation 4) The portable terminal PT1 may receive the BT device name "NP" from the printer PR by NFC communication without executing S260 of the third embodiment in FIG. 11. That is, in the "device identification information reception process", the first device identification information may be received via the first interface as in the third embodiment above, or the first device identification information may be received via the second interface (particularly the second type of interface) as in this variation.
(変形例5)プリンタPRは、図14のS221を実行せずに、NFC通信によって携帯端末PT1からBTデバイス名「N1」を受信してもよい。即ち、「機器識別情報受信部」は、上記の第4実施例のように、第1のインターフェースを介して第2の機器識別情報を受信してもよいし、本変形例のように、第2のインターフェース(特に第2種のインターフェース)を介して第2の機器識別情報を受信してもよい。 (Variation 5) The printer PR may receive the BT device name "N1" from the portable terminal PT1 by NFC communication without executing S221 in FIG. 14. That is, the "device identification information receiving unit" may receive the second device identification information via the first interface as in the fourth embodiment above, or may receive the second device identification information via the second interface (particularly the second type of interface) as in this variation.
(変形例6)上記の各実施例では、プリンタPRから携帯端末PT1にSSID及びパスワードが送信される(例えば図2のS12)。これに代えて、プリンタPRは、SSIDを携帯端末PT1に送信するが、パスワードを携帯端末PT1に送信しなくてもよい。この場合、携帯端末PT1においてパスワード入力画面が表示されて、パスワードがユーザによって携帯端末PT1に入力される。本変形例では、SSIDのみが、「第1(又は第2)のネットワーク関係情報」の一例である。 (Variation 6) In each of the above embodiments, the printer PR sends the SSID and password to the portable terminal PT1 (for example, S12 in FIG. 2). Alternatively, the printer PR may send the SSID to the portable terminal PT1, but not the password to the portable terminal PT1. In this case, a password entry screen is displayed on the portable terminal PT1, and the password is entered into the portable terminal PT1 by the user. In this variation, only the SSID is an example of the "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内のメモリ)と、を備えていてもよく、各プロセッサが各メモリに格納されている各プログラムに従って処理を実行してもよい。
(Variation 7) The BT I/
(変形例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の通信機器に送信すればよい。
(Variation 8) In the third and fourth embodiments, in S202 and S240 in FIG. 10 and FIG. 14, the
(変形例9)各実施例では、プリンタPRは、例えば図2のS32において、Wi-FiI/F20をOFF状態に変更する。これに代えて、プリンタPRの電源がONされている間に、Wi-FiI/F20が常にON状態に維持されていてもよい。
(Variation 9) In each embodiment, the printer PR changes the Wi-Fi I/
(変形例10)プリンタPRは、WFDをサポートしていなくてもよく、その代わりに、いわゆるSoftAPをサポートしていてもよい。この場合、プリンタPRは、例えば図2のS14において、SoftAPを起動し、S32において、SoftAPを停止する。 (Variation 10) The printer PR may not support WFD, but may instead support a so-called SoftAP. In this case, the printer PR starts the SoftAP in S14 of FIG. 2, for example, and stops the SoftAP in S32.
(変形例11)「機器識別情報」は、プリンタPR又は携帯端末PT1等のBTデバイス名でなくてもよく、他の識別情報(例えば、MACアドレス、IPアドレス等)であってもよい。 (Variation 11) The "device identification information" does not have to be the BT device name of the printer PR or the portable terminal PT1, but may be other identification information (e.g., MAC address, IP address, etc.).
(変形例12)「第1のインターフェース」は、Wi-Fi通信を実行するためのI/Fでなくてもよく、無線LANを構築可能な他の通信方式に従った無線通信を実行するためのI/Fであってもよい。また、「第2のインターフェース」は、BT通信を実行するためのI/Fでなくてもよく、例えば、近距離無線通信を実行可能な他の通信方式(例えばTransferJet(登録商標)方式)に従った無線通信を実行するためのI/Fであってもよい。 (Variation 12) The "first interface" does not have to be an I/F for performing Wi-Fi communication, but may be an I/F for performing wireless communication according to another communication method capable of establishing a wireless LAN. The "second interface" does not have to be an I/F for performing BT communication, but may be, for example, an I/F for performing wireless communication according to another communication method capable of performing short-range wireless communication (for example, the TransferJet (registered trademark) method).
(変形例13)「第1の通信機器」は、プリンタPRでなくてもよく、例えば、スキャナであってもよい。この場合、スキャナは、例えば、図2のS20において、携帯端末PT1から印刷データを受信する代わりに、原稿のスキャンを実行することによって生成されるスキャンデータを携帯端末PT1に送信してもよい。また、「第1の通信機器」は、プリンタ及びスキャナとは異なる機器(例えば、コピー機、ファクシミリ、電話機、PC、サーバ、携帯端末等)であってもよい。また、「第2の通信機器」は、携帯端末でなくてもよく、他の機器(例えば、プリンタ、スキャナ、コピー機、ファクシミリ、電話機、デスクトップ型PC、サーバ等)であってもよい。 (Variation 13) The "first communication device" does not have to be a printer PR, and may be, for example, a scanner. In this case, for example, in S20 of FIG. 2, the scanner may transmit scan data generated by scanning an original to the portable terminal PT1, instead of receiving print data from the portable terminal PT1. The "first communication device" may also be a device different from the printer and scanner (for example, a copier, facsimile, telephone, PC, server, portable terminal, etc.). The "second communication device" does not have to be a portable terminal, and may be another device (for example, a printer, scanner, copier, facsimile, telephone, desktop PC, server, etc.).
(変形例14)各実施例では、プリンタPRのCPU32及び携帯端末PT1のCPU72がプログラム(即ちソフトウェア)を実行することによって、図2~図15の各処理が実現される。これに代えて、図2~図15の各処理のうちの少なくとも1つの処理は、論理回路等のハードウェアによって実現されてもよい。
(Variation 14) In each embodiment, the
また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。
(項目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の通信機器。
In addition, the technical elements described in this specification or drawings exert technical utility alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technologies exemplified in this specification or drawings achieve multiple objectives simultaneously, and achieving one of those objectives is itself technically useful.
(Item 1)
A first communication device,
a first interface for performing wireless communication according to a first communication method;
a second interface for performing wireless communication according to a second communication method different from the first communication method;
a first network related information transmission unit that transmits first network related information related to a first wireless network to the second communication device via the second interface when a distance between the first communication device and a second communication device is less than a predetermined distance, the first wireless network being a network for performing wireless communication via the first interface;
a first connection request receiving unit that receives a first wireless connection request via the first interface from the second communication device that has received the first network related information;
a first establishing unit that, in response to receiving the first wireless connection request from the second communication device, establishes a first wireless connection with the second communication device via the first interface by using the first network relation information, thereby forming the first wireless network to which both the first communication device and the second communication device belong;
a device identification information receiving unit that receives, from the second communication device, second device identification information for identifying the second communication device;
a storage control unit that stores the second device identification information in a memory of the first communication device;
an identification information receiving unit that receives, from a third communication device via the second interface after the second device identification information is stored in the memory, identification information including third device identification information for identifying the third communication device;
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;
a second network relationship information transmission unit that transmits second network relationship information related to a second wireless network to the second communication device that matches the third communication device via the second interface when it is determined that the third device identification information matches the second device identification information, and does not transmit the second network relationship information to the third communication device when it is determined that the third device identification information does not match the second device identification information, the second wireless network being a network for performing wireless communication via the first interface, and the second network relationship information being different from the first network relationship information;
a second connection request receiving unit that receives a second wireless connection request via the first interface from the second communication device that has received the second network related information;
a second establishing unit that, in response to receiving the second wireless connection request from the second communication device, establishes a second wireless connection with the second communication device via the first interface by using the second network relation information, thereby forming 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 comprises:
a predetermined signal transmission unit that performs communication in a lower layer that is lower than the highest layer without performing communication in a highest layer for establishing a logical link of the second communication method, and repeats transmitting a predetermined signal via the second interface;
2. The first communication device according to
(Item 3)
The first communication device further comprises:
a distance information receiving unit that receives first distance information relating to a distance between the first communication device and the second communication device from the second communication device via the second interface;
The first network related information transmission unit
sending the first network related information to the second communication device via the second interface when the first distance information indicates that a distance between the first communication device and the second communication device is less than the predetermined distance;
if the first distance information indicates that a distance between the first communication device and the second communication device is greater than the predetermined distance, not transmitting the first network related information to the second communication device;
The first communication device described in
(Item 4)
the distance information receiving unit receives the first distance information from the second communication device via the second interface by using a logical link of the second communication method established between the first communication device and the second communication device;
The first communication device described in item 3, wherein the specific information receiving unit receives the specific information, which is the second distance information, from the third communication device via the second interface by utilizing a logical link of the second communication method established between the first communication device and the third communication device.
(Item 5)
5. The first communication device according to
(Item 6)
The second interface includes:
a first type of interface for performing wireless communication according to a first type of communication method among the second communication methods;
a second type of interface for performing wireless communication according to a second type of communication method that is different from the first type of communication method, the second type of interface being a second type of communication method among the second type of communication methods, the second type of interface being shorter than a distance at which wireless communication via the second type of interface can be performed,
the first network related information transmission unit transmits the first network related information to the second communication device via the second type of interface when a distance between the first communication device and the second communication device is less than the predetermined distance;
the specific information receiving unit receives the specific information from the third communication device via the first type interface in a state in which a distance between the first communication device and the third communication device is greater than the predetermined distance;
The first communication device according to
(Item 7)
7. The first communication device according to claim 6, wherein the device identification information receiving unit receives the second device identification information from the second communication device via the first interface by using the first wireless network.
(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;
8. The first communication device according to
(Item 9)
the specific information receiving unit does not perform communication of a highest layer for establishing a logical link of the first type of communication method, but performs communication of a lower layer that is lower than the highest layer, and receives the specific information, which is the predetermined request, from the third communication device via the first type interface;
9. The first communication device according to item 8, wherein, when it is determined that the third device identification information matches the second device identification information, the second network related information transmission unit does not perform the communication at the highest layer, but performs the communication at the lower layer, and transmits the response 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, comprising:
The second communication device includes:
a first interface for performing wireless communication according to a first communication method;
a second interface for performing wireless communication according to a second communication method different from the first communication method;
A processor,
The computer program causes the processor to perform the following processes:
a first network related information receiving process for receiving first network related information related to a first wireless network from a first communication device via the second interface in a state where a distance between the first communication device and the second communication device is less than a predetermined distance, the first wireless network being a network for performing wireless communication via the first interface;
a first connection request transmission process of transmitting a first wireless connection request to the first communication device via the first interface in response to receiving the first network related information from the first communication device;
a first establishment process for establishing a first wireless connection with the first communication device via the first interface by using the first network relationship information in response to transmitting the first wireless connection request to the first communication device, thereby forming 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, from the first communication device, first device identification information for identifying the first communication device;
a storage control process for storing the first device identification information in a memory of the second communication device;
a first predetermined signal receiving process for receiving, from a third communication device via the second interface, a first predetermined signal including third device identification information for identifying the third communication device, after the first device identification information is stored in the memory;
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;
a first predetermined request transmission process for transmitting, via the second interface, a first predetermined request for requesting network related information relating to a wireless network to the first communication device that matches the third communication device when it is determined that the third device identification information matches the first device identification information, and not transmitting the first predetermined request to the third communication device when it is determined that the third device identification information does not match the first device identification information;
a second network related information receiving process for receiving second network related information 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, the second wireless network being a network for performing wireless communication via the first interface, and the second network related information being different from the first network related information;
a second connection request transmission process of transmitting a second wireless connection request to the first communication device via the first interface in response to receiving the second network related information from the first communication device;
a second establishment process for establishing a second wireless connection with the first communication device via the first interface by using the second network relation information in response to transmitting the second wireless connection request to the first communication device, thereby forming the second wireless network to which both the first communication device and the second communication device belong;
A computer program that executes the following:
(Item 11)
11. The computer program product according to item 10, wherein in the first specified signal reception process, communication of a lower layer that is lower than the highest layer is performed without performing communication of a highest layer for establishing a logical link of the second communication method, and the first specified signal is received 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, a communication of a lower layer that is lower than the highest layer is executed without executing a communication of a highest layer for establishing a logical link of the second communication method, and the first predetermined request is transmitted to the first communication device that matches the third communication device via the second interface;
(Item 13)
The computer program further causes the processor to perform the following processes:
a second predetermined signal receiving process of 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 or not the distance between the first communication device and the second communication device is less than the predetermined distance by using the radio wave intensity of the second predetermined signal;
a second predetermined request transmission process for transmitting a second predetermined request to the first communication device via the second interface for requesting network related information relating to a wireless network when it is determined that the distance between the first communication device and the second communication device is less than the predetermined distance, and for not transmitting the second predetermined request to the first communication device when it is determined that the distance between the first communication device and the second communication device is not less than the predetermined distance;
13. The computer program product according to any one of claims 10 to 12, wherein in the first network related information reception process, in response to transmitting the second specified request to the first communication device, the first network related information is received from the first communication device via the second interface.
(Item 14)
14. The computer program product according to claim 10, wherein in the device identification information reception process, the first device identification information is received from the first communication device via the second interface.
(Item 15)
The second interface includes:
a first type of interface for performing wireless communication according to a first type of communication method among the second communication methods;
a second type of interface for performing wireless communication according to a second type of communication method that is different from the first type of communication method, the second type of interface being a second type of communication method among the second type of communication methods, the second type of interface being shorter than a distance at which wireless communication via the second type of interface can be performed,
In the first network related information reception process, when a distance between the first communication device and the second communication device is less than the predetermined distance, the first network related information is received from the first communication device via the second type of interface;
In the first predetermined signal reception process, the predetermined signal including the third device identification information is received from the third communication device via the first type interface in a state where a distance between the first communication device and the third communication device is greater than the predetermined distance;
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 to the first communication device that matches the third communication device via the first type interface;
13. The computer program product according to claim 10, wherein in the second network related information reception process, the second network related information is received from the first communication device via the first type of interface.
(Item 16)
(Item 17)
A second communication device,
a first interface for performing wireless communication according to a first communication method;
a second interface for performing wireless communication according to a second communication method different from the first communication method;
a first network related information receiving unit that receives first network related information related to a first wireless network from the first communication device via the second interface when a distance between the first communication device and the second communication device is less than a predetermined distance, the first wireless network being a network for performing wireless communication via the first interface;
a first connection request transmission unit that transmits a first wireless connection request to the first communication device via the first interface in response to receiving the first network related information from the first communication device;
a first establishing unit that, in response to transmitting the first wireless connection request to the first communication device, establishes a first wireless connection with the first communication device via the first interface by using the first network relationship information, thereby forming the first wireless network to which both the first communication device and the second communication device belong;
a device identification information receiving unit that receives, from the first communication device, first device identification information for identifying the first communication device;
a storage control unit that stores the first device identification information in a memory of the second communication device;
a first predetermined signal receiving unit that receives, from a third communication device via the second interface after the first device identification information is stored in the memory, a first predetermined signal including third device identification information for identifying the third communication device;
an identification information determination unit that determines whether the third device identification information in the first predetermined signal matches the first device identification information in the memory;
a first predetermined request transmitting unit that, when it is determined that the third device identification information matches the first device identification information, transmits a first predetermined request to the first communication device that matches the third communication device via the second interface, for requesting network related information related to a wireless network, and, when it is determined that the third device identification information does not match the first device identification information, does not transmit the first predetermined request to the third communication device;
a second network related information receiving unit that receives second network related information 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, the second wireless network being a network for performing wireless communication via the first interface, and the second network related information being different from the first network related information;
a second connection request transmission unit that transmits a second wireless connection request to the first communication device via the first interface in response to receiving the second network related information from the first communication device;
a second establishing unit that, in response to transmitting the second wireless connection request to the first communication device, establishes a second wireless connection with the first communication device via the first interface by using the second network relation information, thereby forming the second wireless network to which both the first communication device and the second communication device belong;
A second communication device comprising:
2:通信システム、PR:プリンタ、12:操作部、14:表示部、16:印刷実行部、20:Wi-FiI/F(インターフェース)、22:BTI/F、24:NFCI/F、26:メモリ、30:制御部、32:CPU、34:メモリ、36:プログラム、40:BTデバイス名格納領域、PT1,PT2:携帯端末、52:操作部、54:表示部、60:Wi-FiI/F、62:BTI/F、64:NFCI/F、70:制御部、72:CPU、74:メモリ、76:OSプログラム、78:プリンタアプリケーション、80:BTデバイス名格納領域 2: Communication system, PR: Printer, 12: Operation unit, 14: Display unit, 16: Print execution unit, 20: Wi-Fi I/F (interface), 22: BT I/F, 24: NFC I/F, 26: Memory, 30: Control unit, 32: CPU, 34: Memory, 36: Program, 40: BT device name storage area, PT1, PT2: Mobile terminal, 52: Operation unit, 54: Display unit, 60: Wi-Fi I/F, 62: BT I/F, 64: NFC I/F, 70: Control unit, 72: CPU, 74: Memory, 76: OS program, 78: Printer application, 80: BT device name storage area
Claims (11)
Wi-Fi方式に従った無線通信を実行するためのWi-Fiインターフェースと、
Bluetooth(登録商標)方式の4.0以降のバージョン従った無線通信を実行するためのBluetoothインターフェースと、
前記Bluetoothインターフェースを介して、前記第1の通信機器を識別する識別情報を含むAdvertise信号を送信するAdvertise信号送信部と、
前記Bluetoothインターフェースを介して、第2の通信機器から、前記Advertise信号に含まれる前記識別情報によって識別される前記第1の通信機器に対するBluetooth接続要求を受信する第1の要求受信部と、
前記第2の通信機器から受信した前記Bluetooth接続要求に従って、前記Bluetoothインターフェースを介したBluetooth接続を前記第2の通信機器と確立する第1の確立部と、
前記Wi-Fiインターフェースを介して、前記第1の通信機器の周囲に、親局として動作する前記第1の通信機器の存在を知らせるための第1の特定信号を送信する特定信号送信部と、
前記第1の特定信号の送信後に、前記第2の通信機器を前記第1の通信機器が前記親局として所属するWi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための第1の接続情報を、前記Bluetoothインターフェースを介した前記Bluetooth接続を利用して、前記第2の通信機器に送信する第1の接続情報送信部と、
前記第1の接続情報が前記第2の通信機器に送信され、かつ、前記第1の通信機器の状態が前記Wi-Fiネットワークにおいて前記親局として動作可能な状態である場合に、前記第2の通信機器から、前記Wi-Fiインターフェースを介して、前記Wi-Fiネットワークを識別するための第1のSSID(Service Set Identifierの略)を含む第1のWi-Fi接続要求を受信する第2の要求受信部と、
前記第2の通信機器から前記第1のWi-Fi接続要求を受信すると、前記Wi-Fiのインターフェースを介した第1のWi-Fi接続を前記第2の通信機器と確立する第2の確立部と、
前記第1の通信機器の状態が、前記親局として動作可能な状態から前記親局として動作しない状態に変更されると、前記第1の特定信号の送信を停止する停止部と、
前記停止部が前記第1の特定信号の送信を停止した後、前記第1のSSIDと異なる第2のSSIDを生成する生成部と、
を備え、
前記特定信号送信部は、前記停止部が前記第1の特定信号の送信を停止した後に、前記第1の通信機器の状態が前記親局として動作しない状態から前記親局として動作可能な状態に変更されると、前記親局として動作する前記第1の通信機器の存在を知らせるための第2の特定信号を送信し、
前記第2の要求受信部は、前記第2の特定信号の送信後に、前記第2の通信機器から、前記Wi-Fiインターフェースを介して、前記生成部によって生成された前記第2のSSIDを含む第2のWi-Fi接続要求を受信し、
前記第2の確立部は、前記第2の通信機器から前記第2のWi-Fi接続要求を受信すると、前記Wi-Fiのインターフェースを介した第2のWi-Fi接続を前記第2の通信機器と確立する、
第1の通信機器。 A first communication device,
a Wi-Fi interface for performing wireless communication according to the Wi-Fi standard;
a Bluetooth interface for carrying out wireless communication according to the Bluetooth standard version 4.0 or later ;
an Advertise signal transmission unit that transmits an Advertise signal including identification information for identifying the first communication device via the Bluetooth interface;
a first request receiving unit that receives , via the Bluetooth interface, a Bluetooth connection request from a second communication device to the first communication device identified by the identification information included in the Advertise signal ;
a first establishing unit that establishes a Bluetooth connection with the second communication device via the Bluetooth interface in accordance with the Bluetooth connection request received from the second communication device;
a specific signal transmission unit that transmits a first specific signal via the Wi-Fi interface to notify the surroundings of the first communication device of the presence of the first communication device operating as a master station;
a first connection information transmission unit that transmits, after transmitting the first specific signal, first connection information for enabling the second communication device to connect to a Wi-Fi network to which the first communication device belongs as the master station via the Wi-Fi interface, to the second communication device by using the Bluetooth connection via the Bluetooth interface;
a second request receiving unit that receives, when the first connection information is transmitted to the second communication device and the state of the first communication device is operable as the master station in the Wi-Fi network, a first Wi-Fi connection request including a first SSID (abbreviation of Service Set Identifier) for identifying the Wi-Fi network from the second communication device via the Wi-Fi interface;
a second establishment unit that, when receiving the first Wi-Fi connection request from the second communication device, establishes a first Wi-Fi connection with the second communication device via the Wi-Fi interface;
a stop unit that stops transmission of the first specific signal when a state of the first communication device is changed from a state capable of operating as the master station to a state in which the first communication device does not operate as the master station;
a generating unit that generates a second SSID different from the first SSID after the stopping unit stops transmitting the first specific signal;
Equipped with
the specific signal transmission unit transmits a second specific signal for notifying the presence of the first communication device operating as the master station when a state of the first communication device is changed from a state in which the first communication device does not operate as the master station to a state in which the first communication device can operate as the master station after the stopping unit stops transmission of the first specific signal;
the second request receiving unit receives, after transmitting the second specific signal, from the second communication device via the Wi-Fi interface, a second Wi-Fi connection request including the second SSID generated by the generating unit;
the second establishment unit, when receiving the second Wi-Fi connection request from the second communication device, establishes a second Wi-Fi connection with the second communication device via the Wi-Fi interface;
A first communication device.
前記第2の通信機器から、前記Bluetoothインターフェースを介して、前記第1の通信機器と前記第2の通信機器との間の距離に関係する第1の距離情報を受信する距離情報受信部を備え、
前記第1の接続情報送信部は、
前記第1の距離情報が、前記第1の通信機器と前記第2の通信機器との間の距離が所定距離未満であることを示す場合に、前記Bluetoothインターフェースを介して、前記第1の接続情報を前記第2の通信機器に送信し、
前記第1の距離情報が、前記第1の通信機器と前記第2の通信機器との間の距離が前記所定距離より大きいことを示す場合に、前記第1の接続情報を前記第2の通信機器に送信しない、請求項1から4のいずれか一項に記載の第1の通信機器。 The first communication device further comprises:
a distance information receiving unit that receives first distance information relating to a distance between the first communication device and the second communication device from the second communication device via the Bluetooth interface;
The first connection information transmission unit is
sending, via the Bluetooth interface, the first connection information to the second communication device when the first distance information indicates that a distance between the first communication device and the second communication device is less than a predetermined distance;
5. The first communication device according to claim 1, wherein the first connection information is not transmitted 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.
前記第2の通信機器から、前記Bluetoothインターフェースを介して、前記第2の通信機器を識別するための第2の機器識別情報を受信する機器識別情報受信部を備え、
前記第1の接続情報送信部は、前記第2の通信機器から受信した前記第2の機器識別情報と一致する情報が前記第1の通信機器に記憶されている場合に、前記第1の接続情報を前記第2の通信機器に送信し、
前記第2の通信機器から受信した前記第2の機器識別情報と一致する情報が前記第1の通信機器に記憶されていない場合に、前記第1の接続情報は前記第2の通信機器に送信されない、請求項1から6のいずれか一項に記載の第1の通信機器。 The first communication device further comprises:
a device identification information receiving unit that receives second device identification information for identifying the second communication device from the second communication device via the Bluetooth interface;
the first connection information transmission unit transmits the first connection information to the second communication device when information matching the second device identification information received from the second communication device is stored in the first communication device;
A first communication device as described in any one of claims 1 to 6, wherein the first connection information is not transmitted to the second communication device if information matching the second device identification information received from the second communication device is not stored in the first communication device.
前記Bluetooth方式とは異なる特定の通信方式に従った無線通信を実行するための特定のインターフェースであって、前記特定のインターフェースを介した無線通信を実行可能な距離は、前記Bluetoothインターフェースを介した無線通信を実行可能な距離よりも小さい、前記特定のインターフェースと、
前記特定のインターフェースを介して、第3の通信機器を前記第1の通信機器が所属する前記Wi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための第2の接続情報を前記第3の通信機器に送信する第2の接続情報送信部と、
前記第2の接続情報を受信した前記第3の通信機器から、前記Wi-Fiインターフェースを介して、第3のWi-Fi接続要求を受信する第3の要求受信部と、
前記第3の通信機器から前記第3のWi-Fi接続要求を受信すると、前記Wi-Fiインターフェースを介した第3のWi-Fi接続を前記第3の通信機器と確立する第3の確立部と、
前記第3の通信機器から、前記第3の通信機器を識別するための第3の機器識別情報を受信する第3の機器識別情報受信部と、
前記第2の通信機器から、前記Bluetoothインターフェースを介して、前記第2の通信機器を識別するための第2の機器識別情報を受信する第2の機器識別情報受信部と、
を備え、
前記第1の接続情報送信部は、前記第3の機器識別情報が前記第2の機器識別情報に一致すると判断される場合に、前記Bluetoothインターフェースを介して、前記第1の接続情報を前記第3の通信機器に一致する前記第2の通信機器に送信する、請求項1から4のいずれか一項に記載の第1の通信機器。 The first communication device further comprises:
a specific interface for performing wireless communication according to a specific communication method different from the Bluetooth method , the specific interface being shorter in distance than the wireless communication via the Bluetooth interface;
a second connection information transmission unit that transmits, via the specific interface, second connection information to the third communication device for enabling the third communication device to connect to the Wi-Fi network to which the first communication device belongs via the Wi-Fi interface;
a third request receiving unit that receives a third Wi-Fi connection request via the Wi-Fi interface from the third communication device that has received the second connection information;
a third establishment unit that, when receiving the third Wi-Fi connection request from the third communication device, establishes a third Wi-Fi connection with the third communication device via the Wi-Fi interface;
a third device identification information receiving unit that receives third device identification information for identifying the third communication device from the third communication device;
a second device identification information receiving unit that receives second device identification information for identifying the second communication device from the second communication device via the Bluetooth interface;
Equipped with
5. The first communication device according to claim 1, wherein the first connection information transmission unit transmits the first connection information to the second communication device that matches the third communication device via the Bluetooth interface when it is determined that the third device identification information matches the second device identification information.
前記第1の通信機器は、The first communication device includes:
Wi-Fi方式に従った無線通信を実行するためのWi-Fiインターフェースと、a Wi-Fi interface for performing wireless communication according to the Wi-Fi standard;
Bluetooth(登録商標)方式の4.0以降のバージョン従った無線通信を実行するためのBluetoothインターフェースと、a Bluetooth interface for carrying out wireless communication according to the Bluetooth standard version 4.0 or later;
コンピュータと、A computer,
を備え、Equipped with
前記コンピュータプログラムは、前記コンピュータを、以下の各部、即ち、The computer program causes the computer to operate in the following manner:
前記Bluetoothインターフェースを介して、前記第1の通信機器を識別する識別情報を含むAdvertise信号を送信するAdvertise信号送信部と、an Advertise signal transmission unit that transmits an Advertise signal including identification information for identifying the first communication device via the Bluetooth interface;
前記Bluetoothインターフェースを介して、第2の通信機器から、前記Advertise信号に含まれる前記識別情報によって識別される前記第1の通信機器に対するBluetooth接続要求を受信する第1の要求受信部と、a first request receiving unit that receives, via the Bluetooth interface, a Bluetooth connection request from a second communication device to the first communication device identified by the identification information included in the Advertise signal;
前記第2の通信機器から受信した前記Bluetooth接続要求に従って、前記Bluetoothインターフェースを介したBluetooth接続を前記第2の通信機器と確立する第1の確立部と、a first establishing unit that establishes a Bluetooth connection with the second communication device via the Bluetooth interface in accordance with the Bluetooth connection request received from the second communication device;
前記Wi-Fiインターフェースを介して、前記第1の通信機器の周囲に、親局として動作する前記第1の通信機器の存在を知らせるための第1の特定信号を送信する特定信号送信部と、a specific signal transmission unit that transmits a first specific signal via the Wi-Fi interface to notify the surroundings of the first communication device of the presence of the first communication device operating as a master station;
前記第1の特定信号の送信後に、前記第2の通信機器を前記第1の通信機器が前記親局として所属するWi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための第1の接続情報を、前記Bluetoothインターフェースを介した前記Bluetooth接続を利用して、前記第2の通信機器に送信する第1の接続情報送信部と、a first connection information transmission unit that transmits, after transmitting the first specific signal, first connection information for enabling the second communication device to connect to a Wi-Fi network to which the first communication device belongs as the master station via the Wi-Fi interface, to the second communication device by using the Bluetooth connection via the Bluetooth interface;
前記第1の接続情報が前記第2の通信機器に送信され、かつ、前記第1の通信機器の状態が前記Wi-Fiネットワークにおいて前記親局として動作可能な状態である場合に、前記第2の通信機器から、前記Wi-Fiインターフェースを介して、前記Wi-Fiネットワークを識別するための第1のSSID(Service Set Identifierの略)を含む第1のWi-Fi接続要求を受信する第2の要求受信部と、a second request receiving unit that receives, when the first connection information is transmitted to the second communication device and the state of the first communication device is operable as the master station in the Wi-Fi network, a first Wi-Fi connection request including a first SSID (abbreviation of Service Set Identifier) for identifying the Wi-Fi network from the second communication device via the Wi-Fi interface;
前記第2の通信機器から前記第1のWi-Fi接続要求を受信すると、前記Wi-Fiのインターフェースを介した第1のWi-Fi接続を前記第2の通信機器と確立する第2の確立部と、a second establishment unit that, when receiving the first Wi-Fi connection request from the second communication device, establishes a first Wi-Fi connection with the second communication device via the Wi-Fi interface;
前記第1の通信機器の状態が、前記親局として動作可能な状態から前記親局として動作しない状態に変更されると、前記第1の特定信号の送信を停止する停止部と、a stop unit that stops transmission of the first specific signal when a state of the first communication device is changed from a state capable of operating as the master station to a state in which the first communication device does not operate as the master station;
前記停止部が前記第1の特定信号の送信を停止した後、前記第1のSSIDと異なる第2のSSIDを生成する生成部と、a generating unit that generates a second SSID different from the first SSID after the stopping unit stops transmitting the first specific signal;
として機能させ、Function as a
前記特定信号送信部は、前記停止部が前記第1の特定信号の送信を停止した後に、前記第1の通信機器の状態が前記親局として動作しない状態から前記親局として動作可能な状態に変更されると、前記親局として動作する前記第1の通信機器の存在を知らせるための第2の特定信号を送信し、the specific signal transmission unit transmits a second specific signal for notifying the presence of the first communication device operating as the master station when a state of the first communication device is changed from a state in which the first communication device does not operate as the master station to a state in which the first communication device can operate as the master station after the stopping unit stops transmission of the first specific signal;
前記第2の要求受信部は、前記第2の特定信号の送信後に、前記第2の通信機器から、前記Wi-Fiインターフェースを介して、前記生成部によって生成された前記第2のSSIDを含む第2のWi-Fi接続要求を受信し、the second request receiving unit receives, after transmitting the second specific signal, from the second communication device via the Wi-Fi interface, a second Wi-Fi connection request including the second SSID generated by the generating unit;
前記第2の確立部は、前記第2の通信機器から前記第2のWi-Fi接続要求を受信すると、前記Wi-Fiのインターフェースを介した第2のWi-Fi接続を前記第2の通信機器と確立する、the second establishment unit, when receiving the second Wi-Fi connection request from the second communication device, establishes a second Wi-Fi connection with the second communication device via the Wi-Fi interface;
コンピュータプログラム。Computer program.
Wi-Fi方式に従った無線通信を実行するためのWi-Fiインターフェースと、
Bluetooth(登録商標)方式の4.0以降のバージョンに従った無線通信を実行するためのBluetoothインターフェースと、
前記Bluetoothインターフェースを介して、第1の通信機器から、前記第1の通信機器を識別する識別情報を含むAdvertise信号を受信するAdvertise信号受信部と、
前記Bluetoothインターフェースを介して、前記Advertise信号に含まれる前記識別情報によって識別される前記第1の通信機器に対するBluetooth接続要求を前記第1の通信機器に送信する第1の要求送信部と、
前記Bluetoothインターフェースを介したBluetooth接続を、前記Bluetooth接続要求を受信した前記第1の通信機器と確立する第1の確立部と、
前記Wi-Fiインターフェースを介して、前記第1の通信機器から第1の特定信号を受信する受信部であって、前記第1の特定信号は、前記第1の通信機器の周囲に、親局として動作する前記第1の通信機器の存在を知らせるための信号である、特定信号受信部と、
前記第1の通信機器から、前記第2の通信機器を前記第1の通信機器が所属するWi-Fiネットワークに前記Wi-Fiインターフェースを介して接続可能にするための第1の接続情報を、前記Bluetoothインターフェースを介した前記Bluetooth接続を利用して受信する第1の接続情報受信部と、
前記第1の通信機器から前記第1の接続情報が受信され、かつ、前記第1の通信機器の状態が前記Wi-Fiネットワークにおいて前記親局として動作可能な状態である場合に、前記Wi-Fiインターフェースを介して、前記Wi-Fiネットワークを識別するための第1のSSID(Service Set Identifierの略)を含む第1のWi-Fi接続要求を前記第1の通信機器に送信する第2の要求送信部と、
前記第1のWi-Fi接続要求を前記第1の通信機器に送信すると、前記Wi-Fiインターフェースを介した第1のWi-Fi接続を前記第1の通信機器と確立する第2の確立部であって、前記第1の通信機器の状態が、前記親局として動作可能な状態から前記親局として動作しない状態に変更されると、前記第1の通信機器により前記第1の特定信号の送信が停止され、前記第1の特定信号の送信が停止された後、前記第1の通信機器によって前記第1のSSIDと異なる第2のSSIDが生成される、前記第2の確立部と、
を備え、
前記特定信号受信部は、前記第1の特定信号の送信を停止した後に、前記第1の通信機器の状態が前記親局として動作しない状態から前記親局として動作可能な状態に変更されると、前記Wi-Fiインターフェースを介して、前記第1の通信機器から第2の特定信号を受信し、
前記第2の特定信号は、前記第1の通信機器の周囲に、親局として動作する前記第1の通信機器の存在を知らせるための信号であり、
前記第2の要求送信部は、前記第2の特定信号の受信後に、前記Wi-Fiインターフェースを介して、前記第2のSSIDを含む第2のWi-Fi接続要求を前記第1の通信機器に送信し、
前記第2の確立部は、前記第2のWi-Fi接続要求を前記第1の通信機器に送信すると、前記Wi-Fiインターフェースを介した第2のWi-Fi接続を前記第1の通信機器と確立する、
第2の通信機器。 A second communication device,
a Wi-Fi interface for performing wireless communication according to the Wi-Fi standard;
a Bluetooth interface for performing wireless communication according to Bluetooth® standard version 4.0 or later ;
an Advertise signal receiving unit that receives an Advertise signal including identification information for identifying the first communication device from a first communication device via the Bluetooth interface;
a first request transmission unit configured to transmit a Bluetooth connection request to the first communication device identified by the identification information included in the Advertise signal via the Bluetooth interface;
a first establishing unit that establishes a Bluetooth connection via the Bluetooth interface with the first communication device that has received the Bluetooth connection request ;
a specific signal receiving unit that receives a first specific signal from the first communication device via the Wi-Fi interface, the first specific signal being a signal for notifying surroundings of the first communication device of the presence of the first communication device operating as a master station;
a first connection information receiving unit that receives, from the first communication device, first connection information for enabling the second communication device to connect to a Wi-Fi network to which the first communication device belongs via the Wi-Fi interface, by using a Bluetooth connection via the Bluetooth interface ;
a second request transmission unit that transmits a first Wi-Fi connection request including a first SSID (abbreviation of Service Set Identifier) for identifying the Wi-Fi network to the first communication device via the Wi-Fi interface when the first connection information is received from the first communication device and the state of the first communication device is operable as the master station in the Wi -Fi network;
a second establishment unit that establishes a first Wi- Fi connection with the first communication device via the Wi-Fi interface when the first Wi - Fi connection request is transmitted to the first communication device, and when a state of the first communication device is changed from a state in which the first communication device can operate as a master station to a state in which the first communication device does not operate as a master station, the first communication device stops transmitting the first specific signal, and after the transmission of the first specific signal is stopped, the first communication device generates a second SSID different from the first SSID;
Equipped with
when a state of the first communication device is changed from a state in which the first communication device does not operate as a master station to a state in which the first communication device can operate as a master station after the transmission of the first specific signal is stopped, the specific signal receiving unit receives a second specific signal from the first communication device via the Wi-Fi interface;
the second specific signal is a signal for notifying surroundings of the first communication device of the presence of the first communication device operating as a master station,
the second request transmission unit transmits a second Wi-Fi connection request including the second SSID to the first communication device via the Wi-Fi interface after receiving the second specific signal;
the second establishment unit, when transmitting the second Wi-Fi connection request to the first communication device, establishes a second Wi-Fi connection with the first communication device via the Wi-Fi interface;
A second communication device.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2023193869A JP7568035B2 (en) | 2019-08-15 | 2023-11-14 | Telecommunications Equipment |
| JP2024173355A JP7718560B2 (en) | 2019-08-15 | 2024-10-02 | communication equipment |
| JP2025123409A JP2025137742A (en) | 2019-08-15 | 2025-07-23 | communication equipment |
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019149030A JP6927255B2 (en) | 2018-10-18 | 2019-08-15 | Communication equipment |
| JP2021128191A JP7107415B2 (en) | 2019-08-15 | 2021-08-04 | communication equipment |
| JP2022112639A JP7388491B2 (en) | 2019-08-15 | 2022-07-13 | communication equipment |
| JP2023193869A JP7568035B2 (en) | 2019-08-15 | 2023-11-14 | Telecommunications Equipment |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022112639A Division JP7388491B2 (en) | 2019-08-15 | 2022-07-13 | communication equipment |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2024173355A Division JP7718560B2 (en) | 2019-08-15 | 2024-10-02 | communication equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2024003159A JP2024003159A (en) | 2024-01-11 |
| JP7568035B2 true JP7568035B2 (en) | 2024-10-16 |
Family
ID=78149732
Family Applications (5)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021128191A Active JP7107415B2 (en) | 2019-08-15 | 2021-08-04 | communication equipment |
| JP2022112639A Active JP7388491B2 (en) | 2019-08-15 | 2022-07-13 | communication equipment |
| JP2023193869A Active JP7568035B2 (en) | 2019-08-15 | 2023-11-14 | Telecommunications Equipment |
| JP2024173355A Active JP7718560B2 (en) | 2019-08-15 | 2024-10-02 | communication equipment |
| JP2025123409A Pending JP2025137742A (en) | 2019-08-15 | 2025-07-23 | communication equipment |
Family Applications Before (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021128191A Active JP7107415B2 (en) | 2019-08-15 | 2021-08-04 | communication equipment |
| JP2022112639A Active JP7388491B2 (en) | 2019-08-15 | 2022-07-13 | communication equipment |
Family Applications After (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2024173355A Active JP7718560B2 (en) | 2019-08-15 | 2024-10-02 | communication equipment |
| JP2025123409A Pending JP2025137742A (en) | 2019-08-15 | 2025-07-23 | communication equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (5) | JP7107415B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014175822A (en) | 2013-03-08 | 2014-09-22 | Seiko Epson Corp | Radio communication device, radio communication terminal, re-connection program, radio communication method, and radio communication system |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5825085B2 (en) * | 2011-12-16 | 2015-12-02 | ブラザー工業株式会社 | Wireless communication device |
| JP5838839B2 (en) * | 2012-02-07 | 2016-01-06 | セイコーエプソン株式会社 | Wireless communication equipment |
| JP6019881B2 (en) * | 2012-07-25 | 2016-11-02 | ブラザー工業株式会社 | Communication device and portable terminal |
| JP6224891B2 (en) | 2012-12-13 | 2017-11-01 | キヤノン株式会社 | Wireless communication system, wireless communication device, communication method, control method, and program |
| JP5945961B2 (en) | 2012-12-26 | 2016-07-05 | ブラザー工業株式会社 | Communication equipment |
| JP5945965B2 (en) | 2013-02-28 | 2016-07-05 | ブラザー工業株式会社 | Communication equipment |
| JP6612734B2 (en) | 2013-03-12 | 2019-11-27 | トリビディア ヘルス,インコーポレーテッド | Personal health device and method for pairing personal health device with computing device |
| CN104066135B (en) * | 2013-03-18 | 2017-12-29 | 华为终端(东莞)有限公司 | A kind of connection switching method and related device based on near-field communication |
| JP6239903B2 (en) * | 2013-08-29 | 2017-11-29 | シャープ株式会社 | Sales data processor |
| CN105557031A (en) | 2013-09-17 | 2016-05-04 | 高通股份有限公司 | Interleaving advertising packets for improved detectability and security |
-
2021
- 2021-08-04 JP JP2021128191A patent/JP7107415B2/en active Active
-
2022
- 2022-07-13 JP JP2022112639A patent/JP7388491B2/en active Active
-
2023
- 2023-11-14 JP JP2023193869A patent/JP7568035B2/en active Active
-
2024
- 2024-10-02 JP JP2024173355A patent/JP7718560B2/en active Active
-
2025
- 2025-07-23 JP JP2025123409A patent/JP2025137742A/en active Pending
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014175822A (en) | 2013-03-08 | 2014-09-22 | Seiko Epson Corp | Radio communication device, radio communication terminal, re-connection program, radio communication method, and radio communication system |
Also Published As
| Publication number | Publication date |
|---|---|
| JP7718560B2 (en) | 2025-08-05 |
| JP2021170848A (en) | 2021-10-28 |
| JP7388491B2 (en) | 2023-11-29 |
| JP2025137742A (en) | 2025-09-19 |
| JP2024003159A (en) | 2024-01-11 |
| JP7107415B2 (en) | 2022-07-27 |
| JP2022132424A (en) | 2022-09-08 |
| JP2024177340A (en) | 2024-12-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6421673B2 (en) | Communication equipment | |
| JP6406092B2 (en) | Communication equipment | |
| US10631155B2 (en) | Communication apparatus | |
| JP2022189843A (en) | Communication device and computer program for communication device | |
| JP2021192559A (en) | Communication apparatus | |
| JP2018174453A (en) | Computer program for terminal device and communication device | |
| JP7568035B2 (en) | Telecommunications Equipment | |
| JP6398750B2 (en) | Communication equipment | |
| JP6573018B2 (en) | Communication equipment | |
| JP6927255B2 (en) | Communication equipment | |
| JP6638786B2 (en) | Communication equipment | |
| JP2019068179A (en) | Communication device and terminal device | |
| JP7722497B2 (en) | communication equipment | |
| JP6919704B2 (en) | Communication equipment | |
| JP2016036190A (en) | Communication device | |
| JP6601463B2 (en) | Communication device | |
| JP6819417B2 (en) | Communication device | |
| JP2019075833A (en) | Communication device and mobile terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20231115 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20231121 |
|
| 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: 20240903 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20240916 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7568035 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |