JP7419728B2 - Communication devices and computer programs for communication devices - Google Patents

Communication devices and computer programs for communication devices Download PDF

Info

Publication number
JP7419728B2
JP7419728B2 JP2019177993A JP2019177993A JP7419728B2 JP 7419728 B2 JP7419728 B2 JP 7419728B2 JP 2019177993 A JP2019177993 A JP 2019177993A JP 2019177993 A JP2019177993 A JP 2019177993A JP 7419728 B2 JP7419728 B2 JP 7419728B2
Authority
JP
Japan
Prior art keywords
external device
communication device
wireless interface
state
unit
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
JP2019177993A
Other languages
Japanese (ja)
Other versions
JP2021057713A (en
Inventor
智詞 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2019177993A priority Critical patent/JP7419728B2/en
Publication of JP2021057713A publication Critical patent/JP2021057713A/en
Application granted granted Critical
Publication of JP7419728B2 publication Critical patent/JP7419728B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

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

特許文献1には、スマートフォンを利用して、カメラとAPとの間の無線接続を確立するための技術が開示されている。カメラは、ユーザから操作を受け付けることに応じて、通信パラメータの設定を行うための情報を含むQRコード(登録商標)を表示し、検索信号の受信の監視を開始する。スマートフォンは、カメラに表示されたQRコードを読み取ることによって、通信パラメータの設定を行うための情報を取得し、検索信号をカメラに送信する。カメラは、スマートフォンから検索信号を受信する場合に、検索信号に対する応答をスマートフォンに送信する。スマートフォンは、カメラから応答が受信される場合に、取得済みの情報を利用して通信パラメータを設定し、設定済みの通信パラメータをカメラに送信する。また、スマートフォンは、同様の処理をAPと実行して、通信パラメータをAPに送信する。これにより、カメラは、受信済みの通信パラメータを利用して、APとの無線接続を確立することができる。 Patent Document 1 discloses a technique for establishing a wireless connection between a camera and an AP using a smartphone. In response to receiving an operation from the user, the camera displays a QR code (registered trademark) containing information for setting communication parameters, and starts monitoring reception of a search signal. By reading the QR code displayed on the camera, the smartphone acquires information for setting communication parameters, and sends a search signal to the camera. When the camera receives a search signal from the smartphone, the camera transmits a response to the search signal to the smartphone. When a response is received from the camera, the smartphone uses the acquired information to set communication parameters, and sends the set communication parameters to the camera. Additionally, the smartphone performs similar processing with the AP and transmits communication parameters to the AP. Thereby, the camera can establish a wireless connection with the AP using the received communication parameters.

特開2017-28454号公報JP2017-28454A 特開2018-6983号公報JP 2018-6983 Publication 特開2018-37978号公報JP2018-37978A

「Device Provisioning Protocol Technical Specification Version 1.1」Wi-Fi Alliance, 2018年“Device Provisioning Protocol Technical Specification Version 1.1” Wi-Fi Alliance, 2018

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

本明細書によって開示される通信装置は、第1の無線インターフェースと、前記第1の無線インターフェースとは異なる第2の無線インターフェースと、前記第2の無線インターフェースとは異なる出力部と、第1の外部装置から、前記第2の無線インターフェースを介して、特定信号を受信する特定信号受信部と、前記第1の外部装置から前記特定信号が受信された後に、公開鍵を用いて得られる特定情報を前記出力部に出力させる第1の出力制御部であって、前記特定情報が出力されることによって、前記公開鍵が前記第1の外部装置によって取得される、前記第1の出力制御部と、前記特定情報が出力された後に、前記第1の外部装置から、前記第1の無線インターフェースを介して、前記公開鍵が利用された認証要求を受信する認証要求受信部と、前記第1の外部装置から前記認証要求が受信される場合に、前記第1の無線インターフェースを介して、前記認証要求に対する応答である認証応答を前記第1の外部装置に送信する認証応答送信部と、前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第1の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第1の無線インターフェースを介した無線接続を確立するための情報である、前記接続情報受信部と、前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第1の無線インターフェースを介した前記無線接続を確立する確立部と、を備える。 A communication device disclosed in this specification includes a first wireless interface, a second wireless interface different from the first wireless interface, an output section different from the second wireless interface, and a first wireless interface. a specific signal receiving unit that receives a specific signal from an external device via the second wireless interface; and specific information obtained using a public key after the specific signal is received from the first external device. a first output control unit that causes the output unit to output the specific information, and the public key is acquired by the first external device by outputting the specific information; , an authentication request receiving unit that receives an authentication request using the public key from the first external device via the first wireless interface after the specific information is output; an authentication response transmitter that transmits an authentication response that is a response to the authentication request to the first external device via the first wireless interface when the authentication request is received from an external device; A connection information receiving unit that receives connection information from the first external device via the first wireless interface after a response is transmitted to the first external device, the connection information comprising: the connection information receiving section, which is information for establishing a wireless connection between the communication device and the second external device via the first wireless interface; and the connection information from the first external device. an establishing unit that establishes the wireless connection between the communication device and the second external device via the first wireless interface when the connection information is received. .

上記の構成によると、通信装置は、第1の外部装置から第2の無線インターフェースを介して特定信号を受信した後に、公開鍵を用いて得られる特定情報を出力する。この結果、公開鍵が、第1の外部装置によって取得される。その後、通信装置は、第1の外部装置から第2の無線インターフェースとは異なる第1の無線インターフェースを介して公開鍵が利用された認証要求を受信して、認証応答を第1の外部装置に送信し、第1の外部装置から接続情報を受信する。これにより、通信装置は、接続情報を利用して、第2の外部装置との無線接続を確立することができる。 According to the above configuration, the communication device outputs the specific information obtained using the public key after receiving the specific signal from the first external device via the second wireless interface. As a result, the public key is obtained by the first external device. Thereafter, the communication device receives an authentication request using a public key from the first external device via a first wireless interface different from the second wireless interface, and sends an authentication response to the first external device. and receiving connection information from the first external device. Thereby, the communication device can establish a wireless connection with the second external device using the connection information.

また、本明細書によって開示される通信装置は、第1の無線インターフェースと、前記第1の無線インターフェースとは異なる第2の無線インターフェースと、第1の外部装置から、前記第2の無線インターフェースを介して、特定信号を受信する特定信号受信部と、前記第1の外部装置から前記特定信号が受信された後に、前記通信装置の状態を不可能状態から可能状態に移行させる第1の状態移行部であって、前記不可能状態は、認証要求に対する応答である認証応答が送信されない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記第1の状態移行部と、前記第1の外部装置から、前記第1の無線インターフェースを介して、前記認証要求を受信する認証要求受信部と、前記通信装置の状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第1の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する認証応答送信部と、前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第1の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第1の無線インターフェースを介した無線接続を確立するための情報である、前記接続情報受信部と、前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第1の無線インターフェースを介した前記無線接続を確立する確立部と、を備える。 Further, the communication device disclosed in this specification includes a first wireless interface, a second wireless interface different from the first wireless interface, and a communication device that receives the second wireless interface from a first external device. a specific signal receiving unit that receives a specific signal from the first external device; and a first state transition that shifts the state of the communication device from a disabled state to a enabled state after the specific signal is received from the first external device. The disabled state is a state in which an authentication response that is a response to an authentication request is not transmitted, and the enabled state is a state in which the authentication response is transmitted in response to receiving the authentication request from the first external device. the first state transition unit being in a state of transmitting an authentication response to the first external device; and the authentication receiving the authentication request from the first external device via the first wireless interface. a request receiving unit; when the authentication request is received from the first external device after the state of the communication device is shifted to the enabled state, the authentication response is sent via the first wireless interface; an authentication response transmitter that transmits an authentication response to the first external device; and after the authentication response is transmitted to the first external device, from the first external device via the first wireless interface, A connection information receiving unit that receives connection information, the connection information being information for establishing a wireless connection between the communication device and a second external device via the first wireless interface. , when the connection information receiving unit receives the connection information from the first external device, the connection information is used to connect the communication device and the second external device to the first external device. an establishing unit that establishes the wireless connection via the wireless interface.

上記の構成によると、通信装置は、第1の外部装置から第2の無線インターフェースを介して特定信号を受信した後に、不可能状態から可能状態に移行する。これにより、通信装置は、第1の外部装置から第2の無線インターフェースとは異なる第1の無線インターフェースを介して認証要求を受信する場合に、認証応答を第1の外部装置に送信することができる。そして、通信装置は、第1の外部装置から接続情報を受信し、接続情報を利用して、第2の外部装置との無線接続を確立することができる。 According to the above configuration, the communication device transitions from the disabled state to the enabled state after receiving the specific signal from the first external device via the second wireless interface. With this, when the communication device receives an authentication request from the first external device via the first wireless interface different from the second wireless interface, the communication device can transmit an authentication response to the first external device. can. The communication device can then receive connection information from the first external device and use the connection information to establish a wireless connection with the second external device.

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

通信システムの構成を示す。The configuration of the communication system is shown. 実施例の概略を説明するための説明図を示す。An explanatory diagram for explaining an outline of an example is shown. ケースAのBootstrappingの処理のシーケンス図を示す。A sequence diagram of Bootstrapping processing in case A is shown. Authenticationの処理のシーケンス図を示す。A sequence diagram of authentication processing is shown. Configurationの処理のシーケンス図を示す。A sequence diagram of Configuration processing is shown. Network Accessの処理のシーケンス図を示す。A sequence diagram of Network Access processing is shown. ケースBのBootstrappingの処理のシーケンス図を示す。A sequence diagram of Bootstrapping processing in case B is shown. ケースCのBootstrappingの処理のシーケンス図を示す。A sequence diagram of Bootstrapping processing in case C is shown. ケースDのBootstrappingの処理のシーケンス図を示す。A sequence diagram of Bootstrapping processing in case D is shown.

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

(端末10の構成)
端末10は、携帯電話(例えばスマートフォン)、PDA、タブレットPC等の可搬型の端末装置である。なお、変形例では、端末10は、据置型のPC、ノートPC等であってもよい。端末10は、カメラ15と、Wi-Fiインターフェース16と、Bluetooth(登録商標)インターフェース17と、を備える。以下では、インターフェースを単に「I/F」と記載し、Bluetoothを単に「BT」と記載する。カメラ15は、物体を撮影するためのデバイスであり、本実施例では、特に、AP6及びプリンタ100のためのQRコードを撮影するために利用される。また、端末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, a smartphone), a PDA, or a tablet PC. Note that in a modification, the terminal 10 may be a stationary PC, a notebook PC, or the like. The terminal 10 includes a camera 15, a Wi-Fi interface 16, and a Bluetooth (registered trademark) interface 17. Hereinafter, the interface will be simply referred to as "I/F", and Bluetooth will be simply referred to as "BT". The camera 15 is a device for photographing an object, and in this embodiment, it is particularly used for photographing a QR code for the AP 6 and the printer 100. 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 on 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,11ac等)に従って、無線通信を実行するための無線通信方式である。特に、Wi-FiI/F16は、Wi-Fi Allianceによって策定される予定であるDPP(Device Provisioning Protocolの略)方式をサポートしている。DPP方式は、Wi-Fi Allianceによって作成された規格書のドラフトである「DRAFT Device Provisioning Protocol Technical Specification Version 0.2.11」に記述されており、端末10を利用して一対のデバイス(例えばプリンタ100とAP6)の間に容易にWi-Fi接続を確立させるための無線通信方式である。 The Wi-Fi I/F 16 is a wireless interface for performing Wi-Fi communication according to the Wi-Fi method. The Wi-Fi method is based on, for example, the IEEE (Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and its equivalent standards (e.g. 802.11a, 11b, 11g, 11n, 11ac, etc.) This is a wireless communication method for performing wireless communication according to the following. In particular, the Wi-Fi I/F 16 supports the DPP (abbreviation for Device Provisioning Protocol) method that is scheduled to be formulated by the Wi-Fi Alliance. The DPP method is described in "DRAFT Device Provisioning Protocol Technical Specification Version 0.2.11," which is a draft standard created by the Wi-Fi Alliance. This is a wireless communication method for easily establishing a Wi-Fi connection between APs (6).

BTI/F17は、BT方式に従ったBT通信を実行するための無線インターフェースである。BT方式は、例えば、IEEE802.15.1の規格、及び、それに準ずる規格に基づく無線通信方式である。より具体的に言うと、BTI/F17は、BLE(Bluetooth Low Energyの略)をサポートしている。BLEは、BT方式のバージョン4.0以降のバージョンで実現されている規格である。 The BT I/F 17 is a wireless interface for performing BT communication according to the BT method. The BT method is, for example, a wireless communication method based on the IEEE802.15.1 standard and standards corresponding thereto. More specifically, the BT I/F 17 supports BLE (abbreviation for Bluetooth Low Energy). BLE is a standard implemented in version 4.0 and later versions of the BT system.

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

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

操作部112は、複数のキーを備える。ユーザは、操作部112を操作することによって、様々な指示をプリンタ100に入力することができる。表示部114は、様々な情報を表示するためのディスプレイである。Wi-FiI/F116は、端末10のWi-FiI/F16と同様である。即ち、Wi-FiI/F116は、DPP方式をサポートしている。また、Wi-FiI/F116は、MACアドレス「abc」を有する。BTI/F117は、端末10のBTI/F17と同様である。印刷実行部118は、インクジェット方式、レーザ方式等の印刷機構を備える。 The operation unit 112 includes 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 Wi-Fi I/F 116 is similar to the Wi-Fi I/F 16 of the terminal 10. That is, the Wi-Fi I/F 116 supports the DPP method. Furthermore, the Wi-Fi I/F 116 has a MAC address "abc". The BTI/F 117 is similar to the BTI/F 17 of the terminal 10. The printing execution unit 118 includes a printing mechanism such as an inkjet method or a laser method.

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

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

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 the AP6. In response to the QR code pasted on the AP 6 being photographed by the terminal 10, the BS transmits information used in Authentication (hereinafter simply referred to as "Auth") in T10, which will be described later, from the AP 6. This is a process provided to the terminal 10.

T10では、端末10は、T5のBSで取得済みの情報を利用して、DPP方式のAuthをAP6と実行する。当該Authは、端末10及びAP6のそれぞれが通信相手を認証するための処理である。 At T10, the terminal 10 uses the information already acquired by the BS at T5 to perform DPP Auth with the AP6. The Auth is a process 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 executes DPP configuration (hereinafter simply referred to as "Config") with the AP6. The Config is a process for transmitting information for establishing a Wi-Fi connection between the printer 100 and the AP 6 to the AP 6. Specifically, in the Config, the terminal 10 creates a first Configuration Object (hereinafter, the Configuration Object is simply referred to as "CO") for establishing a Wi-Fi connection between the printer 100 and the AP 6. ) and sends the first CO to the AP6. As a result, the first CO is stored in AP6.

次いで、端末10は、T20において、DPP方式のBSをプリンタ100と実行する。当該BSは、プリンタ100に表示されるQRコードが端末10によって撮影されることに応じて、後述のT25のAuthで利用される情報をプリンタ100から端末10に提供する処理である。 Next, the terminal 10 executes a DPP type BS with the printer 100 at T20. The BS is a process in which the printer 100 provides the terminal 10 with information used in Auth at T25, which will be described later, in response to the terminal 10 photographing the QR code displayed on the printer 100.

T25では、端末10は、T20のBSで取得済みの情報を利用して、DPP方式のAuthをプリンタ100と実行する。当該Authは、端末10及びプリンタ100のそれぞれが通信相手を認証するための処理である。 At T25, the terminal 10 performs DPP Auth with the printer 100 using the information already acquired by the BS at T20. The Auth is a process by which each of the terminal 10 and the printer 100 authenticates the 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 T30, the terminal 10 executes DPP configuration with the printer 100. The Config is a process for transmitting information to the printer 100 for establishing a Wi-Fi connection between the printer 100 and the AP 6. In the Config, the terminal 10 generates a second CO for establishing a Wi-Fi connection between the printer 100 and the AP 6, and sends the second CO to the printer 100. As a result, the second CO is stored in the printer 100.

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

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 the AP 6 execute 4-way-handshake communication. In at least a part of the 4-way-handshake communication, the printer 100 and the AP 6 communicate encrypted information using the connection key shared by the NA of T35. Then, if the decryption of the encrypted information is successful, a Wi-Fi connection is established between the printer 100 and the AP 6. As a result, the printer 100 can participate as a slave station in the wireless network formed by the AP 6, and as a result, can communicate with other devices participating in the wireless network via the AP 6. I can do it. In a modification, the printer 100 and the AP 6 may perform SAE (Simultaneous Authentication of Equals, commonly known as "Dragonfly") communication instead of 4-way-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 AP 6. When the process at T45 ends, the process in 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 enters information (for example, SSID (Service Set Identifier), password, etc.) on the wireless network in which the AP 6 operates as a master station. There is no need to input the information into the printer 100. Therefore, the user can easily establish a Wi-Fi connection between the printer 100 and the AP 6.

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

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

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

プリンタ100は、T106において、画面MS内の設定ボタンがユーザによって選択されることに応じて、T107において、設定画面SSを表示部114に表示させる。画面SSは、プリンタ100の印刷設定を変更するための印刷設定ボタンと、QRコードの表示をプリンタ100に実行させるためのQRコードボタンと、BTI/F117の動作モードを変更するためのモード移行ボタンと、を含む。 In response to the user selecting the settings button on the screen MS at T106, the printer 100 causes the display unit 114 to display the settings screen SS at T107. The screen SS includes a print settings button for changing the print settings of the printer 100, a QR code button for causing the printer 100 to display a QR code, and a mode transition button for changing the operation mode of the BTI/F 117. and, including.

プリンタ100は、T120において、画面SS内のQRコードボタンがユーザによって選択されることに応じて、T122において、不可能状態から可能状態に移行する。不可能状態は、Wi-FiI/F116が、端末10からDPP Authentication Request(以下では、単に「AReq」と記載する)(後述の図4のT200参照)を受信しても、DPP Authentication Response(以下では、単に「ARes」と記載する)(後述のT210参照)を送信しない状態である。即ち、不可能状態は、AReqに対する応答であるAResが送信されない状態である。可能状態は、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に供給する状態であってもよい。 In response to the user selecting the QR code button on the screen SS at T120, the printer 100 transitions from the disabled state to the enabled state at T122. In the impossible state, even if the Wi-Fi I/F 116 receives a DPP Authentication Request (hereinafter simply referred to as "AReq") (see T200 in FIG. In this case, it is in a state in which a message (simply written as "ARes") (see T210 described later) is not transmitted. That is, the impossible state is a state in which ARes, which is a response to AReq, is not transmitted. The enabled state is a state in which the Wi-Fi I/F 116 transmits ARes to the terminal 10 in response to receiving an 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 transitioning from the disabled state to the enabled state. Specifically, in this embodiment, the impossible state is a state in which the Wi-Fi I/F 116 does not supply the signal to the CPU 132 even if it receives a signal from the outside. The enabled state is a state in which, in response to receiving a signal from the outside, the Wi-Fi I/F 116 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 impossible 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 impossible state is a state in which even if the Wi-Fi I/F 116 receives an AReq from the outside, it does not supply a notification indicating that the AReq has been received to the CPU 132, and the possible state is , the Wi-Fi I/F 116 may be in a state of supplying a notification indicating that the AReq has been received to the CPU 132 in response to receiving the AReq from the outside.

次いで、T124では、プリンタ100は、QRコードを表示部114に表示させる。当該QRコードは、メモリ134に予め記憶されている公開鍵PPK1と、メモリ134に予め記憶されているチャネルリストと、Wi-FiI/F116のMACアドレス「abc」と、がコード化されることによって得られるコード画像である。チャネルリストは、Auth(図2のT25参照)で利用されるべき複数個の通信チャネルの値のリストである。当該QRコードは、T124の処理が実行される際にプリンタ100によって生成されてもよいし、プリンタ100の出荷段階からメモリ134に予め記憶されていてもよい。 Next, at T124, the printer 100 displays the QR code on the display unit 114. The QR code is created by encoding the public key PPK1 stored in the memory 134 in advance, the channel list stored in the memory 134 in advance, and the MAC address "abc" of the Wi-Fi I/F 116. This is the resulting code image. The channel list is a list of values of multiple communication channels to be used in Auth (see T25 in FIG. 2). The QR code may be generated by the printer 100 when the process of T124 is executed, or may be stored in advance in the memory 134 from the time the printer 100 is shipped.

端末10は、T130において、ユーザからアプリ40の起動操作を受け付けることに応じて、アプリ40を起動し、さらに、カメラ15を起動する。端末10によって実行される以降の各処理は、アプリ40によって実現される。次いで、端末10は、T132において、カメラ15を利用して、プリンタ100に表示されたQRコード(T124参照)を撮影する。そして、端末10は、T134において、撮影済みのQRコードをデコードして、公開鍵PPK1とチャネルリストとMACアドレス「abc」とを取得する。 At T130, the terminal 10 starts the application 40 and also starts the camera 15 in response to receiving an operation to start the application 40 from the user. Each subsequent process executed by the terminal 10 is realized by the application 40. Next, at T132, the terminal 10 uses the camera 15 to photograph the QR code (see T124) displayed on the printer 100. Then, at T134, the terminal 10 decodes the photographed QR code and obtains the public key PPK1, the channel list, and the MAC address "abc".

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 that asks the user whether or not to execute a connection process to establish a Wi-Fi connection between the printer 100 and the AP 6. The screen TCS includes a YES button indicating to execute the connection process and a NO button indicating not to execute the connection process. At T140, the terminal 10 receives a 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); Figure 4)
Next, with reference to FIG. 4, the Auth process at T25 in FIG. 2 will be described. The terminal 10 generates the public key TPK1 and the private key tsk1 of the terminal 10 at T141 in response to the user selecting the YES button in the screen TCS at T140 in FIG. Next, at T142, the terminal 10 uses the generated private key tsk1 and the public key PPK1 of the printer 100 acquired at T134 in FIG. 3 according to ECDH (Elliptic curve Diffie-Hellman key exchange). , generates a shared key SK1. Then, at 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 the AReq to the printer 100 via the Wi-Fi I/F 16, using the MAC address "abc" acquired at T134 in FIG. 3 as the transmission destination. AReq is a signal requesting the printer 100 to perform authentication. Here, the terminal 10 repeatedly uses the plurality of communication channels in the channel list acquired at T134 to repeatedly transmit the AReq to the printer 100. The AReq includes the public key TPK1 of the terminal 10 generated at T141, the encrypted data ED1 generated at T144, and the capability 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のみとして動作可能であることを示す値を含む。 capability is information specified in advance for devices that support the DPP method, and has a value indicating that it can operate only as a Configurator of the DPP method, and a value indicating that it can operate only as an Enrollee of the DPP method. and a value indicating that it can operate as either a Configurator or an Enrollee. Note that the Configurator refers to a device that transmits the CO used in NA (T35 in FIG. 2) to the 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 the 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 an AReq from the terminal 10 via the Wi-Fi I/F 116 at T200. As described above, the AReq is sent 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を適切に受信することができる。 Further, when the printer 100 shifts to the enabled state at T124 in FIG. 3, it monitors whether an AReq using one communication channel among the plurality of communication channels in the channel list is received. As described above, the T200 AReq is transmitted sequentially using multiple communication channels in the channel list. 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の送信元がプリンタ100で表示されたQRコードを撮影したデバイスであると判断し、即ち、認証が成功したと判断し、T206以降の処理を実行する。一方、プリンタ100は、仮に、暗号化データED1の復号が成功しない場合には、当該AReqの送信元がプリンタ100で表示されたQRコードを撮影したデバイスでないと判断し、即ち、認証が失敗したと判断し、T206以降の処理を実行しない。 Next, the printer 100 executes the following process to authenticate the sender of the AReq (ie, the terminal 10). Specifically, first, in T202, the printer 100 uses 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 the ECDH. Generate a shared key SK1. Here, the shared key SK1 generated by the terminal 10 at T142 and the shared key SK1 generated by the printer 100 at T204 are the same. Therefore, at T204, the printer 100 can appropriately decrypt the encrypted data ED1 in the AReq using the generated shared key SK1, and as a result, can obtain the random value RV1. If the encrypted data ED1 is successfully decrypted, the printer 100 determines that the source of the AReq is the device that photographed the QR code displayed on the printer 100, that is, the authentication is successful. , executes the processing from T206 onwards. On the other hand, if the encrypted data ED1 is not successfully decrypted, the printer 100 determines that the source of the AReq is not the device that photographed the QR code displayed on the printer 100, that is, the authentication has failed. Therefore, the process after T206 is not executed.

プリンタ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 at 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, at T207, the printer 100 generates a shared key SK2 according to ECDH using the public key TPK1 of the terminal 10 in the AReq of T200 and the generated private key psk2 of the printer 100. Then, in T208, the printer 100 uses the generated shared key SK2 to encrypt the acquired random value RV1 and the new random value RV2 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/F 116. The ARes includes the public key PPK2 of the printer 100 generated at T206, the encrypted data ED2 generated at T208, and the capability of the printer 100. The capability includes a value indicating that it can operate only as an Enrollee.

端末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の送信元が撮影済みのQRコードを表示したデバイスであると判断し、即ち、認証が成功したと判断し、T220以降の処理を実行する。一方、端末10は、仮に、暗号化データED2の復号が成功しない場合には、当該AResの送信元が撮影済みのQRコードを表示したデバイスでないと判断し、即ち、認証が失敗したと判断し、T220以降の処理を実行しない。 At T210, in response to receiving the ARes from the printer 100 via the Wi-Fi I/F 16, the terminal 10 executes the following process to authenticate the source of the ARes (that is, the printer 100). . Specifically, first, in T212, the terminal 10 uses the private key tsk1 of the terminal 10 generated in T141 and the public key PPK2 of the printer 100 in the ARes to generate the shared key SK2 according to ECDH. generate. Here, the shared key SK2 generated by the printer 100 at T207 and the shared key SK2 generated by the terminal 10 at T212 are the same. 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 is successful, the terminal 10 determines that the source of the ARes is the device that displayed the photographed QR code, that is, the authentication is successful, and the Execute the process. 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 that displayed the photographed QR code, that is, the terminal 10 determines that the authentication has failed. , the processing after T220 is not executed.

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. Confirm includes information indicating that the terminal 10 operates as a configurator and the printer 100 operates as an enrollee. As a result, at T222, the terminal 10 determines to operate as a configurator, and at T224, the printer 100 determines to operate as an enrollee. When the process at T224 ends, the process in 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); Figure 5)
Next, with reference to FIG. 5, the Config processing at T30 in FIG. 2 will be described. 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. 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 a 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 private key tsk2 from the memory (not shown) of the terminal 10 at T301. As described above, the terminal 10 has already executed the Config at T15 in FIG. 2 with the AP 6, and at this time, generates the group ID "Group1", the public key TPK2, and the private key tsk2 and stores them in the memory. The group ID "Group1" is information that identifies a wireless network formed by establishing a Wi-Fi connection between the printer 100 and the AP 6. Note that in a modified example, 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) at 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を生成する。 The terminal 10 generates a hash value HV by hashing the public key TPK2 of the terminal 10. Further, 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 at T210 in FIG. Then, the terminal 10 generates an electronic signature DS1 by encrypting the generated specific value using the private key tsk2 of the terminal 10 according to ECDSA (abbreviation for Elliptic Curve Digital Signature Algorithm). As a result, the terminal 10 creates a printer Signed-Connector (hereinafter, the Signed-Connector is simply (described as “SCont”) can be generated. 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 a DPP Configuration Response (hereinafter simply referred to as "CRes") including the second CO to the printer 100 via the Wi-Fi I/F 16.

プリンタ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 at T312 ends, the process in FIG. 5 ends.

(Network Access(NA);図6)
続いて、図6を参照して、プリンタ100とAP6との間で実行される図2のT35のNAの処理を説明する。上記のように、図2のT20~T30と同様に、図2のT5~T15の処理が端末10及びAP6の間で実行済みである。ただし、AP6は、図3のT105~T124の処理を実行しない。AP6は、AP6の公開鍵APK1及び秘密鍵ask1を予め記憶している。そして、AP6の公開鍵APK1と、AP6のチャネルリストと、AP6のMACアドレスと、をコード化することによって得られるQRコードが、AP6の筐体に貼り付けられている。端末10が当該QRコードを撮影することによって、端末10及びAP6の間でT134以降の各処理と同様の各処理が実行される。この結果、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); Figure 6)
Next, with reference to FIG. 6, the NA process at T35 in FIG. 2, which is executed between the printer 100 and the AP 6, will be described. As described above, similar to T20 to T30 in FIG. 2, the processes from T5 to T15 in FIG. 2 have already been executed between the terminal 10 and the AP 6. However, AP6 does not execute the processes from T105 to T124 in FIG. The AP6 stores in advance the public key APK1 and the private key ask1 of the AP6. A QR code obtained by encoding the public key APK1 of AP6, the channel list of AP6, and the MAC address of AP6 is pasted on the casing of AP6. When the terminal 10 photographs the QR code, processes similar to those after T134 are executed between the terminal 10 and the AP 6. As a result, the AP6 stores the public key APK2 and the private key ask2 of the AP6 (see T206 in FIG. 4), and further stores the first CO received from the terminal 10 (see T312 in FIG. 5). The first CO includes the AP SCont and the public key TPK2 of the terminal 10. The public key TPK2 is the same as the public key TPK2 included in the second CO. Furthermore, the AP SCont includes a hash value HV, a group ID "Group1", a public key APK2 of the AP6, and an electronic signature DS2. The hash value HV and the group ID "Group1" are respectively the same as the hash value HV and the group ID "Group1" included in the second CO. The electronic signature DS2 is information in which a specific value obtained by hashing the combination of the hash value HV, the group ID "Group1", and the public key APK2 is encrypted by the private key tsk2 of the terminal 10, and the second This value is different from the electronic signature DS1 included in the 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 send the AP SCont.

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, in response to receiving the DReq from the printer 100, the AP 6 identifies the source of the DReq (i.e., the printer 100) and each piece of information in the DReq (i.e., the hash value HV, "Group 1", and the public key). PPK2) is executed. Specifically, in T402, the AP6 first sets the hash value HV and group ID "Group1" in the received printer SCont to hash values in the AP SCont included in the stored first CO. A first AP determination process regarding whether or not the value HV matches the group ID "Group1" is executed. In the case of FIG. 6, the AP 6 determines that they "match" in the first AP determination process, and therefore determines that the authentication of the source of the DReq (that is, the printer 100) has been successful. Note that 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, which means that the printer SCont and the AP SCont are the same. , means that they were generated by the same device (ie, the terminal 10). Therefore, the AP 6 also determines that the authentication of the generation source (that is, the terminal 10) of the received printer SCont has been successful. Further, the AP 6 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 uses the specific value obtained by decrypting the electronic signature DS1 and each information in the received printer SCont (i.e., the hash value HV , "Group1", and the value obtained by hashing the public key PPK2). In the case of FIG. 6, since the AP 6 determines that they "match" in the second AP determination process, it determines that the authentication of each piece of information in the DReq has been successful, and executes the processes from T404 onwards. The fact that the second CO is determined to be a "match" in the second AP determination process means that after the second CO is stored in the printer 100, each information in the received printer SCont (i.e. hash value HV, "Group1 ” and the public key PPK2) have not been tampered with by a third party. On the other hand, if it is determined that "does not match" in the first AP determination process, if decryption of the electronic signature DS1 fails, or if it is determined that "does not match" in the second AP determination process, The AP 6 determines that the authentication has failed and does not execute the process from T404 onwards.

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

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

プリンタ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 the DRes from the AP 6 via the Wi-Fi I/F 116, the printer 100 identifies the source of the DRes (i.e., the AP 6) and each information in the DRes (i.e., the hash value HV, "Group1" and public key APK2) are authenticated. Specifically, in T412, the printer 100 first sets the hash value HV and group ID "Group1" in the received AP SCont to the printer SCont included in the stored second CO. A first PR determination process regarding whether or not the hash value HV matches the group ID "Group1" is executed. In the case of FIG. 6, the printer 100 determines that they "match" in the first PR determination process, and therefore determines that the authentication of the DRes source (namely, AP 6) has been successful. Note that the fact that the hash value HV in the received AP SCont matches the hash value HV in the printer SCont included in the stored second CO means that the printer SCont and the AP SCont are , means that they were generated by the same device (ie, the terminal 10). Therefore, the printer 100 also determines that the authentication of the generation source (that is, the terminal 10) of the received AP SCont has been successful. Further, the printer 100 decrypts the electronic signature DS2 in the received AP SCont using the public key TPK2 of the terminal 10 included in the stored second CO. In the case of FIG. 6, since the electronic signature DS2 is successfully decrypted, the printer 100 uses the specific value obtained by decrypting the electronic signature DS2 and each information (i.e., hash value) in the received AP SCont. HV, "Group1", and the value obtained by hashing the public key APK2). In the case of FIG. 6, the printer 100 determines that they "match" in the second PR determination process, so it determines that the authentication of each piece of information in the DRes has been successful, and executes the processes from T414 onwards. The second PR determination process determines that they "match" after the first CO is stored in the AP 6. This means that the public key APK2) has not been tampered with by a third party. On the other hand, if it is determined in the first PR determination process that they do not match, if decryption of the electronic signature DS2 fails, or if it is determined that they do not match in the second PR determination process, The printer 100 determines that the authentication has failed, and does not execute the process from T414 onwards.

プリンタ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 the AP6 in the received AP SCont. Here, the connection key CK generated by the AP 6 at T404 and the connection key CK generated by the printer 100 at T414 are the same. As a result, the connection key CK for establishing a Wi-Fi connection is shared between the printer 100 and the AP 6. When T414 ends, the process 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 the AP 6, at T40 in FIG. 2, the printer 100 and the AP 6 execute 4-way-handshake communication using the connection key CK. As a result, a Wi-Fi connection is established between the printer 100 and the AP 6. Note that, as described above, the printer 100 receives the AReq of T200 in FIG. 4 from the terminal 10 using one of the plurality of communication channels included in the channel list of the printer 100. That is, the printer 100 receives the T200 AReq 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 the AP 6 using a communication channel that can be used by both the printer 100 and the AP 6. 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 be different. In this embodiment, a communication channel for the printer 100 to receive an AReq from the terminal 10 at T200 in FIG. 4, and a communication channel for the printer 100 to establish a Wi-Fi connection with the AP 6 at T40 in FIG. different. However, in a modified example, 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をまだ記憶していない状態である。
(Bootstrapping (BS) of case B; Figure 7)
Next, with reference to FIG. 7, the processing of case B of the BS at T20 in FIG. 2 will be described. Case B is a state before T20 to T40 in FIG. 2 are executed, that is, a state in which the memory 134 of the printer 100 has not yet stored the second CO.

T500及びT505は、図3のT100及びT105と同様である。T509では、プリンタ100は、メモリ134が第2のCOを記憶していないので、BTI/F117の動作モードを移行させるための移行指示をBTI/F117に供給して、BTI/F117の動作モードを通常モードから設定モードに移行させる。従って、メモリ134が第2のCOを記憶していない状態では、ユーザがプリンタ100の電源をONするだけで、BTI/F117の動作モードが通常モードから設定モードに自動的に移行される。通常モードは、BT方式に従ったAdvertise信号(後述のT512)を解釈不可能なモード(即ちAdvertise信号を受信しても無視するモード)である。設定モードは、Advertise信号を解釈可能なモード(即ちAdvertise信号を受信するとAdvertise信号内の情報をCPU132に供給するモード)である。 T500 and T505 are similar to T100 and T105 in FIG. At T509, since the memory 134 does not store the second CO, the printer 100 supplies the BTI/F 117 with a transition instruction to change the operation mode of the BTI/F 117. Shift from normal mode to setting mode. Therefore, in a state where the memory 134 does not store the second CO, the operation mode of the BT I/F 117 is automatically shifted from the normal mode to the setting mode simply by the user turning on the power of the printer 100. The normal mode is a mode in which an Advertise signal (T512 to be described later) according to the BT method cannot be interpreted (that is, a mode in which the Advertise signal is ignored even if it is received). The setting mode is a mode in which the Advertise signal can be interpreted (that is, a mode in which information in the Advertise signal is supplied to the CPU 132 when the Advertise signal is received).

端末10は、ユーザからアプリ40の起動操作を受け付けることに応じて、T510において、アプリ40を起動し、さらに、カメラ15を起動する。この場合、端末10は、T512において、BTI/F17を介して、Advertise信号をブロードキャストによって送信する。当該Advertise信号は、アプリ40において予め決められている表示指示を含む。例えば、表示指示は、プリンタ100が解釈可能な文字列である。 In response to receiving the activation operation of the application 40 from the user, the terminal 10 activates the application 40 and further activates the camera 15 at T510. In this case, the terminal 10 broadcasts the Advertise signal via the BTI/F 17 at T512. The Advertise signal includes a display instruction predetermined in the application 40. For example, the display instruction is a character string that can be interpreted by the printer 100.

プリンタ100は、T512において、端末10から、BTI/F117を介して、Advertise信号を受信することに応じて、BTI/F117から表示指示を取得する。この場合、プリンタ100は、Advertise信号に含まれる表示指示に従って、T514以降の処理を実行する。プリンタ100は、T514において、プリンタ側確認画面PCSを表示部114に表示させる。画面PCSは、QRコードの表示をプリンタ100に実行させるのか否かをユーザに問い合わせる画面であり、QRコードの表示をプリンタ100に実行させることを示すYESボタンと、QRコードの表示をプリンタ100に実行させないことを示すNOボタンと、を含む。これにより、例えば、ユーザがWi-Fi接続の確立を望まない場合(例えばアプリ40を誤って起動してしまった場合)には、画面PCS内のNOボタンを選択することによって、QRコードが表示されることを抑制することができる。 At T512, the printer 100 obtains a display instruction from the BTI/F 117 in response to receiving the Advertise signal from the terminal 10 via the BTI/F 117. In this case, the printer 100 executes the processes from T514 onwards in accordance with the display instruction included in the Advertise signal. At T514, the printer 100 displays the printer-side confirmation screen PCS on the display unit 114. The screen PCS is a screen that asks the user whether or not to cause the printer 100 to display the QR code. and a NO button indicating not to execute the process. As a result, for example, if the user does not wish to establish a Wi-Fi connection (for example, if the application 40 is started by mistake), the QR code will be displayed by selecting the NO button in the screen PCS. It is possible to prevent this from happening.

また、T512において、表示指示を含むAdvertise信号がブロードキャストされると、プリンタ100とは異なるプリンタにおいて、画面PCSが表示される可能性がある。この場合、ユーザは、当該異なるプリンタにおいて表示された画面PCS内のNOボタンを選択することによって、当該異なるプリンタにおいてQRコードが表示されることを抑制することができる。 Furthermore, when an Advertise signal including a display instruction is broadcast at T512, there is a possibility that the screen PCS will be displayed on a printer different from the printer 100. In this case, the user can suppress the QR code from being displayed on the different printer by selecting the NO button on the screen PCS displayed on the different printer.

プリンタ100は、T520において、画面PCS内のYESボタンがユーザによって選択されることに応じて、T522において、不可能状態から可能状態に移行し、T524において、QRコードを表示部114に表示させる。T532~T540は、図3のT132~T140と同様である。T540の処理が終了すると、図7の処理が終了する。そして、図4~図6と同様の処理が各デバイス6、10、100によって実行されることによって、プリンタ100とAP6との間のWi-Fi接続が確立される。 In response to the user selecting the YES button on the screen PCS at T520, the printer 100 transitions from the disabled state to the enabled state at T522, and displays the QR code on the display unit 114 at T524. T532 to T540 are similar to T132 to T140 in FIG. When the process at T540 ends, the process in FIG. 7 ends. Then, the Wi-Fi connection between the printer 100 and the AP 6 is established by each device 6, 10, 100 executing the same process as in FIGS. 4 to 6.

なお、図示を省略しているが、図3のケースAにおいても、プリンタ100は、T100でユーザから電源ON操作を受け付けることに応じて、BTI/F117の動作モードを通常モードから設定モードに移行させる。しかしながら、図3のケースAでは、端末10でアプリ40が起動される前に、T106~T120の処理が実行されてQRコードが表示される。このため、プリンタ100は、図7のT514の処理を実行しない。 Although not shown, in case A of FIG. 3, the printer 100 also shifts the operation mode of the BTI/F 117 from the normal mode to the setting mode in response to receiving the power ON operation from the user at T100. let However, in case A of FIG. 3, before the application 40 is started on the terminal 10, the processes from T106 to T120 are executed and the QR code is displayed. Therefore, the printer 100 does not execute the process at T514 in FIG.

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

T600及びT605は、図7のT500及びT505と同様である。本ケースでは、プリンタ100のメモリ134が第2のCOを記憶しているので、プリンタ100は、BTI/F117の動作モードを通常モードから設定モードに移行させない。プリンタ100は、第2のCOを記憶している状況では、第2のCOを利用して、Wi-Fi接続をAP6と確立することができる。従って、プリンタ100においてBSが実行される可能性が低い。プリンタ100は、このような状況において、BTI/F117の動作モードを設定モードに移行させないので、QRコードが無駄に表示されることを抑制することができる。 T600 and T605 are similar to T500 and T505 in FIG. In this case, since the memory 134 of the printer 100 stores the second CO, the printer 100 does not shift the operation mode of the BT I/F 117 from the normal mode to the setting mode. In a situation where the printer 100 stores the second CO, the printer 100 can establish a Wi-Fi connection with the AP 6 using the second CO. Therefore, the possibility that BS will be executed in printer 100 is low. Since the printer 100 does not shift the operation mode of the BTI/F 117 to the setting mode in such a situation, it is possible to suppress unnecessary display of the QR code.

ユーザは、プリンタ100が第2のCOを記憶している状態において、例えば、AP6とは異なるAPとプリンタ100との間のWi-Fi接続の確立を望む可能性がある。この場合、ユーザは、T606において、画面MS内の設定ボタンを選択し、T608において、それに応じて表示される画面SS(T607)内のモード移行ボタンを選択することができる。この場合、プリンタ100は、T609において、BTI/F117の動作モードを通常モードから設定モードに移行させる。これにより、プリンタ100は、端末10からAdvertise信号を受信すると、図7のT514以降の処理を実行して、端末10から新たなCOを受信することができる。 For example, the user may desire to establish a Wi-Fi connection between the printer 100 and an AP different from the AP 6 while the printer 100 stores the second CO. In this case, the user can select the settings button in the screen MS in T606, and select the mode transition button in the screen SS (T607) that is displayed accordingly in T608. In this case, the printer 100 shifts the operation mode of the BTI/F 117 from the normal mode to the setting mode at T609. Thereby, when the printer 100 receives the Advertise signal from the terminal 10, it can execute the process from T514 onward in FIG. 7 and receive a new CO from the terminal 10.

なお、プリンタ100は、DPP方式を利用せずに、通常のWi-Fi方式(即ちSSID及びパスワードを利用する方式)に従って、AP6とのWi-Fi接続を確立することもできる。この場合、プリンタ100のメモリ134は、AP6とのWi-Fi接続を確立するための無線設定情報(即ちSSID及びパスワード)を記憶する。このような状態でプリンタ100の電源がONされても、プリンタ100は、図8のケースCと同様に、BTI/F117の動作モードを通常モードから設定モードに移行させない。プリンタ100が無線設定情報を利用してAP6とWi-Fi接続を確立することができるからである。これにより、プリンタ100がAP6とのWi-Fi接続を確立可能であるにも関わらず、プリンタ100とAP6との間のWi-Fi接続を確立するための処理が実行されてしまうことを抑制できる。 Note that the printer 100 can also establish a Wi-Fi connection with the AP 6 according to a normal Wi-Fi method (that is, a method using an SSID and password) without using the DPP method. In this case, the memory 134 of the printer 100 stores wireless configuration information (ie, SSID and password) for establishing a Wi-Fi connection with the AP 6. Even if the power of the printer 100 is turned on in such a state, the printer 100 does not shift the operation mode of the BT I/F 117 from the normal 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. This can prevent the process for establishing a Wi-Fi connection between the printer 100 and the AP 6 from being executed even though the printer 100 can establish a Wi-Fi connection with the AP 6. .

(ケースDのBootstrapping(BS);図9)
続いて、図9を参照して、BSの他のケースDの処理を説明する。ケースDでは、プリンタ100に表示されるQRコードが端末10によって撮影されない状況を想定している。
(Bootstrapping (BS) of case D; Figure 9)
Next, with reference to FIG. 9, processing of another case D of the BS will be described. Case D assumes a situation where the QR code displayed on the printer 100 is not photographed by the terminal 10.

T700~T724は、図7のT500~T524と同様である。本ケースでは、プリンタ100に表示されるQRコードが端末10によって撮影されないことに起因して、端末10からプリンタ100にAReq(図4のT200参照)が送信されない。この場合、プリンタ100は、T726において、T722で可能状態に移行してから所定時間以内にAReqを受信しないと判断し、T728において、可能状態から不可能状態に移行する。これにより、プリンタ100において長時間に亘って可能状態が継続することを抑制することができる。即ち、Wi-FiI/F116が外部から受信した信号をCPU132に供給する状態、即ち、CPU132が外部から受信された信号を処理する状態が継続することを抑制できる。これにより、プリンタ100の処理負荷を軽減することができる。そして、T730では、プリンタ100は、端末10からAReqが受信されなかったことを示すエラー画面を表示部114に表示させる。T730の処理が終了すると、図9の処理が終了する。 T700 to T724 are similar to T500 to T524 in FIG. In this case, the AReq (see T200 in FIG. 4) is not transmitted from the terminal 10 to the printer 100 because the QR code displayed on the printer 100 is not photographed by the terminal 10. In this case, the printer 100 determines at T726 that no AReq is received within a predetermined time after transitioning to the enabled state at T722, and transitions from the enabled state to the disabled state at T728. Thereby, it is possible to prevent the printer 100 from remaining in the enabled state for a long time. That is, it is possible to prevent the Wi-Fi I/F 116 from continuing to supply signals received from the outside to the CPU 132, ie, the state where the CPU 132 processes signals received from the outside. Thereby, the processing load on the printer 100 can be reduced. Then, at T730, the printer 100 causes the display unit 114 to display an error screen indicating that the AReq was not received from the terminal 10. When the process at T730 ends, the process in FIG. 9 ends.

(本実施例の効果)
本実施例では、プリンタ100は、端末10から表示指示を含むAdvertise信号を受信する場合(図7のT512、図8のT612、図9のT712)に、公開鍵PPK1をコード化することによって得られるQRコードを表示する(T522、T622、T722)。この結果、公開鍵PPK1が端末10によって取得される(T534、T634)。その後、プリンタ100は、端末10から、公開鍵TPK1が利用されたAReqを受信して(図4のT200)、AResを端末10に送信し(T210)、端末10から第2のCOを受信する(図5のT310)。これにより、プリンタ100は、第2のCOを利用して、AP6とのWi-Fi接続を確立することができる(図2のT40)。
(Effects of this example)
In this embodiment, when the printer 100 receives an Advertise signal including a display instruction from the terminal 10 (T512 in FIG. 7, T612 in FIG. 8, T712 in FIG. 9), the printer 100 encodes the public key PPK1. Display the QR code (T522, T622, T722). As a result, the public key PPK1 is acquired by the terminal 10 (T534, T634). After that, the printer 100 receives the AReq using the public key TPK1 from the terminal 10 (T200 in FIG. 4), transmits ARes to the terminal 10 (T210), and receives the second CO from the terminal 10. (T310 in Figure 5). Thereby, the printer 100 can establish a Wi-Fi connection with the AP 6 using the second CO (T40 in FIG. 2).

また、本実施例では、プリンタ100は、端末10から表示指示を含むAdvertise信号を受信する場合(図7のT512、図8のT612、図9のT712)に、不可能状態から可能状態に移行する(T524、T624、T724)。これにより、プリンタ100は、端末10からAReqを受信する場合(図4のT200)に、AResを端末10に送信することができる(T210)。そして、プリンタ100は、端末10から第2のCOを受信し(図5のT310)、第2のCOを利用して、AP6とのWi-Fi接続を確立することができる(図2のT40)。 Further, in this embodiment, when the printer 100 receives an Advertise signal including a display instruction from the terminal 10 (T512 in FIG. 7, T612 in FIG. 8, T712 in FIG. 9), the printer 100 shifts from the disabled state to the enabled state. (T524, T624, T724). Thereby, when the printer 100 receives an AReq from the terminal 10 (T200 in FIG. 4), it can transmit an ARes to the terminal 10 (T210). The printer 100 then receives the second CO from the terminal 10 (T310 in FIG. 5), and can establish a Wi-Fi connection with the AP 6 using the second CO (T40 in FIG. 2). ).

例えば、無線通信、又は、プリンタ100の操作の知識を有するユーザは、図3のケースAのように、T106において、画面MS内の設定ボタンを選択し、T120において、画面SS内のQRコードボタンを選択し、可能状態への移行(T122)及びQRコードの表示(T124)をプリンタ100に実行させることができる。しかしながら、上記の知識に乏しいユーザは、上記のような選択操作を適切に実行することができない可能性がある。本実施例によると、図7のケースBに示されるように、プリンタ100は、端末10から表示指示を含むAdvertise信号を受信する場合に、図3のT106及びT120がユーザによって実行されなくても、可能状態への移行(T522)及びQRコードの表示(T524)を実行する。このために、無線通信の知識に乏しいユーザは、端末10のアプリ40を起動させることによって、可能状態への移行及びQRコードの表示をプリンタ100に容易に実行させることができる。 For example, a user who has knowledge of wireless communication or operation of the printer 100 selects the settings button on the screen MS at T106, as in case A of FIG. By selecting , the printer 100 can be caused to transition to the enabled state (T122) and display the QR code (T124). However, a user lacking the above-mentioned knowledge may not be able to appropriately perform the above-mentioned selection operation. According to this embodiment, as shown in case B of FIG. 7, when the printer 100 receives an Advertise signal including a display instruction from the terminal 10, even if T106 and T120 of FIG. 3 are not executed by the user. , transition to a possible state (T522) and display the QR code (T524). Therefore, a user with little knowledge of wireless communication can easily cause the printer 100 to transition to the enabled state and display the QR code by starting the application 40 on the terminal 10.

また、例えば、端末10からAdvertise信号が受信される場合に、プリンタ10と端末10との間にBT方式に従った無線接続を確立し、当該無線接続を利用して、公開鍵PPK1と、チャネルリストと、MACアドレス「abc」と、を端末10に送信する比較例が想定される。この比較例では、端末10は、QRコードを利用することなく、BT通信を利用して、公開鍵PPK1等を取得する。ここで、BT通信を実行可能な最大の距離は、数十mである。このため、ユーザは、プリンタ100から離れた場所で端末10を操作して、端末10にプリンタ100の公開鍵PPK1を取得させることができる。これに対して、本実施例では、プリンタ100は、端末10からAdvertise信号が受信される場合に、BT方式に従った無線接続を利用することなく、QRコードを表示する(T524)。このため、ユーザは、プリンタ100に近づかなければ、端末10にプリンタ100の公開鍵PPK1を取得させることができない。即ち、本実施例では、プリンタ100から離れた場所で端末10がプリンタ100の公開鍵PPK1を取得することを抑制することができる。 Further, for example, when an Advertise signal is received from the terminal 10, a wireless connection according to the BT method is established between the printer 10 and the terminal 10, and the public key PPK1 and the channel are transferred using the wireless connection. A comparative example is assumed in which the list and the MAC address "abc" are sent to the terminal 10. In this comparative example, the terminal 10 uses BT communication to obtain the public key PPK1, etc., without using a QR code. Here, the maximum distance at which BT communication can be performed is several tens of meters. Therefore, the user can operate the terminal 10 at a location away from the printer 100 to cause the terminal 10 to acquire the public key PPK1 of the printer 100. In contrast, in this embodiment, when the printer 100 receives the Advertise signal from the terminal 10, it displays the QR code without using the wireless connection according to the BT method (T524). Therefore, the user cannot cause the terminal 10 to acquire the public key PPK1 of the printer 100 unless the user approaches the printer 100. That is, in this embodiment, it is possible to prevent the terminal 10 from acquiring the public key PPK1 of the printer 100 at a location away from the printer 100.

(対応関係)
プリンタ100、端末10、AP6が、それぞれ、「通信装置」、「第1の外部装置」、「第2の外部装置」の一例である。表示部114、Wi-FiI/F116、BTI/F117が、それぞれ、「出力部」、「第1の無線インターフェース」、「第2の無線インターフェース」の一例である。表示指示を含むAdvertise信号、プリンタ100の公開鍵PPK1、QRコードが、それぞれ、「特定信号」、「公開鍵」、「特定情報」の一例である。AReq、ARes、第2のCOが、それぞれ、「認証要求」、「認証応答」、「接続情報」の一例である。図2のT40で確立されるWi-Fi接続が、「無線接続」の一例である。
(correspondence)
The printer 100, the terminal 10, and the AP 6 are examples of a "communication device," a "first external device," and a "second external device," respectively. The display unit 114, Wi-Fi I/F 116, and BTI/F 117 are examples of an "output unit," a "first wireless interface," and a "second wireless interface," respectively. The Advertise signal including the display instruction, the public key PPK1 of the printer 100, and the QR code are examples of the "specific signal,""publickey," and "specific information," respectively. 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."

図3のT120のQRコードボタンの選択操作が、「所定操作」の一例である。画面PCSが、「指示画面」の一例である。図8のT608のモード移行ボタンの選択操作が、「特定操作」の一例であり、メモリ134内に第2のCOが記憶されていない状態でユーザからの電源ON操作を受け付けること、及び、メモリ134内に第2のCOが記憶されている状態でユーザからのモード移行ボタンの選択を受け付けることが、「所定条件」の一例である。通常モード、設定モードが、それぞれ、「第1のモード」、「第2のモード」の一例である。チャネルリスト、図4のT200で利用される通信チャネル、図2のT40で利用される通信チャネルが、それぞれ、「通信チャネル情報」、「第1の通信チャネル」、「第2の通信チャネル」の一例である。図9のT726の所定時間経過が、「特定条件」の一例である。 The selection operation of the QR code button at T120 in FIG. 3 is an example of a "predetermined operation." The screen PCS is an example of an "instruction screen." The selection operation of the mode transition button at T608 in FIG. 8 is an example of a "specific operation", and it is possible to accept a power ON operation from the user in a state where the second CO is not stored in the memory 134, and to Accepting the user's selection of the mode transition button while the second CO is stored in 134 is an example of the "predetermined condition." The normal mode and the setting mode are examples of a "first mode" and a "second mode", respectively. The channel list, the communication channel used at T200 in FIG. 4, and the communication channel used at T40 in FIG. This is an example. The elapse of a predetermined time at T726 in FIG. 9 is an example of a "specific condition."

図7のT512(又は図8のT612、図9のT712)の処理、T522(又はT622、T722)の処理、図4のT200の処理、T210の処理、図5のT310の処理、T35及びT40の処理が、それぞれ、「特定信号受信部」、「第1の出力制御部」、「認証要求受信部」、「認証応答送信部」、「接続情報受信部」、「確立部」によって実行される処理の一例である。 Processing at T512 in FIG. 7 (or T612 in FIG. 8, T712 in FIG. 9), processing at T522 (or T622, T722), processing at T200 in FIG. 4, processing at T210, processing at T310 in FIG. 5, T35 and T40 These processes are executed by the "specific signal receiving section," "first output control section," "authentication request receiving section," "authentication response transmitting section," "connection information receiving section," and "establishing section," respectively. This is an example of processing.

図7のT512(又は図8のT612、図9のT712)の処理、T524(又はT624、T724)の処理、図4のT200の処理、T210の処理、図5のT310の処理、T35及びT40の処理が、それぞれ、「特定信号受信部」、「第1の状態移行部」、「認証要求受信部」、「認証応答送信部」、「接続情報受信部」、「確立部」によって実行される処理の一例である。 Processing at T512 in FIG. 7 (or T612 in FIG. 8, T712 in FIG. 9), processing at T524 (or T624, T724), processing at T200 in FIG. 4, processing at T210, processing at T310 in FIG. 5, T35 and T40 These processes are executed by the "specific signal receiving section," "first state transition section," "authentication request receiving section," "authentication response transmitting section," "connection information receiving section," and "establishing section," respectively. This is an example of processing.

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

(変形例1)例えば、図3のT124でプリンタ100に表示されるQRコードは、チャネルリスト及びMACアドレス「abc」がコード化されたものでなくてもよい。即ち、QRコードは、少なくとも公開鍵PPK1がコード化されることによって得られるコード画像であればよい。この場合、プリンタ100は、T122で不可能状態から可能状態に移行することに応じて、プリンタ100が利用可能な全ての無線チャネルのうちの1個の無線チャネルが利用されたAReqを受信することを監視する。また、端末10は、図4のT200において、端末10が利用可能な全ての無線チャネルを順次利用して、AReqをブロードキャストによって順次送信する。即ち、「特定情報」は、少なくとも公開鍵を用いて得られる情報であればよい。 (Modification 1) For example, the QR code displayed on the printer 100 at T124 in FIG. 3 does not have to be one in which the channel list and the MAC address "abc" are encoded. That is, the QR code may be a code image obtained by encoding at least the public key PPK1. In this case, in response to the transition from the impossible state to the possible state at T122, the printer 100 receives an AReq in which one of all the wireless channels available to the printer 100 is used. monitor. Further, at T200 in FIG. 4, the terminal 10 sequentially transmits the AReq by broadcast, using all wireless channels available to the terminal 10. That is, the "specific information" may be information obtained using at least a public key.

(変形例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 process (for example, T142, T202 in FIG. 4) for generating a shared key (for example, SK1) is not limited to the process of the above embodiment according to ECDH, but can be other processes according to ECDH. It may be. Further, the process for generating the shared key is not limited to the process according to ECDH, but may be performed according to other methods (for example, DH (abbreviation for Diffie-Hellman key exchange), etc.). Further, in the above embodiment, the electronic signatures DS1 and DS2 were generated according to ECDSA, but other methods (for example, DSA (abbreviation for Digital Signature Algorithm), RAS (abbreviation for Rivest-Shamir-Adleman cryptosystem), etc.) may be generated according to

(変形例3)図7のT512において、表示指示を含むAdvertise信号がブロードキャストされると、プリンタ100とは異なるプリンタにおいて、画面PCSが表示される可能性がある。このような状況に対処するために、プリンタ100は、図4のT200において、端末10からAReqを受信することに応じて、画面PCSの表示の停止を指示するPReqをブロードキャストによって送信してもよい。当該PReqは、画面PCSの表示を停止させるための停止指示を含む。これにより、プリンタ100とは異なるプリンタにおいて画面PCSが表示されても、ユーザから操作を受け付けることなく、当該画面PCSの表示を停止させることができる。 (Modification 3) When an Advertise signal including a display instruction is broadcast at T512 in FIG. 7, there is a possibility that the screen PCS will be displayed on a printer different from the printer 100. To deal with this situation, the printer 100 may broadcast a PReq instructing to stop displaying the screen PCS in response to receiving the AReq from the terminal 10 at T200 in FIG. . The PReq includes a stop instruction to stop displaying the screen PCS. Thereby, even if the screen PCS is displayed on a printer different from the printer 100, the display of the screen PCS can be stopped without receiving any operation from the user.

(変形例4)例えば、プリンタ100は、図7のT524において、QRコードを表示部114に表示することに代えて、印刷媒体へのQRコードの印刷を印刷実行部118に実行させてもよい。本変形例によると、例えば、プリンタ100が表示部114を備えておらず、図3のT105の画面MS、T107の画面SS、及び、T122のQRコード等の画面の表示を不可能な状況においても、DPP方式に従った通信を実行して、プリンタ100とAP6との間のWi-Fi接続を確立することができる。本変形例では、印刷実行部118が、「出力部」の一例である。別の変形例では、プリンタ100は、Wi-FiI/F116を介して、公開鍵PPK1とチャネルリストとMACアドレス「abc」とを端末10に送信してもよい。具体的には、プリンタ100は、端末10のMACアドレスと、送信指示と、を含むAdvertise信号を受信する場合に、Wi-FiI/F116を介して、Advertise信号内の送信指示に従って、Advertise信号内のMACアドレスを宛先として公開鍵PPK1等を端末10に送信してもよい。本変形例では、Wi-FiI/F116が、「出力部」の一例である。 (Modification 4) For example, at T524 in FIG. 7, the printer 100 may have the print execution unit 118 print the QR code on the print medium instead of displaying the QR code on the display unit 114. . According to this modification, for example, in a situation where the printer 100 does not include the display unit 114 and it is impossible to display screens such as the screen MS at T105, the screen SS at T107, and the QR code at T122 in FIG. Also, it is possible to establish a Wi-Fi connection between the printer 100 and the AP 6 by executing communication according to the DPP method. In this modification, the print execution section 118 is an example of an "output section." In another modification, the printer 100 may transmit the public key PPK1, the channel list, and the MAC address "abc" to the terminal 10 via the Wi-Fi I/F 116. Specifically, when the printer 100 receives an Advertise signal including the MAC address of the terminal 10 and a transmission instruction, the printer 100 transmits the Advertise signal in accordance with the transmission instruction in the Advertise signal via the Wi-Fi I/F 116. The public key PPK1, etc. may be sent to the terminal 10 using the MAC address of . In this modification, the Wi-Fi I/F 116 is an example of an "output unit".

(変形例5)変形例では、プリンタ100は、T512において、端末10からAdvertise信号を受信することに応じて、当該Advertise信号の受信電波強度を算出して、算出済みの受信電波強度が予め決められている閾値以上である場合に、T514において、画面PCSを表示部114に表示させてもよい。即ち、プリンタ100は、プリンタ100と端末10との間の距離が所定距離以下であることを条件として、画面PCSを表示部114に表示させてもよい。 (Modification 5) In the modification, in response to receiving the Advertise signal from the terminal 10 at T512, the printer 100 calculates the received radio field strength of the Advertise signal, and determines whether the calculated received radio field strength is predetermined. If it is equal to or greater than the set threshold, the screen PCS may be displayed on the display unit 114 at T514. That is, the printer 100 may display the screen PCS on the display unit 114 on the condition that the distance between the printer 100 and the terminal 10 is less than or equal to a predetermined distance.

(変形例6)Wi-Fi Allianceによって作成された規格書「Device Provisioning Protocol Technical Specification Version 1.1」には、共有コード、キー、フレーズ、及び、ワードを「コード」と呼ぶことが記載されている。従って、プリンタ100は、T122において、QRコードに代えて、公開鍵PPK1とチャネルリストとMACアドレス「abc」とがコード化されることによって得られる共有コード、キー、フレーズ、及び、ワードを含む画像を表示部114に表示してもよい。 (Variation 6) The standard “Device Provisioning Protocol Technical Specification Version 1.1” created by the Wi-Fi Alliance states that shared codes, keys, phrases, and words are called “codes.” Therefore, in T122, the printer 100 generates an image containing the shared code, key, phrase, and word obtained by encoding the public key PPK1, the channel list, and the MAC address "abc" instead of the QR code. may be displayed on the display unit 114.

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

(変形例8)図3のT107で表示される画面SSがQRコードボタンを含んでいなくてもよい。この場合、端末10及びプリンタ100は、図3のケースAのBSの処理を実行することなく、図7のケースBのBSの処理を実行して、プリンタ100とAP6との間のWi-Fi接続を確立する。本変形例では、「第2の出力制御部」及び「第3の状態移行部」が省略可能である。 (Modification 8) The screen SS displayed at T107 in FIG. 3 may not include the QR code button. In this case, the terminal 10 and the printer 100 execute the BS process of case B in FIG. 7 without executing the BS process of case A in FIG. Establish a connection. In this modification, the "second output control section" and the "third state transition section" can be omitted.

(変形例9)プリンタ100は、図7のT512において、端末10からAdvertise信号を受信することに応じて、T514及びT520の処理をスキップして、T524において、QRコードを表示部114に表示してもよい。本変形例では、「表示制御部」が省略可能である。 (Modification 9) In response to receiving the Advertise signal from the terminal 10 at T512 in FIG. 7, the printer 100 skips the processing at T514 and T520, and displays the QR code on the display unit 114 at T524. You can. In this modification, the "display control section" can be omitted.

(変形例10)プリンタ100のWi-FiI/F116が常に設定モードで動作するように構成されてもよい。本変形例では、「モード移行部」及び「記憶制御部」が省略可能である。 (Modification 10) The Wi-Fi I/F 116 of the printer 100 may be configured to always operate in the setting mode. In this modification, the "mode transition unit" and the "storage control unit" can be omitted.

(変形例11)図9のケースDの処理が実行されなくてよい。即ち、プリンタ100は、可能状態に移行してから所定時間経過する場合に、可能状態から不可能状態に移行しなくてもよい。本変形例では、「第2の状態移行部」が省略可能である。また、別の変形例では、図9のT726において、プリンタ100は、所定時間が経過することを監視することに代えて、ユーザから不可能状態に移行することを示す指示を受け付けることを監視してもよい。本変形例では、ユーザから指示を受け付けることが「特定条件」の一例である。 (Modification 11) The process of case D in FIG. 9 may not be executed. That is, the printer 100 does not need to shift from the enabled state to the disabled state when a predetermined period of time has elapsed since the printer 100 shifted to the enabled state. In this modification, the "second state transition section" can be omitted. Furthermore, in another modification, at T726 in FIG. 9, the printer 100 monitors for receiving an instruction from the user indicating that the transition to the impossible state is to occur, instead of monitoring that the predetermined time has elapsed. You can. In this modification, receiving an instruction from the user is an example of the "specific condition."

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

(変形例13)上記の実施例では、端末10は、表示指示を含むAdvertise信号をプリンタ100に送信する(図7のT512)。これに代えて、プリンタ100は、Advertise信号を定期的に外部に送信していてもよい。端末10は、プリンタ100からAdvertise信号を受信すると、当該Advertise信号に含まれるプリンタ100のデバイス名を表示してもよい。ここで、端末10は、プリンタ100を含む複数個のプリンタのそれぞれからAdvertise信号を受信する場合には、複数個のプリンタに対応する複数個のデバイス名を表示してもよい。そして、端末10は、複数個のデバイス名の中からプリンタ100のデバイス名がユーザによって選択される場合に、BTI/F17を介して、表示指示を含むScan Requestをプリンタ100に送信してもよい。この変形例では、QRコードが複数個のプリンタのうちのプリンタ100に表示され、プリンタ100とのWi-Fi接続を適切に確立することができる。本変形例では、Scan Requestが、「特定信号」の一例である。また、別の変形例では、上記のScan Requestが表示指示を含まず、プリンタ100がScan Requestに対する応答を端末10に送信することによって、プリンタ100と端末10との間にBT方式に従ったペアリングが確立されてもよい。そして、端末10は、BTI/F17を介して、当該ペアリングを利用して、表示指示を含む信号をプリンタ100に送信してもよい。本変形例では、ペアリングを利用した当該信号が、「特定信号」の一例である。 (Modification 13) In the above embodiment, the terminal 10 transmits an Advertise signal including a display instruction to the printer 100 (T512 in FIG. 7). Alternatively, the printer 100 may periodically transmit an Advertise signal to the outside. Upon receiving the Advertise signal from the printer 100, the terminal 10 may display the device name of the printer 100 included in the Advertise signal. Here, when the terminal 10 receives an Advertise signal from each of a plurality of printers including the printer 100, the terminal 10 may display a plurality of device names corresponding to the plurality of printers. Then, when the user selects the device name of the printer 100 from among the plurality of device names, the terminal 10 may transmit a Scan Request including a display instruction to the printer 100 via the BTI/F 17. . In this modification, the QR code is displayed on the printer 100 of the plurality of printers, and a Wi-Fi connection with the printer 100 can be appropriately established. In this modification, Scan Request is an example of a "specific signal." In another modification, the Scan Request does not include a display instruction, and the printer 100 sends a response to the Scan Request to the terminal 10, thereby creating a pair between the printer 100 and the terminal 10 according to the BT method. A ring may be established. Then, the terminal 10 may transmit a signal including a display instruction to the printer 100 via the BTI/F 17 using the pairing. In this modification, the signal using pairing is an example of a "specific signal."

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

(変形例15)図7のT522及び図9のT722の処理は実行されなくてもよい。本変形例では、プリンタ100は、常に可能状態として動作していてもよい。本変形例では、「第1の状態移行部」を省略可能である。 (Modification 15) The processes at T522 in FIG. 7 and T722 in FIG. 9 may not be executed. In this modification, the printer 100 may always operate in the enabled state. In this modification, the "first state transition section" can be omitted.

(変形例16)図7のT524及び図9のT724の処理は実行されなくてもよい。本変形例では、例えば、Advertise信号の受信に応じてプリンタ100の状態が可能状態となった後に、端末10がプリンタ100の筐体に貼り付けられているQRコードを撮影して、公開鍵PPK1等を取得してもよい。本変形例では、「第1の表示制御部」を省略可能である。 (Modification 16) The processes at T524 in FIG. 7 and T724 in FIG. 9 may not be executed. In this modification, for example, after the state of the printer 100 becomes enabled in response to reception of an Advertise signal, the terminal 10 photographs the QR code pasted on the casing of the printer 100, and obtains the public key PPK1. etc. may be obtained. In this modification, the "first display control section" can be omitted.

(変形例17)「第2の無線インターフェース」は、BT/F117でなくてもよく、例えば、NFC(Near Field Communicationの略)方式に従った通信を実行するためのI/F、Zigbee(登録商標)方式に従った通信を実行するためのI/F等のWi-Fi方式とは異なる方式に従った通信を実行するためのIFであってもよい。 (Modification 17) The "second wireless interface" does not need to be the BT/F117, and may be, for example, an I/F for performing communication according to the NFC (Near Field Communication) method, Zigbee (registered The Wi-Fi method may be an I/F for performing communication according to a method different from the Wi-Fi method, such as an I/F for performing communication according to the Wi-Fi method.

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

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

2:通信システム、6:AP、10:端末、16、116:Wi-FiI/F、17、117:BTI/F、40:接続アプリケーション、100:プリンタ、112:操作部、114:表示部、118:印刷実行部、130:制御部、132:CPU、134:メモリ、136:プログラム 2: Communication system, 6: AP, 10: Terminal, 16, 116: Wi-Fi I/F, 17, 117: BT I/F, 40: Connection application, 100: Printer, 112: Operation unit, 114: Display unit, 118: Print execution unit, 130: Control unit, 132: CPU, 134: Memory, 136: Program

Claims (21)

通信装置であって、
第1の無線インターフェースと、
前記第1の無線インターフェースとは異なる第2の無線インターフェースと、
前記第2の無線インターフェースとは異なる出力部と、
第1の外部装置から、前記第2の無線インターフェースを介して、特定信号を受信する特定信号受信部と、
前記第1の外部装置から前記特定信号が受信された後に、公開鍵を用いて得られる特定情報を前記出力部に出力させる第1の出力制御部であって、前記特定情報が出力されることによって、前記公開鍵が前記第1の外部装置によって取得される、前記第1の出力制御部と、
前記特定情報が出力された後に、前記第1の外部装置から、前記第1の無線インターフェースを介して、前記公開鍵が利用された認証要求を受信する認証要求受信部と、
前記第1の外部装置から前記認証要求が受信される場合に、前記第1の無線インターフェースを介して、前記認証要求に対する応答である認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第1の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第1の無線インターフェースを介した無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第1の無線インターフェースを介した前記無線接続を確立する確立部と、
を備える、通信装置。
A communication device,
a first wireless interface;
a second wireless interface different from the first wireless interface;
an output section different from the second wireless interface;
a specific signal receiving unit that receives a specific signal from a first external device via the second wireless interface;
A first output control unit that causes the output unit to output specific information obtained using a public key after the specific signal is received from the first external device, and the specific information is output. the first output control unit, wherein the public key is acquired by the first external device;
an authentication request receiving unit that receives an authentication request using the public key from the first external device via the first wireless interface after the specific information is output;
an authentication response transmitter that transmits an authentication response that is a response to the authentication request to the first external device via the first wireless interface when the authentication request is received from the first external device; and,
a connection information receiving unit that receives connection information from the first external device via the first wireless interface after the authentication response is transmitted to the first external device; the connection information receiving unit, which is information for establishing a wireless connection between the communication device and a second external device via the first wireless interface;
When the connection information is received from the first external device, the connection information is used to connect the communication device and the second external device to the wireless communication device via the first wireless interface. an establishment unit that establishes a connection;
A communication device comprising:
前記通信装置は、さらに、
操作部と、
前記操作部を介した所定操作が受け付けられる場合に、前記特定情報を前記出力部に出力させる第2の出力制御部を備え、
前記第1の出力制御部は、前記第1の外部装置から前記特定信号が受信された後に、前記操作部を介した前記所定操作が受け付けられなくても、前記特定情報を前記出力部に出力させる、請求項1に記載の通信装置。
The communication device further includes:
an operation section;
a second output control unit that causes the output unit to output the specific information when a predetermined operation via the operation unit is accepted;
The first output control unit outputs the specific information to the output unit even if the predetermined operation via the operation unit is not accepted after the specific signal is received from the first external device. The communication device according to claim 1.
前記特定情報は、前記公開鍵がコード化されることによって得られるコード画像である、請求項1又は2に記載の通信装置。 The communication device according to claim 1 or 2, wherein the specific information is a code image obtained by encoding the public key. 前記コード画像は、QRコード(登録商標)であり、
前記公開鍵は、前記QRコードが前記第1の外部装置によって撮影されることに応じて、前記第1の外部装置によって取得される、請求項3に記載の通信装置。
The code image is a QR code (registered trademark),
The communication device according to claim 3, wherein the public key is acquired by the first external device in response to the QR code being photographed by the first external device.
前記出力部は、画像を表示するための表示部であり、
前記第1の出力制御部は、前記特定情報を前記表示部である前記出力部に表示させる、請求項1から4のいずれか一項に記載の通信装置。
The output unit is a display unit for displaying an image,
The communication device according to any one of claims 1 to 4, wherein the first output control unit displays the specific information on the output unit that is the display unit.
前記通信装置は、さらに、
操作部と、
前記第1の外部装置から前記特定信号が受信される場合に、前記特定情報を表示すべきことを指示するための指示画面を前記表示部である前記出力部に表示させる表示制御部と、を備え、
前記第1の出力制御部は、前記指示画面において、前記操作部を介して、前記特定情報を表示すべきことが指示される場合に、前記特定情報を前記表示部である前記出力部に表示させる、請求項5に記載の通信装置。
The communication device further includes:
an operation section;
a display control unit that causes the output unit, which is the display unit, to display an instruction screen for instructing that the specific information should be displayed when the specific signal is received from the first external device; Prepare,
The first output control unit displays the specific information on the output unit, which is the display unit, when an instruction to display the specific information is given via the operation unit on the instruction screen. The communication device according to claim 5.
前記通信装置は、さらに、
所定条件が満たされる場合に、前記第2の無線インターフェースの動作モードを第1のモードから第2のモードに移行させるモード移行部であって、前記第1のモードは、前記第2の無線インターフェースが前記特定信号を解釈不可能なモードであり、前記第2のモードは、前記第2の無線インターフェースが前記特定信号を解釈可能なモードである、前記モード移行部を備え、
前記第1の出力制御部は、前記第2の無線インターフェースの動作モードが前記第2のモードである状況において、前記第1の外部装置から前記特定信号が受信された後に、前記特定情報を前記出力部に出力させ、
前記第2の無線インターフェースの動作モードが前記第1のモードである状況において、前記特定情報は出力されない、請求項1から6のいずれか一項に記載の通信装置。
The communication device further includes:
a mode transition unit that transitions the operation mode of the second wireless interface from a first mode to a second mode when a predetermined condition is satisfied; is a mode in which the specific signal cannot be interpreted, and the second mode is a mode in which the second wireless interface can interpret the specific signal,
The first output control unit is configured to transmit the specific information to the specific information after the specific signal is received from the first external device in a situation where the operation mode of the second wireless interface is the second mode. output to the output section,
The communication device according to any one of claims 1 to 6, wherein the specific information is not output in a situation where the operation mode of the second wireless interface is the first mode.
前記出力部は、前記第1の無線インターフェースと前記第2の無線インターフェースとのいずれとも異なる、請求項1から7のいずれかに記載の通信装置。 8. The communication device according to claim 1, wherein the output unit is different from either the first wireless interface or the second wireless interface. 前記通信装置は、さらに、
前記第1の外部装置から前記特定信号が受信された後に、前記通信装置の状態を不可能状態から可能状態に移行させる第1の状態移行部であって、前記不可能状態は、前記認証応答が送信されない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記第1の状態移行部を備え、
前記認証応答送信部は、前記通信装置の状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第1の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する、請求項1から8のいずれか一項に記載の通信装置。
The communication device further includes:
a first state transition unit that transitions the state of the communication device from a disabled state to a enabled state after the specific signal is received from the first external device, the disabled state being the authentication response is a state in which the authentication response is not transmitted, 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. Equipped with a state transition section of
The authentication response transmitter is configured to transmit the authentication response via the first wireless interface when the authentication request is received from the first external device after the state of the communication device has been shifted to the enabled state. The communication device according to any one of claims 1 to 8, wherein the communication device transmits an authentication response to the first external device.
前記特定情報は、前記公開鍵と、前記通信装置において予め決められている第1の通信チャネルを示す通信チャネル情報と、を用いて得られる情報であり、
前記特定情報が出力されることによって、前記通信チャネル情報が前記第1の外部装置によって取得され、
前記可能状態は、前記第1の外部装置から前記第1の通信チャネルが利用された前記認証要求を受信することを監視し、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態であり、
前記認証応答送信部は、前記通信装置の状態が前記可能状態に移行された後に、前記第1の外部装置から前記第1の通信チャネルが利用された前記認証要求が受信される場合に、前記第1の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する、請求項9に記載の通信装置。
The specific information is information obtained using the public key and communication channel information indicating a first communication channel predetermined in the communication device,
By outputting the specific information, the communication channel information is acquired by the first external device,
The enable state monitors reception of the authentication request using the first communication channel from the first external device, and in response to receiving the authentication request from the first external device. , is in a state of transmitting the authentication response to the first external device,
The authentication response transmitter is configured to transmit the authentication response when the authentication request using the first communication channel is received from the first external device after the state of the communication device is shifted to the enabled state. The communication device according to claim 9, wherein the communication device transmits the authentication response to the first external device via a first wireless interface.
通信装置であって、
第1の無線インターフェースと、
前記第1の無線インターフェースとは異なる第2の無線インターフェースと、
第1の外部装置から、前記第2の無線インターフェースを介して、特定信号を受信する特定信号受信部と、
前記第1の外部装置から前記特定信号が受信された後に、前記通信装置の状態を不可能状態から可能状態に移行させる第1の状態移行部であって、前記不可能状態は、認証要求に対する応答である認証応答が送信されない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記第1の状態移行部と、
前記第1の外部装置から、前記第1の無線インターフェースを介して、前記認証要求を受信する認証要求受信部と、
前記通信装置の状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第1の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第1の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第1の無線インターフェースを介した無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第1の無線インターフェースを介した前記無線接続を確立する確立部と、
を備える、通信装置。
A communication device,
a first wireless interface;
a second wireless interface different from the first wireless interface;
a specific signal receiving unit that receives a specific signal from a first external device via the second wireless interface;
a first state transition unit that transitions the state of the communication device from a disabled state to a enabled state after the specific signal is received from the first external device; A state in which an authentication response as a response is not sent, 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 first state transition section;
an authentication request receiving unit that receives the authentication request from the first external device via the first wireless interface;
When the authentication request is received from the first external device after the state of the communication device is shifted to the enabled state, the authentication response is sent to the first external device via the first wireless interface. an authentication response transmitter for transmitting to an external device;
a connection information receiving unit that receives connection information from the first external device via the first wireless interface after the authentication response is transmitted to the first external device; the connection information receiving unit, which is information for establishing a wireless connection between the communication device and a second external device via the first wireless interface;
When the connection information is received from the first external device, the connection information is used to connect the communication device and the second external device to the wireless communication device via the first wireless interface. an establishment unit that establishes a connection;
A communication device comprising:
前記可能状態は、前記第1の外部装置から前記通信装置において予め決められている第1の通信チャネルが利用された前記認証要求を受信することを監視し、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態であり、
前記認証応答送信部は、前記通信装置の状態が前記可能状態に移行された後に、前記第1の外部装置から前記第1の通信チャネルが利用された前記認証要求が受信される場合に、前記第1の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する、請求項11に記載の通信装置。
The enabled state monitors that the communication device receives the authentication request using a predetermined first communication channel from the first external device, and receives the authentication request from the first external device. a state of transmitting the authentication response to the first external device in response to receiving the request;
The authentication response transmitter is configured to transmit the authentication response when the authentication request using the first communication channel is received from the first external device after the state of the communication device is shifted to the enabled state. The communication device according to claim 11 , wherein the communication device transmits the authentication response to the first external device via a first wireless interface.
前記確立部は、前記第1の通信チャネルとは異なる第2の通信チャネルを利用して、前記通信装置と前記第2の外部装置との間に前記第1の無線インターフェースを介した前記無線接続を確立する、請求項10又は12に記載の通信装置。 The establishment unit establishes the wireless connection between the communication device and the second external device via the first wireless interface using a second communication channel different from the first communication channel. The communication device according to claim 10 or 12, which establishes. 前記通信装置は、さらに、
前記通信装置の状態が前記可能状態に移行された後に、特定条件が満たされる場合に、前記通信装置の状態を前記可能状態から前記不可能状態に移行させる第2の状態移行部を備える、請求項9から13のいずれか一項に記載の通信装置。
The communication device further includes:
A second state transition unit that transitions the state of the communication device from the possible state to the impossible state when a specific condition is satisfied after the state of the communication device has been changed to the possible state. The communication device according to any one of Items 9 to 13.
前記通信装置は、さらに、
操作部と、
前記操作部を介した所定操作が受け付けられる場合に、前記通信装置の状態を前記不可能状態から前記可能状態に移行させる第3の状態移行部と、を備え、
前記第1の状態移行部は、前記第1の外部装置から前記特定信号が受信された後に、前記操作部を介した前記所定操作が受け付けられなくても、前記通信装置の状態を前記不可能状態から前記可能状態に移行させる、請求項9から14のいずれか一項に記載の通信装置。
The communication device further includes:
an operation section;
a third state transition unit that transitions the state of the communication device from the disabled state to the enabled state when a predetermined operation via the operating unit is accepted;
The first state transition unit changes the state of the communication device to the disabled state even if the predetermined operation via the operation unit is not accepted after the specific signal is received from the first external device. The communication device according to any one of claims 9 to 14, wherein the communication device is configured to transition from a state to the enabled state.
前記通信装置は、さらに、
所定条件が満たされる場合に、前記第2の無線インターフェースの動作モードを第1のモードから第2のモードに移行させるモード移行部であって、前記第1のモードは、前記第2の無線インターフェースが前記特定信号を解釈不可能なモードであり、前記第2のモードは、前記第2の無線インターフェースが前記特定信号を解釈可能なモードである、前記モード移行部を備え、
前記第1の状態移行部は、前記第2の無線インターフェースの動作モードが前記第2のモードである状況において、前記第1の外部装置から前記特定信号が受信された後に、前記通信装置の状態を前記不可能状態から前記可能状態に移行させ、
前記第2の無線インターフェースの動作モードが前記第1のモードである状況において、前記第1の外部装置から前記特定信号が受信されても、前記通信装置の状態は前記不可能状態から前記可能状態に移行されない、請求項11から15のいずれか一項に記載の通信装置。
The communication device further includes:
a mode transition unit that transitions the operation mode of the second wireless interface from a first mode to a second mode when a predetermined condition is satisfied; is a mode in which the specific signal cannot be interpreted, and the second mode is a mode in which the second wireless interface can interpret the specific signal,
The first state transition unit changes the state of the communication device after the specific signal is received from the first external device in a situation where the operation mode of the second wireless interface is the second mode. transition from the impossible state to the possible state,
In a situation where the operation mode of the second wireless interface is the first mode, even if the specific signal is received from the first external device, the state of the communication device changes from the disabled state to the enabled state. 16. The communication device according to any one of claims 11 to 15, wherein the communication device is not migrated to.
前記通信装置は、さらに、
メモリと、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を前記メモリに記憶する記憶制御部と、を備え、
前記メモリ内に前記接続情報が記憶されていない状況において、前記通信装置の電源がONされる場合に、前記所定条件が満たされ、
前記メモリ内に前記接続情報が記憶されている状況において、前記通信装置の電源がONされる場合に、前記所定条件が満たされない、請求項7又は16に記載の通信装置。
The communication device further includes:
memory and
a storage control unit that stores the connection information in the memory when the connection information is received from the first external device;
When the communication device is powered on in a situation where the connection information is not stored in the memory, the predetermined condition is satisfied;
17. The communication device according to claim 7, wherein the predetermined condition is not satisfied when the communication device is powered on in a situation where the connection information is stored in the memory.
前記通信装置は、さらに、
操作部を備え、
前記メモリ内に前記接続情報が記憶されている状況において、前記操作部を介した特定操作が受け付けられる場合に、前記所定条件が満たされる、請求項17に記載の通信装置。
The communication device further includes:
Equipped with an operation section,
The communication device according to claim 17, wherein the predetermined condition is satisfied when a specific operation is accepted via the operation unit in a situation where the connection information is stored in the memory.
前記第2の外部装置は、前記第1の外部装置とは異なる装置であって、無線ネットワークの親局として動作すべき親局装置であり、
前記確立部は、前記通信装置と前記第2の外部装置との間に前記第1の無線インターフェースを介した前記無線接続を確立して、前記通信装置を前記無線ネットワークに子局として参加させる、請求項1から18のいずれか一項に記載の通信装置。
The second external device is a device different from the first external device, and is a parent station device that should operate as a parent station of a wireless network,
The establishment unit establishes the wireless connection between the communication device and the second external device via the first wireless interface, and causes the communication device to participate in the wireless network as a slave station. A communication device according to any one of claims 1 to 18.
通信装置のためのコンピュータプログラムであって、
前記通信装置は、
第1の無線インターフェースと、
前記第1の無線インターフェースとは異なる第2の無線インターフェースと、
前記第2の無線インターフェースとは異なる出力部と、
コンピュータと、
を備え、
前記コンピュータプログラムは、前記コンピュータを、以下の各部、即ち、
第1の外部装置から、前記第2の無線インターフェースを介して、特定信号を受信する特定信号受信部と、
前記第1の外部装置から前記特定信号が受信された後に、公開鍵を用いて得られる特定情報を前記出力部に出力させる第1の出力制御部であって、前記特定情報が出力されることによって、前記公開鍵が前記第1の外部装置によって取得される、前記第1の出力制御部と、
前記特定情報が出力された後に、前記第1の外部装置から、前記第1の無線インターフェースを介して、前記公開鍵が利用された認証要求を受信する認証要求受信部と、
前記第1の外部装置から前記認証要求が受信される場合に、前記第1の無線インターフェースを介して、前記認証要求に対する応答である認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第1の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第1の無線インターフェースを介した無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第1の無線インターフェースを介した前記無線接続を確立する確立部と、
として機能させる、コンピュータプログラム。
A computer program for a communication device, the computer program comprising:
The communication device includes:
a first wireless interface;
a second wireless interface different from the first wireless interface;
an output section different from the second wireless interface;
computer and
Equipped with
The computer program causes the computer to run the following parts:
a specific signal receiving unit that receives a specific signal from a first external device via the second wireless interface;
A first output control unit that causes the output unit to output specific information obtained using a public key after the specific signal is received from the first external device, and the specific information is output. the first output control unit, wherein the public key is acquired by the first external device;
an authentication request receiving unit that receives an authentication request using the public key from the first external device via the first wireless interface after the specific information is output;
an authentication response transmitter that transmits an authentication response that is a response to the authentication request to the first external device via the first wireless interface when the authentication request is received from the first external device; and,
a connection information receiving unit that receives connection information from the first external device via the first wireless interface after the authentication response is transmitted to the first external device; the connection information receiving unit, which is information for establishing a wireless connection between the communication device and a second external device via the first wireless interface;
When the connection information is received from the first external device, the connection information is used to connect the communication device and the second external device to the wireless communication device via the first wireless interface. an establishment unit that establishes a connection;
A computer program that functions as
通信装置のためのコンピュータプログラムであって、
前記通信装置は、
第1の無線インターフェースと、
前記第1の無線インターフェースとは異なる第2の無線インターフェースと、
コンピュータと、
を備え、
前記コンピュータプログラムは、前記コンピュータを、以下の各部、即ち、
第1の外部装置から、前記第2の無線インターフェースを介して、特定信号を受信する特定信号受信部と、
前記第1の外部装置から前記特定信号が受信された後に、前記通信装置の状態を不可能状態から可能状態に移行させる第1の状態移行部であって、前記不可能状態は、認証要求に対する応答である認証応答が送信されない状態であり、前記可能状態は、前記第1の外部装置から前記認証要求を受信することに応じて、前記認証応答を前記第1の外部装置に送信する状態である、前記第1の状態移行部と、
前記第1の外部装置から、前記第1の無線インターフェースを介して、前記認証要求を受信する認証要求受信部と、
前記通信装置の状態が前記可能状態に移行された後に、前記第1の外部装置から前記認証要求が受信される場合に、前記第1の無線インターフェースを介して、前記認証応答を前記第1の外部装置に送信する認証応答送信部と、
前記認証応答が前記第1の外部装置に送信された後に、前記第1の外部装置から、前記第1の無線インターフェースを介して、接続情報を受信する接続情報受信部であって、前記接続情報は、前記通信装置と第2の外部装置との間に前記第1の無線インターフェースを介した無線接続を確立するための情報である、前記接続情報受信部と、
前記第1の外部装置から前記接続情報が受信される場合に、前記接続情報を利用して、前記通信装置と前記第2の外部装置との間に前記第1の無線インターフェースを介した前記無線接続を確立する確立部と、
として機能させる、コンピュータプログラム。
A computer program for a communication device, the computer program comprising:
The communication device includes:
a first wireless interface;
a second wireless interface different from the first wireless interface;
computer and
Equipped with
The computer program causes the computer to run the following parts:
a specific signal receiving unit that receives a specific signal from a first external device via the second wireless interface;
a first state transition unit that transitions the state of the communication device from a disabled state to a enabled state after the specific signal is received from the first external device; A state in which an authentication response as a response is not sent, 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 first state transition section;
an authentication request receiving unit that receives the authentication request from the first external device via the first wireless interface;
When the authentication request is received from the first external device after the state of the communication device is shifted to the enabled state, the authentication response is sent to the first external device via the first wireless interface. an authentication response transmitter for transmitting to an external device;
a connection information receiving unit that receives connection information from the first external device via the first wireless interface after the authentication response is transmitted to the first external device; the connection information receiving unit, which is information for establishing a wireless connection between the communication device and a second external device via the first wireless interface;
When the connection information is received from the first external device, the connection information is used to connect the communication device and the second external device to the wireless communication device via the first wireless interface. an establishment unit that establishes a connection;
A computer program that functions as
JP2019177993A 2019-09-27 2019-09-27 Communication devices and computer programs for communication devices Active JP7419728B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019177993A JP7419728B2 (en) 2019-09-27 2019-09-27 Communication devices and computer programs for communication devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019177993A JP7419728B2 (en) 2019-09-27 2019-09-27 Communication devices and computer programs for communication devices

Publications (2)

Publication Number Publication Date
JP2021057713A JP2021057713A (en) 2021-04-08
JP7419728B2 true JP7419728B2 (en) 2024-01-23

Family

ID=75271439

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019177993A Active JP7419728B2 (en) 2019-09-27 2019-09-27 Communication devices and computer programs for communication devices

Country Status (1)

Country Link
JP (1) JP7419728B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4316485A1 (en) 2021-03-30 2024-02-07 Senju Pharmaceutical Co., Ltd. Suspension containing heterocyclidene acetamide derivative

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017513265A (en) 2014-02-10 2017-05-25 クゥアルコム・インコーポレイテッドQualcomm Incorporated Assisted device provisioning in the network
JP2018042058A (en) 2016-09-06 2018-03-15 キヤノン株式会社 Communication apparatus, control method for communication apparatus, and program
US20180109418A1 (en) 2016-10-19 2018-04-19 Qualcomm Incorporated Device provisioning protocol (dpp) using assisted bootstrapping
JP2020108117A (en) 2018-12-28 2020-07-09 キヤノン株式会社 Communication device and control method of the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017513265A (en) 2014-02-10 2017-05-25 クゥアルコム・インコーポレイテッドQualcomm Incorporated Assisted device provisioning in the network
JP2018042058A (en) 2016-09-06 2018-03-15 キヤノン株式会社 Communication apparatus, control method for communication apparatus, and program
US20180109418A1 (en) 2016-10-19 2018-04-19 Qualcomm Incorporated Device provisioning protocol (dpp) using assisted bootstrapping
JP2020108117A (en) 2018-12-28 2020-07-09 キヤノン株式会社 Communication device and control method of the same

Also Published As

Publication number Publication date
JP2021057713A (en) 2021-04-08

Similar Documents

Publication Publication Date Title
JP7375889B2 (en) Communication devices and computer programs for communication devices
JP7359273B2 (en) Communication devices and computer programs for communication devices
JP7052496B2 (en) Communication equipment and computer programs for communication equipment
JP7183559B2 (en) Printers and computer programs for printers
JP7091781B2 (en) Communication equipment and computer programs for communication equipment
JP7414100B2 (en) Communication devices and computer programs for communication devices
JP7476948B2 (en) COMMUNICATION DEVICE, COMPUTER PROGRAM FOR THE COMMUNICATION DEVICE, AND COMPUTER PROGRAM FOR A FIRST EXTERNAL DEVICE - Patent application
JP7392776B2 (en) Communication devices and computer programs for communication devices
JP2023168594A (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
JP7293950B2 (en) Terminal and computer program for terminal
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
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220809

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230712

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230718

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230911

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231225

R150 Certificate of patent or registration of utility model

Ref document number: 7419728

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150