COMPUTER PROGRAM FOR TERMINAL DEVICE, ... COMMUNICATION DEVICE, AND COMPUTER PROGRAM FOR COMMUNICATION DEVICE

The computer program for terminal devices and communication devices facilitates secure Wi-Fi connections by using private and public key authentication, addressing the lack of methods for multiple device connections in existing technologies.

JP7582381B2Active Publication Date: 2024-11-13BROTHER KOGYO KK
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2023101724
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-06-21
Publication Date
2024-11-13
Estimated Expiration
2038-03-30

AI Technical Summary

Technical Problem

Existing technologies do not provide a specific method for establishing Wi-Fi connections between multiple client devices and an access point.

Method used

A computer program for a terminal device that includes a wireless interface, a memory storing a private key, and a computer to establish wireless connections with an external device using public key authentication and encryption, along with a communication device that receives and responds to authentication requests to establish secure connections.

Benefits of technology

Enables appropriate establishment of wireless connections between terminal devices and external devices, ensuring secure and efficient communication through public key encryption and authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007582381000001
    Figure 0007582381000001
  • Figure 0007582381000002
    Figure 0007582381000002
  • Figure 0007582381000003
    Figure 0007582381000003
Patent Text Reader

Abstract

To provide a technique for appropriately establishing radio connection between each of a terminal device and a communication device and an external device.SOLUTION: A terminal device includes a memory that stores a secret key of the terminal device. The secret key is already used for encrypting information obtained by using at least part of information included in first connection information for an external device. The terminal device obtains a first public key of a communication device different from the external device, transmits a first authentication request using the first public key to the communication device, receives a first authentication response from the communication device, generates second connection information for the communication device by using the secret key, and transmits the second connection information to the communication device.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This specification discloses a technique relating to a terminal device and a communication device capable of establishing a wireless connection with an external device. [Background technology]

[0002] Non-Patent Document 1 describes the DPP (abbreviation of Device Provisioning Protocol), which is a wireless communication method established by the Wi-Fi Alliance. The DPP method is a wireless communication method for easily establishing a Wi-Fi connection. Non-Patent Document 1 discloses that a Wi-Fi connection is established between a client device and an access point to form an infrastructure network. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2017-28454 A [Patent Document 2] JP 2017-135520 A [Patent Document 3] JP 2018-37978 A [Non-patent literature]

[0004] [Non-Patent Document 1] “DRAFT Device Provisioning Protocol Technical Specification Version 0.2.11” Wi-Fi Alliance, 2017 Summary of the Invention [Problem to be solved by the invention]

[0005] The above-mentioned Non-Patent Document 1 does not disclose a specific method for establishing a Wi-Fi connection between each of a plurality of client devices and an access point.

[0006] This specification discloses a technique for appropriately establishing a wireless connection between a terminal device and an external device, and between a communication device and an external device. [Means for solving the problem]

[0007] This specification discloses a computer program for a terminal device, the terminal device including a wireless interface, a computer, and a memory for storing a private key of the terminal device, the private key having been used to encrypt information obtained using at least a portion of information included in first connection information for an external device, the first connection information being information for establishing a first wireless connection between the terminal device and the external device via the wireless interface and stored in the external device, the computer program including a first acquisition unit for acquiring a first public key of a communication device different from the external device, and a first authentication request transmission unit for transmitting a first authentication request using the first public key to the communication device via the wireless interface after the first public key is acquired. The communication device may function as a transmitting unit, a first authentication response receiving unit that receives a first authentication response that is a response to the first authentication request from the communication device via the wireless interface after the first authentication request is transmitted to the communication device, a first generation unit that generates second connection information for the communication device using the private key when the first authentication response is received from the communication device, the second connection information being information for establishing a second wireless connection between the communication device and the external device, and the private key being used to encrypt information obtained using at least a portion of information included in the second connection information, and a first information transmitting unit that transmits the second connection information to the communication device via the wireless interface.

[0008] According to the above configuration, a private key used to encrypt information obtained using at least a part of information included in the first connection information for the external device is the same as a private key used to encrypt information obtained using at least a part of information included in the second connection information for the communication device. When the first connection information is used by the external device, a first wireless connection is established between the terminal device and the external device, and when the second connection information is used by the communication device, a second wireless connection is established between the communication device and the external device. Therefore, a wireless connection can be appropriately established between each of the terminal device and the external device and the communication device.

[0009] This specification also discloses a communication device, which may include a wireless interface, an authentication request receiving unit that receives an authentication request using a first public key of the communication device from a terminal device via the wireless interface, an authentication response transmitting unit that transmits an authentication response to the authentication request to the terminal device via the wireless interface when the authentication request is received from the terminal device, and an information receiving unit that receives connection information and specific information from the terminal device via the wireless interface after the authentication response is transmitted to the terminal device, the connection information being information for establishing a second wireless connection between the communication device and an external device via the wireless interface, the specific information including at least one of channel information indicating a communication channel used in the first wireless connection established between the terminal device and the external device and device identification information identifying the external device, and an establishment unit that establishes the second wireless connection between the communication device and the external device using the connection information and the specific information when the connection information and the specific information are received from the terminal device.

[0010] According to the above configuration, when the communication device receives an authentication request from the terminal device, the communication device transmits an authentication response to the terminal device and receives connection information and identification information from the terminal device. The identification information includes at least one of channel information indicating a communication channel used in a first wireless connection established between the terminal device and the external device and device identification information identifying the external device. For this reason, the communication device can appropriately establish a second wireless connection between the communication device and the external device by using the connection information and the identification information. Therefore, a wireless connection can be appropriately established between each of the terminal device and the communication device and the external device.

[0011] The terminal device itself and a computer-readable recording medium storing a computer program for the terminal device are also novel and useful. The computer program for the communication device and a computer-readable recording medium storing the computer program are also novel and useful. The method performed by the terminal device and the method performed by the communication device are also novel and useful. Also, a communication system including a terminal device and a communication device is novel and useful. [Brief description of the drawings]

[0012] [Figure 1] 1 shows the configuration of a communication system. [Diagram 2] FIG. 1 shows an explanatory diagram for explaining an outline of an embodiment. [Diagram 3] A sequence diagram of the bootstrap processing with the AP is shown below. [Figure 4] The sequence diagram of the authentication process with the AP is shown below. [Diagram 5] A sequence diagram of the configuration processing with the AP is shown below. [Figure 6] A sequence diagram of the process for Network Access with an AP is shown below. [Figure 7] A sequence diagram of the bootstrap processing with the printer is shown below. [Figure 8] A sequence diagram of authentication processing with a printer is shown. [Figure 9] A sequence diagram of the configuration process with the printer is shown below. [Figure 10] 1 shows a sequence diagram of a process for network access between a printer and an AP. [Figure 11] 1 shows a sequence diagram of processing executed among a terminal, a printer, and an AP. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] (Configuration of communication system 2; Figure 1) 1, the communication system 2 includes an AP (short for Access Point) 6, a terminal 10, and a printer 100. In this embodiment, a user uses the terminal 10 to establish a wireless connection between the terminal 10 and the AP 6 according to the Wi-Fi system (hereinafter, referred to as a "Wi-Fi connection"), and then establishes a Wi-Fi connection between the printer 100 and the AP 6.

[0014] (Terminal 10 Configuration) The terminal 10 is a portable terminal device such as a mobile phone (for example, a smartphone), a PDA, a tablet PC, etc. In a modified example, the terminal 10 may be a stationary PC, a notebook PC, etc.

[0015] The terminal 10 includes an operation unit 12, a display unit 14, a camera 15, a Wi-Fi interface 16, and a control unit 30. Each unit 12 to 30 is connected to a bus line (reference numerals omitted). In the following, the interface will be simply referred to as "I / F".

[0016] The operation unit 12 has a plurality of keys. A user can input various instructions to the terminal 10 by operating the operation unit 12. The display unit 14 is a display for displaying various information. The display unit 14 also functions as a touch panel (i.e., an operation unit) for receiving instructions from the user. The camera 15 is a device for photographing an object, and in this embodiment is used particularly for photographing QR codes (registered trademark) for the AP 6 and the printer 100.

[0017] The Wi-Fi I / F 16 is assigned a MAC address "macte". The Wi-Fi I / F 16 is a wireless interface for performing wireless communication according to the Wi-Fi method (hereinafter referred to as "Wi-Fi communication"). The Wi-Fi method is a wireless communication method for performing wireless communication according to, for example, the IEEE (abbreviation of The Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and standards equivalent thereto (for example, 802.11a, 11b, 11g, 11n, 11ac, etc.). In particular, the Wi-Fi I / F 16 supports the DPP (abbreviation of 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," a draft standard created by the Wi-Fi Alliance, and is a wireless communication method that uses the terminal 10 to easily establish a Wi-Fi connection between a pair of devices (e.g., the terminal 10 and an AP6, or the printer 100 and an AP6).

[0018] The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 executes various processes in accordance with programs 36, 38 stored in the memory 34. The memory 34 is configured with a volatile memory, a non-volatile memory, etc., and stores an OS program 36 and a connection application 38 (hereinafter simply referred to as "app 38").

[0019] The OS program 36 is a program for controlling the basic operations of the terminal 10. The application 38 is a program for establishing a Wi-Fi connection between a pair of devices according to the DPP method. The application 38 is installed in the terminal 10 from a server on the Internet provided by the vendor of the printer 100, for example.

[0020] (Configuration of Printer 100) The printer 100 is a peripheral device (such as a terminal 10) capable of executing a printing function. The printer 100 includes an operation unit 112, a display unit 114, a Wi-Fi I / F 116, a print execution unit 118, and a control unit 130. Each unit 112 to 130 is connected to a bus line (reference numerals omitted).

[0021] The operation unit 112 has a plurality of keys. A user can input various instructions to the printer 100 by operating the operation unit 112. The display unit 114 is a display for displaying various information. The display unit 114 also functions as a touch panel (i.e., an operation unit) that accepts instructions from the user. The Wi-Fi I / F 116 is the same as the Wi-Fi I / F 16 of the terminal 10. That is, the Wi-Fi I / F 116 supports the DPP method. In addition, the MAC address "macpr" is assigned to the Wi-Fi I / F 116. The print execution unit 118 has a printing mechanism such as an inkjet method or a laser method.

[0022] The control unit 130 includes a CPU 132 and a memory 134. The CPU 132 executes various processes in accordance with a program 136 stored in the memory 134. The memory 134 is configured by a volatile memory, a non-volatile memory, or the like.

[0023] (Outline of this embodiment; Figure 2) Next, an overview of this embodiment will be described with reference to FIG. 2. As described above, the terminal 10 and the printer 100 support the DPP method, and the AP 6 also supports the DPP method. The AP 6 is assigned a MAC address "macap." In this embodiment, each of the devices 6, 10, and 100 executes communication according to the DPP method, thereby establishing a Wi-Fi connection between the terminal 10 and the printer 100 and the AP 6. In the following, for ease of understanding, the operations executed by the CPU of each device (e.g., CPU 32, CPU 132) will be described with each device (e.g., terminal 10, printer 100) as the subject, rather than the CPU as the subject.

[0024] At T5, the terminal 10 executes DPP-based Bootstrapping (hereinafter simply referred to as "BS") with the AP 6. The BS is a process in which the AP 6 provides the terminal 10 with information used in Authentication (hereinafter simply referred to as "Auth") at T10, which will be described later, in response to the terminal 10 photographing a QR code attached to the AP 6.

[0025] At T10, the terminal 10 uses the information already acquired at the BS at T5 to execute DPP-based Auth with the AP 6. This Auth is processing by which the terminal 10 and the AP 6 each authenticate the other party of communication.

[0026] At T15, the terminal 10 executes DPP-based Configuration (hereinafter, simply referred to as "Config") with the AP 6. The Config is a process of transmitting information for the AP 6 to establish a Wi-Fi connection to the AP 6. Specifically, the terminal 10 generates an AP Configuration Object (hereinafter, the Configuration Object is simply referred to as "CO") and transmits the AP CO to the AP 6. As a result, the AP 6 stores the AP CO.

[0027] At T20, the terminal 10 executes DPP-based Network Access (hereinafter, simply referred to as "NA") with the AP 6. The terminal 10 generates a terminal CO in the NA and stores it in the memory 34. Then, the terminal 10 and the AP 6 share a connection key for establishing a Wi-Fi connection between the terminal 10 and the AP 6 using the terminal CO and the AP CO.

[0028] At T25, the terminal 10 and the AP 6 execute 4way-handshake communication. During at least a part of the 4way-handshake communication, the terminal 10 and the AP 6 communicate encrypted information encrypted by the connection key shared in the NA of T20. If the encrypted information is successfully decrypted, a Wi-Fi connection is established between the terminal 10 and the AP 6. As a result, the terminal 10 participates as a child station in the wireless network formed by the AP 6. In a modified example, SAE (short for Simultaneous Authentication of Equals, commonly known as "Dragonfly") communication may be used instead of the 4way-handshake communication.

[0029] Next, in T55, the terminal 10 executes BS of the DPP method with the printer 100. The BS is a process in which, in response to the terminal 10 capturing an image of a QR code displayed on the printer 100, the printer 100 provides the terminal 10 with information used in Auth in T60, which will be described later.

[0030] In T60, the terminal 10 uses the information already acquired in the BS in T55 to execute DPP-based Auth with the printer 100. This Auth is a process in which the terminal 10 and the printer 100 each authenticate the other party in communication.

[0031] In T65, the terminal 10 executes a DPP-based Config with the printer 100. The Config is a process for transmitting information for the printer 100 to establish a Wi-Fi connection to the printer 100. Specifically, the terminal 10 generates a printer CO and transmits the printer CO to the printer 100. As a result, the printer CO is stored in the printer 100.

[0032] In T70, the printer 100 and the AP 6 execute NA of the DPP method using the printer CO and the AP CO. The NA is a process for sharing a connection key between the printer 100 and the AP 6 to establish a Wi-Fi connection between the printer 100 and the AP 6.

[0033] In T75, the printer 100 and the AP 6 execute 4-way handshake communication. During at least a part of the 4-way handshake communication, the printer 100 and the AP 6 communicate encrypted information encrypted by the connection key shared in the NA of T70. If the encrypted information is successfully decrypted, a Wi-Fi connection is established between the printer 100 and the AP 6. As a result, the printer 100 participates as a slave station in the wireless network formed by the AP 6.

[0034] When the above processes of T5 to T75 are performed, the terminal 10 and the printer 100 each participate as a slave station in the wireless network formed by the AP 6. As a result, the terminal 10 and the printer 100 can communicate with each other via the AP 6 using the wireless network. For example, the terminal 10 and the printer 100 can execute the following communication. That is, in T80, print data representing an image to be printed is transmitted from the terminal 10 to the AP 6, and in T85, the print data is transmitted from the AP 6 to the printer 100. As a result, in T90, the printer 100 executes printing according to the print data.

[0035] In the DPP method, in order to establish a Wi-Fi connection between the terminal 10 and the AP 6 and the printer 100, the user does not need to input information about the wireless network in which the AP 6 operates as a master station (e.g., SSID (short for Service Set Identifier), password, etc.) into the terminal 10 and the printer 100. Therefore, the user can easily establish a Wi-Fi connection between the terminal 10 and the AP 6 and the printer 100.

[0036] (Bootstrapping with AP6 (BS); Figure 3) Next, with reference to Fig. 3 to Fig. 10, the details of each process executed at T5 to T20 and T55 to T70 in Fig. 2 will be described. First, with reference to Fig. 3, the BS process executed between the terminal 10 and AP6 at T5 in Fig. 2 will be described. In the initial state of Fig. 3, AP6 stores in advance the public key APK1 and secret key ask1 of AP6. In addition, a QR code obtained by encoding the public key APK1 of AP6, the channel list L1 of AP6, and the MAC address "macap" of AP6 is attached to the housing of AP6. The channel list L1 is a list of multiple communication channels (i.e., multiple communication channels available to AP6) to be used in Auth (see T10 in Fig. 2).

[0037] In response to receiving an operation to start the application 38 from the user in T100, the terminal 10 starts the application 38. Each of the subsequent processes executed by the terminal 10 is realized by the application 38. Next, in T102, the terminal 10 displays a selection screen on the display unit 14. The selection screen includes a "New" button indicating that the terminal 10 will establish a new Wi-Fi connection.

[0038] In response to the user selecting the “New” button in the selection screen in T104, the terminal 10 causes the display unit 14 to display an input screen for inputting a group ID in T106. The group ID is information for identifying a wireless network formed by the terminal 10 establishing a new Wi-Fi connection.

[0039] In response to input of the group ID “home”, which is an arbitrary character string designated by the user, in T108, the terminal 10 displays, in T110, on the display unit 14, a confirmation screen for confirming with the user whether or not to establish a Wi-Fi connection with the AP 6. The confirmation screen includes a YES button indicating that the establishment of a Wi-Fi connection with the AP 6 is to be executed, and a NO button indicating that the establishment of a Wi-Fi connection with the AP 6 is not to be executed.

[0040] In response to the user selecting the YES button in the confirmation screen in T112, the terminal 10 starts up the camera 15, and in T120, uses the camera 15 to capture an image of the QR code attached to the housing of the AP 6. Then, in T122, the terminal 10 decodes the captured QR code and acquires the public key APK1, the channel list L1, and the MAC address "macap." When the process of T122 ends, the process of FIG. 3 ends.

[0041] (Authentication with AP6; Figure 4) Next, the Auth process executed between the terminal 10 and the AP 6 at T10 in FIG. 2 will be described with reference to FIG.

[0042] In T200, the terminal 10 generates a public key TPK1 and a secret key tsk1 of the terminal 10. Next, in T201, the terminal 10 generates a shared key SK1 according to ECDH (Elliptic curve Diffie-Hellman key exchange) using the generated secret key tsk1 and the public key APK1 of AP6 acquired in T122 of Fig. 3. Then, in T202, the terminal 10 encrypts a random value RV1 using the generated shared key SK1 to generate encrypted data ED1.

[0043] In T210, the terminal 10 transmits a DPP Authentication Request (hereinafter simply referred to as "AReq") to the AP 6 via the Wi-Fi I / F 16, with the MAC address "macap" acquired in T122 of Fig. 3 as the transmission destination. The AReq is a signal requesting the AP 6 to execute authentication, and includes the public key TPK1 of the terminal 10 generated in T200, the encrypted data ED1 generated in T202, and the capability of the terminal 10. Here, the terminal 10 repeatedly transmits the AReq to the AP 6 by sequentially using a plurality of communication channels in the channel list L1 acquired in T122 of Fig. 3.

[0044] Capability is information that is specified in advance in a device that supports the DPP method, and includes one of the following values: a value indicating that the device can operate only as a Configurator in the DPP method; a value indicating that the device can operate only as an Enrollee in the DPP method; and a value indicating that the device can operate both as a Configurator and an Enrollee. A Configurator refers to a device that transmits a CO to be used in an NA (e.g., T20 in FIG. 2) to an Enrollee in a Config (e.g., T15 in FIG. 2). On the other hand, an Enrollee refers to a device that receives a CO to be used in an NA from a Configurator in a Config. As described above, in this embodiment, the terminal 10 generates a CO for an AP or a CO for a printer and transmits it to the AP 6 or the printer 100. Therefore, the capability of the terminal 10 includes a value indicating that the terminal 10 can operate only as a Configurator.

[0045] At T210, the AP6 receives the AReq from the terminal 10. As described above, the AReq is transmitted with the MAC address "macap" of the AP6 as the transmission destination. Therefore, the AP6 can properly receive the AReq from the terminal 10. The AP6 also goes into a state of monitoring whether one of the multiple communication channels in the channel list L1 (i.e., multiple communication channels available to the AP6) receives the used AReq. As described above, the AReq at T210 is transmitted by sequentially using the multiple communication channels in the channel list L1. Therefore, the AP6 can properly receive the AReq from the terminal 10.

[0046] Next, the AP6 executes the following process to authenticate the source of the AReq (i.e., the terminal 10). Specifically, in T212, the AP6 generates a shared key SK1 using the public key TPK1 of the terminal 10 in the AReq and the private key ask1 of the AP6 according to ECDH. Here, the shared key SK1 generated by the terminal 10 in T201 is the same as the shared key SK1 generated by the AP6 in T212. Therefore, in T214, the AP6 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 decryption of the encrypted data ED1 is successful, the AP6 determines that the source of the AReq is the device that captured the QR code of the AP6, that is, determines that the authentication has been successful, and executes the process from T216 onwards. On the other hand, if AP6 is not successful in decrypting the encrypted data ED1, it determines that the sender of AReq is not the device that photographed the QR code of AP6, i.e., it determines that authentication has failed, and does not execute the processing from T216 onwards.

[0047] At T216, AP6 generates a new public key APK2 and a new secret key ask2 of AP6. In a modified example, AP6 may store the public key APK2 and the secret key ask2 in advance. Next, at T217, AP6 generates a shared key SK2 using the public key TPK1 of the terminal 10 in the AReq of T210 and the secret key ask2 already generated of AP6 according to ECDH. Then, at T218, AP6 encrypts the acquired random value RV1 and the new random value RV2 using the generated shared key SK2 to generate encrypted data ED2.

[0048] In T220, the AP 6 transmits a DPP Authentication Response (hereinafter, simply referred to as "ARes") to the terminal 10. The ARes includes the public key APK2 of the AP 6 generated in T216, the encrypted data ED2 generated in T218, and the capability of the AP 6. The capability includes a value indicating that the AP 6 can operate only as an Enrollee.

[0049] In response to receiving the ARes from the AP6 via the Wi-Fi I / F 16 in T220, the terminal 10 executes the following process for authenticating the source of the ARes (i.e., the AP6). Specifically, in T222, the terminal 10 generates a shared key SK2 using the private key tsk1 of the terminal 10 generated in T200 and the public key APK2 of the AP6 in the ARes according to ECDH. Here, the shared key SK2 generated by the AP6 in T217 is the same as the shared key SK2 generated by the terminal 10 in T222. Therefore, in T224, 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 a device having a photographed QR code, that is, determines that the authentication has been successful, and executes the process from T230 onward. On the other hand, if the terminal 10 is not successful in decrypting the encrypted data ED2, it determines that the sender of the ARes is not a device having a photographed QR code, i.e., it determines that authentication has failed, and does not execute the processing after T230.

[0050] In T230, the terminal 10 transmits a Confirm to the AP 6 via the Wi-Fi I / F 16. The Confirm includes information indicating that the terminal 10 operates as a Configurator and the AP 6 operates as an Enrollee. As a result, in T232, the terminal 10 determines that it will operate as a Configurator, and in T234, the AP 6 determines that it will operate as an Enrollee. When the process of T234 ends, the process of FIG. 4 ends. Note that when the process of FIG. 4 ends, the terminal 10 discards the public key TPK1 and the private key tsk1 (i.e., deletes them from the memory 34).

[0051] (AP6 Configuration (Config); Figure 5) Next, the Config process executed between the terminal 10 and the AP 6 at T15 in FIG. 2 will be described with reference to FIG.

[0052] In T300, the AP 6 transmits a DPP Configuration Request (hereinafter, simply referred to as "CReq") to the terminal 10. The CReq is a signal requesting transmission of a CO for the AP.

[0053] In T300, the terminal 10 receives the CReq from the AP 6 via the Wi-Fi I / F 16. In this case, in T302, the terminal 10 generates a new public key TPK2 and a new private key tsk2 of the terminal 10 and stores them in the memory 34. Next, in T304, the terminal 10 generates a CO for the AP by using the generated private key tsk2. Specifically, the terminal 10 executes the following processes.

[0054] The terminal 10 first generates a hash value HV by hashing the public key TPK2 of the terminal 10. The terminal 10 also generates a first value by hashing a combination of the hash value HV, the group ID "home" input at T108 in FIG. 3, and the public key APK2 of the AP6 in the ARes at T220 in FIG. 4. The terminal 10 then generates an electronic signature DSap by encrypting the generated first value using the private key tsk2 of the terminal 10 according to ECDSA (short for Elliptic Curve Digital Signature Algorithm). As a result, the terminal 10 can generate an AP Signed-Connector (hereinafter, the Signed-Connector will be simply referred to as "SC") including the hash value HV, the group ID "home", the public key APK2 of the AP6, and the electronic signature DSap. The terminal 10 then generates an AP CO including the AP SC and the public key TPK2 of the terminal 10.

[0055] At T310, the terminal 10 transmits a DPP Configuration Response (hereinafter simply referred to as “CRes”) including a CO for the AP to the AP 6 via the Wi-Fi I / F 16.

[0056] In T310, the AP 6 receives the CRes from the terminal 10. In this case, in T312, the AP 6 stores the CO for the AP in the CRes. When the process of T312 ends, the process of FIG. 5 ends.

[0057] (Network Access (NA) with AP6; Figure 6) Next, the NA process executed between the terminal 10 and the AP 6 at T20 in FIG. 2 will be described with reference to FIG.

[0058] In T400, the terminal 10 generates a new public key TPK3 and a private key tsk3 of the terminal 10. Next, in T402, the terminal 10 generates a CO for the terminal by using the private key tsk2 of the terminal 10 stored in the memory 34 in T302 of Fig. 5. Specifically, the terminal 10 executes the following processes.

[0059] First, the terminal 10 generates a hash value HV by hashing the public key TPK2 of the terminal 10. The terminal 10 also generates a second value by hashing a combination of the hash value HV, the group ID "home" input in T108 of FIG. 3, and the public key TPK3 of the terminal 10 generated in T400. The terminal 10 then generates an electronic signature DSte by encrypting the generated second value using the private key tsk2 of the terminal 10 according to ECDSA. As a result, the terminal 10 can generate a terminal SC including the hash value HV, the group ID "home", the public key TPK3 of the terminal 10, and the electronic signature DSte. The hash value HV and the group ID "home" included in the terminal SC are the same as the hash value HV and the group ID "home" included in the AP SC, respectively. The public key TPK3 and the electronic signature DSte included in the terminal SC are different from the public key APK2 and the electronic signature DSap included in the AP SC, respectively. Then, the terminal 10 generates a terminal CO including the terminal SC and the public key TPK2 of the terminal 10 stored in the memory 34 at T302 of FIG.

[0060] At T410, the terminal 10 transmits a DPP Peer Discovery Request (hereinafter, simply referred to as "DReq") including an SC for the terminal to the AP 6 via the Wi-Fi I / F 16. The DReq is a signal requesting the AP 6 to perform authentication and transmit an SC for the AP.

[0061] In response to receiving the DReq from the terminal 10 in T410, the AP 6 executes a process for authenticating the source of the DReq (i.e., the terminal 10) and each piece of information in the DReq (i.e., the hash value HV, “home”, and the public key TPK3). Specifically, in T412, the AP 6 first executes a first AP determination process regarding whether or not the hash value HV and the group ID “home” in the SC for the terminal match the hash value HV and the group ID “home” in the SC for the AP, respectively. In the case of FIG. 6, the AP 6 determines that the first AP determination process “matches”, and therefore determines that the authentication of the source of the DReq (i.e., the terminal 10) has been successful. Note that the determination that the first AP determination process “matches” means that the SC for the terminal and the SC for the AP were generated by the same device (i.e., the terminal 10). Therefore, the AP 6 also determines that the authentication of the source of the SC for the terminal (i.e., the terminal 10) has been successful. Furthermore, the AP6 decrypts the electronic signature DSte in the SC for the terminal by using the public key TPK2 of the terminal 10 included in the CO for the AP. In the case of FIG. 6, the decryption of the electronic signature DSte is successful, so the AP6 executes a second AP determination process regarding whether or not the second value obtained by decrypting the electronic signature DSte matches the value obtained by hashing each piece of information in the SC for the terminal (i.e., the hash value HV, "home", and the public key TPK3). In the case of FIG. 6, the AP6 determines that the second AP determination process "matches", so determines that the authentication of each piece of information in the DReq has been successful, and executes the process from T414 onwards. Note that determining that the second AP determination process "matches" means that each piece of information in the SC for the terminal has not been tampered with by a third party after the CO for the terminal is stored in the terminal 10. Note that the authentication using the electronic signature described later is also a process for confirming that the information has not been tampered with by a third party. On the other hand, if the first AP judgment process determines that there is no match, if decryption of the electronic signature DSte fails, or if the second AP judgment process determines that there is no match, AP6 determines that authentication has failed and does not execute processing after T414.

[0062] Next, in T414, the AP6 generates a connection key (that is, a shared key) CK1 using the public key TPK2 of the terminal 10 included in the CO for AP and the secret key ask2 of the AP6 according to ECDH.

[0063] At T420, the AP 6 transmits to the terminal 10 a DPP Peer Discovery Response (hereinafter, simply referred to as “DRes”) including an SC for the AP.

[0064] In response to receiving the DRes from the AP6 via the Wi-Fi I / F 16, the terminal 10 executes a process for authenticating the source of the DRes (i.e., the AP6) and each piece of information in the DRes (i.e., the hash value HV, "home", and the public key APK2) in T420. Specifically, in T422, the terminal 10 first executes a first TE determination process regarding whether or not the hash value HV and the group ID "home" in the SC for the AP match the hash value HV and the group ID "home" in the SC for the terminal, respectively. In the case of FIG. 6, the terminal 10 determines that the first TE determination process "matches", and therefore determines that the authentication of the source of the DRes (i.e., the AP6) has been successful. Note that the determination that the first TE determination process "matches" means that the SC for the terminal and the SC for the AP were generated by the same device (i.e., the terminal 10). Therefore, the terminal 10 also determines that the authentication of the source of the SC for the terminal (i.e., the terminal 10) has been successful. Furthermore, the terminal 10 decrypts the electronic signature DSap in the SC for AP using the public key TPK2 of the terminal 10 included in the CO for terminal. In the case of FIG. 6, the decryption of the electronic signature DSap is successful, so the terminal 10 executes a second TE determination process regarding whether or not the first value obtained by decrypting the electronic signature DSap matches the value obtained by hashing each piece of information in the SC for AP (i.e., the hash value HV, "home", and the public key APK2). In the case of FIG. 6, the terminal 10 determines that the second TE determination process "matches", so determines that the authentication of each piece of information in the DRes has been successful, and executes the processes from T424 onwards. On the other hand, if the first TE determination process determines that the first TE determination process "does not match", if the decryption of the electronic signature DSap fails, or if the second TE determination process determines that the second TE determination process "does not match", the terminal 10 determines that the authentication has failed, and does not execute the processes from T424 onwards.

[0065] In T424, the terminal 10 generates a connection key CK1 using the private key tsk2 of the terminal 10 and the public key APK2 of the AP 6 in the SC for AP according to ECDH. Here, the connection key CK1 generated by the AP 6 in T414 is the same as the connection key CK1 generated by the terminal 10 in T424. As a result, the connection key CK1 for establishing a Wi-Fi connection is shared between the terminal 10 and the AP 6. When T424 ends, the processing in FIG. 6 ends.

[0066] As described above, after the connection key CK1 is shared between the terminal 10 and the AP 6, the terminal 10 and the AP 6 execute 4-way-handshake communication using the connection key CK1 at T25 in Fig. 2. As a result, a Wi-Fi connection is established between the terminal 10 and the AP 6.

[0067] (Bootstrapping (BS) with the printer 100; Figure 7) Next, with reference to Fig. 7, the BS process executed between the terminal 10 and the printer at T55 in Fig. 2 will be described. In the initial state of Fig. 7, the terminal 10 stores in the memory 34 the public key TPK2 and private key tsk2 of the terminal 10 (see T302 in Fig. 5), the public key TPK3 and private key tsk3 of the terminal 10 (see T400 in Fig. 6), and a terminal CO (see T402). In addition, the printer 100 stores in advance in the memory 134 the public key PPK1 and private key psk1 of the printer 100.

[0068] T500 is the same as T100 in Fig. 3. First, the terminal 10 acquires the group ID "home" included in the terminal SC in the terminal CO stored in the memory 34. In this case, the terminal 10 displays on the display unit 14 in T502 a selection screen including a "home" button having the same character string as the acquired group ID "home" in addition to a "New" button.

[0069] When the user desires to establish a Wi-Fi connection between the printer 100 and the AP 6, the user selects the "home" button in the selection screen in T504. As described above, since the character string "home" is a character string input by the user (see T108 in FIG. 3), the user can easily recognize that the "home" button should be selected when the user desires to establish a Wi-Fi connection between the printer 100 and the AP 6. Note that, for example, when the user desires to establish a Wi-Fi connection between the terminal 10 and an AP different from the AP 6, the user can select the "New" button in the selection screen. In this case, the terminal 10 executes the same process as in FIG. 3 to FIG. 6 with the different AP to establish a Wi-Fi connection with the different AP. In this way, according to this embodiment, a Wi-Fi connection can be appropriately established between a pair of devices intended by the user. When the "home" button in the selection screen is selected in T504, the terminal 10 starts the camera 15, and displays an instruction screen including a message indicating that a QR code should be photographed on the display unit 14 in T506.

[0070] In response to a QR code display operation for displaying a QR code being executed by the user in T510, the printer 100 displays a QR code on the display unit 114 in T512. The QR code is a code image obtained by encoding a public key PPK1 pre-stored in the memory 134, a channel list L2 pre-stored in the memory 134, and the MAC address "macpr" of the Wi-Fi I / F 116. The channel list L2 is a list of a plurality of communication channels (i.e., a plurality of communication channels available to the printer 100) to be used in Auth (see T60 in FIG. 2). The QR code may be generated by the printer 100 in T512, or may be pre-stored in the memory 134 at the time of shipment of the printer 100.

[0071] In T520, the terminal 10 uses the camera 115 to capture an image of the QR code displayed on the printer 100. Then, in T522, the terminal 10 decodes the captured QR code and acquires the public key PPK1, the channel list L2, and the MAC address "macpr." When the process of T522 ends, the process of FIG. 7 ends.

[0072] (Authentication with the printer 100 (Figure 8)) Next, the Auth process executed between the terminal 10 and the printer 100 at T60 in FIG. 2 will be described with reference to FIG.

[0073] In T600, the terminal 10 generates a new public key TPK4 and secret key tsk4 for the terminal 10, and in T601, according to ECDH, generates a shared key SK3 using the generated secret key tsk4 and the public key PPK1 of the printer 100 acquired in T522 of Fig. 7. Then, in T602, the terminal 10 encrypts a random value RV3 using the generated shared key SK3 to generate encrypted data ED3.

[0074] In T610, the terminal 10 transmits AReq to the printer 100 via the Wi-Fi I / F 16, with the MAC address "macpr" acquired in T522 in Fig. 7 as the destination. Here, the terminal 10 repeatedly transmits AReq to the printer 100 by sequentially using a plurality of communication channels in the channel list L2 acquired in T522. The AReq includes the public key TPK4 of the terminal 10 generated in T600, the encrypted data ED3 generated in T602, and the capability of the terminal 10. The capability includes a value indicating that the terminal 10 can operate only as a configurator.

[0075] At T610, the printer 100 receives the AReq from the terminal 10 via the Wi-Fi I / F 116. Since the AReq is transmitted to the MAC address "macpr" of the printer 100 as the transmission destination, the printer 100 can receive the AReq appropriately. Furthermore, since the AReq is transmitted sequentially using a plurality of communication channels in the channel list L2 (i.e., a plurality of communication channels available to the printer 100), the printer 100 can receive the AReq appropriately.

[0076] Next, the printer 100 executes the processes of T612 and T614 for authenticating the sender of the AReq (i.e., the terminal 10). T612 and T614 are similar to T212 and T214 in Fig. 4, except that the data (key, encrypted data, etc.) used is different. That is, the printer 100 generates a shared key SK3 using the public key TPK4 and the secret key psk1 in T612, and decrypts the encrypted data ED3 in the AReq using the shared key SK3 in T614. In this case, the printer 100 determines that the authentication has been successful, and executes the processes from T616 onwards.

[0077] In T616, the printer 100 generates a new public key PPK2 and a new secret key psk2 of the printer 100. In a modified example, the public key PPK2 and the secret key psk2 may be stored in advance in the memory 134. T617 and T618 executed subsequently are similar to T217 and T218 in Fig. 4 except that the data (key, encrypted data, etc.) used is different. That is, in T617, the printer 100 generates a shared key SK4 using the public key TPK4 and the secret key psk2, and in T618, the printer 100 encrypts the random values ​​RV3 and RV4 using the shared key SK4 to generate encrypted data ED4.

[0078] In T620, the printer 100 transmits an ARes to the terminal 10 via the Wi-Fi I / F 116. The ARes includes the public key PPK2 of the printer 100 generated in T616, the encrypted data ED4 generated in T618, and the capability of the printer 100. The capability includes a value indicating that the printer 100 can operate only as an Enrollee.

[0079] T622 to T634 are similar to T222 to T234 in FIG. 4, except that the communication target is the printer 100, and that the public key PPK2, encrypted data ED4, private key tsk4, shared key SK4, and random values ​​RV3 and RV4 are used by the terminal 10. As a result, the terminal 10 decides to operate as a Configurator, and the printer 100 decides to operate as an Enrollee. When the process of T634 ends, the process of FIG. 8 ends. Note that when the process of FIG. 8 ends, the terminal 10 discards the public key TPK4 and private key tsk4 (i.e., deletes them from the memory 34).

[0080] (Printer 100 Configuration (Config); Figure 9) Next, the Config process executed between the terminal 10 and the printer 100 at T65 in FIG. 2 will be described with reference to FIG.

[0081] In T700, the printer 100 transmits CReq to the terminal 10 via the Wi-Fi I / F 116. The CReq is a signal requesting transmission of a CO for the printer.

[0082] In T700, the terminal 10 receives CReq from the printer 100 via the Wi-Fi I / F 16. In this case, in T702, the terminal 10 acquires the public key TPK2 and secret key tsk2 of the terminal 10 from the memory 34. Specifically, the terminal 10 acquires from the memory 34 a terminal CO including a group ID "home" having the same character string as "home" selected in T504 of FIG. 7. As shown in the initial state of FIG. 7, the terminal SC includes the public key TPK2. Therefore, the terminal 10 can acquire the public key TPK2 included in the terminal CO. Then, the terminal 10 acquires from the memory 34 a secret key tsk2 corresponding to the acquired public key TPK2.

[0083] In T704, the terminal 10 generates a CO for the printer. T704 is similar to T304 in FIG. 5 except that the data (key, etc.) used is different. The CO for the printer includes an SC for the printer and the public key TPK2 obtained in T702. The SC for the printer includes a hash value HV, a group ID "home", a public key PPK2 of the printer 100, and an electronic signature DSpr. The electronic signature DSpr is information obtained by encrypting a third value obtained by hashing a combination of the hash value HV, the group ID "home", and the public key PPK2, with the private key tsk2 obtained in T702.

[0084] 2, when establishing a Wi-Fi connection with the AP 6, the terminal 10 stores in the memory 34 the MAC address “macap” of the AP 6 acquired in T122 of Fig. 3 and channel information indicating the communication channel to be used in the Wi-Fi connection with the AP 6. In T710, the terminal 10 transmits a CRes including the printer CO generated in T704, the stored MAC address “macap” of the AP 6, and the stored channel information to the printer 100 via the Wi-Fi I / F 16.

[0085] In T710, the printer 100 receives a CRes from the terminal 10 via the Wi-Fi I / F 116. In this case, in T712, the printer 100 stores the printer CO, the MAC address “macap”, and the channel information in the CRes in the memory 134. When the process of T712 ends, the process of FIG. 9 ends.

[0086] (Network Access (NA) between the printer 100 and the AP6; FIG. 10) Next, the NA process of T70 in Fig. 2 executed between the printer 100 and the AP 6 will be described with reference to Fig. 10. In the initial state of Fig. 10, the printer 100 stores public keys PPK1, PPK2, private keys psk1, psk2, and a CO for the printer. Also, the AP 6 stores public keys APK1, APK2, private keys ask1, ask2, and a CO for the AP.

[0087] At T810, printer 100 transmits a DReq including an SC for the printer to AP6 via Wi-Fi I / F 116, with the MAC address of AP6, “macap,” stored at T712 in FIG. 9, as the destination, using the communication channel indicated by the channel information stored in T712.

[0088] In T810, the AP6 receives the DReq from the printer 100. As described above, the DReq is transmitted to the MAC address "macap" of the AP6 as the transmission destination, so the AP6 can properly receive the DReq from the printer 100. In addition, when a Wi-Fi connection using a certain communication channel is established between the terminal 10 and the AP6, the AP6 may not be able to execute communication using a communication channel different from the certain communication channel. In this embodiment, as described above, the DReq is transmitted using the certain communication channel indicated by the channel information, so the AP6 can properly receive the DReq from the printer 100.

[0089] In response to receiving the DReq from the printer 100 in T810, the AP6 executes processing of T812 for authenticating the sender of the DReq (i.e., the printer 100) and each piece of information in the DReq (i.e., the hash value HV, "home", and the public key PPK2). T812 is similar to T412 in FIG. 6 except that the data (key, etc.) used is different. That is, the AP6 determines that the hash value HV and the group ID "home" in the SC for the printer match the hash value HV and the group ID "home" in the SC for the AP, respectively (that is, it determines that the authentication of the sender of the DReq (i.e., the printer 100) has been successful). In addition, AP6 decrypts the electronic signature DSpr in the SC for the printer using the public key TPK2 of the terminal 10 included in the CO for AP, and determines that the third value obtained thereby matches the value obtained by hashing each piece of information in the SC for the printer (i.e., the hash value HV, “home”, and the public key PPK2) (i.e., determines that authentication of each piece of information in the DReq has been successful).

[0090] T814 and T820 are similar to T414 and T420 in FIG. 6, except that the communication target is the printer 100 and the public key PPK2 and connection key CK2 of the printer 100 are used. In response to receiving DRes from the AP6 via the Wi-Fi I / F 116 in T820, the printer 100 executes the process of T822 for authenticating the source of the DRes (i.e., the AP6) and each piece of information in the DRes (i.e., the hash value HV, “home”, and the public key APK2). T822 is similar to T422 in FIG. 6, except that the execution subject is the printer 100 and the data (key, etc.) used is different. That is, the printer 100 determines that the hash value HV and the group ID “home” in the SC for the AP match the hash value HV and the group ID “home” in the SC for the printer, respectively (that is, determines that the authentication of the source of the DRes (i.e., the AP6) has been successful). In addition, the printer 100 decrypts the electronic signature DSap in the SC for AP using the public key TPK2 of the terminal 10 included in the CO for printer, and determines that the first value obtained thereby matches the value obtained by hashing each piece of information in the SC for AP (i.e., the hash value HV, "home", and the public key APK2) (i.e., determines that authentication of each piece of information in the DRes has been successful).

[0091] In T824, the printer 100 generates a connection key CK2 using the private key psk2 of the printer 100 and the public key APK2 of the AP 6 in the SC for AP according to ECDH. Here, the connection key CK2 generated by the AP 6 in T814 is the same as the connection key CK2 generated by the printer 100 in T824. As a result, the connection key CK2 for establishing a Wi-Fi connection is shared between the printer 100 and the AP 6. When T824 ends, the processing in FIG. 10 ends.

[0092] As described above, after the connection key CK2 is shared between the printer 100 and the AP 6, at T75 in FIG. 2, the printer 100 and the AP 6 execute 4-way-handshake communication using the connection key CK2. As a result, a Wi-Fi connection is established between the printer 100 and the AP 6. In particular, the printer 100 establishes a Wi-Fi connection with the AP 6 using a communication channel indicated by the channel information stored at T712 in FIG. 9. Therefore, even in a situation where a Wi-Fi connection using a certain communication channel is established between the terminal 10 and the AP 6, the printer 100 can appropriately establish a Wi-Fi connection with the AP 6 because it uses the same communication channel as the certain communication channel.

[0093] As described above, the printer 100 receives the AReq at T610 in FIG. 8 from the terminal 10 using one of the communication channels included in the channel list L2 of the printer 100. That is, the printer 100 receives the AReq from the terminal 10 using a communication channel available to both the printer 100 and the terminal 10. On the other hand, at T75 in FIG. 2, the printer 100 establishes a Wi-Fi connection with the AP 6 using a communication channel indicated by the channel information. That is, the printer 100 establishes a Wi-Fi connection with the AP 6 using a communication channel available to both the printer 100 and the AP 6. Here, the communication channel available to the terminal 10 may differ from the communication channel available to the AP 6. In this embodiment, the communication channel for the printer 100 to receive the AReq from the terminal 10 at T610 in FIG. 8 is different from the communication channel for the printer 100 to establish a Wi-Fi connection with the AP at T75 in FIG. 2. However, in a modified embodiment, the former communication channel and the latter communication channel may be the same.

[0094] (Connection confirmation process performed by each device 6, 10, 100; Figure 11) Next, with reference to FIG. 11, the process executed by each of the devices 6, 10, and 100 after the process of FIG. 10 will be described.

[0095] 9, in response to transmitting CRes to the printer 100, the terminal 10 starts, at T900, repeatedly transmitting an inquiry request to the printer 100 via the Wi-Fi I / F 16, with the MAC address "macpr" acquired at T522 in Fig. 7 as the destination. The inquiry request is a signal that inquires of the printer 100 as to whether or not the printer 100 has established a Wi-Fi connection with the AP 6, and is transmitted to the printer 100 without passing through the AP 6. The communication of the inquiry request is communication at the data link layer of the OSI reference model.

[0096] Even if the printer 100 receives an inquiry request from the terminal 10 via the Wi-Fi I / F 116 before establishing a Wi-Fi connection with the AP 6, the printer 100 does not transmit an inquiry response that is a response to the inquiry request to the terminal 10. When the printer 100 receives an inquiry request from the terminal 10 via the Wi-Fi I / F 116 after establishing a Wi-Fi connection with the AP 6 in T910 (i.e., T75 in FIG. 2), the printer 100 transmits an inquiry response to the terminal 10 via the Wi-Fi I / F 116 in T912.

[0097] When the terminal 10 receives an inquiry response from the printer 100 via the Wi-Fi I / F 16 at T912, the terminal 10 executes a process for confirming whether or not communication with the printer 100 via the AP 6 is possible. Here, the following confirmation request includes a first request signal and a second request signal, and the confirmation response includes a first response signal and a second response signal.

[0098] (Case A) First, we will explain case A, in which after a Wi-Fi connection is established between the terminal 10 and AP6 (T25 in Figure 2), the Wi-Fi connection is not disconnected and a Wi-Fi connection is established between the printer 100 and AP6 at T910.

[0099] In T920, the terminal 10 transmits a broadcast first request signal (i.e., a request without a specified destination) to the AP 6 via the Wi-Fi I / F 16. This causes the first request signal to be transmitted to all child stations that have established a Wi-Fi connection with the AP 6. As a result, the printer 100 receives the first request signal from the AP 6 via the Wi-Fi I / F 116 in T922. In this case, the printer 100 transmits a first response signal to the AP 6 via the Wi-Fi I / F 116 in T924. The first response signal includes the MAC address "macpr" and the IP address of the printer 100.

[0100] In T924, the AP 6 receives a first response signal from the printer 100. However, the AP 6 may receive first response signals not only from the printer 100 but also from other child stations. In this case, the AP 6 transmits each of the first response signals received from each child station to the terminal 10 in T926.

[0101] At T926, the terminal 10 receives each first response signal from the AP 6 via the Wi-Fi I / F 16. In this case, the terminal 10 determines whether or not a first response signal including the MAC address "macpr" of the printer 100 acquired at T522 in FIG. 7 is present among the first response signals that have already been received. In case A, since a first response signal including the MAC address "macpr" is present, the terminal 10 determines that communication with the printer 100 via the AP 6 is possible. Then, the terminal 10 acquires the IP address of the printer 100 in the first response signal. The communication of the first request signal and the first response signal is, for example, communication using ARP (short for Address Resolution Protocol) of the data link layer of the OSI reference model.

[0102] The terminal 10 further transmits a second request signal to the printer 100 via the AP 6, with the acquired IP address of the printer 100 as the transmission destination (T920, T922), and receives a second response signal from the printer 100 via the AP 6 (T924, T926). The communication of the second request signal and the second response signal is, for example, PING communication using ICPM (short for Internet Control Protocol) of the network layer of the OSI reference model. This allows the terminal 10 to confirm that communication of the network layer of the OSI reference model with the printer 100 is possible.

[0103] At T930 and T932, the terminal 10 transmits print data representing an image to be printed to the AP 6 via the Wi-Fi I / F 16, with the acquired IP address of the printer 100 as the transmission destination (see T80 and T85 in FIG. 2). The print data may be data representing a test image for causing the printer 100 to execute a print test, or may be data representing an image designated by the user.

[0104] In T932, the printer 100 receives print data from the terminal 10 via the AP 6 and the Wi-Fi I / F 116. In this case, in T940, the printer 100 supplies the received print data to the print execution unit 118, and causes the print execution unit 118 to execute printing in accordance with the print data (see T90 in FIG. 2). When the processing of T940 ends, the processing of case A ends.

[0105] (Case B) Next, a case B will be described in which a Wi-Fi connection is disconnected after the Wi-Fi connection is established between the terminal 10 and the AP 6 (T25 in FIG. 2). For example, the Wi-Fi connection is disconnected due to the power of the terminal 10 being turned off. Then, after the power of the terminal 10 is turned on again, the processes of T55 to T75 in FIG. 2 are executed between the terminal 10 and the printer 100, and a Wi-Fi connection is established between the printer 100 and the AP 6 at T910 in FIG. 11.

[0106] In response to receiving the inquiry response from the printer 100 via the Wi-Fi I / F 16 in T912, the terminal 10 transmits a broadcast confirmation request (i.e., a first request signal) to the AP 6 via the Wi-Fi I / F 16 in T960. However, in this case B, since the Wi-Fi connection between the terminal 10 and the AP 6 is disconnected, the terminal 10 cannot transmit the confirmation request to the AP 6, and as a result, does not receive the confirmation response (i.e., the first response signal) from the printer 100. This allows the terminal 10 to know that the Wi-Fi connection between the terminal 10 and the AP 6 has been disconnected.

[0107] After the terminal 10 knows that the Wi-Fi connection with the AP 6 has been disconnected, in T970, the terminal 10 uses the connection key CK1 (T424 in FIG. 6) stored in the memory 34 to execute 4-way handshake communication with the AP 6 and re-establish a Wi-Fi connection with the AP 6. This brings about a state in which the terminal 10 and the printer 100 each have established a Wi-Fi connection with the AP 6, that is, the devices 6, 10, and 100 belong to the same network. For this reason, it is possible to execute the same processes as those in T920 to T940 in case A.

[0108] (Effects of this embodiment) In this embodiment, the private key tsk2 used to generate the electronic signature DSap included in the AP CO for the AP6 is the same as the private key tsk2 used to generate the electronic signature DSpr included in the printer CO for the printer 100. When the AP CO is used by the AP6, a Wi-Fi connection is established between the terminal 10 and the AP6 (T25 in FIG. 2), and when the printer CO is used by the printer 100, a Wi-Fi connection is established between the printer 100 and the AP6 (T75). Therefore, a Wi-Fi connection can be appropriately established between each of the terminal 10 and the printer 100 and the AP6.

[0109] In this embodiment, the printer 100 receives from the terminal 10 a printer CO, channel information indicating a communication channel to be used in a Wi-Fi connection established between the terminal 10 and the AP 6, and the MAC address "macap" of the AP 6 (T710 in FIG. 9). For this reason, the printer 100 can appropriately establish a Wi-Fi connection with the AP 6 by using the MAC address "macap" and the communication channel indicated by the channel information. Therefore, a Wi-Fi connection can be appropriately established between each of the terminal 10 and the printer 100 and the AP 6.

[0110] (Correspondence) The terminal 10, the printer 100, and the AP 6 are examples of a "terminal device," a "communication device," and an "external device," respectively. The Wi-Fi I / F 16, the CPU 32, and the application 38 are examples of a "wireless interface" of the "terminal device," a "computer" of the "terminal device," and a "computer program" for the "terminal device," respectively. The private key tsk2 of the terminal 10, the CO for the AP, and the Wi-Fi connection of T25 in FIG. 2 are examples of a "private key," a "first connection information," and a "first wireless connection," respectively. A first value obtained by hashing a combination of the hash value HV, the group ID "home," and the public key APK2 included in the CO for the AP is an example of "information obtained using at least a part of the information included in the first connection information." The public key PPK1 of the printer 100, the AReq of T610 in FIG. 8, the ARes of T620, and the CO for the printer are examples of a "first public key," a "first authentication request," a "first authentication response," and a "second connection information," respectively. The second value obtained by hashing a combination of the hash value HV, the group ID “home”, and the public key PPK2 included in the printer CO is an example of “information obtained using at least a part of the information included in the second connection information”. The Wi-Fi connection of T75 in FIG. 2 (or T910 in FIG. 11) is an example of a “second wireless connection”.

[0111] The group ID "home" and the character string "New" in the selection screen of T502 in FIG. 7 are examples of "related information" and "predetermined information", respectively. The MAC address "macap" of AP6 is an example of "device identification information". The CO for the terminal is an example of "third connection information", and the third value obtained by hashing the combination of the hash value HV, the group ID "home", and the public key TPK3 included in the CO for the terminal is an example of "information obtained using at least a part of information included in the third connection information". The public key APK1 of AP6, the AReq of T210 in FIG. 4, and the ARes of T220 are examples of "second public key", "second authentication request", and "second authentication response", respectively. The hash value HV and the SC for AP included in the CO for the printer are examples of "authentication information" and "information transmitted from an external device to a communication device", respectively. The QR code displayed in T512 in FIG. 7 is an example of "code image".

[0112] The Wi-Fi I / F 116 is an example of a "wireless interface" of a "communication device." The AReq of T610 and the ARes of T620 in FIG. 8 are examples of an "authentication request" and an "authentication response," respectively. The CO for the printer is an example of "connection information," and the channel information and the MAC address "macap" of AP6 are examples of "specific information." The communication channel used by T610 in FIG. 8 and the communication channel used by T75 in FIG. 2 are examples of a "first communication channel" and a "second communication channel," respectively.

[0113] The process of T522 in Fig. 7, T610 and T620 in Fig. 8, and T704 and T710 in Fig. 9 are examples of processes executed by the "first acquisition unit", "first authentication request transmission unit", "first authentication response transmission unit", "first generation unit", and "first information transmission unit" of the "terminal device", respectively. T610 and T620 in Fig. 8, and T710 in Fig. 9 are examples of processes executed by the "authentication request reception unit", "authentication response transmission unit", and "information reception unit" of the "communication device", respectively. T810, T822, and T824 in Fig. 10, and T75 in Fig. 2 are examples of processes executed by the "establishment unit" of the "communication device".

[0114] Although specific examples of the present invention have been described above in detail, these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and alterations of the specific examples exemplified above. Modifications of the above-mentioned embodiments are listed below.

[0115] (Variation 1) In the above embodiment, the electronic signature (e.g., DSpr) is a value obtained by hashing a combination of the hash value HV, the group ID "home", and a public key (e.g., APK2), encrypted with the private key tsk2. Alternatively, the electronic signature may be the above combination itself encrypted with the private key tsk2. In this variation, the above combination itself included in the SC (e.g., SC for AP) is an example of "at least a portion of the information included in the first (or second or third) connection information" and "information obtained using at least a portion of the information included in the first (or second or third) connection information".

[0116] (Variation 2) In T102 in Fig. 3 and T502 in Fig. 7, the terminal 10 may not display the selection screen on the display unit 14. In this case, when the application 38 is started in T100 in Fig. 3 in a state where the terminal 10 does not store a terminal CO, the terminal 10 skips T102 and T104 and executes T106. Also, when the application 38 is started in T500 in Fig. 7 in a state where the terminal 10 stores a terminal CO, the terminal 10 skips T502 and T504 and executes T506. In this variation, the "display control unit" of the "terminal device" can be omitted.

[0117] (Modification 3) The processes of T920 to T926 and T960 in Fig. 11 may be omitted. In this modification, the "confirmation request transmission unit" and the "confirmation response reception unit" of the "terminal device" can be omitted. Also, the "confirmation request reception unit" and the "confirmation response transmission unit" of the "communication device" can be omitted.

[0118] (Modification 4) The process of T970 in Fig. 11 may be omitted. In this modification, the "re-establishment unit" of the "terminal device" can be omitted.

[0119] (Variation 5) The processes of T930 and T932 in Fig. 11 may be omitted. In this variation, the "print data transmission unit" of the "terminal device" can be omitted. Also, the "print execution unit", "print data reception unit", and "print control unit" of the "communication device" can be omitted.

[0120] (Variation 6) At T912 in FIG. 11, the printer 100 may transmit an inquiry response including the IP address of the printer 100 to the terminal 10. In this case, at T920 and T922, the terminal 10 can transmit a confirmation request including the IP address of the printer 100 as the destination (i.e., a unicast confirmation request) to the printer 100 via the AP 6. Here, the confirmation request is, for example, a communication using the data link layer of the OSI reference model. This variation is also an example of a process executed by a "confirmation request transmission unit" of a "terminal device."

[0121] (Variation 7) The processes of T900 and T912 in Fig. 11 may be omitted. In this case, the terminal 10 may repeatedly transmit a confirmation request to the AP 6 in T920 in response to transmitting a CRes to the printer 100 in T710 in Fig. 9. In this variation, the "inquiry request transmitting unit" and the "inquiry response receiving unit" of the "terminal device" may be omitted. Also, the "inquiry request receiving unit" and the "inquiry response transmitting unit" of the "communication device" may be omitted.

[0122] (Variation 8) T122 in Fig. 3 to T424 in Fig. 6 (and further T25 in Fig. 2) may be realized by the OS 36, not by the application 38. That is, the "computer program" for the "terminal device" does not have to cause the "computer" to function as the "second generation unit", the "establishment unit", the "second acquisition unit", the "second authentication request transmission unit", the "third generation unit", and the "second information transmission unit".

[0123] 7, the printer 100 may print an image including a QR code on the print medium instead of displaying the QR code. In this modification, printing the QR code is an example of "outputting a code image."

[0124] (Variation 10) The "communication device" does not have to be the printer 100, but may be other devices such as a scanner, a multi-function device, a mobile terminal, a PC, a server, etc. Also, the "external device" does not have to be the AP 6, but may be other devices such as a printer, a scanner, a mobile terminal, a PC, a server, etc.

[0125] (Modification 11) In T710 of FIG. 9, the terminal 10 may transmit a CRes to the printer 100 that does not include the MAC address "macap" of the AP6, but includes the CO for the printer and channel information. In this case, the printer 100 transmits the DReq by broadcasting in T810 of FIG. 10 using the communication channel indicated by the channel information. In another modification, in T710, the terminal 10 may transmit a CRes to the printer 100 that does not include the channel information, but includes the CO for the printer and the MAC address "macap" of the AP6. In this case, the printer 100 transmits the DReq to the AP6 in T710, using each wireless channel available to the printer 100 in sequence, with the MAC address "macap" of the AP6 as the destination. In other words, the "specific information" may include at least one of the "channel information" and the "device identification information".

[0126] 2 with the AP 6. In this case, the terminal 10 executes the processes of T5 to T25 with the AP 6 after the process of T60, and then executes the process of T65 with the printer 100.

[0127] (Modification 13) The "device identification information" is not limited to the MAC address "macap" of the AP 6, but may be the IP address of the AP 6, the device name, or the like.

[0128] (Variation 14) The process (e.g., T201 in FIG. 4) for generating a shared key (e.g., SK1) is not limited to the process according to ECDH in the above embodiment, but may be other processes according to ECDH. Also, the process for generating a shared key is not limited to the process according to ECDH, but may be processes according to other methods (e.g., DH (abbreviation of Diffie-Hellman key exchange) etc.). Also, in the above embodiment, the electronic signature (DSap etc.) was generated according to ECDSA, but may be generated according to other methods (e.g., DSA (abbreviation of Digital Signature Algorithm), RAS (abbreviation of Rivest-Shamir-Adleman cryptosystem), etc.).

[0129] (Modification 15) The QR code displayed on the printer 100 in T512 of FIG. 7 does not have to be an encoded version of the channel list L2 and the MAC address "macpr". In other words, the QR code may be a code image obtained by encoding at least the public key PPK1. In this case, in response to receiving a QR code display operation in T510, the printer 100 monitors whether one of all wireless channels available to the printer 100 receives the used AReq. In addition, in T610 of FIG. 8, the terminal 10 sequentially transmits the AReq by broadcast using all wireless channels available to the terminal 10. In other words, the "code image" may be an image obtained by encoding at least the "first public key".

[0130] 7 may be omitted. In this case, a QR code in which the public key PPK1, the channel list L2, and the MAC address "macpr" are encoded may be affixed to the housing of the printer 100. In this modification, the "output control unit" of the "communication device" may be omitted.

[0131] (Variation 17) "DRAFT Device Provisioning Protocol Technical Specification Version 0.2.11," a draft specification created by the Wi-Fi Alliance, states that a shared code, key, phrase, and word are called a "code." Therefore, in place of the QR code at T512 in Fig. 7, printer 100 may display on display unit 114 an image including a shared code, key, phrase, and word obtained by encoding public key PPK1, a channel list, and MAC address "abc."

[0132] (Modification 18) In the above embodiment, the processes in FIGS. 2 to 11 are realized by software (that is, the programs 36, 38, and 136), but at least one of these processes may be realized by hardware such as a logic circuit.

[0133] In addition, the technical elements described in this specification or drawings exert technical utility alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technologies exemplified in this specification or drawings achieve multiple objectives simultaneously, and achieving one of those objectives is itself technically useful. The following is a list of the items described in the claims at the time of filing the patent application. (Item 1) A computer program for a terminal device, comprising: The terminal device A wireless interface; A computer, a memory for storing a private key of the terminal device, the private key having been used to encrypt information obtained using at least a portion of information included in first connection information for an external device, the first connection information being information for establishing a first wireless connection between the terminal device and the external device via the wireless interface, the memory being information stored in the external device; The computer program causes the computer to: a first acquisition unit that acquires a first public key of a communication device different from the external device; a first authentication request transmission unit that transmits a first authentication request using the first public key to the communication device via the wireless interface after the first public key is acquired; a first authentication response receiving unit that receives, after the first authentication request is transmitted to the communication device, a first authentication response that is a response to the first authentication request from the communication device via the wireless interface; a first generation unit that generates second connection information for the communication device by using the private key when the first authentication response is received from the communication device, the second connection information being information for establishing a second wireless connection between the communication device and the external device, and the private key being used to encrypt information obtained by using at least a portion of information included in the second connection information; a first information transmission unit that transmits the second connection information to the communication device via the wireless interface; A computer program that functions as a (Item 2) The terminal device further includes a display unit, the memory stores the private key and related information related to the first wireless connection in association with each other; The computer program further causes the computer to a display control unit that displays a selection screen including the relationship information on the display unit; The first generation unit is When the relationship information included in the selection screen is selected, the private key associated with the relationship information is obtained from the memory; 2. The computer program according to item 1, further comprising: generating the second connection information by using the acquired private key. (Item 3) the selection screen further includes predetermined information different from the relationship information, The computer program further causes the computer to 3. The computer program according to claim 2, further comprising: a computer program that, when the predetermined information included in the selection screen is selected, functions as an establishment unit that establishes the first wireless connection between the terminal device and the external device. (Item 4) The computer program further causes the computer to a confirmation request transmission unit that transmits a confirmation request to the communication device via the wireless interface after the second connection information is transmitted to the communication device, the confirmation request being transmitted from the terminal device to the communication device via the external device when the first wireless connection is established between the terminal device and the external device and the second wireless connection is established between the communication device and the external device; an acknowledgement response receiving unit that receives an acknowledgement response, which is a response to the acknowledgement request, via the wireless interface, wherein when the first wireless connection is established between the terminal device and the external device and the second wireless connection is established between the communication device and the external device, the acknowledgement response is transmitted from the communication device to the terminal device via the external device; 4. The computer program according to any one of items 1 to 3, (Item 5) The computer program further causes the computer to 5. The computer program of claim 4, further comprising: a re-establishment unit that re-establishes the first wireless connection between the terminal device and the external device when the confirmation response is not received due to the first wireless connection being disconnected after the first wireless connection is established between the terminal device and the external device. (Item 6) the communication device is a printer capable of executing a printing function; The computer program further causes the computer to A computer program according to any one of items 1 to 5, which causes the computer program to function as a print data transmission unit that transmits print data representing an image to be printed to the communication device via the wireless interface and the external device after the second connection information is transmitted to the communication device. (Item 7) The computer program further causes the computer to an inquiry request transmission unit that transmits an inquiry request to the communication device via the wireless interface, without via the external device, after the second connection information is transmitted to the communication device, in order to inquire of the communication device whether the second wireless connection has been established; and after the inquiry request is transmitted to the communication device and the second wireless connection is established between the communication device and the external device, the communication device functions as an inquiry response receiving unit that receives an inquiry response that is a response to the inquiry request from the communication device via the wireless interface without going through the external device; 7. The computer program according to claim 6, wherein the print data transmission unit transmits the print data to the communication device via the external device after the inquiry response is received from the communication device. (Item 8) the first information transmission unit transmits the second connection information and the identification information to the communication device; 8. The computer program of claim 1, wherein the identification information includes at least one of channel information indicating a communication channel used in the first wireless connection and device identification information identifying the external device. (Item 9) The computer program further causes the computer to a second generation unit that generates third connection information for the terminal device by using the private key, the third connection information being information for establishing the first wireless connection between the terminal device and the external device, and the private key being used to encrypt information obtained by using at least a portion of information included in the third connection information; an establishment unit that establishes the first wireless connection between the terminal device and the external device by using the third connection information, the first wireless connection being established by the external device using the first connection information; 9. The computer program according to any one of items 1 to 8, which functions as (Item 10) The computer program further causes the computer to a second acquisition unit that acquires a second public key of the external device; a second authentication request transmission unit that transmits a second authentication request using the second public key to the external device via the wireless interface after the second public key is acquired; a second authentication response receiving unit that receives, after the second authentication request is transmitted to the external device, a second authentication response that is a response to the second authentication request from the external device via the wireless interface; a third generating unit configured to generate the first connection information for the external device by using the private key when the second authentication response is received from the communication device; a second information transmitting unit configured to transmit the first connection information to the external device via the wireless interface; an establishment unit that establishes the first wireless connection between the terminal device and the external device when the first connection information is used by the external device after the first connection information is transmitted to the external device; 10. The computer program according to any one of items 1 to 9, (Item 11) The first generation unit operates as a configurator in accordance with the Wi-Fi standard to generate the second connection information; 11. The computer program of claim 1, wherein the first information transmission unit operates as the configurator in accordance with the Wi-Fi standard and transmits the second connection information to the communication device. (Item 12) The second connection information includes authentication information; 12. The computer program of claim 1, wherein the authentication information is utilized by the communication device to perform authentication of information transmitted from the external device to the communication device. (Item 13) the communication device outputs a code image obtained by encoding the first public key; 13. The computer program according to any one of claims 1 to 12, wherein the first acquisition unit acquires the first public key by photographing the code image output from the communication device. (Item 14) Item 14. The computer program product of any one of items 1 to 13, wherein the external device is an access point. (Item 15) A terminal device, A wireless interface; a memory for storing a private key of the terminal device, the private key having been used to encrypt information obtained using at least a portion of information included in first connection information for an external device, the first connection information being information for establishing a first wireless connection between the terminal device and the external device via the wireless interface, the memory being information stored in the external device; a first acquisition unit that acquires a first public key of a communication device different from the external device; a first authentication request transmission unit that transmits a first authentication request using the first public key to the communication device via the wireless interface after the first public key is acquired; a first authentication response receiving unit that receives, after the first authentication request is transmitted to the communication device, a first authentication response that is a response to the first authentication request from the communication device via the wireless interface; a first generation unit that generates second connection information for the communication device by using the private key when the first authentication response is received from the communication device, the second connection information being information for establishing a second wireless connection between the communication device and the external device, and the private key being used to encrypt information obtained by using at least a portion of information included in the second connection information; a first information transmission unit that transmits the second connection information to the communication device via the wireless interface; A terminal device comprising: (Item 16) 1. A communication device, comprising: A wireless interface; an authentication request receiving unit that receives an authentication request using a first public key of the communication device from a terminal device via the wireless interface; an authentication response transmission unit that, when the authentication request is received from the terminal device, transmits an authentication response, which is a response to the authentication request, to the terminal device via the wireless interface; an information receiving unit that receives connection information and identification information from the terminal device via the wireless interface after the authentication response is transmitted to the terminal device, the connection information being information for establishing a second wireless connection between the communication device and an external device via the wireless interface, and the identification information including at least one of channel information indicating a communication channel used in a first wireless connection established between the terminal device and the external device, and device identification information for identifying the external device; an establishment unit that establishes the second wireless connection between the communication device and the external device by using the connection information and the identification information when the connection information and the identification information are received from the terminal device; A communication device comprising: (Item 17) The communication device further comprises: a confirmation request receiving unit that receives a confirmation request from the terminal device via the wireless interface after the connection information and the identification information are received from the terminal device, the confirmation request being transmitted from the terminal device to the communication device via the external device when the first wireless connection is established between the terminal device and the external device and the second wireless connection is established between the communication device and the external device; an acknowledgement transmission unit that, when the acknowledgement request is received from the terminal device, transmits an acknowledgement, which is a response to the acknowledgement request, to the terminal device via the wireless interface, wherein, when the first wireless connection is established between the terminal device and the external device and the second wireless connection is established between the communication device and the external device, the acknowledgement transmission unit transmits the acknowledgement from the communication device to the terminal device via the external device; Item 17. The communication device according to item 16, comprising: (Item 18) The communication device further comprises: A print execution unit, a print data receiving unit that receives print data representing an image to be printed from the terminal device via the external device through the wireless interface after the second wireless connection is established between the communication device and the external device; a print control unit that, when the print data is received from the terminal device, causes the print execution unit to print the image represented by the print data; 18. The communication device according to item 16 or 17, comprising: (Item 19) The communication device further comprises: an inquiry request receiving unit that receives, from the terminal device, an inquiry request for inquiring of the communication device as to whether or not the second wireless connection has been established via the wireless interface without going through the external device; an inquiry response transmitting unit that transmits an inquiry response, which is a response to the inquiry request, to the terminal device via the wireless interface without going through the external device after the inquiry request is received from the terminal device and the second wireless connection is established between the communication device and the external device, Item 19. The communication device according to item 18, wherein the print data receiving unit receives the print data from the terminal device after the inquiry response is transmitted to the terminal device. (Item 20) 20. The communication device according to any one of claims 16 to 19, wherein the information receiving unit operates as an Enrollee in accordance with the Wi-Fi standard and receives the connection information from the terminal device. (Item 21) The connection information includes authentication information, The establishment unit is utilizing the authentication information to perform authentication of information received from the external device; 21. The communication device according to any one of claims 16 to 20, further comprising: if the authentication is successful, establishing the second wireless connection between the communication device and the external device. (Item 22) The communication device further comprises: an output control unit that outputs a code image obtained by encoding the first public key; 22. A communication device according to any one of items 16 to 21, wherein the first public key is obtained by the terminal device by photographing the code image output from the communication device by the terminal device. (Item 23) the authentication request receiving unit receives the authentication request from the terminal device by using a first communication channel; the identification information includes the channel information indicating a second communication channel used in the first wireless connection; the establishment unit establishes the second wireless connection between the communication device and the external device by using the second communication channel indicated by the channel information; 23. The communication device of any one of claims 16 to 22, wherein the second communication channel is different from the first communication channel. (Item 24) A computer program for a communications device, comprising: A computer of the communication device, an authentication request receiving unit that receives an authentication request using a first public key of the communication device from a terminal device via a wireless interface of the communication device; an authentication response transmission unit that, when the authentication request is received from the terminal device, transmits an authentication response, which is a response to the authentication request, to the terminal device via the wireless interface; an information receiving unit that receives connection information and identification information from the terminal device via the wireless interface after the authentication response is transmitted to the terminal device, the connection information being information for establishing a second wireless connection between the communication device and an external device via the wireless interface, and the identification information including at least one of channel information indicating a communication channel used in a first wireless connection established between the terminal device and the external device, and device identification information for identifying the external device; an establishment unit that establishes the second wireless connection between the communication device and the external device by using the connection information and the identification information when the connection information and the identification information are received from the terminal device; A computer program that functions as a [Explanation of symbols]

[0134] 2: communication system, 6: AP, 10: terminal, 12, 112: operation unit, 14, 114: display unit, 15: camera, 16, 116: Wi-Fi I / F, 30, 130: control unit, 32, 132: CPU, 34, 134: memory, 36: OS program, 38: connection application, 100: printer, 118: print execution unit, 136: program

Claims

1. A computer program for a terminal device, comprising: The terminal device A wireless interface; A computer, Memory, A display unit, The memory stores a secret key and related information related to the first wireless connection in association with each other; The private key is used to encrypt information obtained by using at least a part of information included in the first connection information stored in the external device; the first connection information is information for establishing the first wireless connection between the terminal device and the external device via the wireless interface, The computer program causes the computer to: a display control unit that displays a selection screen including the relationship information on the display unit; a first acquisition unit that acquires a first public key of the communication device; a first authentication request transmission unit that transmits a first authentication request using the first public key to the communication device via the wireless interface after the first public key is acquired; a first authentication response receiving unit that receives, after the first authentication request is transmitted to the communication device, a first authentication response that is a response to the first authentication request from the communication device via the wireless interface; a first generation unit that, when the relationship information included in the selection screen is selected and the first authentication response is received from the communication device, acquires from the memory the private key associated with the relationship information and generates second connection information for the communication device by using the acquired private key, the first generation unit being information for establishing a second wireless connection between the communication device and the external device; a first information transmitting unit configured to transmit the second connection information to the communication device via the wireless interface; an inquiry request transmission unit that transmits an inquiry request to the communication device via the wireless interface after the second connection information is transmitted to the communication device; an inquiry response receiving unit that receives, from the communication device via the wireless interface, an inquiry response that is a response to the inquiry request, after the inquiry request is transmitted to the communication device and the second wireless connection is established between the communication device and the external device; A computer program that functions as a

2. the selection screen further includes predetermined information different from the relationship information, The computer program further causes the computer to The computer program product according to claim 1 , further comprising a program for causing the computer to function as an establishment unit that establishes the first wireless connection between the terminal device and the external device when the predetermined information included in the selection screen is selected.

3. the communication device is a printer capable of executing a printing function; The computer program further causes the computer to 3. The computer program product according to claim 1, further comprising a print data transmission unit that transmits print data representing an image to be printed to the communication device via the wireless interface and the external device after the second connection information is transmitted to the communication device.

4. The computer program product according to claim 3 , wherein the print data transmission unit transmits the print data to the communication device via the external device after the inquiry response is received from the communication device.

5. the first information transmission unit transmits the second connection information and the identification information to the communication device; The computer program product according to claim 1 , wherein the identification information includes at least one of channel information indicating a communication channel and device identification information identifying the external device.

6. The computer program further causes the computer to a second generation unit that generates third connection information for the terminal device by using the private key, the third connection information being information for establishing the first wireless connection between the terminal device and the external device, and the private key being used to encrypt information obtained by using at least a portion of information included in the third connection information; an establishment unit that establishes the first wireless connection between the terminal device and the external device by using the third connection information; 6. A computer program as claimed in claim 1, which causes a computer to function as follows:

7. The computer program further causes the computer to a second acquisition unit that acquires a second public key of the external device; a second authentication request transmission unit that transmits a second authentication request using the second public key to the external device via the wireless interface after the second public key is acquired; a second authentication response receiving unit that receives, after the second authentication request is transmitted to the external device, a second authentication response that is a response to the second authentication request from the external device via the wireless interface; a third generating unit configured to generate the first connection information for the external device using the private key when the second authentication response is received from the communication device; a second information transmitting unit configured to transmit the first connection information to the external device via the wireless interface; an establishment unit that establishes the first wireless connection between the terminal device and the external device when the first connection information is used by the external device after the first connection information is transmitted to the external device; 7. A computer program product as claimed in claim 1 , which causes a computer to function as follows:

8. The first generation unit operates as a configurator in accordance with a Wi-Fi standard to generate the second connection information; The computer program product according to claim 1 , wherein the first information transmission unit operates as the configurator in accordance with the Wi-Fi standard and transmits the second connection information to the communication device.

9. The second connection information includes authentication information; The computer program product of claim 1 , wherein the authentication information is utilized by the communication device to perform authentication of information transmitted from the external device to the communication device.

10. the communication device outputs a code image obtained by encoding the first public key; The computer program product according to claim 1 , wherein the first acquisition unit acquires the first public key by photographing the code image output from the communication device.

11. The computer program product of claim 1 , wherein the external device is an access point.

12. A terminal device, A wireless interface; a memory that stores a private key and relationship information related to a first wireless connection in association with each other, the private key being used to encrypt information obtained using at least a portion of information included in first connection information stored in an external device, the first connection information being information for establishing the first wireless connection between the terminal device and the external device via the wireless interface; A display unit; a display control unit that displays a selection screen including the relationship information on the display unit; a first acquisition unit that acquires a first public key of the communication device; a first authentication request transmission unit that transmits a first authentication request using the first public key to the communication device via the wireless interface after the first public key is acquired; a first authentication response receiving unit that receives, after the first authentication request is transmitted to the communication device, a first authentication response that is a response to the first authentication request from the communication device via the wireless interface; a first generation unit that, when the relationship information included in the selection screen is selected and the first authentication response is received from the communication device, acquires from the memory the private key associated with the relationship information and generates second connection information for the communication device by using the acquired private key, the first generation unit being information for establishing a second wireless connection between the communication device and the external device; a first information transmitting unit configured to transmit the second connection information to the communication device via the wireless interface; an inquiry request transmission unit that transmits an inquiry request to the communication device via the wireless interface after the second connection information is transmitted to the communication device; an inquiry response receiving unit that receives, from the communication device via the wireless interface, an inquiry response that is a response to the inquiry request, after the inquiry request is transmitted to the communication device and the second wireless connection is established between the communication device and the external device; A terminal device comprising:

Citation Information

Patent Citations

  • Communication apparatus, sharing method, and program

    JP2017028454A

  • Communication apparatus and master station apparatus

    JP2017050612A

  • Communication device, communication method, and program

    JP2017135519A

  • Communication device, communication method and program

    JP2017135520A

  • Assisted device provisioning in networks

    JP2017513265A