JP7315066B2 - Communication device and computer program for the communication device - Google Patents

Communication device and computer program for the communication device Download PDF

Info

Publication number
JP7315066B2
JP7315066B2 JP2022096624A JP2022096624A JP7315066B2 JP 7315066 B2 JP7315066 B2 JP 7315066B2 JP 2022096624 A JP2022096624 A JP 2022096624A JP 2022096624 A JP2022096624 A JP 2022096624A JP 7315066 B2 JP7315066 B2 JP 7315066B2
Authority
JP
Japan
Prior art keywords
external device
wireless interface
communication device
connection
wireless
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2022096624A
Other languages
Japanese (ja)
Other versions
JP2022121487A (en
Inventor
寛 柴田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2018068819A external-priority patent/JP7091781B2/en
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2022096624A priority Critical patent/JP7315066B2/en
Publication of JP2022121487A publication Critical patent/JP2022121487A/en
Application granted granted Critical
Publication of JP7315066B2 publication Critical patent/JP7315066B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本明細書では、外部装置との無線接続を確立可能な通信装置に関する技術を開示する。 This specification discloses a technology related to a communication device capable of establishing a wireless connection with an external device.

非特許文献1には、Wi-Fi Allianceによって策定される予定であるDevice Provisioning Protocolと呼ばれる無線通信方式(以下では「DPP方式」と記載する。)が記述されている。DPP方式では、例えば、第1の装置と第2の装置との間にNFC接続が確立されることに応じて、DPP方式に従った無線通信が実行される。 Non-Patent Document 1 describes a wireless communication method called Device Provisioning Protocol (hereinafter referred to as “DPP method”) that is scheduled to be formulated by the Wi-Fi Alliance. In the DPP method, for example, wireless communication according to the DPP method is performed in response to the establishment of an NFC connection between the first device and the second device.

特開2018-37978号公報Japanese Patent Application Laid-Open No. 2018-37978

「DRAFT Device Provisioning Protocol Technical Specification Version 0.2.11」 Wi-Fi Alliance, 2017年"DRAFT Device Provisioning Protocol Technical Specification Version 0.2.11" Wi-Fi Alliance, 2017

本明細書では、第1の外部装置を利用して、通信装置と第2の外部装置との間に第2の無線接続を確立させるための新規な技術を開示する。 Disclosed herein is a novel technique for utilizing a first external device to establish a second wireless connection between a communication device and a second external device.

本明細書によって開示される通信装置は、表示部と、第1の無線インターフェースと、前記第1の無線インターフェースとは異なる第2の無線インターフェースと、制御部と、を備え、前記制御部は、前記通信装置と第1の外部装置との間に前記第1の無線インターフェースを介した第1の無線接続が確立される場合に、公開鍵の送信を含む対象処理を実行すべきことを指示するための指示画面を前記表示部に表示させる表示制御部と、前記指示画面が表示されている状況において、前記対象処理を実行すべきことが指示される場合に、前記公開鍵の送信を指示する第1の指示情報を前記第1の無線インターフェースに供給する第1の供給部であって、前記指示画面が表示されている状況において、前記対象処理を実行すべきことが指示されない場合に、前記第1の指示情報は前記第1の無線インターフェースに供給されない、前記第1の供給部と、を備え、前記第1の無線インターフェースは、前記制御部から前記第1の指示情報を取得した後に、前記公開鍵を前記第1の外部装置に送信し、前記制御部は、さらに、前記公開鍵が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、前記公開鍵が利用された認証要求を受信する認証要求受信部と、前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証要求に対する応答である認証応答を前記第1の外部装置に送信する認証応答送信部と、前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第2の無線インターフェースを介した第2の無線接続を確立するための情報である、前記接続情報受信部と、前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する第1の確立部と、を備えてもよい。 A communication device disclosed by the present specification includes a display unit, a first wireless interface, a second wireless interface different from the first wireless interface, and a control unit, wherein the control unit causes the display unit to display an instruction screen for instructing execution of target processing including transmission of a public key when a first wireless connection is established between the communication apparatus and a first external device via the first wireless interface; a first supply unit configured to supply first instruction information for instructing transmission of the public key to the first wireless interface when an instruction to execute a target process is given, wherein the first instruction information is not supplied to the first wireless interface when an instruction to perform the target process is not given in a situation where the instruction screen is displayed, wherein the first wireless interface transmits the public key to the first wireless interface after acquiring the first instruction information from the control unit an authentication request receiving unit for receiving an authentication request using the public key from the first external device via the second wireless interface after the public key is transmitted to the first external device; an authentication response transmitting unit for transmitting an authentication response to the authentication request to the first external device via the second wireless interface when the authentication request is received from the first external device; a connection information receiving unit configured to receive connection information from the first external device via the second wireless interface after being transmitted to the first external device, wherein the connection information is information for establishing a second wireless connection between the communication device and the second external device via the second wireless interface; and a first establishing unit that establishes the second wireless connection via the second wireless interface between.

上記の構成によると、通信装置は、第1の外部装置との第1の無線接続が確立される場合に、指示画面を表示する。指示画面が表示されている状況において、対象処理を実行すべきことが指示される場合に、公開鍵の送信を指示する第1の指示情報が第1の無線インターフェースに供給される。この結果、第1の無線インターフェースは、公開鍵を第1の外部装置に送信する。これにより、通信装置は、第1の外部装置から公開鍵が利用された認証要求を受信し、認証応答を第1の外部装置に送信し、第1の外部装置から接続情報を受信し、接続情報を利用して第2の外部装置との第2の無線接続を確立することができる。一方、指示画面が表示されている状況において、対象処理を実行すべきことが指示されない場合に、第1の指示情報は第1の無線インターフェースに供給されない。これにより、第1の無線インターフェースを介して公開鍵が第1の外部装置に送信されないので、通信装置は、第1の外部装置から公開鍵が利用された認証要求を受信せず、第2の外部装置との第2の無線接続を確立しない。このように、本技術によると、通信装置と第2の外部装置との間に第2の無線接続を確立させるのか否かを切り替えることができる。 According to the above configuration, the communication device displays the instruction screen when the first wireless connection is established with the first external device. In the situation where the instruction screen is displayed, when it is instructed to execute the target process, the first instruction information instructing transmission of the public key is supplied to the first wireless interface. As a result, the first wireless interface transmits the public key to the first external device. Thereby, the communication device can receive an authentication request using a public key from the first external device, transmit an authentication response to the first external device, receive connection information from the first external device, and use the connection information to establish a second wireless connection with the second external device. On the other hand, the first instruction information is not supplied to the first wireless interface if execution of the target process is not instructed while the instruction screen is displayed. As a result, the public key is not transmitted to the first external device via the first wireless interface, so the communication device does not receive the authentication request using the public key from the first external device and does not establish the second wireless connection with the second external device. Thus, according to the present technology, it is possible to switch whether to establish the second wireless connection between the communication device and the second external device.

また、本明細書によって開示される通信装置は、第1の無線インターフェースと、前記第1の無線インターフェースとは異なる第2の無線インターフェースと、制御部と、を備え、前記制御部は、前記通信装置と第1の外部装置との間に前記第1の無線インターフェースを介した第1の無線接続が確立された後に、前記通信装置の動作状態を不可能状態から可能状態に移行させる状態移行部であって、前記不可能状態は、前記第1の外部装置から公開鍵が利用された認証要求を受信しても、前記認証要求に対する応答である認証応答を送信しない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記状態移行部と、を備え、前記第1の無線インターフェースは、前記第1の無線接続が確立された後に、前記公開鍵を前記第1の外部装置に送信し、前記制御部は、さらに、前記公開鍵が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、前記認証要求を受信する認証要求受信部と、前記通信装置の動作状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する認証応答送信部と、前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第2の無線インターフェースを介した第2の無線接続を確立するための情報である、前記接続情報受信部と、前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する第1の確立部と、を備えてもよい。 Further, the communication device disclosed by the present specification includes a first wireless interface, a second wireless interface different from the first wireless interface, and a controller, wherein the controller is a state transition unit that transitions the operating state of the communication device from the disabled state to the enabled state after a first wireless connection is established between the communication device and the first external device via the first wireless interface, wherein the disabled state is an authentication request using a public key received from the first external device. and the possible state is a state of transmitting the authentication response to the first external device in response to receiving the authentication request from the first external device. an authentication request receiving unit for receiving the authentication request from the first external device via the second wireless interface; an authentication response transmitting unit for transmitting the authentication response to the first external device via the second wireless interface when the authentication request is received from the first external device after the operation state of the communication device is shifted to the enabled state; a connection information receiving unit configured to receive connection information via a wireless interface, wherein the connection information is information for establishing a second wireless connection between the communication device and a second external device via the second wireless interface; and a first establishment unit configured to establish the second wireless connection between the communication device and the second external device via the second wireless interface using the connection information when the connection information is received from the first external device. , may be provided.

上記の構成によると、通信装置は、第1の外部装置との第1の無線接続が確立された後に、不可能状態から可能状態に移行する。これにより、通信装置は、第1の外部装置から、公開鍵が利用された認証要求を受信し、認証応答を第1の外部装置に送信し、第1の外部装置から接続情報を受信し、接続情報を利用して第2の外部装置との第2の無線接続を確立することができる。通信装置は、第1の外部装置との第1の無線接続が確立される前に、不可能状態よりも高い処理負荷である可能状態に移行しない。このために、第1の外部装置を利用して、通信装置と第2の外部装置との間に第2の無線接続を確立させる技術において、通信装置の処理負荷を軽減できる。 According to the above configuration, the communication device transitions from the disabled state to the enabled state after the first wireless connection with the first external device is established. Thereby, the communication device can receive an authentication request using a public key from the first external device, transmit an authentication response to the first external device, receive connection information from the first external device, and use the connection information to establish a second wireless connection with the second external device. The communication device does not transition to the Enabled state, which is a higher processing load than the Disabled state, before the first wireless connection is established with the first external device. For this reason, the processing load on the communication device can be reduced in the technique of establishing the second wireless connection between the communication device and the second external device using the first external device.

上記の通信装置を実現するためのコンピュータプログラム、及び、当該コンピュータプログラムを記憶するコンピュータ可読記録媒体も新規で有用である。また、上記の通信装置によって実行される方法も新規で有用である。また、上記の通信装置と他の装置(例えば第1の外部装置、第2の外部装置)とを備える通信システムも、新規で有用である。 A computer program for implementing the above communication device and a computer-readable recording medium storing the computer program are also novel and useful. The method performed by the communication device described above is also novel and useful. A communication system comprising the communication device described above and other devices (eg, a first external device, a second external device) is also novel and useful.

通信システムの構成を示す。1 shows the configuration of a communication system; 本実施例の概略を説明するための説明図を示す。FIG. 2 shows an explanatory diagram for explaining the outline of the present embodiment. ケースAのBootstrappingの処理のシーケンス図を示す。FIG. 12 is a sequence diagram of the bootstrapping process of case A; FIG. Authenticationの処理のシーケンス図を示す。FIG. 4 shows a sequence diagram of processing of Authentication. Configurationの処理のシーケンス図を示す。FIG. 10 is a sequence diagram of Configuration processing; Network Accessの処理のシーケンス図を示す。FIG. 4 shows a sequence diagram of Network Access processing. ケースBのBootstrappingの処理のシーケンス図を示す。FIG. 11 is a sequence diagram of the bootstrapping process of case B; FIG. ケースCのBootstrappingの処理のシーケンス図を示す。FIG. 12 is a sequence diagram of the bootstrapping process of case C; FIG. プリンタと端末との間にWi-Fi接続を確立する処理のシーケンス図を示す。FIG. 4 shows a sequence diagram of processing for establishing a Wi-Fi connection between a printer and a terminal;

(通信システム2の構成;図1)
図1に示されるように、通信システム2は、AP(Access Pointの略)6と、端末10と、プリンタ100と、を備える。本実施例では、ユーザが端末10を利用して、プリンタ100とAP6との間にWi-Fi方式に従った無線接続(以下では「Wi-Fi接続」と記載する)を確立させる状況を想定している。
(Configuration of communication system 2; Fig. 1)
As shown in FIG. 1 , the communication system 2 includes an AP (abbreviation for Access Point) 6 , a terminal 10 and a printer 100 . In this embodiment, it is assumed that the user uses the terminal 10 to establish a wireless connection (hereinafter referred to as "Wi-Fi connection") according to the Wi-Fi method between the printer 100 and the AP 6.

(端末10の構成)
端末10は、携帯電話(例えばスマートフォン)、PDA、タブレットPC等の可搬型の端末装置である。なお、変形例では、端末10は、据置型のPC、ノートPC等であってもよい。端末10は、Wi-Fiインターフェース16と、NFCインターフェース18と、を備える。以下では、インターフェースを単に「I/F」と記載する。また、端末10は、接続アプリケーション40(以下では単に「アプリ40」と記載する)を記憶している。アプリ40は、プリンタ100とAP6との間にWi-Fi接続を確立させるためのプログラムであり、例えば、プリンタ100のベンダによって提供されるインターネット上のサーバから端末10にインストールされる。
(Configuration of terminal 10)
The terminal 10 is a portable terminal device such as a mobile phone (for example, smart phone), PDA, tablet PC, or the like. Note that in a modification, the terminal 10 may be a stationary PC, a notebook PC, or the like. Terminal 10 comprises a Wi-Fi interface 16 and an NFC interface 18 . Below, the interface is simply described as "I/F". The terminal 10 also stores a connection application 40 (hereinafter simply referred to as "application 40"). The application 40 is a program for establishing a Wi-Fi connection between the printer 100 and the AP 6, and is installed in the terminal 10 from a server on the Internet provided by the vendor of the printer 100, for example.

Wi-FiI/F16は、Wi-Fi方式に従ったWi-Fi通信を実行するための無線インターフェースである。Wi-Fi方式は、例えば、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び、それに準ずる規格(例えば802.11a,11b,11g,11n等)に従って、無線通信を実行するための無線通信方式である。特に、Wi-FiI/F16は、Wi-Fi Allianceによって策定されたWFD(Wi-Fi Direct(登録商標)の略)方式と、Wi-Fi Allianceによって策定される予定であるDPP(Device Provisioning Protocolの略)方式と、をサポートしている。WFD方式は、Wi-Fi Allianceによって作成された規格書「Wi-Fi Peer-to-Peer (P2P) Technical Specification Version1.1」に記述されている無線通信方式である。WFDの規格では、WFD機器の状態として、Group Owner状態(以下では「G/O状態」と呼ぶ)、クライアント状態、及び、デバイス状態の3つの状態が定義されている。WFD機器は、上記の3つの状態のうちの1つの状態で選択的に動作可能である。DPP方式は、Wi-Fi Allianceによって作成された規格書のドラフトである「DRAFT Device Provisioning Protocol Technical Specification Version 0.2.11」に記述されており、端末10を利用して一対のデバイス(例えばプリンタ100とAP6)の間に容易にWi-Fi接続を確立させるための無線通信方式である。 A Wi-Fi I/F 16 is a wireless interface for performing Wi-Fi communication according to the Wi-Fi system. The Wi-Fi system is a wireless communication system for performing wireless communication according to, for example, the IEEE (abbreviation of The Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and its equivalent standards (eg, 802.11a, 11b, 11g, 11n, etc.). In particular, the Wi-Fi I/F 16 supports the WFD (abbreviation for Wi-Fi Direct (registered trademark)) method formulated by the Wi-Fi Alliance and the DPP (abbreviation for Device Provisioning Protocol) method to be formulated by the Wi-Fi Alliance. The WFD system is a wireless communication system described in the standard "Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1" created by the Wi-Fi Alliance. The WFD standard defines three states of a WFD device: a Group Owner state (hereinafter referred to as a "G/O state"), a client state, and a device state. A WFD appliance is selectively operable in one of the three states described above. The DPP method is described in "DRAFT Device Provisioning Protocol Technical Specification Version 0.2.11", which is a draft of a standard created by the Wi-Fi Alliance, and is a wireless communication method for easily establishing a Wi-Fi connection between a pair of devices (for example, a printer 100 and an AP 6) using a terminal 10.

NFCI/F18は、NFC方式に従ったNFC通信を実行するためのI/Fである。NFC方式は、例えば、ISO/IEC14443、15693、18092等の国際標準規格に基づく無線通信方式である。なお、NFC通信を実行するためのI/Fの種類として、NFCフォーラムデバイス(NFC Forum Device)と呼ばれるI/Fと、NFCフォーラムタグと呼ばれるI/Fと、が知られている。本実施例では、NFCI/F18は、NFCフォーラムデバイスである。 The NFCI/F 18 is an I/F for executing NFC communication according to the NFC system. The NFC system is a wireless communication system based on international standards such as ISO/IEC14443, 15693, 18092, for example. As types of I/Fs for executing NFC communication, an I/F called an NFC Forum Device and an I/F called an NFC Forum Tag are known. In this embodiment, NFCI/F18 is an NFC Forum device.

(プリンタ100の構成)
プリンタ100は、印刷機能を実行可能な周辺装置(例えば、端末10の周辺装置)である。プリンタ100は、操作部112と、表示部114と、Wi-FiI/F116と、NFCI/F118と、印刷実行部120と、制御部130と、を備える。各部112~130は、バス線(符号省略)に接続されている。
(Configuration of Printer 100)
The printer 100 is a peripheral device capable of executing a print function (for example, a peripheral device of the terminal 10). Printer 100 includes operation unit 112 , display unit 114 , Wi-Fi I/F 116 , NFCI/F 118 , print execution unit 120 , and control unit 130 . Each unit 112 to 130 is connected to a bus line (reference numerals omitted).

操作部112は、複数のキーを備える。ユーザは、操作部112を操作することによって、様々な指示をプリンタ100に入力することができる。表示部114は、様々な情報を表示するためのディスプレイである。印刷実行部120は、インクジェット方式、レーザ方式等の印刷機構を備える。 The operation unit 112 has a plurality of keys. A user can input various instructions to the printer 100 by operating the operation unit 112 . The display unit 114 is a display for displaying various information. The print execution unit 120 includes a printing mechanism such as an inkjet method or a laser method.

Wi-FiI/F116は、端末10のWi-FiI/F16と同様である。即ち、Wi-FiI/F116は、WFD方式とDPP方式とをサポートしている。このため、プリンタ100は、DPP方式に従ってAP6とのWi-Fi接続を確立することができ、さらに、WFD方式に従って端末10とのWi-Fi接続を確立することができる。また、Wi-FiI/F116は、MACアドレス「abc」を有する。NFCI/F118は、NFCフォーラムタグである点を除いて、端末10のNFCI/F18と同様である。なお、変形例では、NFCI/F118は、NFCフォーラムデバイスであってもよい。また、NFCI/F118は、メモリ119を備える。 Wi-Fi I/F 116 is similar to Wi-Fi I/F 16 of terminal 10 . That is, the Wi-Fi I/F 116 supports the WFD method and the DPP method. Therefore, the printer 100 can establish a Wi-Fi connection with the AP 6 according to the DPP method, and further can establish a Wi-Fi connection with the terminal 10 according to the WFD method. Also, the Wi-Fi I/F 116 has a MAC address “abc”. NFCI/F 118 is similar to NFCI/F 18 of terminal 10 except that it is an NFC Forum tag. Note that, in a modified example, the NFCI/F 118 may be an NFC Forum device. The NFCI/F 118 also includes a memory 119 .

ここで、Wi-Fi通信とNFC通信との間の相違点を説明しておく。Wi-Fi通信の通信速度(例えば最大の通信速度が11~600Mbps)は、NFC通信の通信速度(例えば最大の通信速度が100~424Kbps)よりも速い。また、Wi-Fi通信における搬送波の周波数(例えば2.4GHz帯又は5.0GHz帯)は、NFC通信における搬送波の周波数(例えば13.56MHz帯)とは異なる。また、Wi-Fi通信を実行可能な最大の距離(例えば最大で約100m)は、NFC通信を実行可能な最大の距離(例えば最大で約10cm)よりも大きい。 Here, differences between Wi-Fi communication and NFC communication will be described. The communication speed of Wi-Fi communication (for example, the maximum communication speed is 11 to 600 Mbps) is faster than the communication speed of NFC communication (for example, the maximum communication speed is 100 to 424 Kbps). In addition, the frequency of carrier waves in Wi-Fi communication (eg, 2.4 GHz band or 5.0 GHz band) is different from the frequency of carrier waves in NFC communication (eg, 13.56 MHz band). Also, the maximum distance over which Wi-Fi communication can be performed (eg, up to about 100 m) is greater than the maximum distance over which NFC communication can be performed (eg, up to about 10 cm).

制御部130は、CPU132とメモリ134とを備える。CPU132は、メモリ134に格納されているプログラム136に従って、様々な処理を実行する。メモリ134は、揮発性メモリ、不揮発性メモリ等によって構成される。 Control unit 130 includes CPU 132 and memory 134 . CPU 132 executes various processes according to programs 136 stored in memory 134 . The memory 134 is composed of a volatile memory, a nonvolatile memory, or the like.

(具体例;図2~図9)
続いて、図2~図9を参照して、各デバイス6,10,100によって実行される処理の具体例を説明する。まず、図2~図8を参照して、プリンタ100とAP6との間にWi-Fi接続を確立するための処理を説明する。
(Specific examples; Figures 2 to 9)
Next, specific examples of processing executed by each device 6, 10, 100 will be described with reference to FIGS. 2 to 9. FIG. First, processing for establishing a Wi-Fi connection between the printer 100 and the AP 6 will be described with reference to FIGS. 2 to 8. FIG.

(AP6との接続のための処理の概要;図2)
まず、図2を参照して、プリンタ100とAP6との間にWi-Fi接続を確立するための処理の概要を説明する。端末10及びプリンタ100がDPP方式をサポートしていることを上述したが、AP6もDPP方式をサポートしている。そして、本実施例では、各デバイス6,10,100がDPP方式に従った通信を実行することによって、プリンタ100とAP6との間のWi-Fi接続を確立することを実現する。以下では、理解の容易化のために、各デバイスのCPU(例えばCPU132等)が実行する動作を、CPUを主体として記載せずに、各デバイス(例えばプリンタ100)を主体として記載する。
(Outline of processing for connection with AP6; Fig. 2)
First, with reference to FIG. 2, an outline of processing for establishing a Wi-Fi connection between the printer 100 and the AP 6 will be described. As mentioned above, the terminal 10 and the printer 100 support the DPP method, and the AP6 also supports the DPP method. In this embodiment, each device 6, 10, 100 establishes a Wi-Fi connection between the printer 100 and the AP 6 by executing communication according to the DPP method. In the following, for ease of understanding, the operations executed by the CPU (for example, the CPU 132, etc.) of each device will be described mainly for each device (for example, the printer 100) instead of mainly for the CPU.

T5では、端末10は、DPP方式のBootstrapping(以下では、単に「BS」と記載する)をAP6と実行する。当該BSは、AP6に貼り付けられているQRコード(登録商標)が端末10によって撮影されることに応じて、後述のT10のAuthentication(以下では、単に「Auth」と記載する)で利用される情報をAP6から端末10に提供する処理である。 At T5, the terminal 10 performs DPP-based bootstrapping (hereinafter simply referred to as “BS”) with AP6. The BS is a process of providing the terminal 10 with information to be used for authentication of T10 (hereinafter simply referred to as "Auth") from the AP 6 in response to the terminal 10 photographing the QR code (registered trademark) attached to the AP 6.

T10では、端末10は、T5のBSで取得済みの情報を利用して、DPP方式のAuthをAP6と実行する。当該Authは、端末10及びAP6のそれぞれが通信相手を認証するための処理である。 At T10, the terminal 10 uses the information acquired by the BS at T5 to perform DPP Auth with AP6. The Auth is processing for each of the terminal 10 and the AP 6 to authenticate the communication partner.

T15では、端末10は、DPP方式のConfiguration(以下では、単に「Config」と記載する)をAP6と実行する。当該Configは、プリンタ100とAP6との間のWi-Fi接続を確立するための情報をAP6に送信する処理である。具体的には、端末10は、当該Configにおいて、プリンタ100とAP6との間にWi-Fi接続を確立させるための第1のConfiguration Object(以下では、Configuration Objectのことを単に「CO」と記載する)を生成して、第1のCOをAP6に送信する。この結果、AP6では、第1のCOが記憶される。 At T15, the terminal 10 performs DPP configuration (hereinafter simply referred to as “Config”) with AP6. The Config is a process of transmitting information for establishing Wi-Fi connection between the printer 100 and the AP6 to the AP6. Specifically, in the Config, the terminal 10 generates a first Configuration Object for establishing a Wi-Fi connection between the printer 100 and the AP 6 (hereinafter, the Configuration Object is simply referred to as "CO"), and transmits the first CO to the AP 6. As a result, AP6 stores the first CO.

次いで、端末10は、T20において、DPP方式のBSをプリンタ100と実行する。当該BSは、端末10のNFCI/F18とプリンタ100のNFCI/F118との間に確立されるNFC接続を利用して、後述のT25のAuthで利用される情報をプリンタ100から端末10に提供する処理である。 Next, the terminal 10 executes DPP BS with the printer 100 at T20. The BS is a process of providing the terminal 10 with information used in T25 Auth, which will be described later, from the printer 100 using the NFC connection established between the NFC I/F 18 of the terminal 10 and the NFC I/F 118 of the printer 100 .

T25では、端末10は、T20のBSで取得済みの情報を利用して、DPP方式のAuthをプリンタ100と実行する。当該Authは、端末10及びプリンタ100のそれぞれが通信相手を認証するための処理である。 At T25, the terminal 10 uses the information acquired by the BS at T20 to perform DPP Auth with the printer 100. FIG. The Auth is processing for each of the terminal 10 and the printer 100 to authenticate a communication partner.

T30では、端末10は、DPP方式のConfigをプリンタ100と実行する。当該Configは、プリンタ100とAP6との間のWi-Fi接続を確立するための情報をプリンタ100に送信する処理である。端末10は、当該Configにおいて、プリンタ100とAP6との間にWi-Fi接続を確立させるための第2のCOを生成して、第2のCOをプリンタ100に送信する。この結果、プリンタ100では、第2のCOが記憶される。 At T<b>30 , the terminal 10 executes DPP Config with the printer 100 . The Config is a process of transmitting information to the printer 100 for establishing a Wi-Fi connection between the printer 100 and the AP6. The terminal 10 generates a second CO for establishing Wi-Fi connection between the printer 100 and the AP 6 in the Config, and transmits the second CO to the printer 100 . As a result, the printer 100 stores the second CO.

T35では、プリンタ100及びAP6は、記憶済みの第1及び第2のCOを利用して、DPP方式のNetwork Access(以下では、単に「NA」と記載する)を実行する。NAは、Wi-Fi接続を確立するための接続キーをプリンタ100及びAP6の間で共有するための処理である。 At T35, the printer 100 and AP 6 use the stored first and second COs to execute DPP-based Network Access (hereinafter simply referred to as "NA"). NA is processing for sharing a connection key for establishing a Wi-Fi connection between the printer 100 and AP6.

T40では、プリンタ100及びAP6は、4way-handshakeの通信を実行する。4way-handshakeの通信の少なくとも一部の過程において、プリンタ100及びAP6は、T35のNAで共有済みの接続キーによって暗号化された暗号情報を通信する。そして、暗号情報の復号が成功する場合に、プリンタ100とAP6との間にWi-Fi接続が確立される。これにより、プリンタ100は、AP6によって形成される無線ネットワークに子局として参加することができ、この結果、AP6を介して、当該無線ネットワークに参加している他のデバイスとの通信を実行することができる。なお、変形例では、プリンタ100及びAP6は、4way-handshakeの通信に代えて、SAE(Simultaneous Authentication of Equalsの略、通称「Dragonfly」)の通信を実行してもよい。 At T40, the printer 100 and AP6 execute 4way-handshake communication. In at least a part of the 4way-handshake communication, the printer 100 and the AP 6 communicate encrypted information encrypted by the connection key shared by NA of T35. Then, when the encryption information is successfully decrypted, a Wi-Fi connection is established between the printer 100 and the AP6. As a result, the printer 100 can participate in the wireless network formed by the AP 6 as a slave station, and as a result, communicate with other devices participating in the wireless network via the AP 6. In a modified example, the printer 100 and the AP 6 may perform SAE (abbreviation for Simultaneous Authentication of Equals, commonly known as “Dragonfly”) communication instead of 4way-handshake communication.

T45では、プリンタ100は、Wi-Fi接続がAP6と確立されたことを示す完了画面を表示部114に表示させる。T45の処理が終了すると、図2の処理が終了する。 At T45, the printer 100 causes the display unit 114 to display a completion screen indicating that the Wi-Fi connection has been established with the AP6. When the process of T45 ends, the process of FIG. 2 ends.

DPP方式では、プリンタ100とAP6との間にWi-Fi接続を確立させるために、ユーザは、AP6が親局として動作する無線ネットワークの情報(例えばSSID(Service Set Identifierの略)、パスワード等)をプリンタ100に入力する必要がない。従って、ユーザは、プリンタ100とAP6との間のWi-Fi接続を容易に確立させることができる。 In the DPP method, in order to establish a Wi-Fi connection between the printer 100 and the AP 6, the user does not need to enter into the printer 100 the information of the wireless network in which the AP 6 operates as a master station (for example, SSID (abbreviation of Service Set Identifier), password, etc.). Therefore, the user can easily establish a Wi-Fi connection between the printer 100 and the AP6.

(各処理の説明;図3~図8)
続いて、図3~図8を参照して、図2のT20~T35において実行される各処理の詳細を説明する。なお、T5~T15の処理は、プリンタ100に代えてAP6が利用される点を除いて、T20~T30の処理と同様であるので、その詳細な説明を省略する。また、図3、図7、及び、図8は、端末10とプリンタ100との間で実行されるBSの各ケースを示す。これらのケースは、一つの実施例において実行される処理である。
(Description of each process; FIGS. 3 to 8)
Next, the details of each process executed at T20 to T35 in FIG. 2 will be described with reference to FIGS. 3 to 8. FIG. The processing from T5 to T15 is the same as the processing from T20 to T30 except that the AP6 is used instead of the printer 100, so detailed description thereof will be omitted. 3, 7, and 8 show each case of BS executed between the terminal 10 and the printer 100. FIG. These cases are the processing performed in one embodiment.

(ケースAのBootstrapping(BS);図3)
まず、図3を参照して、図2のT20のBSのケースAの処理を説明する。図3の初期状態では、プリンタ100のメモリ134は、プリンタ100の公開鍵PPK1及び秘密鍵psk1を予め記憶している。
(Bootstrapping (BS) of case A; Fig. 3)
First, with reference to FIG. 3, the processing of the BS case A at T20 in FIG. 2 will be described. In the initial state of FIG. 3, the memory 134 of the printer 100 pre-stores the public key PPK1 and the private key psk1 of the printer 100 .

プリンタ100は、T100において、ユーザから電源ON操作を受け付けることに応じて、T105において、メニュー画面MSを表示部114に表示させる。画面MSは、換言すればプリンタ100のデフォルト画面であり、プリンタ100に印刷を実行させる印刷ボタンと、プリンタ100の各種設定(例えば印刷設定等)を指定するための設定ボタンと、を含む。 The printer 100 causes the display unit 114 to display the menu screen MS at T105 in response to receiving the power ON operation from the user at T100. The screen MS is, in other words, the default screen of the printer 100, and includes a print button for causing the printer 100 to print, and a setting button for designating various settings of the printer 100 (for example, print settings).

プリンタ100は、メモリ134が第2のCO(図2のT30参照)をまだ記憶していないので、T107において、NFCI/F118の動作モードを非設定モードから設定モードに移行させる。従って、メモリ134が第2のCOを記憶していない状態では、ユーザがプリンタ100の電源をONするだけで、NFCI/F118の動作モードが非設定モードから設定モードに自動的に移行される。非設定モードは、NFCI/F118に通電されていない状態であり、NFC接続を確立不可能なモードである。設定モードは、NFCI/F118に通電されている状態であり、NFC接続を確立可能なモードである。 Since the memory 134 has not yet stored the second CO (see T30 in FIG. 2), the printer 100 shifts the operation mode of the NFCI/F 118 from the non-setting mode to the setting mode at T107. Therefore, when the memory 134 does not store the second CO, the operation mode of the NFCI/F 118 is automatically changed from the non-setting mode to the setting mode simply by turning on the power of the printer 100 by the user. The non-setting mode is a state in which the NFCI/F 118 is not energized and an NFC connection cannot be established. The setting mode is a state in which the NFC I/F 118 is energized and an NFC connection can be established.

T109では、プリンタ100(即ちCPU132)は、端末10にインストールされているアプリ40を起動するためのアプリ起動指示をNFCI/F118に供給する。この結果、NFCI/F118では、メモリ119内にアプリ起動指示が記憶される。 In T109, the printer 100 (that is, the CPU 132) supplies an application activation instruction for activating the application 40 installed in the terminal 10 to the NFCI/F 118. FIG. As a result, the NFCI/F 118 stores the application activation instruction in the memory 119 .

T110において、ユーザによって端末10がプリンタ100に近付けられることに応じて、T112において、端末10のNFCI/F18とプリンタ100のNFCI/F118との間にNFC接続が確立される。この場合、NFCI/F118は、T113において、当該NFC接続を利用して、NFCI/F18からReadコマンドを受信することに応じて、T114において、当該NFC接続を利用して、メモリ119内のアプリ起動指示をNFCI/F18に送信する。この結果、T118において、端末10のアプリ40が起動される。このように、ユーザが端末10をプリンタ100に近付けるだけでアプリ40が起動されるので、ユーザの利便性が向上する。 In response to the terminal 10 being brought closer to the printer 100 by the user at T110, an NFC connection is established between the NFCI/F 18 of the terminal 10 and the NFCI/F 118 of the printer 100 at T112. In this case, the NFC I/F 118 uses the NFC connection to transmit the application activation instruction in the memory 119 to the NFC I/F 18 at T114 in response to receiving the Read command from the NFC I/F 18 using the NFC connection at T113. As a result, the application 40 of the terminal 10 is activated at T118. As described above, the application 40 is activated only by the user bringing the terminal 10 closer to the printer 100, thereby improving convenience for the user.

プリンタ100(即ちCPU132)は、アプリ起動指示を送信したことを示す通知をNFCI/F118から取得することに応じて、T116において、選択画面SLSを表示部114に表示させる。画面SLSは、AP6とのWi-Fi接続を確立するための処理を実行すべきことを示す「APとの接続」ボタンと、端末10とのWi-Fi接続を確立するための処理を実行すべきことを示す「端末との接続」ボタンと、を含む。 The printer 100 (that is, the CPU 132) causes the display unit 114 to display the selection screen SLS in T116 in response to obtaining from the NFCI/F 118 the notification indicating that the application activation instruction has been sent. The screen SLS includes a "Connect with AP" button indicating that processing for establishing Wi-Fi connection with AP 6 should be executed, and a "Connect with terminal" button indicating that processing for establishing Wi-Fi connection with terminal 10 should be executed.

端末10は、T118において、アプリ40を起動すると、アプリ40に従って以下の各処理を実行する。具体的には、端末10は、まず、通知画面を表示する。当該通知画面は、プリンタにおいて処理を選択した後に、端末10をプリンタ100に近付けることをユーザに促すメッセージを含む。次いで、端末10は、T112で確立されたNFC接続の切断を指示する情報をNFCI/F18に供給する。この結果、T119では、当該NFC接続が切断される。 In T118, when the application 40 is activated, the terminal 10 executes each of the following processes according to the application 40. FIG. Specifically, the terminal 10 first displays a notification screen. The notification screen includes a message prompting the user to bring the terminal 10 closer to the printer 100 after selecting the process on the printer. The terminal 10 then supplies the NFCI/F 18 with information instructing the disconnection of the NFC connection established at T112. As a result, at T119, the NFC connection is disconnected.

プリンタ100(即ちCPU132)は、T120において、画面SLS内の「APとの接続」ボタンがユーザによって選択されることに応じて、T122において、公開鍵の送信を指示する公開鍵送信指示をNFCI/F118に供給する。公開鍵送信指示は、メモリ134に予め記憶されているプリンタ100の公開鍵PPK1と、メモリ134に予め記憶されているチャネルリストと、Wi-FiI/F116のMACアドレス「abc」と、を含む。チャネルリストは、プリンタ100において予め決められている複数個の通信チャネル(即ちプリンタ100が利用可能な複数個の通信チャネル)を示す情報である。NFCI/F118では、公開鍵送信指示が取得されることに応じて、公開鍵送信指示内の公開鍵PPK1とチャネルリストとMACアドレス「abc」とがメモリ119内に記憶される。 The printer 100 (that is, the CPU 132) supplies a public key transmission instruction for transmitting a public key to the NFCI/F 118 at T122 in response to the user selecting the "connect to AP" button in the screen SLS at T120. The public key transmission instruction includes public key PPK1 of printer 100 stored in memory 134 in advance, a channel list stored in memory 134 in advance, and the MAC address “abc” of Wi-Fi I/F 116 . The channel list is information indicating a plurality of communication channels predetermined in the printer 100 (that is, a plurality of communication channels available to the printer 100). In NFCI/F 118, public key PPK1, channel list, and MAC address “abc” in the public key transmission instruction are stored in memory 119 in response to acquisition of the public key transmission instruction.

次いで、T124では、プリンタ100は、不可能状態から可能状態に移行する。不可能状態は、Wi-FiI/F116が、端末10からDPP Authentication Request(以下では、単に「AReq」と記載する)(後述の図4のT200参照)を受信しても、DPP Authentication Response(以下では、単に「ARes」と記載する)(後述のT210参照)を送信しない状態である。可能状態は、Wi-FiI/F116が、端末10からAReqを受信することに応じて、AResを端末10に送信する状態である。即ち、プリンタ100は、不可能状態から可能状態に移行することによって、Auth(図2のT25参照)を実行可能な状態になる。具体的には、本実施例では、不可能状態は、Wi-FiI/F116が、外部から信号を受信しても、当該信号をCPU132に供給しない状態である。また、可能状態は、Wi-FiI/F116が、外部から信号を受信することに応じて、当該信号をCPU132に供給し、当該信号に対する応答を送信する状態である。可能状態は、CPU132が外部から受信した信号を処理する状態であるので、不可能状態と比較して処理負荷が高い。なお、変形例では、不可能状態がWi-FiI/F116に通電されていない状態であり、可能状態がWi-FiI/F116に通電されている状態であってもよい。また、別の変形例では、不可能状態は、Wi-FiI/F116が、外部からAReqを受信しても、AReqが受信されたことを示す通知をCPU132に供給しない状態であり、可能状態は、Wi-FiI/F116が、外部からAReqを受信することに応じて、AReqが受信されたことを示す通知をCPU132に供給する状態であってもよい。 Next, at T124, the printer 100 transitions from the disabled state to the enabled state. The disabled state is a state in which the Wi-Fi I/F 116 receives a DPP Authentication Request (hereinafter simply referred to as "AReq") (see T200 in FIG. 4 below) from the terminal 10, but does not transmit a DPP Authentication Response (hereinafter simply referred to as "ARes") (see T210 below). The enabled state is a state in which the Wi-Fi I/F 116 transmits ARes to the terminal 10 in response to receiving AReq from the terminal 10 . That is, the printer 100 enters a state in which Auth (see T25 in FIG. 2) can be executed by shifting from the disabled state to the enabled state. Specifically, in this embodiment, the disabled state is a state in which the Wi-Fi I/F 116 receives a signal from the outside but does not supply the signal to the CPU 132 . The enabled state is a state in which the Wi-Fi I/F 116 receives a signal from the outside, supplies the signal to the CPU 132, and transmits a response to the signal. Since the enabled state is a state in which the CPU 132 processes signals received from the outside, the processing load is higher than that in the disabled state. In a modified example, the disabled state may be a state in which the Wi-Fi I/F 116 is not energized, and the possible state may be a state in which the Wi-Fi I/F 116 is energized. In another modification, the disabled state is a state in which even if the Wi-Fi I/F 116 receives an AReq from the outside, it does not supply the notification indicating that the AReq has been received to the CPU 132, and the enabled state may be a state in which the Wi-Fi I/F 116 supplies the CPU 132 with a notification indicating that the AReq has been received in response to receiving the AReq from the outside.

T130~T133は、T110~T113と同様である。T134では、プリンタ100のNFCI/F118は、T132で確立されたNFC接続を利用して、メモリ119内の公開鍵PPK1とチャネルリストとMACアドレス「abc」とを端末10のNFCI/F18に送信する。この結果、プリンタ100の公開鍵PPK1とチャネルリストとMACアドレス「abc」とが端末10によって取得される。 T130 to T133 are the same as T110 to T113. At T134, the NFC I/F 118 of the printer 100 uses the NFC connection established at T132 to transmit the public key PPK1, the channel list, and the MAC address "abc" in the memory 119 to the NFC I/F 18 of the terminal 10. As a result, the terminal 10 acquires the public key PPK1, the channel list, and the MAC address “abc” of the printer 100 .

T136では、端末10は、プリンタ100とAP6との間にWi-Fi接続を確立するための接続処理を実行するのか否かをユーザに問い合せる端末側確認画面TCSを表示する。画面TCSは、接続処理を実行することを示すYESボタンと、接続処理を実行しないことを示すNOボタンと、を含む。T140では、端末10は、ユーザから画面TCS内のYESボタンの選択を受け付ける。T140の処理が終了すると、ケースAのBSの処理が終了する。 At T136, the terminal 10 displays a terminal-side confirmation screen TCS asking the user whether or not to execute connection processing for establishing a Wi-Fi connection between the printer 100 and the AP6. The screen TCS includes a YES button indicating execution of connection processing and a NO button indicating not executing connection processing. At T140, the terminal 10 accepts selection of the YES button in the screen TCS from the user. When the process of T140 ends, the BS process of case A ends.

(Authentication(Auth);図4)
続いて、図4を参照して、図2のT25のAuthの処理を説明する。端末10は、図3のT140において、画面TCS内のYESボタンがユーザによって選択されることに応じて、T141において、端末10の公開鍵TPK1及び秘密鍵tsk1を生成する。次いで、端末10は、T142において、ECDH(Elliptic curve Diffie-Hellman key exchangeの略)に従って、生成済みの秘密鍵tsk1と、図3のT134で取得されたプリンタ100の公開鍵PPK1と、を用いて、共有鍵SK1を生成する。そして、端末10は、T144において、生成済みの共有鍵SK1を用いてランダム値RV1を暗号化して、暗号化データED1を生成する。
(Authentication (Auth); Fig. 4)
Next, the Auth processing at T25 in FIG. 2 will be described with reference to FIG. The terminal 10 generates a public key TPK1 and a private key tsk1 of the terminal 10 in T141 in response to the user selecting the YES button in the screen TCS in T140 of FIG. Next, at T142, the terminal 10 uses the generated secret key tsk1 and the public key PPK1 of the printer 100 obtained at T134 in FIG. Then, in T144, the terminal 10 encrypts the random value RV1 using the generated shared key SK1 to generate encrypted data ED1.

T200では、端末10は、Wi-FiI/F16を介して、図3のT134で取得されたMACアドレス「abc」を送信先として、AReqをプリンタ100に送信する。AReqは、認証の実行をプリンタ100に要求する信号である。ここで、端末10は、T134で取得されたチャネルリスト内の複数個の通信チャネルを順次利用して、AReqをプリンタ100に送信することを繰り返す。当該AReqは、T141で生成された端末10の公開鍵TPK1と、T144で生成された暗号化データED1と、端末10のcapabilityと、を含む。 At T200, the terminal 10 transmits AReq to the printer 100 via the Wi-Fi I/F 16 with the MAC address "abc" acquired at T134 in FIG. AReq is a signal requesting the printer 100 to perform authentication. Here, the terminal 10 repeats transmitting AReq to the printer 100 by sequentially using the plurality of communication channels in the channel list obtained in T134. The AReq includes the public key TPK1 of the terminal 10 generated at T141, the encrypted data ED1 generated at T144, and the capabilities of the terminal 10.

capabilityは、DPP方式をサポートしている機器において予め指定されている情報であり、DPP方式のConfiguratorのみとして動作可能であることを示す値と、DPP方式のEnrolleeのみとして動作可能であることを示す値と、Configurator及びEnrolleeのどちらとしても動作可能であることを示す値と、のいずれか1個の値を含む。なお、Configuratorは、Config(図2のT30)において、NA(図2のT35)で利用されるCOをEnrolleeに送信するデバイスを意味する。一方、Enrolleeは、Configにおいて、ConfiguratorからNAで利用されるCOを受信するデバイスを意味する。上記のように、本実施例では、端末10が第1又は第2のCOを生成してAP6又はプリンタ100に送信する。従って、端末10のcapabilityは、Configuratorのみとして動作可能であることを示す値を含む。 The capability is information that is specified in advance in a device that supports the DPP method, and includes any one of a value indicating that it can operate only as a DPP method configurator, a value indicating that it can operate only as a DPP method Enrollee, and a value indicating that it can operate as both a Configurator and an Enrollee. Configurator means a device that transmits CO used in NA (T35 in FIG. 2) to Enrollee in Config (T30 in FIG. 2). On the other hand, Enrollee means a device that receives CO used in NA from Configurator in Config. As described above, in this embodiment, the terminal 10 generates the first or second CO and transmits it to the AP 6 or printer 100 . Therefore, the capability of the terminal 10 includes a value indicating that it can operate only as a configurator.

プリンタ100は、T200において、端末10から、Wi-FiI/F116を介して、AReqを受信する。上記のように、当該AReqは、プリンタ100のMACアドレス「abc」を送信先として送信される。従って、プリンタ100は、端末10から当該AReqを適切に受信することができる。 The printer 100 receives AReq from the terminal 10 via the Wi-Fi I/F 116 at T200. As described above, the AReq is transmitted with the MAC address "abc" of the printer 100 as the destination. Therefore, the printer 100 can appropriately receive the AReq from the terminal 10 .

また、プリンタ100は、図3のT124で可能状態に移行すると、チャネルリスト内の複数個の通信チャネルのうちの1個の通信チャネルが利用されたAReqを受信することを監視する。上記のように、T200のAReqは、チャネルリスト内の複数個の通信チャネルを順次利用して送信される。従って、プリンタ100は、端末10から当該AReqを適切に受信することができる。 Also, when the printer 100 transitions to the enabled state at T124 in FIG. 3, the printer 100 monitors reception of an AReq using one of the plurality of communication channels in the channel list. As described above, the T200 AReq is transmitted using a plurality of communication channels in the channel list in sequence. Therefore, the printer 100 can appropriately receive the AReq from the terminal 10 .

次いで、プリンタ100は、AReqの送信元(即ち端末10)を認証するための以下の処理を実行する。具体的には、まず、プリンタ100は、T202において、ECDHに従って、当該AReq内の端末10の公開鍵TPK1と、メモリ134内に予め記憶されているプリンタ100の秘密鍵psk1と、を用いて、共有鍵SK1を生成する。ここで、T142で端末10によって生成される共有鍵SK1と、T204でプリンタ100によって生成される共有鍵SK1と、は同じである。従って、プリンタ100は、T204において、生成済みの共有鍵SK1を用いて、当該AReq内の暗号化データED1を適切に復号することができ、この結果、ランダム値RV1を取得することができる。プリンタ100は、暗号化データED1の復号が成功する場合には、当該AReqの送信元が図3のT132でNFC接続が確立されたデバイスであると判断し、即ち、認証が成功したと判断し、T206以降の処理を実行する。一方、プリンタ100は、仮に、暗号化データED1の復号が成功しない場合には、当該AReqの送信元がT132でNFC接続が確立されたデバイスでないと判断し、即ち、認証が失敗したと判断し、T206以降の処理を実行しない。 Next, the printer 100 executes the following processing for authenticating the source of the AReq (that is, the terminal 10). Specifically, first, in T202, the printer 100 generates a shared key SK1 using the public key TPK1 of the terminal 10 in the AReq and the private key psk1 of the printer 100 stored in advance in the memory 134 according to ECDH. Here, the shared key SK1 generated by the terminal 10 at T142 is the same as the shared key SK1 generated by the printer 100 at T204. Therefore, in T204, the printer 100 can appropriately decrypt the encrypted data ED1 in the AReq by using the generated shared key SK1, and as a result, obtain the random value RV1. If the decryption of the encrypted data ED1 succeeds, the printer 100 determines that the source of the AReq is the device with which the NFC connection was established in T132 of FIG. On the other hand, if the decryption of the encrypted data ED1 is not successful, the printer 100 determines that the source of the AReq is not the device with which the NFC connection was established in T132, that is, determines that the authentication has failed, and does not execute the processing after T206.

プリンタ100は、T206において、プリンタ100の新たな公開鍵PPK2及び新たな秘密鍵psk2を生成する。なお、変形例では、公開鍵PPK2及び秘密鍵psk2は、メモリ134に予め記憶されていてもよい。次いで、プリンタ100は、T207において、ECDHに従って、T200のAReq内の端末10の公開鍵TPK1と、生成済みのプリンタ100の秘密鍵psk2と、を用いて、共有鍵SK2を生成する。そして、プリンタ100は、T208において、生成済みの共有鍵SK2を用いて、取得済みのランダム値RV1及び新たなランダム値RV2を暗号化して、暗号化データED2を生成する。 The printer 100 generates a new public key PPK2 and a new private key psk2 for the printer 100 in T206. Note that, in a modified example, the public key PPK2 and the private key psk2 may be stored in the memory 134 in advance. Next, in T207, the printer 100 uses the public key TPK1 of the terminal 10 in the AReq of T200 and the generated private key psk2 of the printer 100 to generate a shared key SK2 according to ECDH. In T208, the printer 100 encrypts the obtained random value RV1 and the new random value RV2 using the generated shared key SK2 to generate encrypted data ED2.

T210では、プリンタ100は、Wi-FiI/F116を介して、AResを端末10に送信する。当該AResは、T206で生成されたプリンタ100の公開鍵PPK2と、T208で生成された暗号化データED2と、プリンタ100のcapabilityと、を含む。当該capabilityは、Enrolleeのみとして動作可能であることを示す値を含む。 At T210, the printer 100 transmits ARes to the terminal 10 via the Wi-Fi I/F116. The ARes includes the public key PPK2 of the printer 100 generated at T206, the encrypted data ED2 generated at T208, and the capabilities of the printer 100. The capability includes a value indicating that it can operate as an Enrollee only.

端末10は、T210において、プリンタ100から、Wi-FiI/F16を介して、AResを受信することに応じて、当該AResの送信元(即ちプリンタ100)を認証するための以下の処理を実行する。具体的には、まず、端末10は、T212において、ECDHに従って、T141で生成された端末10の秘密鍵tsk1と、当該ARes内のプリンタ100の公開鍵PPK2と、を用いて、共有鍵SK2を生成する。ここで、T207でプリンタ100によって生成される共有鍵SK2と、T212で端末10によって生成される共有鍵SK2と、は同じである。従って、端末10は、T214において、生成済みの共有鍵SK2を用いて、当該ARes内の暗号化データED2を適切に復号することができ、この結果、ランダム値RV1及びRV2を取得することができる。端末10は、暗号化データED2の復号が成功する場合には、当該AResの送信元が図3のT132でNFC接続が確立されたデバイスであると判断し、即ち、認証が成功したと判断し、T220以降の処理を実行する。一方、端末10は、仮に、暗号化データED2の復号が成功しない場合には、当該AResの送信元がT132でNFC接続が確立されたデバイスでないと判断し、即ち、認証が失敗したと判断し、T220以降の処理を実行しない。 In response to receiving ARes from the printer 100 via the Wi-Fi I/F 16 at T210, the terminal 10 executes the following process for authenticating the source of the ARes (that is, the printer 100). Specifically, first, at T212, the terminal 10 generates a shared key SK2 according to ECDH using the private key tsk1 of the terminal 10 generated at T141 and the public key PPK2 of the printer 100 in the ARes. Here, the shared key SK2 generated by the printer 100 at T207 is the same as the shared key SK2 generated by the terminal 10 at T212. Therefore, at T214, the terminal 10 can appropriately decrypt the encrypted data ED2 in the ARes using the generated shared key SK2, and as a result, can obtain the random values RV1 and RV2. If the decryption of the encrypted data ED2 succeeds, the terminal 10 determines that the source of the ARes is the device with which the NFC connection was established in T132 of FIG. On the other hand, if the decryption of the encrypted data ED2 is not successful, the terminal 10 determines that the source of the ARes is not the device with which the NFC connection was established at T132, that is, determines that the authentication has failed, and does not execute the processing from T220.

T220において、端末10は、Wi-FiI/F16を介して、Confirmをプリンタ100に送信する。Confirmは、端末10がConfiguratorとして動作し、かつ、プリンタ100がEnrolleeとして動作することを示す情報を含む。この結果、T222において、Configuratorとして動作することが端末10によって決定され、T224において、Enrolleeとして動作することがプリンタ100によって決定される。T224の処理が終了すると、図4の処理が終了する。 At T220, the terminal 10 transmits Confirm to the printer 100 via the Wi-Fi I/F 16. FIG. Confirm includes information indicating that the terminal 10 operates as a configurator and the printer 100 operates as an enrollee. As a result, in T222, the terminal 10 decides to operate as a configurator, and in T224, the printer 100 decides to operate as an enrollee. When the process of T224 ends, the process of FIG. 4 ends.

(Configuration(Config);図5)
続いて、図5を参照して、図2のT30のConfigの処理を説明する。T300では、プリンタ100は、Wi-FiI/F116を介して、DPP Configuration Request(以下では、単に「CReq」と記載する)を端末10に送信する。当該CReqは、CO(即ちプリンタ100とAP6との間のWi-Fi接続を確立するための情報)の送信を要求する信号である。
(Configuration (Config); Fig. 5)
Next, the Config processing at T30 in FIG. 2 will be described with reference to FIG. At T300, the printer 100 transmits a DPP Configuration Request (hereinafter simply referred to as “CReq”) to the terminal 10 via the Wi-Fi I/F 116. FIG. The CReq is a signal requesting transmission of CO (that is, information for establishing a Wi-Fi connection between the printer 100 and the AP 6).

端末10は、T300において、プリンタ100から、Wi-FiI/F16を介して、CReqを受信する。この場合、端末10は、T301において、端末10のメモリ(図示省略)から、グループID「Group1」と公開鍵TPK2と秘密鍵tsk2とを取得する。上述したように、端末10は、図2のT15のConfigをAP6と実行済みであり、この際に、グループID「Group1」と公開鍵TPK2と秘密鍵tsk2とを生成してメモリに記憶する。グループID「Group1」は、プリンタ100とAP6との間のWi-Fi接続が確立されることによって形成される無線ネットワークを識別する情報である。なお、変形例では、ユーザによって指定された文字列がグループIDとして利用されてもよい。即ち、T301では、端末10は、図2のT15で記憶された各情報を取得する。次いで、端末10は、T302において、第2のCO(図2のT30参照)を生成する。具体的には、端末10は、以下の各処理を実行する。 The terminal 10 receives CReq from the printer 100 via the Wi-Fi I/F 16 at T300. In this case, the terminal 10 acquires the group ID “Group1”, the public key TPK2, and the secret key tsk2 from the memory (not shown) of the terminal 10 in T301. As described above, the terminal 10 has executed the Config of T15 in FIG. 2 with the AP 6, and at this time, generates the group ID "Group1", the public key TPK2, and the secret key tsk2, and stores them in the memory. The group ID “Group1” is information identifying a wireless network formed by establishing a Wi-Fi connection between the printer 100 and the AP6. Note that in a modification, a character string specified by the user may be used as the group ID. That is, at T301, the terminal 10 acquires each piece of information stored at T15 in FIG. Next, the terminal 10 generates a second CO (see T30 in FIG. 2) in T302. Specifically, the terminal 10 executes the following processes.

端末10は、端末10の公開鍵TPK2をハッシュ化することによって、ハッシュ値HVを生成する。また、端末10は、ハッシュ値HVと、グループID「Group1」と、図4のT210のARes内のプリンタ100の公開鍵PPK2と、の組み合わせをハッシュ化することによって、特定値を生成する。そして、端末10は、ECDSA(Elliptic Curve Digital Signature Algorithmの略)に従って、端末10の秘密鍵tsk2を用いて、生成済みの特定値を暗号化することによって、電子署名DS1を生成する。この結果、端末10は、ハッシュ値HVと、グループID「Group1」と、プリンタ100の公開鍵PPK2と、電子署名DS1と、を含むプリンタ用Signed-Connector(以下では、Signed-Connectorのことを単に「SCont」と記載する)を生成することができる。そして、端末10は、プリンタ用SContと、端末10の公開鍵TPK2と、を含む第2のCOを生成する。 Terminal 10 generates hash value HV by hashing public key TPK2 of terminal 10 . Also, the terminal 10 generates a specific value by hashing the combination of the hash value HV, the group ID “Group1”, and the public key PPK2 of the printer 100 in ARes of T210 in FIG. Then, the terminal 10 generates the electronic signature DS1 by encrypting the generated specific value using the secret key tsk2 of the terminal 10 according to ECDSA (abbreviation of Elliptic Curve Digital Signature Algorithm). As a result, the terminal 10 can generate a signed-connector for the printer (hereinbelow, the signed-connector is simply referred to as "SCont") including the hash value HV, the group ID "Group1", the public key PPK2 of the printer 100, and the electronic signature DS1. Then, the terminal 10 generates a second CO including the printer SCont and the public key TPK2 of the terminal 10 .

T310では、端末10は、Wi-FiI/F16を介して、第2のCOを含むDPP Configuration Response(以下では、単に「CRes」と記載する)をプリンタ100に送信する。 At T310, the terminal 10 transmits to the printer 100 via the Wi-Fi I/F 16 a DPP Configuration Response (hereinafter simply referred to as "CRes") including the second CO.

プリンタ100は、T310において、端末10から、Wi-FiI/F116を介して、CResを受信する。この場合、プリンタ100は、T312において、当該CRes内の第2のCOをメモリ134に記憶する。T312の処理が終了すると、図5の処理が終了する。 The printer 100 receives CRes from the terminal 10 via the Wi-Fi I/F 116 at T310. In this case, the printer 100 stores the second CO in the CRes in the memory 134 at T312. When the process of T312 ends, the process of FIG. 5 ends.

(Network Access(NA);図6)
続いて、図6を参照して、プリンタ100とAP6との間で実行される図2のT35のNAの処理を説明する。上記のように、図2のT20~T30と同様に、図2のT5~T15の処理が端末10及びAP6の間で実行済みである。ただし、AP6は、図3のT105~T134の処理を実行しない。AP6は、AP6の公開鍵APK1及び秘密鍵ask1を予め記憶している。そして、AP6の公開鍵APK1と、AP6のチャネルリストと、AP6のMACアドレスと、をコード化することによって得られるQRコードが、AP6の筐体に貼り付けられている。端末10が当該QRコードを撮影することによって、端末10及びAP6の間でT136以降の各処理と同様の各処理が実行される。この結果、AP6は、AP6の公開鍵APK2及び秘密鍵ask2を記憶し(図4のT206参照)、さらに、端末10から受信される第1のCOを記憶する(図5のT312参照)。第1のCOは、AP用SContと、端末10の公開鍵TPK2と、を含む。当該公開鍵TPK2は、第2のCOに含まれる公開鍵TPK2と同じである。また、AP用SContは、ハッシュ値HVと、グループID「Group1」と、AP6の公開鍵APK2と、電子署名DS2と、を含む。当該ハッシュ値HV及び当該グループID「Group1」は、それぞれ、第2のCOに含まれるハッシュ値HV及びグループID「Group1」と同じである。電子署名DS2は、ハッシュ値HVとグループID「Group1」と公開鍵APK2との組み合わせをハッシュ化することによって得られる特定値が端末10の秘密鍵tsk2によって暗号化された情報であり、第2のCOに含まれる電子署名DS1とは異なる値である。
(Network Access (NA); Fig. 6)
Next, with reference to FIG. 6, the processing of NA in T35 of FIG. 2 executed between the printer 100 and AP6 will be described. As described above, the processing of T5 to T15 in FIG. 2 has already been executed between the terminal 10 and AP6, similar to T20 to T30 in FIG. However, AP6 does not execute the processing of T105 to T134 in FIG. AP6 pre-stores AP6's public key APK1 and secret key ask1. A QR code obtained by encoding AP6's public key APK1, AP6's channel list, and AP6's MAC address is attached to the housing of AP6. By photographing the QR code by the terminal 10, each process similar to each process after T136 is executed between the terminal 10 and the AP6. As a result, AP6 stores AP6's public key APK2 and secret key ask2 (see T206 in FIG. 4), and further stores the first CO received from terminal 10 (see T312 in FIG. 5). The first CO includes SCont for AP and public key TPK2 of terminal 10 . The public key TPK2 is the same as the public key TPK2 included in the second CO. Also, the AP SCont includes a hash value HV, a group ID "Group1", a public key APK2 of AP6, and an electronic signature DS2. The hash value HV and the group ID "Group1" are the same as the hash value HV and the group ID "Group1" included in the second CO, respectively. The electronic signature DS2 is information obtained by hashing a combination of the hash value HV, the group ID "Group1", and the public key APK2 and encrypting the specific value with the private key tsk2 of the terminal 10, and is a different value from the electronic signature DS1 included in the second CO.

プリンタ100は、T400において、Wi-FiI/F116を介して、プリンタ用SContを含むDPP Peer Discovery Request(以下では、単に「DReq」と記載する)をAP6に送信する。当該DReqは、認証の実行と、AP用SContの送信と、をAP6に要求する信号である。 At T400, the printer 100 transmits a DPP Peer Discovery Request (hereinafter simply referred to as “DReq”) including the printer SCont to the AP 6 via the Wi-Fi I/F 116 . The DReq is a signal requesting the AP 6 to perform authentication and transmit SCont for AP.

AP6は、T400において、プリンタ100からDReqを受信することに応じて、DReqの送信元(即ちプリンタ100)、及び、DReq内の各情報(即ち、ハッシュ値HV、「Group1」、及び、公開鍵PPK2)を認証するための処理を実行する。具体的には、AP6は、T402において、まず、受信済みのプリンタ用SCont内のハッシュ値HV及びグループID「Group1」が、それぞれ、記憶済みの第1のCOに含まれるAP用SCont内のハッシュ値HV及びグループID「Group1」に一致するのか否かに関する第1のAP判断処理を実行する。図6のケースでは、AP6は、第1のAP判断処理で「一致する」と判断するので、DReqの送信元(即ちプリンタ100)の認証が成功したと判断する。なお、受信済みのプリンタ用SCont内のハッシュ値HVと、記憶済みの第1のCOに含まれるAP用SCont内のハッシュ値HVと、が一致するということは、プリンタ用SCont及びAP用SContが、同じ装置(即ち、端末10)によって生成されたことを意味する。従って、AP6は、受信済みのプリンタ用SContの生成元(即ち、端末10)の認証が成功したとも判断する。さらに、AP6は、記憶済みの第1のCOに含まれる端末10の公開鍵TPK2を用いて、受信済みのプリンタ用SCont内の電子署名DS1を復号する。図6のケースでは、電子署名DS1の復号が成功するので、AP6は、電子署名DS1を復号することによって得られた特定値と、受信済みのプリンタ用SCont内の各情報(即ち、ハッシュ値HV、「Group1」、及び、公開鍵PPK2)をハッシュ化することによって得られる値と、が一致するのか否かに関する第2のAP判断処理を実行する。図6のケースでは、AP6は、第2のAP判断処理で「一致する」と判断するので、DReq内の各情報の認証が成功したと判断し、T404以降の処理を実行する。第2のAP判断処理で「一致する」と判断されることは、第2のCOがプリンタ100に記憶された後に、受信済みのプリンタ用SCont内の各情報(即ち、ハッシュ値HV、「Group1」、及び、公開鍵PPK2)が第三者によって改ざんされていないことを意味する。一方、第1のAP判断処理で「一致しない」と判断される場合、電子署名DS1の復号が失敗する場合、又は、第2のAP判断処理で「一致しない」と判断される場合には、AP6は、認証が失敗したと判断し、T404以降の処理を実行しない。 At T400, upon receiving the DReq from the printer 100, the AP 6 performs processing to authenticate the source of the DReq (ie, the printer 100) and each piece of information in the DReq (ie, the hash value HV, "Group1", and public key PPK2). Specifically, in T402, the AP 6 first executes a first AP determination process regarding whether or not the hash value HV and the group ID "Group1" in the received printer SCont match the hash value HV and the group ID "Group1" in the AP SCont included in the stored first CO. In the case of FIG. 6, the AP 6 determines that the IDs match in the first AP determination process, and thus determines that the authentication of the source of the DReq (that is, the printer 100) has succeeded. If the hash value HV in the received printer SCont and the hash value HV in the AP SCont included in the stored first CO match, it means that the printer SCont and the AP SCont were generated by the same device (that is, the terminal 10). Therefore, the AP 6 also determines that the authentication of the generation source (that is, the terminal 10) of the received SCont for printer has succeeded. Furthermore, AP6 decrypts the electronic signature DS1 in the received printer SCont using the public key TPK2 of the terminal 10 included in the stored first CO. In the case of FIG. 6, the decryption of the electronic signature DS1 is successful, so the AP 6 performs a second AP determination process regarding whether or not the specific value obtained by decrypting the electronic signature DS1 matches the value obtained by hashing the information (that is, the hash value HV, "Group1", and the public key PPK2) in the received printer SCont. In the case of FIG. 6, the AP 6 determines "match" in the second AP determination process, so it determines that the authentication of each information in the DReq has succeeded, and executes the processes from T404. A determination of "matching" in the second AP determination processing means that each piece of information (i.e., hash value HV, "Group1", and public key PPK2) in the received printer SCont has not been tampered with by a third party after the second CO was stored in the printer 100. On the other hand, if the first AP determination process determines that "not match", if the decryption of the electronic signature DS1 fails, or if the second AP determination process determines "does not match", the AP 6 determines that the authentication has failed and does not execute the processes after T404.

次いで、AP6は、T404において、ECDHに従って、取得済みのプリンタ100の公開鍵PPK2と、記憶済みのAP6の秘密鍵ask2と、を用いて、接続キー(即ち共有鍵)CKを生成する。 Next, in T404, AP6 generates a connection key (that is, a shared key) CK using the obtained public key PPK2 of the printer 100 and the stored secret key ask2 of AP6 according to ECDH.

T410では、AP6は、AP用SContを含むDPP Peer Discovery Response(以下では、単に「DRes」と記載する)をプリンタ100に送信する。 At T410, the AP 6 transmits to the printer 100 a DPP Peer Discovery Response (hereinafter simply referred to as "DRes") including the SCont for AP.

プリンタ100は、T410において、Wi-FiI/F116を介して、AP6からDResを受信することに応じて、DResの送信元(即ちAP6)、及び、DRes内の各情報(即ち、ハッシュ値HV、「Group1」、及び、公開鍵APK2)を認証するための処理を実行する。具体的には、プリンタ100は、T412において、まず、受信済みのAP用SCont内のハッシュ値HV及びグループID「Group1」が、それぞれ、記憶済みの第2のCOに含まれるプリンタ用SCont内のハッシュ値HV及びグループID「Group1」に一致するのか否かに関する第1のPR判断処理を実行する。図6のケースでは、プリンタ100は、第1のPR判断処理で「一致する」と判断するので、DResの送信元(即ちAP6)の認証が成功したと判断する。なお、受信済みのAP用SCont内のハッシュ値HVと、記憶済みの第2のCOに含まれるプリンタ用SCont内のハッシュ値HVと、が一致するということは、プリンタ用SCont及びAP用SContが、同じ装置(即ち、端末10)によって生成されたことを意味する。従って、プリンタ100は、受信済みのAP用SContの生成元(即ち、端末10)の認証が成功したとも判断する。さらに、プリンタ100は、記憶済みの第2のCOに含まれる端末10の公開鍵TPK2を用いて、受信済みのAP用SCont内の電子署名DS2を復号する。図6のケースでは、電子署名DS2の復号が成功するので、プリンタ100は、電子署名DS2を復号することによって得られた特定値と、受信済みのAP用SCont内の各情報(即ち、ハッシュ値HV、「Group1」、及び、公開鍵APK2)をハッシュ化することによって得られる値と、が一致するのか否かに関する第2のPR判断処理を実行する。図6のケースでは、プリンタ100は、第2のPR判断処理で「一致する」と判断するので、DRes内の各情報の認証が成功したと判断し、T414以降の処理を実行する。第2のPR判断処理で「一致する」と判断されることは、第1のCOがAP6に記憶された後に、AP用SCont内の各情報(即ち、ハッシュ値HV、「Group1」、及び、公開鍵APK2)が第三者によって改ざんされていないことを意味する。一方、第1のPR判断処理で「一致しない」と判断される場合、電子署名DS2の復号が失敗する場合、又は、第2のPR判断処理で「一致しない」と判断される場合には、プリンタ100は、認証が失敗したと判断し、T414以降の処理を実行しない。 At T410, in response to receiving DRes from AP6 via the Wi-Fi I/F 116, the printer 100 performs processing for authenticating the source of the DRes (that is, AP6) and each piece of information within the DRes (that is, the hash value HV, “Group1”, and public key APK2). Specifically, at T412, the printer 100 first executes a first PR determination process regarding whether or not the hash value HV and group ID “Group1” in the received AP SCont match the hash value HV and group ID “Group1” in the printer SCont included in the stored second CO. In the case of FIG. 6, the printer 100 determines that the PRes match in the first PR determination process, and thus determines that the authentication of the DRes sender (that is, AP6) has succeeded. If the hash value HV in the received AP SCont matches the hash value HV in the printer SCont included in the stored second CO, it means that the printer SCont and the AP SCont are generated by the same device (that is, the terminal 10). Therefore, the printer 100 also determines that the authentication of the source of the received SCont for AP (that is, the terminal 10) has succeeded. Further, the printer 100 uses the public key TPK2 of the terminal 10 included in the stored second CO to decrypt the electronic signature DS2 in the received SCont for AP. In the case of FIG. 6, the electronic signature DS2 is successfully decrypted, so the printer 100 executes the second PR determination process regarding whether or not the specific value obtained by decrypting the electronic signature DS2 matches the value obtained by hashing the information in the received SCont for AP (that is, the hash value HV, "Group1", and public key APK2). In the case of FIG. 6, the printer 100 determines “matches” in the second PR determination process, and therefore determines that the authentication of each information in DRes has succeeded, and executes the processes from T414. Determining “match” in the second PR determination process means that each piece of information in the AP SCont (that is, hash value HV, “Group1”, and public key APK2) has not been tampered with by a third party after the first CO was stored in AP6. On the other hand, if the first PR determination process determines that they do not match, if the decryption of the electronic signature DS2 fails, or if the second PR determination process determines that they do not match, the printer 100 determines that the authentication has failed, and does not execute the processes after T414.

プリンタ100は、T414において、ECDHに従って、記憶済みのプリンタ100の秘密鍵psk2と、受信済みのAP用SCont内のAP6の公開鍵APK2と、を用いて、接続キーCKを生成する。ここで、T404でAP6によって生成される接続キーCKと、T414でプリンタ100によって生成される接続キーCKと、は同じである。これにより、Wi-Fi接続を確立するための接続キーCKがプリンタ100及びAP6の間で共有される。T414が終了すると、図6の処理が終了する。 At T414, the printer 100 generates a connection key CK according to the ECDH using the stored private key psk2 of the printer 100 and the public key APK2 of AP6 in the received SCont for AP. Here, the connection key CK generated by the AP 6 at T404 is the same as the connection key CK generated by the printer 100 at T414. As a result, the connection key CK for establishing Wi-Fi connection is shared between the printer 100 and AP6. When T414 ends, the processing in FIG. 6 ends.

上述したように、接続キーCKがプリンタ100及びAP6の間で共有された後に、図2のT40において、プリンタ100及びAP6は、接続キーCKを利用して、4way-handshakeの通信を実行する。この結果、プリンタ100とAP6との間にWi-Fi接続が確立される。なお、上述したように、プリンタ100は、プリンタ100のチャネルリストに含まれる複数個の通信チャネルのうちの1個の通信チャネルを利用して、端末10から図4のT200のAReqを受信する。即ち、プリンタ100は、プリンタ100と端末10との双方が利用可能な通信チャネルを利用して、端末10からT200のAReqを受信する。一方、図2のT40では、プリンタ100は、プリンタ100とAP6との双方が利用可能な通信チャネルを利用して、Wi-Fi接続をAP6と確立する。ここで、端末10が利用可能な通信チャネルと、AP6が利用可能な通信チャネルと、は異なる場合がある。本実施例では、プリンタ100が図4のT200で端末10からAReqを受信するための通信チャネルと、プリンタ100が図2のT40でWi-Fi接続をAP6と確立するための通信チャネルと、が異なる。ただし、変形例では、前者の通信チャネルと後者の通信チャネルとは同じでもよい。 As described above, after the connection key CK is shared between the printer 100 and AP6, the printer 100 and AP6 execute 4way-handshake communication using the connection key CK at T40 in FIG. As a result, a Wi-Fi connection is established between the printer 100 and the AP6. As described above, printer 100 receives AReq of T200 in FIG. That is, the printer 100 receives AReq of T200 from the terminal 10 using a communication channel that can be used by both the printer 100 and the terminal 10 . On the other hand, at T40 in FIG. 2, the printer 100 establishes a Wi-Fi connection with AP6 using a communication channel that can be used by both the printer 100 and AP6. Here, the communication channel that can be used by the terminal 10 and the communication channel that can be used by the AP 6 may differ. In this embodiment, the communication channel for the printer 100 to receive the AReq from the terminal 10 at T200 in FIG. 4 is different from the communication channel for the printer 100 to establish the Wi-Fi connection with the AP 6 at T40 in FIG. However, in a modification, the former communication channel and the latter communication channel may be the same.

(ケースBのBootstrapping(BS);図7)
続いて、図7を参照して、図2のT20のBSのケースBの処理を説明する。ケースBは、図2のT20~T40が実行される前の状態、即ち、プリンタ100のメモリ134が第2のCOをまだ記憶していない状態である。また、ケースBは、端末10においてアプリ40が起動された後(図3のT118)に、端末10がユーザによってプリンタ100に再び近づけられない状況を想定している。
(Bootstrapping (BS) in case B; FIG. 7)
Next, with reference to FIG. 7, the processing of the BS case B at T20 in FIG. 2 will be described. Case B is the state before T20 to T40 in FIG. 2 are executed, that is, the state in which the memory 134 of the printer 100 has not yet stored the second CO. Case B assumes a situation in which the user cannot bring the terminal 10 closer to the printer 100 again after the application 40 is activated on the terminal 10 (T118 in FIG. 3).

T500~T524は、図3のT100~T124と同様である。本ケースでは、端末10がユーザによってプリンタ100に再び近づけられないので、T130以降の処理が実行されない。即ち、プリンタ100の公開鍵PPK1とチャネルリストとMACアドレス「abc」とが端末10によって取得されないので、端末10からAReqがプリンタ100に送信されない。この場合、プリンタ100は、T526において、T524で可能状態に移行してから所定時間以内にAReqを受信しなかったと判断し、T528において、可能状態から不可能状態に移行する。これにより、プリンタ100において長時間に亘って可能状態が継続することを抑制することができる。従って、プリンタ100の処理負荷を軽減することができる。そして、T530では、プリンタ100は、端末10からAReqが受信されなかったことを示すエラー画面を表示部114に表示させる。T530の処理が終了すると、図7の処理が終了し、DPP方式に従った通信が中止される。 T500 to T524 are the same as T100 to T124 in FIG. In this case, the terminal 10 cannot be brought closer to the printer 100 again by the user, so the processing after T130 is not executed. That is, since the public key PPK1, the channel list, and the MAC address “abc” of the printer 100 are not acquired by the terminal 10, the AReq is not transmitted from the terminal 10 to the printer 100. FIG. In this case, the printer 100 determines at T526 that no AReq has been received within a predetermined time after transitioning to the enabled state at T524, and transitions from the enabled state to the disabled state at T528. As a result, it is possible to prevent the printer 100 from being in the enabled state for a long period of time. Therefore, the processing load of the printer 100 can be reduced. At T530, the printer 100 causes the display unit 114 to display an error screen indicating that the AReq has not been received from the terminal 10. FIG. When the process of T530 ends, the process of FIG. 7 ends and the communication according to the DPP method is stopped.

(ケースCのBootstrapping(BS);図8)
続いて、図8を参照して、BSの他のケースCの処理を説明する。ケースCは、図2のT20~T40が実行された後の状態、即ち、プリンタ100のメモリ134が第2のCOを記憶済みである状態である。
(Bootstrapping (BS) of case C; FIG. 8)
Next, with reference to FIG. 8, the processing of another case C of the BS will be described. Case C is the state after T20 to T40 in FIG. 2 have been executed, that is, the state in which the memory 134 of the printer 100 has already stored the second CO.

T600及びT603は、図3のT100及びT105と同様である。本ケースでは、プリンタ100のメモリ134が第2のCOを記憶しているので、プリンタ100は、NFCI/F118の動作モードを非設定モードから設定モードに移行させない。プリンタ100は、第2のCOを記憶している状況では、第2のCOを利用して、Wi-Fi接続をAP6と確立することができる。従って、プリンタ100においてBSが実行される可能性が低い。プリンタ100は、このような状況において、NFCI/F118の動作モードを設定モードに移行させない、即ち、NFCI/F118に通電しないので、消費電力を軽減することができる。 T600 and T603 are the same as T100 and T105 in FIG. In this case, since the memory 134 of the printer 100 stores the second CO, the printer 100 does not change the operation mode of the NFCI/F 118 from the non-setting mode to the setting mode. In situations where the printer 100 stores the second CO, the printer 100 can utilize the second CO to establish a Wi-Fi connection with the AP6. Therefore, the possibility of BS being executed in the printer 100 is low. In such a situation, the printer 100 does not shift the operation mode of the NFCI/F 118 to the setting mode, that is, does not energize the NFCI/F 118, so power consumption can be reduced.

ユーザは、プリンタ100が第2のCOを記憶している状態において、例えば、AP6とは異なるAPとプリンタ100との間のWi-Fi接続の確立を望む可能性がある。この場合、ユーザは、T604において、メニュー画面MS内の設定ボタンを選択する。この場合、プリンタ100は、T605において、設定画面SSを表示部114に表示させる。画面SSは、プリンタ100の印刷設定を変更するための印刷設定ボタンと、NFCI/F118の動作モードを変更するためのモード移行ボタンと、を含む。そして、T606では、ユーザは、画面SS内のモード移行ボタンを選択する。この場合、プリンタ100は、T607において、NFCI/F118の動作モードを非設定モードから設定モードに移行させる。これにより、端末10がユーザによってプリンタ100に近付けられることに応じて、図3のT110以降の処理が実行される。T609は、図3のT109と同様である。 The user may wish to establish a Wi-Fi connection between the printer 100 and an AP different from AP6, for example, while the printer 100 stores the second CO. In this case, the user selects the setting button in the menu screen MS in T604. In this case, the printer 100 causes the display unit 114 to display the setting screen SS in T605. The screen SS includes a print setting button for changing the print settings of the printer 100 and a mode transition button for changing the operation mode of the NFCI/F 118 . Then, in T606, the user selects the mode transition button within the screen SS. In this case, the printer 100 shifts the operation mode of the NFCI/F 118 from the non-setting mode to the setting mode in T607. As a result, when the terminal 10 is brought closer to the printer 100 by the user, the processes after T110 in FIG. 3 are executed. T609 is the same as T109 in FIG.

なお、プリンタ100は、DPP方式を利用せずに、通常のWi-Fi方式(即ちSSID及びパスワードを利用する方式)に従って、AP6とのWi-Fi接続を確立することもできる。この場合、プリンタ100のメモリ134は、AP6とのWi-Fi接続を確立するための無線設定情報(即ちSSID及びパスワード)を記憶する。このような状態でプリンタ100の電源がONされても、プリンタ100は、図8のケースCと同様に、NFCI/F118の動作モードを非設定モードから設定モードに移行させない。プリンタ100が無線設定情報を利用してAP6とWi-Fi接続を確立することができるからである。このような状況でもNFCI/F118に通電されないので、消費電力を軽減することができる。 Note that the printer 100 can also establish a Wi-Fi connection with the AP 6 according to the normal Wi-Fi method (that is, the method using the SSID and password) without using the DPP method. In this case, the memory 134 of the printer 100 stores wireless setting information (ie SSID and password) for establishing Wi-Fi connection with the AP6. Even if the power of the printer 100 is turned on in such a state, the printer 100 does not change the operation mode of the NFCI/F 118 from the non-setting mode to the setting mode, as in case C of FIG. This is because the printer 100 can establish a Wi-Fi connection with the AP 6 using the wireless setting information. Since the NFCI/F 118 is not energized even in such a situation, power consumption can be reduced.

(端末10との接続のための処理;図9)
続いて、図9を参照して、端末10とプリンタ100との間にWi-Fi接続を確立するための処理を説明する。T700~T719は、図3のT100~T119と同様である。プリンタ100は、T720において、選択画面SLS内の「端末との接続」ボタンがユーザによって選択されることに応じて、T721において、G/O状態に移行し、プリンタ100がG/Oとして動作する無線ネットワークで利用されるSSID「xxx」及びパスワードを生成する。そして、プリンタ100は、T722において、SSIDの送信を指示するSSID送信指示をNFCI/F118に供給する。当該SSID送信指示は、生成済みのSSID「xxx」を含む。この結果、NFCI/F118では、SSID「xxx」がメモリ119内に記憶される。
(Processing for connection with terminal 10; FIG. 9)
Next, referring to FIG. 9, processing for establishing a Wi-Fi connection between the terminal 10 and the printer 100 will be described. T700 to T719 are the same as T100 to T119 in FIG. At T720, the printer 100 shifts to the G/O state in response to the user selecting the "connect to terminal" button in the selection screen SLS at T720, and generates the SSID "xxx" and password used in the wireless network in which the printer 100 operates as G/O. Then, in T722, the printer 100 supplies an SSID transmission instruction to the NFCI/F 118 to instruct transmission of the SSID. The SSID transmission instruction includes the generated SSID "xxx". As a result, the SSID “xxx” is stored in the memory 119 in the NFCI/F 118 .

T730~T733は、図3のT130~T133と同様である。T734では、プリンタ100のNFCI/F118は、T732で確立されたNFC接続を利用して、メモリ119内のSSID「xxx」を端末10のNFCI/F18に送信する。この結果、SSID「xxx」が端末10によって取得される。 T730 to T733 are the same as T130 to T133 in FIG. At T734, the NFC I/F 118 of the printer 100 transmits the SSID "xxx" in the memory 119 to the NFC I/F 18 of the terminal 10 using the NFC connection established at T732. As a result, the terminal 10 acquires the SSID “xxx”.

T740では、端末10が接続対象の装置(即ち、プリンタ100)を検索するための検索処理が実行される。具体的には、以下の処理が実行される。まず、プリンタ100は、Wi-FiI/F116を介して、端末10からブロードキャストによって送信されたProbe Request(以下では、単に「PReq」と記載する)を受信し、Probe Response(以下では、単に「PRes」と記載する)を端末10に送信する。当該PResは、SSID「xxx」を含む。 At T740, search processing is executed for the terminal 10 to search for a device to be connected (that is, the printer 100). Specifically, the following processes are executed. First, the printer 100 receives a Probe Request (hereinafter simply referred to as “PReq”) broadcast from the terminal 10 via the Wi-Fi I/F 116 and transmits a Probe Response (hereinafter simply referred to as “PRes”) to the terminal 10 . The PRes includes the SSID "xxx".

端末10は、PReqをブロードキャストによって送信すると、プリンタ100を含む1個以上のデバイスのそれぞれからPResを受信する。この場合、端末10は、1個以上のPResの中から、T734で取得されたSSID「xxx」を含むPResを特定することによって、接続対象のプリンタ100を特定する。そして、端末10は、Wi-FiI/F16を介して、特定済みのプリンタ100のSSID「xxx」を含むPReqをプリンタ100に送信する(即ちユニキャストによって送信する)。 When the terminal 10 transmits PReq by broadcast, it receives PRes from each of one or more devices including the printer 100 . In this case, the terminal 10 identifies the printer 100 to be connected by identifying the PRes including the SSID "xxx" acquired in T734 from among one or more PRes. Then, the terminal 10 transmits to the printer 100 a PReq including the SSID "xxx" of the specified printer 100 via the Wi-Fi I/F 16 (that is, by unicast).

プリンタ100は、Wi-FiI/F116を介して、端末10からSSID「xxx」を含むPReqを受信することに応じて、PResを端末10に送信する。 Printer 100 transmits PRes to terminal 10 in response to receiving PReq including SSID “xxx” from terminal 10 via Wi-Fi I/F 116 .

T750では、プリンタ100は、端末10との各種通信(Association、WPS Negotiation、4way-handshake)を実行する。プリンタ100は、WPS Negotiationにおいて、生成済みのSSID「xxx」及び生成済みのパスワードを含む無線設定情報を端末10に送信する。そして、プリンタ100は、SSID「xxx」及びパスワードを利用して、端末10との4way-handshakeの通信を実行して、端末10とのWi-Fi接続を確立する。これにより、プリンタは、T760において、ユーザがプリンタ100に印刷を実行させるための印刷操作を端末10に実行することに応じて、T762において、Wi-FiI/F116を介して、端末10から印刷データを受信することができる。そして、プリンタ100は、T764において、受信済みの印刷データに従った印刷を印刷実行部120に実行させる。T764の処理が終了すると、図9の処理が終了する。 In T750, the printer 100 executes various communications (Association, WPS Negotiation, 4way-handshake) with the terminal 10. FIG. The printer 100 transmits wireless setting information including the generated SSID “xxx” and the generated password to the terminal 10 in WPS Negotiation. Then, the printer 100 establishes a Wi-Fi connection with the terminal 10 by executing 4way-handshake communication with the terminal 10 using the SSID “xxx” and password. As a result, the printer can receive print data from the terminal 10 via the Wi-Fi I/F 116 at T762 in response to the user executing a print operation on the terminal 10 to cause the printer 100 to print at T760. In T764, the printer 100 causes the print execution unit 120 to print according to the received print data. When the process of T764 ends, the process of FIG. 9 ends.

(本実施例の効果)
本実施例では、プリンタ100は、端末10とのNFC接続が確立される場合(図3のT112)に、選択画面SLSを表示する(T116)。画面SLS内の「APとの接続」ボタンがユーザによって選択される場合(T120)に、公開鍵送信指示がNFCI/F118に供給される(T122)。この結果、NFCI/F118は、公開鍵PPK1を端末10に送信する(T134)。これにより、プリンタ100は、端末10からAReqを受信し(図4のT200)、AResを端末10に送信し(T210)、端末10から第2のCOを受信し(図5のT310)、第2のCOを利用してAP6とのWi-Fi接続を確立することができる(図2のT35、T40)。一方、画面SLS内の「APとの接続」ボタンがユーザによって選択されない場合(図9のT720)に、公開鍵送信指示はNFCI/F118に供給されない。これにより、NFCI/F118を介して公開鍵TPK1が端末10に送信されないので、プリンタ100は、端末10からAReqを受信せず、AP6とのWi-Fi接続を確立しない。このように、プリンタ100とAP6との間にWi-Fi接続を確立させるのか否かを切り替えることができる。
(Effect of this embodiment)
In this embodiment, when the NFC connection with the terminal 10 is established (T112 in FIG. 3), the printer 100 displays the selection screen SLS (T116). When the user selects the “connect to AP” button in the screen SLS (T120), a public key transmission instruction is supplied to the NFCI/F 118 (T122). As a result, the NFCI/F 118 transmits the public key PPK1 to the terminal 10 (T134). As a result, the printer 100 can receive AReq from the terminal 10 (T200 in FIG. 4), send ARes to the terminal 10 (T210), receive the second CO from the terminal 10 (T310 in FIG. 5), and establish a Wi-Fi connection with the AP 6 using the second CO (T35, T40 in FIG. 2). On the other hand, if the user does not select the “connect to AP” button in the screen SLS (T720 in FIG. 9), the public key transmission instruction is not supplied to the NFCI/F 118. As a result, public key TPK1 is not transmitted to terminal 10 via NFC I/F 118, so printer 100 does not receive AReq from terminal 10 and does not establish Wi-Fi connection with AP6. Thus, it is possible to switch whether to establish a Wi-Fi connection between the printer 100 and the AP6.

また、本実施例では、プリンタ100は、端末10とのNFC接続が確立された後に(図3のT112)、不可能状態から可能状態に移行する(T124)。これにより、プリンタ100は、端末10からAReqを受信し(図4のT200)、AResを端末10に送信し(T210)、端末10から第2のCOを受信し(図5のT310)、第2のCOを利用してAP6とのWi-Fi接続を確立することができる(図2のT35、T40)。プリンタ100は、端末10とのNFC接続が確立される前に、不可能状態よりも高い処理負荷である可能状態に移行しない。このために、端末10を利用して、プリンタ100とAP6との間にWi-Fi接続を確立させる技術において、プリンタ100の処理負荷を軽減できる。 Also, in this embodiment, after the NFC connection with the terminal 10 is established (T112 in FIG. 3), the printer 100 transitions from the disabled state to the enabled state (T124). As a result, the printer 100 can receive AReq from the terminal 10 (T200 in FIG. 4), send ARes to the terminal 10 (T210), receive the second CO from the terminal 10 (T310 in FIG. 5), and establish a Wi-Fi connection with the AP 6 using the second CO (T35, T40 in FIG. 2). The printer 100 does not transition to the enabled state, which has a higher processing load than the disabled state, before the NFC connection with the terminal 10 is established. For this reason, the processing load on the printer 100 can be reduced in the technique of establishing a Wi-Fi connection between the printer 100 and the AP 6 using the terminal 10 .

(対応関係)
プリンタ100、端末10、AP6が、それぞれ、「通信装置」、「第1の外部装置」、「第2の外部装置」の一例である。NFCI/F118、Wi-FiI/F116、CPU132が、それぞれ、「第1の無線インターフェース」、「第2の無線インターフェース」、「制御部」の一例である。図3のT112(又は図7のT512、図9のT712)のNFC接続、図2のT40のWi-Fi接続が、それぞれ、「第1の無線接続」、「第2の無線接続」の一例である。選択画面SLS、公開鍵PPK1、公開鍵送信指示が、それぞれ、「指示画面」、「公開鍵」、「第1の指示情報」の一例である。図2の処理が、「対象処理」の一例である。AReq、ARes、第2のCOが、それぞれ、「認証要求」、「認証応答」、「接続情報」の一例である。図2のT40で確立されるWi-Fi接続が、「無線接続」の一例である。
(correspondence relationship)
The printer 100, the terminal 10, and the AP 6 are examples of the "communication device,""first external device," and "second external device," respectively. The NFCI/F 118, the Wi-Fi I/F 116, and the CPU 132 are examples of the "first wireless interface,""second wireless interface," and "controller," respectively. The NFC connection at T112 in FIG. 3 (or T512 in FIG. 7, T712 in FIG. 9) and the Wi-Fi connection at T40 in FIG. 2 are examples of the "first wireless connection" and the "second wireless connection", respectively. The selection screen SLS, the public key PPK1, and the public key transmission instruction are examples of the "instruction screen," the "public key," and the "first instruction information," respectively. The processing in FIG. 2 is an example of the “target processing”. AReq, ARes, and second CO are examples of "authentication request,""authenticationresponse," and "connection information," respectively. The Wi-Fi connection established at T40 in FIG. 2 is an example of a "wireless connection."

設定画面SS内の「APとの接続」ボタン、「端末との接続」ボタン、図9のT750のWi-Fi接続が、それぞれ、「第1の選択領域」、「第2の選択領域」、「第3の無線接続」の一例である。NFCI/F118のメモリ119、図3のT132のNFC接続、T732のNFC接続、SSID「xxx」、SSID送信指示が、それぞれ、「インターフェースメモリ」、「第4の無線接続」、「第5の無線接続」、「確立情報」、「第2の指示情報」の一例である。チャネルリスト、図4のT200で利用される通信チャネル、図2のT40で利用される通信チャネルが、それぞれ、「通信チャネル情報」、「第1の通信チャネル」、「第2の通信チャネル」の一例である。メモリ134内に第2のCOが記憶されていない状態でユーザからの電源ON操作を受け付けること、及び、メモリ134内に第2のCOが記憶されている状態でユーザからのモード移行ボタンの選択を受け付けることが、「所定条件」の一例である。非設定モード、設定モードが、それぞれ、「第1のモード」、「第2のモード」の一例である。メモリ134が、「制御部メモリ」の一例である。図8のT606のモード移行ボタンの選択操作が、「特定操作」の一例である。アプリ40、アプリ起動指示が、それぞれ、「アプリケーションプログラム」、「起動情報」の一例である。AP用SCont、第2のCO内のハッシュ値HVが、それぞれ、「受信情報」、「認証情報」の一例である。 The "connect to AP" button, "connect to terminal" button in the setting screen SS, and the Wi-Fi connection of T750 in FIG. 9 are examples of "first selection area", "second selection area", and "third wireless connection", respectively. The memory 119 of the NFC I/F 118, the NFC connection of T132 in FIG. 3, the NFC connection of T732, the SSID "xxx", and the SSID transmission instruction are examples of "interface memory," "fourth wireless connection," "fifth wireless connection," "establishment information," and "second instruction information," respectively. The channel list, the communication channel used at T200 in FIG. 4, and the communication channel used at T40 in FIG. 2 are examples of "communication channel information," "first communication channel," and "second communication channel," respectively. An example of the "predetermined condition" is accepting a user's power ON operation while the second CO is not stored in the memory 134, and accepting a user's selection of the mode shift button while the second CO is stored in the memory 134. The non-setting mode and setting mode are examples of the "first mode" and the "second mode", respectively. The memory 134 is an example of a "controller memory." The selection operation of the mode transition button in T606 of FIG. 8 is an example of the "specific operation". The application 40 and the application activation instruction are examples of the "application program" and the "activation information", respectively. The SCont for AP and the hash value HV in the second CO are examples of "receiving information" and "authentication information", respectively.

図3のT116(又は、図7のT516、図9のT716)の処理、T122(又はT522)の処理、図4のT200の処理、T210の処理、図5のT310の処理、図2のT35及びT40の処理が、それぞれ、「表示制御部」、「第1の供給部」、「認証要求受信部」、「認証応答送信部」、「接続情報受信部」、「第1の確立部」によって実行される処理の一例である。 3 (or T516 in FIG. 7, T716 in FIG. 9), T122 (or T522), T200 in FIG. 4, T210, T310 in FIG. 5, and T35 and T40 in FIG. It is an example of processing executed by the first establishing unit.

図3のT124(又は、図7のT524)の処理、図4のT200の処理、T210の処理、図5のT310の処理、図2のT35及びT40の処理が、それぞれ、「状態移行部」、「認証要求受信部」、「認証応答送信部」、「接続情報受信部」、「確立部」によって実行される処理の一例である。 The processing of T124 in FIG. 3 (or T524 in FIG. 7), the processing of T200 in FIG. 4, the processing of T210, the processing of T310 in FIG. 5, and the processing of T35 and T40 in FIG.

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

(変形例1)図3のT122でプリンタ100は、チャネルリスト及びMACアドレス「abc」を含まず、公開鍵PPK1を含む公開鍵送信指示をNFCI/F118に供給してもよい。この場合、プリンタ100は、T124で不可能状態から可能状態に移行することに応じて、プリンタ100が利用可能な全ての無線チャネルのうちの1個の無線チャネルが利用されたAReqを受信することを監視する。また、端末10は、図4のT200において、端末10が利用可能な全ての無線チャネルを順次利用して、AReqをブロードキャストによって順次送信する。即ち、「第1の無線インターフェース」は、少なくとも公開鍵を第1の外部装置に送信すればよい。 (Modification 1) At T122 in FIG. 3, the printer 100 may supply to the NFCI/F 118 a public key transmission instruction that does not include the channel list and the MAC address "abc" but includes the public key PPK1. In this case, the printer 100, in response to transitioning from the disabled state to the enabled state at T124, monitors for reception of an AReq in which one radio channel among all the radio channels available to the printer 100 is used. In addition, at T200 in FIG. 4, the terminal 10 sequentially uses all radio channels available to the terminal 10 to sequentially transmit AReq by broadcasting. That is, the "first wireless interface" should transmit at least the public key to the first external device.

(変形例2)共有鍵(例えばSK1)を生成するための処理(例えば、図4のT142、T202)は、ECDHに従った上記の実施例の処理に限らず、ECDHに従った他の処理であってもよい。また、共有鍵を生成するための処理は、ECDHに従った処理に限らず、他の方式(例えば、DH(Diffie-Hellman key exchangeの略)等)に従った処理が実行されてもよい。また、上記の実施例では、電子署名DS1及びDS2が、ECDSAに従って生成されたが、他の方式(例えば、DSA(Digital Signature Algorithmの略)、RAS(Rivest-Shamir-Adleman cryptosystemの略)等)に従って生成されてもよい。 (Modification 2) The processing (eg, T142 and T202 in FIG. 4) for generating a shared key (eg, SK1) is not limited to the above-described processing according to ECDH, but may be other processing according to ECDH. Further, the processing for generating a shared key is not limited to processing according to ECDH, and processing according to other schemes (for example, DH (abbreviation of Diffie-Hellman key exchange), etc.) may be executed. Also, in the above embodiment, the electronic signatures DS1 and DS2 are generated according to ECDSA, but may be generated according to other methods (for example, DSA (abbreviation of Digital Signature Algorithm), RAS (abbreviation of Rivest-Shamir-Adleman cryptosystem), etc.).

(変形例3)図9のT721の処理が省略されてもいい。この場合、プリンタ100は、T722の処理を実行する代わりに、MACアドレス「abc」を含むMACアドレス送信指示をNFCI/F118に供給する。この結果、MACアドレス「abc」が、プリンタ100のNFCI/F118から端末10のNFCI/F18に送信され、端末10においてMACアドレス「abc」が取得される。これにより、端末10は、検索処理において、受信済みのMACアドレス「abc」を利用して、接続対象のプリンタ100を特定することができる。その後、端末10とプリンタ100との間でG/O Negotiationが実行されることによって、端末10及びプリンタ100の一方がG/Oとして動作すると共に他方がクライアントとして動作することが決定される。そして、端末10とプリンタ100との間で図9のT750と同様の処理が実行されて、端末10とプリンタ100との間にWi-Fi接続が確立される。本変形例では、MACアドレス送信指示、MACアドレス「abc」が、それぞれ、「第2の指示情報」、「確立情報」の一例である。 (Modification 3) The processing of T721 in FIG. 9 may be omitted. In this case, the printer 100 supplies a MAC address transmission instruction including the MAC address “abc” to the NFCI/F 118 instead of executing the process of T722. As a result, the MAC address "abc" is transmitted from the NFCI/F 118 of the printer 100 to the NFCI/F 18 of the terminal 10, and the terminal 10 acquires the MAC address "abc". As a result, the terminal 10 can specify the printer 100 to be connected by using the received MAC address "abc" in the search process. Thereafter, G/O Negotiation is executed between the terminal 10 and the printer 100, and it is determined that one of the terminal 10 and the printer 100 will operate as a G/O and the other will operate as a client. 9 is executed between the terminal 10 and the printer 100 to establish a Wi-Fi connection between the terminal 10 and the printer 100. FIG. In this modification, the MAC address transmission instruction and the MAC address "abc" are examples of "second instruction information" and "establishment information", respectively.

(変形例4)プリンタ100のWi-FiI/F116がWFD方式をサポートしていなくてもよい。この場合、例えば、図3のT116では、プリンタ100は、選択画面SLSに代えて、プリンタ100とAP6との間のWi-Fi接続を確立するための接続処理を実行することをユーザに確認するプリンタ側確認画面PCSを表示部114に表示させてもよい。画面PCSは、接続処理を実行することを示すYESボタンを含む。プリンタ100は、画面PCS内のYESボタンが選択されることに応じて、T122以降の処理を実行する。なお、プリンタ100は、画面PCS内のYESボタンが所定時間内に選択されない場合に、T122以降の処理を実行することなく、メニュー画面MSを表示部114に再び表示させる。本変形例では、プリンタ側確認画面PCSが、「指示画面」の一例である。また、本変形例では、「第2の選択領域」、「第2の確立部」、及び、「第2の供給部」が省略可能である。なお、別の変形例では、画面PCSが、接続処理を実行しないことを示すNOボタンをさらに含んでもよい。この場合、プリンタ100は、画面PCS内のNOボタンがユーザによって選択される場合に、T122以降の処理を実行することなく、画面MSを表示部114に再び表示させる。本変形例では、画面PCS内のNOボタンが選択されることが、「対象処理を実行すべきことが指示されない場合」の一例である。 (Modification 4) The Wi-Fi I/F 116 of the printer 100 may not support the WFD system. In this case, for example, at T116 in FIG. 3, the printer 100 may cause the display unit 114 to display a printer-side confirmation screen PCS for confirming to the user that connection processing for establishing a Wi-Fi connection between the printer 100 and the AP 6 will be executed instead of the selection screen SLS. The screen PCS includes a YES button indicating that connection processing is to be executed. The printer 100 executes the processes from T122 onward in response to selection of the YES button in the screen PCS. If the YES button in the screen PCS is not selected within the predetermined time, the printer 100 causes the display unit 114 to display the menu screen MS again without executing the processes after T122. In this modified example, the printer-side confirmation screen PCS is an example of the "instruction screen." Also, in this modified example, the “second selection area”, the “second establishment unit”, and the “second supply unit” can be omitted. Note that in another modification, the screen PCS may further include a NO button indicating that the connection process is not to be executed. In this case, when the user selects the NO button in the screen PCS, the printer 100 causes the display unit 114 to display the screen MS again without executing the processes after T122. In this modified example, selection of the NO button in the screen PCS is an example of "when it is not instructed to execute the target process".

(変形例5)プリンタ100の公開鍵PPK1とチャネルリストとMACアドレス「abc」とが、NFCI/F118のメモリ119内に予め記憶されていてもよい。また、プリンタ100は、図3のT109の処理を実行しなくてもよい。この場合、端末10において、アプリ40の起動操作がユーザによって実行され、アプリ40が起動された後に、T110及びT112の処理が実行される。なお、この時点では、NFCI/F118は、端末10からReadコマンドを受信しても、当該Readコマンドに対する応答を送信しない状態となっている。従って、NFCI/F118は、メモリ119内のプリンタ100の公開鍵PPK1とチャネルリストとMACアドレス「abc」とを送信しない。また、プリンタ100のNFCI/F118は、端末10のNFCI/F18とのNFC接続が確立されることに応じて、NFC接続が確立されたことを示す通知をプリンタ100のCPU132に供給する。プリンタ100(即ちCPU132)は、NFCI/F118から当該通知を取得することに応じて、選択画面SLSを表示部114に表示させる。そして、プリンタ100は、画面SLS内の「APとの接続」ボタンがユーザによって選択される場合に、公開鍵送信指示をNFCI/F118に供給する。なお、当該公開鍵送信指示は、プリンタ100の公開鍵PPK1等を含まない。そして、プリンタ100のNFCI/F118は、公開鍵送信指示を取得することに応じて、端末10からReadコマンドを受信することに応じて、当該Readコマンドに対する応答を送信する状態に移行する。従って、NFCI/F118は、確立済みのNFC接続を利用して、メモリ119内のプリンタ100の公開鍵PPK1とチャネルリストとMACアドレス「abc」とを端末10のNFCI/F18に送信する。本変形例では、T112のNFC接続が、「第1の無線接続」の一例である。また、本変形例では、「起動情報」が省略可能である。さらに、本変形例では、「第1の指示情報」は、公開鍵を含まなくてもよい。 (Variation 5) The public key PPK1, the channel list, and the MAC address “abc” of the printer 100 may be stored in the memory 119 of the NFCI/F 118 in advance. Also, the printer 100 does not have to execute the process of T109 in FIG. In this case, in the terminal 10, the user performs the activation operation of the application 40, and after the application 40 is activated, the processes of T110 and T112 are performed. Note that at this point, even if the NFCI/F 118 receives a Read command from the terminal 10, it is in a state of not transmitting a response to the Read command. Therefore, NFCI/F 118 does not transmit public key PPK1, channel list and MAC address “abc” of printer 100 in memory 119 . Also, the NFC I/F 118 of the printer 100 supplies the CPU 132 of the printer 100 with a notification indicating that the NFC connection has been established in response to the establishment of the NFC connection with the NFC I/F 18 of the terminal 10 . Printer 100 (that is, CPU 132 ) causes display unit 114 to display selection screen SLS in response to obtaining the notification from NFCI/F 118 . Then, the printer 100 supplies a public key transmission instruction to the NFCI/F 118 when the user selects the “connect to AP” button in the screen SLS. Note that the public key transmission instruction does not include the public key PPK1 of the printer 100 and the like. When the NFCI/F 118 of the printer 100 acquires the public key transmission instruction and receives the Read command from the terminal 10, the NFCI/F 118 shifts to a state of transmitting a response to the Read command. Therefore, the NFCI/F 118 uses the established NFC connection to transmit the public key PPK1, the channel list and the MAC address “abc” of the printer 100 in the memory 119 to the NFCI/F 18 of the terminal 10 . In this modification, the NFC connection of T112 is an example of the "first wireless connection". Also, in this modified example, the "activation information" can be omitted. Furthermore, in this modification, the "first instruction information" does not have to include the public key.

(変形例6)プリンタ100が、NFCI/F118に代えて、NFC方式とは異なる無線方式(例えば、Bluetooth(登録商標)方式、TransferJet方式)に従った異なる無線インターフェースを備えていてもよい。なお、上記のBluetooth方式は、Bluetooth方式バージョン4.0以上(いわゆるBlue Tooth Low Energy)を含む。この場合、プリンタ100は、例えば、図3のT134において、当該無線インターフェースを介して、公開鍵PPK1とチャネルリストとMACアドレス「abc」とを端末10に送信する。本変形例では、当該無線インターフェースが、「第1の無線インターフェース」の一例である。 (Modification 6) Instead of the NFCI/F 118, the printer 100 may be provided with a different wireless interface conforming to a wireless system different from the NFC system (for example, the Bluetooth (registered trademark) system, the TransferJet system). Note that the above Bluetooth system includes Bluetooth system version 4.0 or higher (so-called Blue Tooth Low Energy). In this case, the printer 100 transmits the public key PPK1, the channel list, and the MAC address "abc" to the terminal 10 via the wireless interface at T134 in FIG. 3, for example. In this modified example, the wireless interface is an example of the "first wireless interface".

(変形例7)プリンタ100のNFCI/F118が、メモリ119を備えていなくてもよい。この場合、NFCI/F118は、図3のT132でNFCI/F18とのNFC接続が確立されることに応じて、NFC接続が確立されたことを示す通知をCPU132に供給する。プリンタ100は、当該通知を取得することに応じて、公開鍵送信指示をNFCI/F118に供給する。この結果、プリンタ100のNFCI/F118は、確立済みのNFC接続を利用して、公開鍵送信指示内の公開鍵PPK1等を端末10のNFCI/F18に送信する。本変形例では、「インターフェースメモリ」が省略可能である。なお、上記のNFC通信がNFC規格のP2P(Peer to Peerの略)モードに従った通信であってもよい。 (Modification 7) The NFCI/F 118 of the printer 100 may not include the memory 119 . In this case, the NFCI/F 118 supplies the notification indicating that the NFC connection has been established to the CPU 132 in response to the establishment of the NFC connection with the NFCI/F 18 at T132 in FIG. Printer 100 supplies a public key transmission instruction to NFCI/F 118 in response to obtaining the notification. As a result, the NFCI/F 118 of the printer 100 uses the established NFC connection to transmit the public key PPK1 and the like in the public key transmission instruction to the NFCI/F 18 of the terminal 10 . In this modified example, the "interface memory" can be omitted. Note that the above NFC communication may be communication according to the P2P (abbreviation of Peer to Peer) mode of the NFC standard.

(変形例8)図2のT35において、端末10とプリンタ100との間でNAの処理が実行されて、端末10とプリンタ100との間でWi-Fi接続が確立されてもよい。即ち、「第2の外部装置」は、「第1の外部装置」と同じ装置であってもよい。 (Modification 8) At T35 in FIG. 2, NA processing may be executed between the terminal 10 and the printer 100 to establish a Wi-Fi connection between the terminal 10 and the printer 100. FIG. That is, the "second external device" may be the same device as the "first external device".

(変形例9)プリンタ100は、図3のT109において、アプリ起動指示と公開鍵送信指示とをNFCI/F118に供給してもよい。この場合、プリンタ100は、T112においてNFC接続が確立されたことを示す通知をNFCI/F118から取得することに応じて、不可能状態から可能状態に移行する。また、T114では、NFCI/F118は、確立済みのNFC接続を利用して、アプリ起動指示と公開鍵PPK1とチャネルリストとMACアドレス「abc」とを端末10のNFCI/F18に送信する。その後、T136以降の処理が実行される。また、別の変形例では、プリンタ100は、T134の処理の後に、不可能状態から可能状態に移行してもよい。この場合、プリンタ100は、NFCI/F118から公開鍵PPK1等を送信したことを示す通知を取得することに応じて、不可能状態から可能状態に移行する。即ち、プリンタ100は、T112でNFC接続が確立された後に、可能状態に移行すればよい。 (Modification 9) The printer 100 may supply the application activation instruction and the public key transmission instruction to the NFC I/F 118 in T109 of FIG. In this case, the printer 100 transitions from the disabled state to the enabled state in response to obtaining a notification from the NFC I/F 118 indicating that the NFC connection has been established at T112. Also, at T114, the NFCI/F 118 uses the established NFC connection to transmit the application activation instruction, public key PPK1, channel list, and MAC address “abc” to the NFCI/F 18 of the terminal 10 . After that, the processing after T136 is executed. Also, in another modification, the printer 100 may transition from the disabled state to the enabled state after the process of T134. In this case, the printer 100 transitions from the disabled state to the enabled state in response to obtaining a notification from the NFCI/F 118 indicating that the public key PPK1 and the like have been sent. That is, the printer 100 may shift to the enabled state after the NFC connection is established at T112.

(変形例10)図9のT721において、プリンタ100は、WFD方式のG/Oとして動作することに代えて、いわゆるSoftAPとして動作してもよい。この場合、プリンタ100は、プリンタ100がSoftAPとして動作する無線ネットワークで利用されるSSID及びパスワードを生成して、当該SSID及びパスワードを含むSSID送信指示をNFCI/F118に供給する。この結果、T734では、NFCI/F118は、確立済みのNFC接続を利用して、当該SSID及びパスワードをNFCI/F18に送信する。本変形例では、上記のSSID及びパスワードが、「確立情報」の一例である。 (Modification 10) At T721 in FIG. 9, the printer 100 may operate as a so-called Soft AP instead of operating as a WFD G/O. In this case, the printer 100 generates an SSID and password to be used in the wireless network in which the printer 100 operates as Soft AP, and supplies the SSID transmission instruction including the SSID and password to the NFCI/F 118 . As a result, at T734, the NFCI/F 118 uses the established NFC connection to transmit the SSID and password to the NFCI/F 18 . In this modified example, the above SSID and password are an example of "establishment information".

(変形例11)プリンタ100のNFCI/F118が常に設定モードで動作するように構成されてもよい。本変形例では、「モード移行部」が省略可能である。 (Modification 11) The NFCI/F 118 of the printer 100 may be configured to always operate in the setting mode. In this modified example, the "mode transition section" can be omitted.

(変形例12)上記の実施例では、端末10を利用して、プリンタ100とAP6との間のWi-Fi接続が確立される。これに代えて、例えば、端末10を利用して、G/Oとして動作するプリンタ100(即ち親局として動作するデバイス)と、他のデバイス(即ち子局として動作するデバイス)と、の間のWi-Fi接続が確立されてもよい。即ち、「第2の外部装置」は、「親局装置」でなくてもよい。 (Modification 12) In the above embodiment, the terminal 10 is used to establish a Wi-Fi connection between the printer 100 and the AP6. Alternatively, for example, using the terminal 10, a Wi-Fi connection may be established between the printer 100 operating as the G/O (that is, the device operating as the master station) and another device (that is, the device operating as the slave station). That is, the "second external device" does not have to be the "master station device".

(変形例13)「通信装置」は、プリンタでなくてもよく、スキャナ、多機能機、携帯端末、PC、サーバ等の他のデバイスであってもよい。 (Modification 13) The "communication device" may not be a printer, but may be another device such as a scanner, a multi-function device, a mobile terminal, a PC, or a server.

(変形例14)上記の各実施例では、図2~図9の各処理がソフトウェア(即ちプログラム136)によって実現されるが、これらの各処理のうちの少なくとも1つが論理回路等のハードウェアによって実現されてもよい。 (Modification 14) In each of the above embodiments, each process in FIGS. 2 to 9 is implemented by software (that is, the program 136), but at least one of these processes may be implemented by hardware such as a logic circuit.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。
以下の項目は、出願時の特許請求の範囲に記載の要素である。
(項目1)
通信装置であって、
表示部と、
第1の無線インターフェースと、
前記第1の無線インターフェースとは異なる第2の無線インターフェースと、
制御部と、を備え、
前記制御部は、
前記通信装置と第1の外部装置との間に前記第1の無線インターフェースを介した第1の無線接続が確立される場合に、公開鍵の送信を含む対象処理を実行すべきことを指示するための指示画面を前記表示部に表示させる表示制御部と、
前記指示画面が表示されている状況において、前記対象処理を実行すべきことが指示される場合に、前記公開鍵の送信を指示する第1の指示情報を前記第1の無線インターフェースに供給する第1の供給部であって、前記指示画面が表示されている状況において、前記対象処理を実行すべきことが指示されない場合に、前記第1の指示情報は前記第1の無線インターフェースに供給されない、前記第1の供給部と、
を備え、
前記第1の無線インターフェースは、前記制御部から前記第1の指示情報を取得した後に、前記公開鍵を前記第1の外部装置に送信し、
前記制御部は、さらに、
前記公開鍵が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、前記公開鍵が利用された認証要求を受信する認証要求受信部と、
前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証要求に対する応答である認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第2の無線インターフェースを介した第2の無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する第1の確立部と、
を備える、通信装置。
(項目2)
前記第2の外部装置は、前記第1の外部装置とは異なる装置であり、
前記指示画面は、前記対象処理に対応する第1の選択領域と、前記対象処理とは異なる処理に対応する第2の選択領域と、を含み、
前記第1の供給部は、前記指示画面が表示されている状況において、前記第1の選択領域が選択される場合に、前記第1の指示情報を前記第1の無線インターフェースに供給し、
前記制御部は、さらに、
前記指示画面が表示されている状況において、前記第2の選択領域が選択される場合に、前記通信装置と前記第1の外部装置との間に前記第2の無線インターフェースを介した第3の無線接続を確立する第2の確立部を備える、項目1に記載の通信装置。
(項目3)
前記第1の無線インターフェースは、インターフェースメモリを備え、
前記第1の指示情報は、前記公開鍵を含み、
前記第1の無線インターフェースは、
前記制御部から前記第1の指示情報を取得することに応じて、前記第1の指示情報に含まれる前記公開鍵を前記インターフェースメモリに記憶し、
前記第1の無線接続が切断され、かつ、前記公開鍵が前記インターフェースメモリに記憶された後に、前記通信装置と前記第1の外部装置との間に前記第1の無線インターフェースを介した第4の無線接続が確立される場合に、前記第4の無線接続を利用して、前記公開鍵を前記第1の外部装置に送信し、
前記制御部は、さらに、
前記指示画面が表示されている状況において、前記第2の選択領域が選択される場合に、前記第3の無線接続を確立するための確立情報を含む第2の指示情報を前記第1の無線インターフェースに供給する第2の供給部を備え、
前記第1の無線インターフェースは、
前記制御部から前記第2の指示情報を取得することに応じて、前記第2の指示情報に含まれる前記確立情報を前記インターフェースメモリに記憶し、
前記第1の無線接続が切断され、かつ、前記確立情報が前記インターフェースメモリに記憶された後に、前記通信装置と前記第1の外部装置との間に前記第1の無線インターフェースを介した第5の無線接続が確立される場合に、前記第5の無線接続を利用して、前記第1の無線インターフェースを介して前記確立情報を前記第1の外部装置に送信し、
前記第2の確立部は、前記確立情報が前記第1の外部装置に送信された後に、前記確立情報を利用して、前記通信装置と前記第1の外部装置との間に前記第2の無線インターフェースを介した前記第3の無線接続を確立する、項目2に記載の通信装置。
(項目4)
前記制御部は、さらに、
前記第1の無線接続が確立された後に、前記通信装置の動作状態を不可能状態から可能状態に移行させる状態移行部であって、前記不可能状態は、前記第1の外部装置から前記認証要求を受信しても、前記認証応答を送信しない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記状態移行部を備え、
前記認証応答送信部は、前記通信装置の動作状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する、項目1から3のいずれか一項に記載の通信装置。
(項目5)
通信装置であって、
第1の無線インターフェースと、
前記第1の無線インターフェースとは異なる第2の無線インターフェースと、
制御部と、を備え、
前記制御部は、
前記通信装置と第1の外部装置との間に前記第1の無線インターフェースを介した第1の無線接続が確立された後に、前記通信装置の動作状態を不可能状態から可能状態に移行させる状態移行部であって、前記不可能状態は、前記第1の外部装置から公開鍵が利用された認証要求を受信しても、前記認証要求に対する応答である認証応答を送信しない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記状態移行部と、
を備え、
前記第1の無線インターフェースは、前記第1の無線接続が確立された後に、前記公開鍵を前記第1の外部装置に送信し、
前記制御部は、さらに、
前記公開鍵が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、前記認証要求を受信する認証要求受信部と、
前記通信装置の動作状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第2の無線インターフェースを介した第2の無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する第1の確立部と、
を備える、通信装置。
(項目6)
前記第1の無線インターフェースは、前記公開鍵と、前記通信装置において予め決められている第1の通信チャネルを示す通信チャネル情報と、を前記第1の外部装置に送信し、
前記可能状態は、前記第1の通信チャネルが利用された前記認証要求を受信することを監視し、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態であり、
前記認証応答送信部は、前記通信装置の動作状態が前記可能状態に移行された後に、前記第1の外部装置から前記第1の通信チャネルが利用された前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する、項目4又は5に記載の通信装置。
(項目7)
前記第1の確立部は、前記第1の通信チャネルとは異なる第2の通信チャネルを利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する、項目6に記載の通信装置。
(項目8)
前記第1の無線インターフェースは、前記第1の無線接続が切断され、かつ、前記通信装置と前記第1の外部装置との間に前記第1の無線インターフェースを介した第4の無線接続が確立される場合に、前記第4の無線接続を利用して、前記公開鍵を前記第1の外部装置に送信する、項目1から7のいずれか一項に記載の通信装置。
(項目9)
前記第1の無線インターフェースは、インターフェースメモリを備え、
前記公開鍵の送信を指示する第1の指示情報は、前記公開鍵を含み、
前記第1の無線インターフェースは、
前記制御部から前記第1の指示情報を取得することに応じて、前記第1の指示情報に含まれる前記公開鍵を前記インターフェースメモリに記憶し、
前記第1の無線接続が切断され、かつ、前記公開鍵が前記インターフェースメモリに記憶された後に、前記第4の無線接続が確立される場合に、前記第4の無線接続を利用して、前記公開鍵を前記第1の外部装置に送信する、項目8に記載の通信装置。
(項目10)
前記制御部は、さらに、
所定条件が満たされる場合に、前記第1の無線インターフェースの動作モードを第1のモードから第2のモードに移行させるモード移行部であって、前記第1のモードは、前記第1の無線インターフェースを介した無線接続を確立不可能なモードであり、前記第2のモードは、前記第1の無線インターフェースを介した無線接続を確立可能なモードである、前記モード移行部を備える、項目1から9のいずれか一項に記載の通信装置。
(項目11)
前記制御部は、さらに、
制御部メモリと、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を前記制御部メモリに記憶する記憶制御部と、を備え、
前記制御部メモリ内に前記接続情報が記憶されていない状況において、前記通信装置の電源がONされる場合に、前記所定条件が満たされ、
前記制御部メモリ内に前記接続情報が記憶されている状況において、前記通信装置の電源がONされる場合に、前記所定条件が満たされない、項目10に記載の通信装置。
(項目12)
前記通信装置は、さらに、
操作部を備え、
前記制御部メモリ内に前記接続情報が記憶されている状況において、前記操作部を介した特定操作が受け付けられる場合に、前記所定条件が満たされる、項目11に記載の通信装置。
(項目13)
前記第1の無線インターフェースは、前記第1の無線接続が確立される場合に、前記第1の無線接続を利用して、前記第1の外部装置にインストールされているアプリケーションプログラムを起動するための起動情報を前記第1の外部装置に送信し、
前記認証要求受信部は、前記アプリケーションプログラムに従って前記第1の外部装置から送信された前記認証要求を受信する、項目1から12のいずれか一項に記載の通信装置。
(項目14)
前記第1の無線インターフェースは、NFC(Near Field Communicationの略)方式のタグインターフェースである、項目1から13のいずれか一項に記載の通信装置。
(項目15)
前記第2の外部装置は、前記第1の外部装置とは異なる装置であって、無線ネットワークの親局として動作すべき親局装置であり、
前記第1の確立部は、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立して、前記通信装置を前記無線ネットワークに子局として参加させる、項目1から14のいずれか一項に記載の通信装置。
(項目16)
前記接続情報は、前記第2の外部装置から受信される受信情報を認証するための認証情報を含む、項目1から15のいずれか一項に記載の通信装置。
(項目17)
前記制御部は、さらに、
前記認証応答が前記第1の外部装置に送信された後に、前記通信装置をWi-Fi規格に従ったEnrolleeとして動作させる動作制御部であって、前記第1の外部装置は、前記Wi-Fi規格に従ったConfiguratorとして動作する、前記動作制御部を備える、項目1から16のいずれか一項に記載の通信装置。
(項目18)
通信装置のためのコンピュータプログラムであって、
前記通信装置のコンピュータを、以下の各部、即ち、
前記通信装置と第1の外部装置との間に前記通信装置の第1の無線インターフェースを介した第1の無線接続が確立される場合に、公開鍵の送信を含む対象処理を実行すべきことを指示するための指示画面を前記通信装置の表示部に表示させる表示制御部と、
前記指示画面が表示されている状況において、前記対象処理を実行すべきことが指示される場合に、前記公開鍵の送信を指示する第1の指示情報を前記第1の無線インターフェースに供給する第1の供給部であって、前記指示画面が表示されている状況において、前記対象処理を実行すべきことが指示されない場合に、前記第1の指示情報は前記第1の無線インターフェースに供給されない、前記第1の供給部と、
前記第1の指示情報が前記第1の無線インターフェースに供給され、前記公開鍵が前記第1の無線インターフェースから前記第1の外部装置に送信された後に、前記第1の外部装置から、前記通信装置の第2の無線インターフェースを介して、前記公開鍵が利用された認証要求を受信する認証要求受信部であって、前記第2の無線インターフェースは、前記第1の無線インターフェースとは異なる、前記認証要求受信部と、
前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証要求に対する応答である認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第2の無線インターフェースを介した第2の無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する第1の確立部と、
として機能させる、コンピュータプログラム。
(項目19)
通信装置のためのコンピュータプログラムであって、
前記通信装置のコンピュータを、以下の各部、即ち、
前記通信装置と第1の外部装置との間に前記通信装置の第1の無線インターフェースを介した第1の無線接続が確立された後に、前記通信装置の動作状態を不可能状態から可能状態に移行させる状態移行部であって、前記不可能状態は、前記第1の外部装置から公開鍵が利用された認証要求を受信しても、前記認証要求に対する応答である認証応答を送信しない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記状態移行部と、
前記第1の無線接続が確立され、前記公開鍵が前記第1の無線インターフェースから前記第1の外部装置に送信された後に、前記第1の外部装置から、前記通信装置の第2の無線インターフェースを介して、前記認証要求を受信する認証要求受信部であって、前記第2の無線インターフェースは、前記第1の無線インターフェースとは異なる、前記認証要求受信部と、
前記通信装置の動作状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第2の無線インターフェースを介した第2の無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する第1の確立部と、
として機能させる、コンピュータプログラム。
In addition, the technical elements described in this specification or in the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the techniques exemplified in this specification or drawings achieve multiple purposes at the same time, and achieving one of them has technical utility in itself.
The following items are claimed elements as filed.
(Item 1)
A communication device,
a display unit;
a first wireless interface;
a second wireless interface different from the first wireless interface;
a control unit;
The control unit
a display control unit that causes the display unit to display an instruction screen for instructing execution of target processing including transmission of a public key when a first wireless connection is established between the communication device and the first external device through the first wireless interface;
a first supply unit that supplies first instruction information for instructing transmission of the public key to the first wireless interface when an instruction to execute the target process is given in a state where the instruction screen is displayed, wherein the first instruction information is not supplied to the first wireless interface when an instruction to execute the target process is not given in a situation where the instruction screen is displayed;
with
the first wireless interface, after acquiring the first instruction information from the control unit, transmits the public key to the first external device;
The control unit further
an authentication request receiving unit that receives an authentication request using the public key from the first external device via the second wireless interface after the public key is transmitted to the first external device;
an authentication response transmission unit configured to transmit an authentication response, which is a response to the authentication request, to the first external device via the second wireless interface when the authentication request is received from the first external device;
a connection information receiving unit that receives connection information from the first external device via the second wireless interface after the authentication response is transmitted to the first external device, the connection information receiving unit being information for establishing a second wireless connection between the communication device and a second external device via the second wireless interface;
a first establishing unit that establishes the second wireless connection between the communication device and the second external device via the second wireless interface using the connection information when the connection information is received from the first external device;
A communication device comprising:
(Item 2)
the second external device is a device different from the first external device,
the instruction screen includes a first selection area corresponding to the target process and a second selection area corresponding to a process different from the target process;
The first supply unit supplies the first instruction information to the first wireless interface when the first selection area is selected in a situation where the instruction screen is displayed;
The control unit further
The communication device according to item 1, further comprising: a second establishing unit that establishes a third wireless connection between the communication device and the first external device via the second wireless interface when the second selection area is selected in a situation where the instruction screen is displayed.
(Item 3)
the first wireless interface comprises an interface memory;
the first instruction information includes the public key;
The first radio interface is
storing the public key included in the first instruction information in the interface memory in response to obtaining the first instruction information from the control unit;
when a fourth wireless connection is established between the communication device and the first external device via the first wireless interface after the first wireless connection is disconnected and the public key is stored in the interface memory, transmitting the public key to the first external device using the fourth wireless connection;
The control unit further
A second supply unit that supplies second instruction information including establishment information for establishing the third wireless connection to the first wireless interface when the second selection area is selected in a situation where the instruction screen is displayed,
The first radio interface is
storing the establishment information included in the second instruction information in the interface memory in response to acquiring the second instruction information from the control unit;
when a fifth wireless connection is established between the communication device and the first external device via the first wireless interface after the first wireless connection is disconnected and the establishment information is stored in the interface memory, using the fifth wireless connection to transmit the establishment information to the first external device via the first wireless interface;
The communication device according to item 2, wherein, after the establishment information is transmitted to the first external device, the second establishment unit establishes the third wireless connection between the communication device and the first external device via the second wireless interface by using the establishment information.
(Item 4)
The control unit further
a state transition unit for transitioning an operation state of the communication device from an impossible state to an enabled state after the first wireless connection is established, wherein the impossible state is a state in which the authentication response is not transmitted even if the authentication request is received from the first external device, and the enabled state is a state in which the authentication response is transmitted to the first external device in response to receiving the authentication request from the first external device;
4. The communication device according to any one of items 1 to 3, wherein the authentication response transmission unit transmits the authentication response to the first external device via the second wireless interface when the authentication request is received from the first external device after the operation state of the communication device is shifted to the enabled state.
(Item 5)
A communication device,
a first wireless interface;
a second wireless interface different from the first wireless interface;
a control unit;
The control unit
A state transition unit that shifts an operation state of the communication device from a disabled state to a enabled state after a first wireless connection is established between the communication device and a first external device through the first wireless interface, wherein the disabled state is a state in which even if an authentication request using a public key is received from the first external device, an authentication response that is a response to the authentication request is not transmitted, and the enabled state is a state in which the authentication response is sent to the first external device in response to receiving the authentication request from the first external device. the state transition unit, which is a state to be transmitted to an external device of
with
the first wireless interface transmits the public key to the first external device after the first wireless connection is established;
The control unit further
an authentication request receiving unit configured to receive the authentication request from the first external device via the second wireless interface after the public key has been transmitted to the first external device;
an authentication response transmitting unit configured to transmit the authentication response to the first external device via the second wireless interface when the authentication request is received from the first external device after the operation state of the communication device has been shifted to the enabled state;
a connection information receiving unit that receives connection information from the first external device via the second wireless interface after the authentication response is transmitted to the first external device, the connection information receiving unit being information for establishing a second wireless connection between the communication device and a second external device via the second wireless interface;
a first establishing unit that establishes the second wireless connection between the communication device and the second external device via the second wireless interface using the connection information when the connection information is received from the first external device;
A communication device comprising:
(Item 6)
the first wireless interface transmits the public key and communication channel information indicating a first communication channel predetermined in the communication device to the first external device;
The enabled state is a state of monitoring reception of the authentication request using the first communication channel, and transmitting the authentication response to the first external device in response to receiving the authentication request from the first external device,
The communication device according to item 4 or 5, wherein the authentication response transmission unit transmits the authentication response to the first external device via the second wireless interface when the authentication request using the first communication channel is received from the first external device after the operating state of the communication device is shifted to the enabled state.
(Item 7)
The communication device according to item 6, wherein the first establishing unit uses a second communication channel different from the first communication channel to establish the second wireless connection between the communication device and the second external device via the second wireless interface.
(Item 8)
8. The communication device according to any one of items 1 to 7, wherein the first wireless interface uses the fourth wireless connection to transmit the public key to the first external device when the first wireless connection is disconnected and a fourth wireless connection is established between the communication device and the first external device via the first wireless interface.
(Item 9)
the first wireless interface comprises an interface memory;
first instruction information for instructing transmission of the public key includes the public key;
The first radio interface is
storing the public key included in the first instruction information in the interface memory in response to obtaining the first instruction information from the control unit;
The communication device according to item 8, wherein when the fourth wireless connection is established after the first wireless connection is disconnected and the public key is stored in the interface memory, the public key is transmitted to the first external device using the fourth wireless connection.
(Item 10)
The control unit further
10. The communication device according to any one of items 1 to 9, further comprising: a mode transition unit that shifts an operation mode of the first wireless interface from a first mode to a second mode when a predetermined condition is satisfied, wherein the first mode is a mode in which wireless connection cannot be established via the first wireless interface, and the second mode is a mode in which wireless connection can be established via the first wireless interface.
(Item 11)
The control unit further
a controller memory;
a storage controller that stores the connection information in the controller memory when the connection information is received from the first external device;
when the power of the communication device is turned on in a situation where the connection information is not stored in the control unit memory, the predetermined condition is satisfied;
11. The communication device according to item 10, wherein the predetermined condition is not satisfied when the power of the communication device is turned on while the connection information is stored in the control unit memory.
(Item 12)
The communication device further
Equipped with an operation unit,
12. The communication device according to item 11, wherein the predetermined condition is satisfied when a specific operation via the operation unit is accepted in a situation where the connection information is stored in the control unit memory.
(Item 13)
When the first wireless connection is established, the first wireless interface uses the first wireless connection to transmit activation information for activating an application program installed in the first external device to the first external device,
13. The communication device according to any one of items 1 to 12, wherein the authentication request receiving unit receives the authentication request transmitted from the first external device according to the application program.
(Item 14)
14. The communication device according to any one of items 1 to 13, wherein the first wireless interface is an NFC (Near Field Communication) type tag interface.
(Item 15)
The second external device is a device different from the first external device and is a master station device that should operate as a master station of a wireless network,
15. The communication device according to any one of items 1 to 14, wherein the first establishing unit establishes the second wireless connection between the communication device and the second external device via the second wireless interface, and allows the communication device to participate in the wireless network as a slave station.
(Item 16)
16. The communication device according to any one of items 1 to 15, wherein the connection information includes authentication information for authenticating received information received from the second external device.
(Item 17)
The control unit further
17. The communication device according to any one of items 1 to 16, comprising an operation control unit that operates the communication device as an Enrollee conforming to the Wi-Fi standard after the authentication response is transmitted to the first external device, wherein the first external device operates as a configurator conforming to the Wi-Fi standard.
(Item 18)
A computer program for a communication device, comprising:
The computer of the communication device has the following parts:
a display control unit that causes a display unit of the communication device to display an instruction screen for instructing execution of target processing including transmission of a public key when a first wireless connection is established between the communication device and a first external device via a first wireless interface of the communication device;
a first supply unit that supplies first instruction information for instructing transmission of the public key to the first wireless interface when an instruction to execute the target process is given in a state where the instruction screen is displayed, wherein the first instruction information is not supplied to the first wireless interface when an instruction to execute the target process is not given in a situation where the instruction screen is displayed;
an authentication request receiving unit configured to receive an authentication request using the public key from the first external device via a second wireless interface of the communication device after the first instruction information is supplied to the first wireless interface and the public key is transmitted from the first wireless interface to the first external device, the authentication request receiving unit wherein the second wireless interface is different from the first wireless interface;
an authentication response transmission unit configured to transmit an authentication response, which is a response to the authentication request, to the first external device via the second wireless interface when the authentication request is received from the first external device;
a connection information receiving unit that receives connection information from the first external device via the second wireless interface after the authentication response is transmitted to the first external device, the connection information receiving unit being information for establishing a second wireless connection between the communication device and a second external device via the second wireless interface;
a first establishing unit that establishes the second wireless connection between the communication device and the second external device via the second wireless interface using the connection information when the connection information is received from the first external device;
A computer program that acts as
(Item 19)
A computer program for a communication device, comprising:
The computer of the communication device has the following parts:
A state transition unit that shifts an operation state of the communication device from a disabled state to a enabled state after a first wireless connection is established between the communication device and a first external device via a first wireless interface of the communication device, wherein the disabled state is a state in which even if an authentication request using a public key is received from the first external device, an authentication response as a response to the authentication request is not transmitted, and the enabled state is a state in which the authentication response is sent in response to receiving the authentication request from the first external device. the state transition unit being in a state for transmission to the first external device;
an authentication request receiving unit configured to receive the authentication request from the first external device via a second wireless interface of the communication device after the first wireless connection is established and the public key is transmitted from the first wireless interface to the first external device, wherein the second wireless interface is different from the first wireless interface;
an authentication response transmitting unit configured to transmit the authentication response to the first external device via the second wireless interface when the authentication request is received from the first external device after the operating state of the communication device is shifted to the enabled state;
a connection information receiving unit that receives connection information from the first external device via the second wireless interface after the authentication response is transmitted to the first external device, the connection information receiving unit being information for establishing a second wireless connection between the communication device and a second external device via the second wireless interface;
a first establishing unit that establishes the second wireless connection between the communication device and the second external device via the second wireless interface using the connection information when the connection information is received from the first external device;
A computer program that acts as

2:通信システム、6:AP、10:端末、16,116:Wi-FiI/F、18,118:NFCI/F、40:接続アプリケーション、100:プリンタ、112:操作部、114:表示部、120:印刷実行部、130:制御部、132:CPU、134:メモリ、136:プログラム 2: communication system, 6: AP, 10: terminal, 16, 116: Wi-Fi I/F, 18, 118: NFC I/F, 40: connection application, 100: printer, 112: operation unit, 114: display unit, 120: print execution unit, 130: control unit, 132: CPU, 134: memory, 136: program

Claims (16)

通信装置であって、
表示部と、
第1の無線インターフェースと、
前記第1の無線インターフェースとは異なる第2の無線インターフェースと、
制御部と、を備え、
前記制御部は、
前記通信装置と第1の外部装置との間に前記第1の無線インターフェースを介した第1の無線接続が確立される場合に、公開鍵の送信を含む対象処理を実行すべきことを指示するための指示画面を前記表示部に表示させる表示制御部と、
前記指示画面が表示されている状況において、前記対象処理を実行すべきことが指示される場合に、前記公開鍵の送信を指示する指示情報を前記第1の無線インターフェースに供給する供給部であって、前記指示画面が表示されている状況において、前記対象処理を実行すべきことが指示されない場合に、前記指示情報は前記第1の無線インターフェースに供給されない、前記供給部と、
を備え、
前記第1の無線インターフェースは、前記制御部から前記指示情報を取得した後に、前記公開鍵を前記第1の外部装置に送信し、
前記制御部は、さらに、
前記第1の無線接続が確立された後に、前記通信装置の動作状態を不可能状態から可能状態に移行させる状態移行部であって、前記不可能状態は、前記第1の外部装置から前記公開鍵が利用された認証要求を受信しても、前記認証要求に対する応答である認証応答を送信しない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記状態移行部と、
前記公開鍵が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、前記認証要求を受信する認証要求受信部と、
前記通信装置の動作状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第2の無線インターフェースを介した第2の無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する第1の確立部と、
を備える、通信装置。
A communication device,
a display unit;
a first wireless interface;
a second wireless interface different from the first wireless interface;
a control unit;
The control unit
a display control unit that causes the display unit to display an instruction screen for instructing execution of target processing including transmission of a public key when a first wireless connection is established between the communication device and the first external device through the first wireless interface;
a supply unit that supplies instruction information for instructing transmission of the public key to the first wireless interface when an instruction to execute the target process is given while the instruction screen is displayed, wherein the instruction information is not supplied to the first wireless interface when an instruction to execute the target process is not given while the instruction screen is displayed ;
with
the first wireless interface, after acquiring the instruction information from the control unit, transmits the public key to the first external device;
The control unit further
a state transition unit for transitioning an operation state of the communication device from an impossible state to an enabled state after the first wireless connection is established, wherein the impossible state is a state in which an authentication response as a response to the authentication request is not transmitted even if an authentication request using the public key is received from the first external device, and the enabled state is a state in which the authentication response is transmitted to the first external device in response to receiving the authentication request from the first external device;
an authentication request receiving unit configured to receive the authentication request from the first external device via the second wireless interface after the public key has been transmitted to the first external device;
an authentication response transmitting unit configured to transmit the authentication response to the first external device via the second wireless interface when the authentication request is received from the first external device after the operation state of the communication device has been shifted to the enabled state ;
a connection information receiving unit that receives connection information from the first external device via the second wireless interface after the authentication response is transmitted to the first external device, the connection information receiving unit being information for establishing a second wireless connection between the communication device and a second external device via the second wireless interface;
a first establishing unit that establishes the second wireless connection between the communication device and the second external device via the second wireless interface using the connection information when the connection information is received from the first external device;
A communication device comprising:
通信装置であって、
第1の無線インターフェースと、
前記第1の無線インターフェースとは異なる第2の無線インターフェースと、
制御部と、を備え、
前記制御部は、
前記通信装置と第1の外部装置との間に前記第1の無線インターフェースを介した第1の無線接続が確立された後に、前記通信装置の動作状態を不可能状態から可能状態に移行させる状態移行部であって、前記不可能状態は、前記第1の外部装置から公開鍵が利用された認証要求を受信しても、前記認証要求に対する応答である認証応答を送信しない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記状態移行部と、
を備え、
前記第1の無線インターフェースは、前記第1の無線接続が確立された後に、前記公開鍵を前記第1の外部装置に送信し、
前記制御部は、さらに、
前記公開鍵が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、前記認証要求を受信する認証要求受信部と、
前記通信装置の動作状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第2の無線インターフェースを介した第2の無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する第1の確立部と、
を備える、通信装置。
A communication device,
a first wireless interface;
a second wireless interface different from the first wireless interface;
a control unit;
The control unit
A state transition unit that shifts an operation state of the communication device from a disabled state to a enabled state after a first wireless connection is established between the communication device and a first external device through the first wireless interface, wherein the disabled state is a state in which even if an authentication request using a public key is received from the first external device, an authentication response that is a response to the authentication request is not transmitted, and the enabled state is a state in which the authentication response is sent to the first external device in response to receiving the authentication request from the first external device. the state transition unit, which is a state to be transmitted to an external device of
with
the first wireless interface transmits the public key to the first external device after the first wireless connection is established;
The control unit further
an authentication request receiving unit configured to receive the authentication request from the first external device via the second wireless interface after the public key has been transmitted to the first external device;
an authentication response transmitting unit configured to transmit the authentication response to the first external device via the second wireless interface when the authentication request is received from the first external device after the operation state of the communication device has been shifted to the enabled state;
a connection information receiving unit that receives connection information from the first external device via the second wireless interface after the authentication response is transmitted to the first external device, the connection information receiving unit being information for establishing a second wireless connection between the communication device and a second external device via the second wireless interface;
a first establishing unit that establishes the second wireless connection between the communication device and the second external device via the second wireless interface using the connection information when the connection information is received from the first external device;
A communication device comprising:
前記第1の無線インターフェースは、前記公開鍵と、前記通信装置において予め決められている第1の通信チャネルを示す通信チャネル情報と、を前記第1の外部装置に送信し、
前記可能状態は、前記第1の通信チャネルが利用された前記認証要求を受信することを監視し、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態であり、
前記認証応答送信部は、前記通信装置の動作状態が前記可能状態に移行された後に、前記第1の外部装置から前記第1の通信チャネルが利用された前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する、請求項又はに記載の通信装置。
the first wireless interface transmits the public key and communication channel information indicating a first communication channel predetermined in the communication device to the first external device;
The enabled state is a state of monitoring reception of the authentication request using the first communication channel, and transmitting the authentication response to the first external device in response to receiving the authentication request from the first external device,
3. The communication device according to claim 1, wherein the authentication response transmission unit transmits the authentication response to the first external device via the second wireless interface when the authentication request using the first communication channel is received from the first external device after the operating state of the communication device is shifted to the enabled state.
前記第1の確立部は、前記第1の通信チャネルとは異なる第2の通信チャネルを利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する、請求項に記載の通信装置。 The communication device according to claim 3, wherein the first establishment unit establishes the second wireless connection between the communication device and the second external device via the second wireless interface using a second communication channel different from the first communication channel. 前記第1の無線インターフェースは、前記第1の無線接続が切断され、かつ、前記通信装置と前記第1の外部装置との間に前記第1の無線インターフェースを介した第4の無線接続が確立される場合に、前記第4の無線接続を利用して、前記公開鍵を前記第1の外部装置に送信する、請求項1からのいずれか一項に記載の通信装置。 The communication device according to any one of claims 1 to 4, wherein the first wireless interface transmits the public key to the first external device using the fourth wireless connection when the first wireless connection is disconnected and a fourth wireless connection is established between the communication device and the first external device via the first wireless interface. 前記第1の無線インターフェースは、インターフェースメモリを備え、
前記公開鍵の送信を指示する指示情報は、前記公開鍵を含み、
前記第1の無線インターフェースは、
前記制御部から前記指示情報を取得することに応じて、前記指示情報に含まれる前記公開鍵を前記インターフェースメモリに記憶し、
前記第1の無線接続が切断され、かつ、前記公開鍵が前記インターフェースメモリに記憶された後に、前記第4の無線接続が確立される場合に、前記第4の無線接続を利用して、前記公開鍵を前記第1の外部装置に送信する、請求項に記載の通信装置。
the first wireless interface comprises an interface memory;
the instruction information for instructing transmission of the public key includes the public key;
The first radio interface is
storing the public key included in the instruction information in the interface memory in response to obtaining the instruction information from the control unit;
6. The communication device of claim 5 , wherein if the fourth wireless connection is established after the first wireless connection is disconnected and the public key is stored in the interface memory, the fourth wireless connection is used to transmit the public key to the first external device.
前記制御部は、さらに、
所定条件が満たされる場合に、前記第1の無線インターフェースの動作モードを第1のモードから第2のモードに移行させるモード移行部であって、前記第1のモードは、前記第1の無線インターフェースを介した無線接続を確立不可能なモードであり、前記第2のモードは、前記第1の無線インターフェースを介した無線接続を確立可能なモードである、前記モード移行部を備える、請求項1からのいずれか一項に記載の通信装置。
The control unit further
The communication device according to any one of claims 1 to 6 , further comprising: a mode transition unit that shifts the operation mode of the first wireless interface from a first mode to a second mode when a predetermined condition is satisfied, wherein the first mode is a mode in which wireless connection cannot be established via the first wireless interface, and the second mode is a mode in which wireless connection can be established via the first wireless interface.
前記制御部は、さらに、
制御部メモリと、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を前記制御部メモリに記憶する記憶制御部と、を備え、
前記制御部メモリ内に前記接続情報が記憶されていない状況において、前記通信装置の電源がONされる場合に、前記所定条件が満たされ、
前記制御部メモリ内に前記接続情報が記憶されている状況において、前記通信装置の電源がONされる場合に、前記所定条件が満たされない、請求項に記載の通信装置。
The control unit further
a controller memory;
a storage controller that stores the connection information in the controller memory when the connection information is received from the first external device;
when the power of the communication device is turned on in a situation where the connection information is not stored in the control unit memory, the predetermined condition is satisfied;
8. The communication device according to claim 7 , wherein said predetermined condition is not satisfied when said communication device is powered on while said connection information is stored in said controller memory.
前記通信装置は、さらに、
操作部を備え、
前記制御部メモリ内に前記接続情報が記憶されている状況において、前記操作部を介した特定操作が受け付けられる場合に、前記所定条件が満たされる、請求項に記載の通信装置。
The communication device further
Equipped with an operation unit,
9. The communication device according to claim 8 , wherein said predetermined condition is satisfied when a specific operation via said operation unit is accepted in a situation where said connection information is stored in said control unit memory.
前記第1の無線インターフェースは、前記第1の無線接続が確立される場合に、前記第1の無線接続を利用して、前記第1の外部装置にインストールされている接続アプリケーションプログラムであって、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立させるための前記接続アプリケーションプログラムを起動するための起動情報を前記第1の外部装置に送信し、
前記認証要求受信部は、前記第1の外部装置から前記接続アプリケーションプログラムに従って送信された前記認証要求を受信する、請求項1からのいずれか一項に記載の通信装置。
When the first wireless connection is established, the first wireless interface uses the first wireless connection to transmit, to the first external device, activation information for activating the connection application program installed in the first external device for establishing the second wireless connection between the communication device and the second external device via the second wireless interface;
10. The communication device according to claim 1 , wherein said authentication request receiving unit receives said authentication request transmitted according to said connection application program from said first external device.
前記第1の無線インターフェースは、NFC(Near Field Communicationの略)方式のタグインターフェースである、請求項1から10のいずれか一項に記載の通信装置。 The communication device according to any one of claims 1 to 10 , wherein the first wireless interface is an NFC (Near Field Communication) type tag interface. 前記第2の外部装置は、前記第1の外部装置とは異なる装置であって、無線ネットワークの親局として動作すべき親局装置であり、
前記第1の確立部は、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立して、前記通信装置を前記無線ネットワークに子局として参加させる、請求項1から11のいずれか一項に記載の通信装置。
The second external device is a device different from the first external device and is a master station device that should operate as a master station of a wireless network,
The communication device according to any one of claims 1 to 11 , wherein the first establishing unit establishes the second wireless connection between the communication device and the second external device via the second wireless interface, and causes the communication device to participate in the wireless network as a slave station.
前記接続情報は、前記第2の外部装置から受信される受信情報を認証するための認証情報を含む、請求項1から12のいずれか一項に記載の通信装置。 13. The communication device according to any one of claims 1 to 12 , wherein said connection information includes authentication information for authenticating received information received from said second external device. 前記制御部は、さらに、
前記認証応答が前記第1の外部装置に送信された後に、前記通信装置をWi-Fi規格に従ったEnrolleeとして動作させる動作制御部であって、前記第1の外部装置は、前記Wi-Fi規格に従ったConfiguratorとして動作する、前記動作制御部を備える、請求項1から13のいずれか一項に記載の通信装置。
The control unit further
The communication device according to any one of claims 1 to 13 , comprising the operation control unit that operates the communication device as an Enrollee conforming to the Wi-Fi standard after the authentication response is transmitted to the first external device, wherein the first external device operates as a configurator conforming to the Wi-Fi standard.
通信装置のためのコンピュータプログラムであって、
前記通信装置のコンピュータを、以下の各部、即ち、
前記通信装置と第1の外部装置との間に前記通信装置の第1の無線インターフェースを介した第1の無線接続が確立される場合に、公開鍵の送信を含む対象処理を実行すべきことを指示するための指示画面を前記通信装置の表示部に表示させる表示制御部と、
前記指示画面が表示されている状況において、前記対象処理を実行すべきことが指示される場合に、前記公開鍵の送信を指示する指示情報を前記第1の無線インターフェースに供給する供給部であって、前記指示画面が表示されている状況において、前記対象処理を実行すべきことが指示されない場合に、前記指示情報は前記第1の無線インターフェースに供給されない、前記供給部と、
前記第1の無線接続が確立された後に、前記通信装置の動作状態を不可能状態から可能状態に移行させる状態移行部であって、前記不可能状態は、前記第1の外部装置から前記公開鍵が利用された認証要求を受信しても、前記認証要求に対する応答である認証応答を送信しない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記状態移行部と、
記指示情報が前記第1の無線インターフェースに供給され、前記公開鍵が前記第1の無線インターフェースから前記第1の外部装置に送信された後に、前記第1の外部装置から、前記通信装置の第2の無線インターフェースを介して、前記認証要求を受信する認証要求受信部であって、前記第2の無線インターフェースは、前記第1の無線インターフェースとは異なる、前記認証要求受信部と、
前記通信装置の動作状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第2の無線インターフェースを介した第2の無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する第1の確立部と、
として機能させる、コンピュータプログラム。
A computer program for a communication device, comprising:
The computer of the communication device has the following parts:
a display control unit that causes a display unit of the communication device to display an instruction screen for instructing execution of target processing including transmission of a public key when a first wireless connection is established between the communication device and a first external device via a first wireless interface of the communication device;
a supply unit that supplies instruction information for instructing transmission of the public key to the first wireless interface when an instruction to execute the target process is given while the instruction screen is displayed, wherein the instruction information is not supplied to the first wireless interface when an instruction to execute the target process is not given while the instruction screen is displayed ;
a state transition unit for transitioning an operation state of the communication device from an impossible state to an enabled state after the first wireless connection is established, wherein the impossible state is a state in which an authentication response as a response to the authentication request is not transmitted even if an authentication request using the public key is received from the first external device, and the enabled state is a state in which the authentication response is transmitted to the first external device in response to receiving the authentication request from the first external device;
an authentication request receiving unit configured to receive the authentication request from the first external device via a second wireless interface of the communication device after the instruction information is supplied to the first wireless interface and the public key is transmitted from the first wireless interface to the first external device, wherein the second wireless interface is different from the first wireless interface;
an authentication response transmitting unit configured to transmit the authentication response to the first external device via the second wireless interface when the authentication request is received from the first external device after the operation state of the communication device has been shifted to the enabled state ;
a connection information receiving unit that receives connection information from the first external device via the second wireless interface after the authentication response is transmitted to the first external device, the connection information receiving unit being information for establishing a second wireless connection between the communication device and a second external device via the second wireless interface;
a first establishing unit that establishes the second wireless connection between the communication device and the second external device via the second wireless interface using the connection information when the connection information is received from the first external device;
A computer program that acts as
通信装置のためのコンピュータプログラムであって、
前記通信装置のコンピュータを、以下の各部、即ち、
前記通信装置と第1の外部装置との間に前記通信装置の第1の無線インターフェースを介した第1の無線接続が確立された後に、前記通信装置の動作状態を不可能状態から可能状態に移行させる状態移行部であって、前記不可能状態は、前記第1の外部装置から公開鍵が利用された認証要求を受信しても、前記認証要求に対する応答である認証応答を送信しない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記状態移行部と、
前記第1の無線接続が確立され、前記公開鍵が前記第1の無線インターフェースから前記第1の外部装置に送信された後に、前記第1の外部装置から、前記通信装置の第2の無線インターフェースを介して、前記認証要求を受信する認証要求受信部であって、前記第2の無線インターフェースは、前記第1の無線インターフェースとは異なる、前記認証要求受信部と、
前記通信装置の動作状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第2の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第2の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第2の無線インターフェースを介した第2の無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第2の無線インターフェースを介した前記第2の無線接続を確立する第1の確立部と、
として機能させる、コンピュータプログラム。
A computer program for a communication device, comprising:
The computer of the communication device has the following parts:
A state transition unit that shifts an operation state of the communication device from a disabled state to a enabled state after a first wireless connection is established between the communication device and a first external device via a first wireless interface of the communication device, wherein the disabled state is a state in which even if an authentication request using a public key is received from the first external device, an authentication response as a response to the authentication request is not transmitted, and the enabled state is a state in which the authentication response is sent in response to receiving the authentication request from the first external device. the state transition unit being in a state for transmission to the first external device;
an authentication request receiving unit configured to receive the authentication request from the first external device via a second wireless interface of the communication device after the first wireless connection is established and the public key is transmitted from the first wireless interface to the first external device, wherein the second wireless interface is different from the first wireless interface;
an authentication response transmitting unit configured to transmit the authentication response to the first external device via the second wireless interface when the authentication request is received from the first external device after the operation state of the communication device has been shifted to the enabled state;
a connection information receiving unit that receives connection information from the first external device via the second wireless interface after the authentication response is transmitted to the first external device, the connection information receiving unit being information for establishing a second wireless connection between the communication device and a second external device via the second wireless interface;
a first establishing unit that establishes the second wireless connection between the communication device and the second external device via the second wireless interface using the connection information when the connection information is received from the first external device;
A computer program that acts as
JP2022096624A 2018-03-30 2022-06-15 Communication device and computer program for the communication device Active JP7315066B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022096624A JP7315066B2 (en) 2018-03-30 2022-06-15 Communication device and computer program for the communication device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018068819A JP7091781B2 (en) 2018-03-30 2018-03-30 Communication equipment and computer programs for communication equipment
JP2022096624A JP7315066B2 (en) 2018-03-30 2022-06-15 Communication device and computer program for the communication device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018068819A Division JP7091781B2 (en) 2018-03-30 2018-03-30 Communication equipment and computer programs for communication equipment

Publications (2)

Publication Number Publication Date
JP2022121487A JP2022121487A (en) 2022-08-19
JP7315066B2 true JP7315066B2 (en) 2023-07-26

Family

ID=87428009

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022096624A Active JP7315066B2 (en) 2018-03-30 2022-06-15 Communication device and computer program for the communication device

Country Status (1)

Country Link
JP (1) JP7315066B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016136704A (en) 2015-01-23 2016-07-28 キヤノン株式会社 System, communication device, communication method, and program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016136704A (en) 2015-01-23 2016-07-28 キヤノン株式会社 System, communication device, communication method, and program

Also Published As

Publication number Publication date
JP2022121487A (en) 2022-08-19

Similar Documents

Publication Publication Date Title
JP7215048B2 (en) Computer program for terminal device and terminal device
JP7091781B2 (en) Communication equipment and computer programs for communication equipment
JP7155581B2 (en) Communication device and computer program for the communication device
JP7052496B2 (en) Communication equipment and computer programs for communication equipment
JP7183559B2 (en) Printers and computer programs for printers
JP7359273B2 (en) Communication devices and computer programs for communication devices
JP7196602B2 (en) Communication device, computer program for communication device, and computer program for first external device
JP7414100B2 (en) Communication devices and computer programs for communication devices
JP2023168594A (en) Communication device and computer program therefor
JP2022160527A (en) Communication device and computer program therefor
JP2024019266A (en) Communication devices and computer programs for communication devices
JP7419728B2 (en) Communication devices and computer programs for communication devices
JP7315066B2 (en) Communication device and computer program for the communication device
JP7294489B2 (en) Communication device and computer program for the communication device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220705

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220712

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230626

R150 Certificate of patent or registration of utility model

Ref document number: 7315066

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150