Computer program for terminal device and communication device

A computer program for terminal devices automates the acquisition and transmission of public keys and connection information to multiple access points, addressing the high workload issue in establishing Wi-Fi connections by enabling simultaneous connections with reduced user intervention.

JP7540538B2Active Publication Date: 2024-08-27BROTHER KOGYO KK
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2023076131
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-05-02
Publication Date
2024-08-27
Estimated Expiration
2039-01-16

Smart Images

  • Figure 0007540538000008
    Figure 0007540538000008
  • Figure 0007540538000014
    Figure 0007540538000014
  • Figure 0007540538000003
    Figure 0007540538000003
Patent Text Reader

Abstract

To provide a technique that can reduce a work burden on a user of a terminal device.SOLUTION: A terminal device acquires a first public key, transmits a first authentication request in which the first public key has been used to a first access point, receives a first authentication response from the first access point, and transmits first connection information to the first access point. The terminal device acquires a second public key, transmits a second authentication request in which the second public key has been used to a second access point, receives a second authentication response from the second access point, and transmits second connection information to the second access point. The terminal device also acquires a third public key, transmits a third authentication request in which the third public key has been used to a communication device, receives a third authentication response from the communication device, and transmits third connection information including a first identifier and a second identifier 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 relates to a technology for establishing a wireless connection between a communication device and an external device using a terminal 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 between a pair of devices. For example, a public key is shared between a terminal device operating as an Initiator and an access point (hereinafter referred to as "AP") operating as a Responder. Then, in response to the execution of communication between the terminal device and the AP using the public key, the terminal device operates as a Configurator and transmits AP connection information for establishing a Wi-Fi connection to the AP (i.e., Enrollee). Also, a public key is shared between the terminal device operating as an Initiator and a peripheral device operating as a Responder, and the terminal device functions as a Configurator and transmits device connection information for establishing a Wi-Fi connection to the peripheral device (i.e., Enrollee). As a result, in response to the execution of communication between the AP and the peripheral device using each connection information, a Wi-Fi connection is established between the AP and the peripheral device. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2017-28452 A [Patent Document 2] JP 2017-135520 A [Patent Document 3] JP 2016-187135 A [Non-patent literature]

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

[0005] For example, a situation is assumed in which a user of a terminal device desires to establish a Wi-Fi connection between the peripheral device and a first AP when the peripheral device is near a first AP, and to establish a Wi-Fi connection between the peripheral device and a second AP when the peripheral device is near a second AP. In this case, when the peripheral device is near the first AP, the user performs an operation for the terminal device to transmit the first AP connection information to the first access point, and the terminal device performs an operation for transmitting the first device connection information to the peripheral device. On the other hand, when the peripheral device is near the second AP, the user performs an operation for the terminal device to transmit the second AP connection information to the second AP, and the terminal device performs an operation for transmitting the second device connection information to the peripheral device. In this way, the user of the terminal device needs to perform many operations.

[0006] This specification discloses a technique that can reduce the workload of a user of a terminal device. [Means for solving the problem]

[0007] This specification discloses a computer program for a terminal device. The computer program causes a computer of the terminal device to include the following units: a first acquisition unit for acquiring a first public key that is a public key of a first access point; a first authentication request transmission unit for transmitting a first authentication request using the first public key to the first access point when the first public key is acquired; a first authentication response reception unit for receiving a first authentication response that is a response to the first authentication request from the first access point when the first authentication request is transmitted to the first access point; a first connection information transmitting unit configured to transmit first connection information to the first access point when the first authentication response is received from the first access point, the first connection information being information for establishing a wireless connection between the communication device and the first access point; a second acquisition unit configured to acquire a second public key that is a public key of a second access point; a second authentication request transmitting unit configured to transmit a second authentication request using the second public key to the second access point when the second public key is acquired; a second authentication response receiving unit configured to receive a second authentication response that is a response to the second authentication request from the second access point when the second authentication request is transmitted to the second access point; a third authentication request transmitting unit that transmits a third authentication request using the third public key to the communication device when the third public key is acquired; a third authentication response receiving unit that receives a third authentication response that is a response to the third authentication request from the communication device when the third authentication request is transmitted to the communication device; and a third connection information transmitting unit that transmits third connection information to the communication device when the third authentication response is received from the communication device, wherein the third connection information includes a first identifier andand a second identifier different from the first identifier, the first identifier being information for identifying a first wireless network in which the first access point operates as a master station, and the second identifier being information for identifying a second wireless network in which the second access point operates as a master station.

[0008] According to the above configuration, the terminal device transmits the first connection information to the first access point and transmits the second connection information to the second access point. The terminal device also transmits the third connection information including the first identifier and the second identifier to the communication device. Since the third connection information includes the first identifier, the communication device can establish a wireless connection with the first access point that operates as a master station of the first wireless network identified by the first identifier. Specifically, when the communication device uses the third connection information and the first access point uses the first connection information, a wireless connection is established between the communication device and the first access point. Furthermore, since the third connection information also includes the second identifier, the communication device can establish a wireless connection with the second access point that operates as a master station of the second wireless network identified by the second identifier. Specifically, when the communication device uses the third connection information and the second access point uses the second connection information, a wireless connection is established between the communication device and the second access point. In this way, when the user of the terminal device performs an operation to transmit the third connection information to the communication device, the third connection information including the first identifier and the second identifier is transmitted to the communication device, and as a result, the communication device can establish a wireless connection with the first access point or the second access point. Therefore, the workload of the user of the terminal device can be reduced.

[0009] This specification also discloses a communication device, which may include an authentication request receiving unit that receives an authentication request using a public key of the communication device from a terminal device, an authentication response transmitting unit that transmits an authentication response to the authentication request to the terminal device when the authentication request is received from the terminal device, a connection information receiving unit that receives connection information from the terminal device when the authentication response is transmitted to the terminal device, the connection information including a first identifier and a second identifier different from the first identifier, the first identifier being information for identifying a first wireless network in which a first access point operates as a master station, and the second identifier being information for identifying a second wireless network in which a second access point operates as a master station, and an establishment unit that establishes a wireless connection between the communication device and the first access point or the second access point by using the connection information when the connection information is received from the terminal device.

[0010] According to the above configuration, the communication device receives an authentication request using a public key from the terminal device, transmits an authentication response to the terminal device, and receives connection information from the terminal device. This allows the communication device to establish a wireless connection with the first access point or the second access point using the connection information including the first identifier and the second identifier. In this way, when the user of the terminal device performs an operation to transmit the connection information to the communication device, the connection information including the first identifier and the second identifier is transmitted to the communication device, and as a result, the communication device can establish a wireless connection with the first access point or the second access point. This can reduce the workload of the user of the terminal 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 other APs is shown below. [Figure 8] A sequence diagram of authentication processing with other APs is shown below. [Figure 9] A sequence diagram of configuration processing with other APs is shown below. [Figure 10] A sequence diagram of the process for Network Access with other APs is shown below. [Figure 11] A sequence diagram of the bootstrap processing with the printer is shown below. [Figure 12] A sequence diagram of authentication processing with a printer is shown. [Figure 13] A sequence diagram of the configuration process with the printer is shown below. [Figure 14] 1 shows a sequence diagram of a network access process between a printer and an AP. [Figure 15] FIG. 1 shows an explanatory diagram for illustrating an outline of a comparative example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] (Configuration of communication system 2; Figure 1) As shown in FIG. 1, the communication system 2 includes a plurality of APs (abbreviation of Access Point) 6, 7, a terminal 10, and a printer 100. In this embodiment, it is assumed that the APs 6, 7 are installed in different rooms in the same company, for example, and the printer 100 is a portable small printer. That is, the printer 100 may move and be installed near the AP 6 or near the AP 7. In this situation, in this embodiment, when the printer 100 is near the AP 6, a wireless connection based on the Wi-Fi method (hereinafter, referred to as "Wi-Fi connection") is established between the printer 100 and the AP 6, and when the printer 100 is near the AP 7, a Wi-Fi connection is established between the printer 100 and the AP 7.

[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 APs 6 and 7 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 established by the Wi-Fi Alliance. The DPP method is described in "Device Provisioning Protocol Technical Specification Version 1.0", a specification created by the Wi-Fi Alliance, and is a wireless communication method for easily establishing a Wi-Fi connection between a pair of devices (for example, the printer 100 and the AP 6 or 7) using the terminal 10.

[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 APs 6 and 7 also support the DPP method. The APs 6 and 7 are assigned MAC addresses "macap1" and "macap2", respectively. In this embodiment, the devices 6, 7, 10, and 100 execute communication according to the DPP method, thereby establishing a Wi-Fi connection between the printer 100 and the AP 6 or AP 7. In the following, for ease of understanding, the operations executed by the CPUs of the devices (e.g., CPU 32 and CPU 132) will be described with the devices (e.g., terminal 10 and printer 100) as the main subjects, rather than the CPUs as the main subjects.

[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 each of the terminal 10 and the AP 6 authenticates 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 Configuration 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 a Configuration Object for the first AP (hereinafter, the Configuration Object is simply referred to as "CO") and transmits the CO for the first AP to the AP 6. As a result, the CO for the first AP is stored in the AP 6.

[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 first 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 first terminal CO and the first AP CO.

[0028] At T25, the terminal 10 and the AP6 execute 4way-handshake communication. In at least a part of the process of the 4way-handshake communication, the terminal 10 and the AP6 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 AP6. As a result, the terminal 10 participates as a child station in the wireless network formed by the AP6. In this case, the terminal 10 stores an SSID (abbreviation of Service Set Identifier) ​​"ap6" that identifies the AP6 in the memory 34. In a modified example, SAE (abbreviation of Simultaneous Authentication of Equals, commonly known as "Dragonfly") communication may be used instead of the 4way-handshake communication.

[0029] Next, in T35, the terminal 10 executes BS of the DPP method with the AP 7. The BS is a process in which, in response to the terminal 10 photographing a QR code attached to the AP 7, the AP 7 provides the terminal 10 with information used in Auth in T40, which will be described later.

[0030] At T40, the terminal 10 uses the information already acquired at the BS at T35 to execute DPP-based Auth with the AP 7. This Auth is processing by which each of the terminal 10 and the AP 7 authenticates the other party of communication.

[0031] At T45, the terminal 10 executes DPP-based Config with the AP 7. The Config is a process for transmitting information for the AP 7 to establish a Wi-Fi connection to the AP 7. Specifically, the terminal 10 generates a CO for the second AP and transmits the CO for the second AP to the AP 7. As a result, the CO for the second AP is stored in the AP 7.

[0032] At T50, the terminal 10 executes DPP-based NA with the AP 7. The terminal 10 generates a second terminal CO in the NA and stores it in the memory 34. Then, the terminal 10 and the AP 7 share a connection key for establishing a Wi-Fi connection between the terminal 10 and the AP 7 using the second terminal CO and the second AP CO.

[0033] In T55, the terminal 10 and the AP7 execute 4way-handshake communication. In at least a part of the process of the 4way-handshake communication, the terminal 10 and the AP7 communicate encrypted information encrypted by the connection key shared in the NA of T50. If the encrypted information is successfully decrypted, a Wi-Fi connection is established between the terminal 10 and the AP7. As a result, the terminal 10 participates as a child station in the wireless network formed by the AP7. In this case, the terminal 10 stores the SSID "ap7" that identifies the AP7 in the memory 34. In a modified example, SAE communication may be used instead of the 4way-handshake communication.

[0034] Next, in T65, 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 T70, which will be described later.

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

[0036] At T75, 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.

[0037] In T80, the printer 100 and the AP6 or AP7 execute NA of the DPP method. Specifically, when the printer 100 is near the AP6, the printer 100 and the AP6 execute NA of the DPP method using the printer CO and the first AP CO. Also, when the printer 100 is near the AP7, the printer 100 and the AP7 execute NA of the DPP method using the printer CO and the second AP CO. The NA is a process for sharing a connection key between the printer 100 and the AP6 or AP7 to establish a Wi-Fi connection between the printer 100 and the AP6 or AP7.

[0038] In T85, the printer 100 and the AP6 or AP7 execute 4-way handshake communication. During at least a part of the 4-way handshake communication, the printer 100 and the AP6 or AP7 communicate encrypted information encrypted with the connection key shared in the NA of T80. If the encrypted information is successfully decrypted, a Wi-Fi connection is established between the printer 100 and the AP6 or AP7. As a result, the printer 100 participates as a slave station in the wireless network formed by the AP6 or AP7.

[0039] In the DPP method, in order to establish a Wi-Fi connection between the printer 100 and the AP6 or AP7, the user does not need to input information (e.g., SSID, password, etc.) of the wireless network in which the AP6 or AP7 operates as a master station to the printer 100. Therefore, the user can easily establish a Wi-Fi connection between the printer 100 and the AP6 or AP7.

[0040] (Bootstrapping with AP6 (BS); Figure 3) Next, with reference to Fig. 3 to Fig. 14, the details of each process executed at T5 to T20, T35 to T50, and T65 to T80 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 "macap1" 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).

[0041] 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.

[0042] 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.

[0043] In response to input of the group ID “office1”, which is an arbitrary character string designated by the user, in T108, the terminal 10 displays, in T110, a confirmation screen for confirming with the user whether or not to establish a Wi-Fi connection with the AP 6 on the display unit 14. 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.

[0044] 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 "macap1". When the process of T122 ends, the process of FIG. 3 ends.

[0045] (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.

[0046] 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.

[0047] 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 "macap1" 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.

[0048] 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. The Configurator refers to a device that transmits a CO used in the NA (e.g., T20 in FIG. 2) to the Enrollee in the Config (e.g., T15 in FIG. 2). On the other hand, the Enrollee refers to a device that receives a CO used in the NA from the Configurator in the Config. As described above, in this embodiment, the terminal 10 generates a CO for the first AP, a CO for the second AP, or a CO for the printer, and transmits it to the AP6, the AP7, 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.

[0049] At T210, the AP6 receives the AReq from the terminal 10. As described above, the AReq is transmitted to the MAC address "macap1" 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.

[0050] 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.

[0051] 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.

[0052] 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.

[0053] 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.

[0054] 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).

[0055] (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.

[0056] 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.

[0057] In T300, the terminal 10 receives 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 uses the generated private key tsk2 to generate a CO for the first AP. Specifically, the terminal 10 executes the following processes.

[0058] 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 first value by hashing a combination of the hash value HV, the group ID "office1" 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 DSap1 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 a Signed-Connector for the first AP (hereinafter, the Signed-Connector will be simply referred to as "SC") including the hash value HV, the group ID "office1", the public key APK2 of the AP6, and the electronic signature DSap1. Then, the terminal 10 generates a CO for the first AP including an SC for the first AP and the public key TPK2 of the terminal 10.

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

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

[0061] (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.

[0062] In T400, the terminal 10 generates a new public key TPK3 and private key tsk3 of the terminal 10. Next, in T402, the terminal 10 generates a CO for the first 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.

[0063] 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 "office1" 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 DSte1 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 first terminal SC including the hash value HV, the group ID "office1", the public key TPK3 of the terminal 10, and the electronic signature DSte1. The hash value HV and the group ID "office1" included in the first terminal SC are the same as the hash value HV and the group ID "office1" included in the first AP SC, respectively. The public key TPK3 and the electronic signature DSte1 included in the SC for the first terminal are different from the public key APK2 and the electronic signature DSap1 included in the SC for the first AP, respectively. Then, the terminal 10 generates a CO for the first terminal including the SC for the first terminal and the public key TPK2 of the terminal 10 stored in the memory 34 at T302 in FIG.

[0064] At T410, the terminal 10 transmits a DPP Peer Discovery Request (hereinafter, simply referred to as "DReq") including an SC for the first 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.

[0065] In response to receiving the DReq from the terminal 10 in T410, the AP6 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, “office1”, and the public key TPK3). Specifically, in T412, the AP6 first executes a first AP determination process regarding whether or not the hash value HV and the group ID “office1” in the SC for the first terminal match the hash value HV and the group ID “office1” in the SC for the first AP, respectively. In the case of FIG. 6, the AP6 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 terminal SC and the SC for the first AP have been generated by the same device (i.e., the terminal 10). Therefore, the AP6 also determines that the authentication of the source of the SC for the first terminal (i.e., the terminal 10) has been successful. Furthermore, the AP6 decrypts the electronic signature DSte1 in the SC for the first terminal by using the public key TPK2 of the terminal 10 included in the CO for the first AP. In the case of FIG. 6, the decryption of the electronic signature DSte1 is successful, so the AP6 executes a second AP determination process regarding whether or not the second value obtained by decrypting the electronic signature DSte1 matches the value obtained by hashing each piece of information in the SC for the first terminal (i.e., the hash value HV, "office1", 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 first terminal has not been tampered with by a third party after the CO for the first terminal has been 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 the decryption of the electronic signature DSte1 fails, or if the second AP judgment process determines that there is no match, AP6 determines that the authentication has failed and does not execute processing after T414.

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

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

[0068] 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, "office1", 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 "office1" in the SC for the first AP match the hash value HV and the group ID "office1" in the SC for the first 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 succeeded. Note that determining that the first TE determination process "matches" means that the first terminal SC and the first AP SC were generated by the same device (i.e., the terminal 10). Therefore, the terminal 10 also judges that the authentication of the generator of the first terminal SC (i.e., the terminal 10) has been successful. Furthermore, the terminal 10 decrypts the electronic signature DSap1 in the SC for the first AP using the public key TPK2 of the terminal 10 included in the CO for the first terminal. In the case of FIG. 6, the decryption of the electronic signature DSap1 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 DSap1 matches the value obtained by hashing each piece of information in the SC for the first AP (i.e., the hash value HV, "office1", and the public key APK2). In the case of FIG. 6, the terminal 10 judges that the first value matches in the second TE determination process, so that the authentication of each piece of information in the DRes has been successful, and executes the processes from T424 onward. On the other hand, if the first TE judgment process determines that there is no match, if the decryption of the electronic signature DSap1 fails, or if the second TE judgment process determines that there is no match, the terminal 10 determines that the authentication has failed and does not execute the processing after T424.

[0069] 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 the first 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.

[0070] As described above, after the connection key CK1 is shared between the terminal 10 and the AP6, at T25 in FIG. 2, the terminal 10 and the AP6 execute 4-way handshake communication using the connection key CK1. As a result, a Wi-Fi connection is established between the terminal 10 and the AP6. As a result, the terminal 10 participates as a child station in the wireless network in which the AP6 operates as a parent station and which is identified by the group ID "office1". When the Wi-Fi connection with the AP6 is established, the terminal 10 associates the SSID "ap6" of the AP6 with the first terminal CO and stores it in the memory 34.

[0071] (Bootstrapping with AP7 (BS); Figure 7) Next, with reference to Fig. 7, the process of the BS executed between the terminal 10 and the AP7 at T35 in Fig. 2 will be described. In the initial state of Fig. 7, the terminal 10 stores the public key TPK2 and secret key tsk2 of the terminal 10 (see T302 in Fig. 5), the public key TPK3 and secret key tsk2 (see T400 in Fig. 6), and the CO for the first terminal (see T402) in the memory 34. The AP7 also stores the public key APK3 and secret key ask3 of the AP7 in advance. A QR code obtained by encoding the public key APK3 of the AP7, the channel list L2 of the AP7, and the MAC address "macap2" of the AP7 is attached to the housing of the AP7. The channel list L2 is a list of a plurality of communication channels (i.e., a plurality of communication channels available to the AP7) to be used in Auth (see T40 in Fig. 2).

[0072] T500 is the same as T100 in FIG. 3. Each of the subsequent processes executed by the terminal 10 is realized by the application 38. In T502, the terminal 10 displays a selection screen on the display unit 14. Specifically, the terminal 10 first acquires the group ID "office1" included in the SC for the first terminal in the CO for the first terminal stored in the memory 34. In this case, the terminal 10 displays a selection screen on the display unit 14 including an "office1" button having the same character string as the acquired group ID "office1" in addition to a "New" button.

[0073] T504 to T522 are similar to T104 to T122 in Fig. 3, except that the communication target is AP7, and that the group ID "office2", the public key TPK3 of AP7, the channel list L2, and the MAC address "macap2" are used. When the process of T522 ends, the process of Fig. 7 ends.

[0074] (Authentication with AP7; Figure 8) Next, the Auth process executed between the terminal 10 and the AP 7 at T40 in FIG. 2 will be described with reference to FIG.

[0075] In T600, the terminal 10 generates a new public key TPK4 and secret key tsk4 of the terminal 10, and in T601, generates a shared key SK3 according to ECDH using the generated secret key tsk4 and the public key APK3 of AP7 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.

[0076] In T610, the terminal 10 transmits AReq to the AP7 via the Wi-Fi I / F 16, with the MAC address "macap2" acquired in T522 of Fig. 7 as the destination. Here, the terminal 10 repeatedly transmits the AReq to the AP7 by sequentially using a plurality of communication channels in the channel list L2 acquired in T722 of Fig. 7. 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.

[0077] At T610, the AP7 receives the AReq from the terminal 10. Since the AReq is transmitted to the MAC address "macap2" of the AP7 as the transmission destination, the AP7 can properly receive the AReq from the terminal 10. Furthermore, the AReq of T610 is transmitted by sequentially using a plurality of communication channels in the channel list L2. Therefore, the AP7 can properly receive the AReq from the terminal 10.

[0078] Next, the AP6 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 AP7 generates a shared key SK3 using the public key TPK4 and the secret key ask3 in T612, and decrypts the encrypted data ED3 in the AReq using the shared key SK3 in T614. In this case, the AP7 determines that the authentication has been successful, and executes the processes from T616 onwards.

[0079] In T616, AP7 generates a new public key APK4 and secret key ask4 of AP6. In a modified example, AP7 may store the public key APK4 and secret key ask4 in advance. 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, AP7 generates a shared key SK4 using the public key TPK4 and the secret key ask4, and in T618, encrypts the random values ​​RV3 and RV4 using the shared key SK4 to generate encrypted data ED4.

[0080] In T620, the AP 7 transmits an ARes to the terminal 10. The ARes includes the public key APK4 of the AP 7 generated in T616, the encrypted data ED4 generated in T618, and the capability of the AP 7. The capability includes a value indicating that the AP 7 can operate only as an Enrollee.

[0081] T622 to T634 are similar to T222 to T234 in Fig. 4, except that the communication target is AP7 and the data used (key, encrypted data, etc.) are different. As a result, the terminal 10 decides to operate as a Configurator, and the AP7 decides to operate as an Enrollee. When the processing of T634 ends, the processing of Fig. 8 ends. Note that when the processing of Fig. 8 ends, the terminal 10 discards the public key TPK4 and the private key tsk4 (i.e., deletes them from the memory 34).

[0082] (Configuration with AP7; Figure 9) Next, the Config process executed between the terminal 10 and the AP 7 at T45 in FIG. 2 will be described with reference to FIG.

[0083] T700 is similar to T300 in Fig. 5 except that the communication target is AP7. In T702, the terminal 10 acquires a public key TPK2 and a private key tsk2 from the memory 34. Specifically, the terminal 10 identifies a first terminal CO stored in the memory 34, and acquires the public key TPK2 included in the first terminal CO. Then, the terminal 10 acquires the private key tsk2 corresponding to the acquired public key TPK2.

[0084] In T704, the terminal 10 generates a CO for the second AP. T704 is similar to T304 in FIG. 5 except that the data (key, etc.) used is different. The CO for the second AP includes an SC for the second AP and a public key TPK2 acquired in T702. The public key TPK2 included in the CO for the second AP is the same as the public key TPK2 included in the CO for the first AP. The SC for the second AP includes a hash value HV, a group ID "office2" input in T508 in FIG. 7, a public key APK4 of AP7, and an electronic signature DSap2. The electronic signature DSap2 is information obtained by encrypting a third value obtained by hashing a combination of the hash value HV, the group ID "office2", and the public key APK4, with a private key tsk2 acquired in T702.

[0085] T710 and T712 are similar to T310 and T312 in Fig. 5, except that the communication target is AP7 and the CO for the second AP is used. When the process of T712 ends, the process of Fig. 9 ends.

[0086] (Network Access (NA) with AP7; Figure 10) Next, the NA process executed between the terminal 10 and the AP 7 at T50 in FIG. 2 will be described with reference to FIG.

[0087] In T800, the terminal 10 generates a new public key TPK5 and a secret key tsk5 of the terminal 10. Next, in T802, the terminal 10 generates a second terminal CO. T802 is similar to T402 of FIG. 6 except that the data (key, etc.) used is different. The second terminal CO includes a second terminal SC and a public key TPK2 acquired in T702 of FIG. 9. The second terminal SC includes a hash value HV, a group ID "office2", a public key TPK5 already generated for the terminal 10, and an electronic signature DSte2. The electronic signature DSte2 is information obtained by encrypting a fourth value obtained by hashing a combination of the hash value HV, the group ID "office2", and the public key TPK5, using the secret key tsk2 acquired in T702.

[0088] T810 is the same as T410 in FIG. 6, except that the communication target is AP7 and the SC for the second terminal is used. In T812, AP7 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, “office2”, and the public key TPK5). T812 is the same as T412 in FIG. 6, except that the executing subject is AP7 and the data (key, etc.) used is different. That is, AP7 determines that the hash value HV and the group ID “office2” in the SC for the second terminal match the hash value HV and the group ID “office2” in the SC for the second AP, respectively (that is, it determines that the authentication of the source of the DReq (i.e., the terminal 10) has been successful). In addition, AP7 decrypts the electronic signature DSte2 in the SC for the second terminal using the public key TPK2 of terminal 10 included in the CO for the second AP, and determines that the fourth value obtained thereby matches the value obtained by hashing each piece of information in the SC for the second terminal (i.e., the hash value HV, ``office2'', and the public key TPK5) (i.e., it determines that authentication of each piece of information in DReq has been successful).

[0089] T814 and T820 are similar to T414 and T420 in Fig. 6, except that the communication target is AP7, and that the private key ask4, connection key CK2, and SC for the second AP of AP7 are used. In response to receiving DRes from AP7 via Wi-Fi I / F 16 in T820, the terminal 10 executes the process of T822 for authenticating the source of DRes (i.e., AP7) and each piece of information in DRes (i.e., hash value HV, "office2", and public key APK4). T822 is similar to T422 in Fig. 6, except that the communication target is AP7, and that the data (keys, etc.) used are different. That is, the terminal 10 determines that the hash value HV and group ID "office2" in the SC for the second AP match the hash value HV and group ID "office2" in the SC for the second terminal, respectively (that is, it determines that authentication of the sender of the DRes (i.e., AP7) has been successful). The terminal 10 also uses the public key TPK2 of the terminal 10 included in the CO for the second terminal to decrypt the electronic signature DSap2 in the SC for the second AP, and determines that the third value obtained thereby matches the value obtained by hashing each piece of information in the SC for the second AP (i.e., the hash value HV, "office2", and public key APK4) (that is, it determines that authentication of each piece of information in the DRes has been successful).

[0090] T824 is the same as T424 in FIG. 6, except that the data (key, etc.) used is different. When the processing of T824 ends, the processing of FIG. 10 ends. As described above, after the connection key CK2 is shared between the terminal 10 and the AP7, the terminal 10 and the AP7 execute 4way-handshake communication using the connection key CK2 at T55 in FIG. 2. As a result, a Wi-Fi connection is established between the terminal 10 and the AP7. As a result, the terminal 10 participates as a child station in the wireless network in which the AP7 operates as a parent station and which is identified by the group ID "office2". In this case, the terminal 10 associates the SSID "ap7" of the AP7 with the second terminal CO and stores it in the memory 34.

[0091] (Bootstrapping (BS) with the printer 100; Figure 11) Next, with reference to Fig. 11, the process of BS executed between the terminal 10 and the printer 100 at T65 in Fig. 2 will be described. In the initial state of Fig. 11, the terminal 10 stores in the memory 34 the public key TPK2 and the secret key tsk2 of the terminal 10 (see T302 in Fig. 5), the public key TPK3 and the secret key tsk3 of the terminal 10 (see T400 in Fig. 6), the first terminal CO (see T402), the public key TPK5 and the secret key tsk5 of the terminal 10 (see T800 in Fig. 10), and the second terminal CO (see T802 in Fig. 10). In addition, the printer 100 stores in advance the public key PPK1 and the secret key psk1 of the printer 100 in the memory 134.

[0092] T900 is the same as T100 in FIG. 3. In T902, the terminal 10 displays a selection screen on the display unit 14. Specifically, the terminal 10 first acquires a group ID "office1" included in a first terminal SC in a first terminal CO stored in the memory 34. The terminal 10 also acquires a group ID "office2" included in a second terminal SC in a second terminal CO stored in the memory 34. Then, the terminal 10 displays a selection screen on the display unit 14, including an "office1" button having the same character string as the acquired group ID "office1" and an "office2" button having the same character string as the acquired group ID "office2", in addition to the "New" button.

[0093] When the user desires to establish a Wi-Fi connection between the printer 100 and AP6 or AP7, the user selects the "office1" button and the "office2" button in the selection screen in T904. In this case, the terminal 10 displays on the display unit 14 in T906 an instruction screen including a message indicating that a QR code should be photographed.

[0094] In response to a QR code display operation for displaying a QR code being executed by the user in T910, the printer 100 displays a QR code on the display unit 114 in T912. The QR code is a code image obtained by encoding a public key PPK1 pre-stored in the memory 134, a channel list L3 pre-stored in the memory 134, and the MAC address “macpr” of the printer 100. The channel list L3 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 T70 in FIG. 2). The QR code may be generated by the printer 100 in T912, or may be pre-stored in the memory 134 at the time of shipment of the printer 100. In a modified example, the QR code may be affixed to the housing of the printer 100.

[0095] In T920, the terminal 10 uses the camera 15 to capture an image of the QR code displayed on the printer 100. Then, in T922, the terminal 10 decodes the captured QR code and acquires the public key PPK1, the channel list L3, and the MAC address "macpr." When the process of T922 ends, the process of FIG. 11 ends.

[0096] (Authentication with the printer 100; Figure 12) Next, the Auth process executed between the terminal 10 and the printer 100 in T70 of FIG. 2 will be described with reference to FIG.

[0097] The terminal 10 generates, in T1000, a new public key TPK6 and secret key tsk6 of the terminal 10, and generates, in T1001, a shared key SK5 according to ECDH using the generated secret key tsk6 and the public key PPK1 of the printer 100 acquired in T922 of Fig. 11. Then, in T1002, the terminal 10 encrypts a random value RV5 using the generated shared key SK5 to generate encrypted data ED5.

[0098] In T1010, the terminal 10 transmits AReq to the printer 100 via the Wi-Fi I / F 16, with the MAC address "macpr" acquired in T922 of Fig. 11 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 L3 acquired in T922. The AReq includes the public key TPK6 of the terminal 10 generated in T1000, the encrypted data ED5 generated in T1002, and the capability of the terminal 10. The capability includes a value indicating that the terminal 10 can operate only as a configurator.

[0099] At T1010, 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 L3 (i.e., a plurality of communication channels available to the printer 100), the printer 100 can receive the AReq appropriately.

[0100] Next, the printer 100 executes the processes of T1012 and T1014 for authenticating the sender of the AReq (i.e., the terminal 10). T1012 and T1014 are similar to T212 and T214 in FIG. 4, except that the executing subject is the printer 100 and the data (key, encrypted data, etc.) used are different. That is, the printer 100 generates a shared key SK5 using the public key TPK6 and the private key psk1 in T1012, and decrypts the encrypted data ED5 in the AReq using the shared key SK5 in T1014. In this case, the printer 100 determines that the authentication has been successful, and executes the processes from T1016 onwards.

[0101] In T1016, 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. T1017 and T1018 executed subsequently are similar to T217 and T218 in FIG. 4, except that the execution subject is the printer 100 and the data (key, encrypted data, etc.) used are different. That is, in T1017, the printer 100 generates a shared key SK6 using the public key TPK6 and the secret key psk2, and in T1018, the printer 100 encrypts the random values ​​RV5 and RV6 using the shared key SK6 to generate encrypted data ED6.

[0102] In T1020, 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 T1016, the encrypted data ED6 generated in T1018, and the capability of the printer 100. The capability includes a value indicating that the printer 100 can operate only as an Enrollee.

[0103] T1022 to T1034 are similar to T222 to T234 in Fig. 4, except that the communication target is the printer 100 and the data used (key, encrypted data, etc.) are different. As a result, the terminal 10 decides to operate as a Configurator, and the printer 100 decides to operate as an Enrollee. When the processing of T1034 ends, the processing of Fig. 12 ends. Note that when the processing of Fig. 12 ends, the terminal 10 discards the public key TPK6 and the private key tsk6 (i.e., deletes them from the memory 34).

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

[0105] In T1100, 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.

[0106] In T1100, the terminal 10 receives CReq from the printer 100 via the Wi-Fi I / F 16. In this case, in T1102, the terminal 10 acquires the public key TPK2 and the secret key tsk2 of the terminal 10 from the memory 34. Specifically, the terminal 10 acquires from the memory 34 a first terminal CO including a group ID "office1" having the same character string as "office1" selected in T904 of FIG. 11, and a second terminal CO including a group ID "office2" having the same character string as "office2" selected in T904. As shown in the initial state of FIG. 11, the first and second terminal COs include the public key TPK2. Therefore, the terminal 10 can acquire the public key TPK2 included in the first and second terminal COs. Then, the terminal 10 acquires the secret key tsk2 corresponding to the acquired public key TPK2.

[0107] In T1104, the terminal 10 generates a printer CO. Specifically, the terminal 10 executes the following processes. That is, 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 fifth value by hashing a combination of the hash value HV, two group IDs "office1" and "office2", and the public key PPK2 of the printer 100 in the ARes of T1020 in FIG. 12. Then, the terminal 10 generates a digital signature DSpr by encrypting the generated fifth value using the private key tsk2 of the terminal 10 according to ECDSA. As a result, the terminal 10 can generate a printer SC including the hash value HV, the two group IDs "office1" and "office2", the public key PPK2 of the printer 100, and the digital signature DSpr. The terminal 10 also acquires the SSID "ap6" of the AP6 stored in association with the first terminal CO including the group ID "office1" from the memory 34, and acquires the SSID "ap7" of the AP7 stored in association with the second terminal CO including the group ID "office2". The terminal 10 then generates one printer CO including the printer SC, the public key TPK2 of the terminal 10, and two SSIDs "ap6" and "ap7". This reduces the processing load of the terminal 10 compared to a configuration in which the terminal 10 generates a first printer CO including the group ID "office1" and a second printer CO including the group ID "office2". In addition, the above configuration may be adopted in a modified example. The public key TPK2 included in the printer CO is the same as the public key TPK2 included in the first and second AP COs.

[0108] In T1110, the terminal 10 transmits the CRes including the printer CO generated in T1104 to the printer 100 via the Wi-Fi I / F 16.

[0109] In T1110, the printer 100 receives CRes from the terminal 10 via the Wi-Fi I / F 116. In this case, in T1112, the printer 100 stores the printer CO in the CRes in the memory 134. When the process of T1112 ends, the process of FIG. 13 ends.

[0110] (Network Access (NA) between the printer 100 and the AP6; FIG. 14) Next, referring to Fig. 14, the NA process of T80 in Fig. 2 executed between the printer 100 and the AP 6 when the printer 100 is located near the AP 6 will be described. In the initial state in Fig. 14, the printer 100 stores a public key PPK1 and a private key psk1, a public key PPK2 and a private key psk2, and a CO for the printer in the memory 134. The AP 6 stores a public key APK1 and a private key ask1, a public key APK2 and a private key ask2, and a CO for the first AP.

[0111] In T1200, the printer 100 broadcasts a Probe Request (hereinafter, simply referred to as “PReq”) via the Wi-Fi I / F 116. The PReq is a signal for searching for peripheral devices of the printer 100.

[0112] In response to transmitting the PReq by broadcast, the printer 100 receives a Probe Response (hereinafter, simply referred to as "PRes") from each of a plurality of devices present around the printer 100. When the printer 100 receives a PRes including the SSID "ap6" from the AP6 via the Wi-Fi I / F 116 in T1202, the printer 100 determines that the SSID "ap6" included in the printer CO included in the memory 134 matches the SSID "ap6" included in the received PRes. This allows the printer 100 to determine that the device to communicate with is the AP6, and in T1210, it can transmit a DReq including the printer SC to the AP6 via the Wi-Fi I / F 116.

[0113] In response to receiving the DReq from the printer 100 in T1210, the AP6 executes processing of T1212 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, "office1", and the public key PPK2). T1212 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 "office1" in the SC for the printer match the hash value HV and the group ID "office1" in the SC for the first 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 the first AP, and determines that the fifth 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, "office1", and the public key PPK2) (i.e., it determines that authentication of each piece of information in the DReq has been successful).

[0114] T1214 and T1220 are similar to T414 and T420 in Fig. 6, except that the communication target is the printer 100 and the data (key, etc.) used are different. In response to receiving DRes from AP6 via the Wi-Fi I / F 116 in T1220, the printer 100 executes the process of T1222 for authenticating the sender of DRes (i.e., AP6) and each piece of information in DRes (i.e., hash value HV, "office1", and public key APK2). T1222 is similar to T422 in Fig. 6, except that the execution subject is the printer 100 and the data (key, etc.) used are different. That is, the printer 100 determines that the hash value HV and group ID "office1" in the SC for the first AP match the hash value HV and group ID "office1" in the SC for the printer, respectively (that is, it determines that authentication of the sender of the DRes (i.e., AP6) has been successful). The printer 100 decrypts the electronic signature DSap1 in the SC for the first AP using the public key TPK2 of the terminal 10 included in the CO for the printer, and determines that the first value obtained thereby matches the value obtained by hashing each piece of information in the SC for the first AP (i.e., the hash value HV, "office1", and public key APK2) (that is, it determines that authentication of each piece of information in the DRes has been successful).

[0115] In T1224, the printer 100 generates a connection key CK3 using the private key psk2 of the printer 100 and the public key APK2 of the AP6 in the SC for the first AP according to ECDH. Here, the connection key CK3 generated by the AP6 in T1214 is the same as the connection key CK3 generated by the printer 100 in T1224. As a result, the connection key CK3 for establishing a Wi-Fi connection is shared between the printer 100 and the AP6. When T1224 ends, the processing of FIG. 14 ends.

[0116] As described above, after the connection key CK3 is shared between the printer 100 and the AP 6, at T85 in Fig. 2, the printer 100 and the AP 6 execute 4-way handshake communication using the connection key CK3. As a result, a Wi-Fi connection is established between the printer 100 and the AP 6. As a result, the printer 100 participates as a child station in the wireless network in which the AP 6 operates as a parent station and which is identified by the group ID "office1".

[0117] Although not shown, when the printer 100 is near the AP7, the printer 100 executes the same processes as T1200 to T1224, except that the communication target is the AP7, and the SSID "ap7" of the AP7 and the SC for the second AP are used, and a Wi-Fi connection is established between the printer 100 and the AP7. As a result, the printer 100 participates as a child station in the wireless network in which the AP7 operates as the parent station and which is identified by the group ID "office2".

[0118] (Comparative example: FIG. 15) A comparative example will now be described with reference to Fig. 15. In the comparative example, the terminal 10 transmits a printer CO including one group ID to the printer 100. T1305 to T1355 are the same as T5 to T55 in Fig. 2. That is, the terminal 10 transmits a first AP CO including the group ID "office1" to the AP6 at T1315, and transmits a second AP CO including the group ID "office2" to the AP7 at T1345.

[0119] Next, the terminal 10 executes a process for transmitting a first printer CO for establishing a Wi-Fi connection between the printer 100 and the AP 6. That is, the terminal 10 executes BS with the printer 100 at T1360, executes Auth with the printer 100 at T1365, and executes Config with the printer 100 at T1370. In the Config, the terminal 10 generates a first printer CO including one group ID "office1" and transmits the first printer CO to the printer 100. As a result, the first printer CO is stored in the printer 100.

[0120] The terminal 10 also executes a process for transmitting a second printer CO for establishing a Wi-Fi connection between the printer 100 and the AP 7. That is, the terminal 10 executes a second BS with the printer 100 at T1375, executes a second Auth with the printer 100 at T1380, and executes a second Config with the printer 100 at T1385. In the Config, the terminal 10 generates a second printer CO including one group ID "office2" and transmits the second printer CO to the printer 100. As a result, the second printer CO is stored in the printer 100.

[0121] In T1390, the printer 100 and the AP 6 or AP 7 execute NA of the DPP method. Specifically, when the printer 100 is near the AP 6, the printer 100 and the AP 6 execute NA of the DPP method using the first printer CO and the first AP CO. Also, when the printer 100 is near the AP 7, the printer 100 and the AP 7 execute NA of the DPP method using the second printer CO and the second AP CO. As a result, the connection key is shared between the printer 100 and the AP 6 or AP 7, so that the printer 100 and the AP 6 or AP 7 execute 4way-handshake communication in T1395 to establish a Wi-Fi connection between the printer 100 and the AP 6 or AP 7. When the process of T1395 ends, the process of FIG. 15 ends.

[0122] (Effects of this embodiment) As described above, in the comparative example, the terminal 10 executes each of BS, Auth, and Config twice between the terminal 10 and the printer 100 (T1360 to T1385 in FIG. 15) and transmits two printer COs to the printer 100. That is, the user of the terminal 10 needs to execute an operation for transmitting the printer CO to the printer 100 (for example, an operation of photographing the QR code of the printer 100 (T920 in FIG. 11)) twice. In contrast, in the present embodiment, the terminal 10 executes each of BS, Auth, and Config only once between the terminal 10 and the printer 100 (T65 to T75 in FIG. 2) and transmits one printer CO including two group IDs "office1" and "office2" to the printer 100. Since the printer CO includes the group ID "office1", the printer 100 can establish a Wi-Fi connection with the AP6 that operates as a master station of the wireless network identified by the group ID "office1". Specifically, when the printer 100 uses the printer CO and the AP 6 uses the first AP CO to execute NA between the printer 100 and the AP 6 (T80 in FIG. 2), a Wi-Fi connection is established between the printer and the AP 6 (T85). In addition, since the printer CO also includes the group ID "office2", the printer 100 can establish a wireless connection with the AP 7 that operates as the master station of the wireless network identified by the group ID "office2". Specifically, when the printer 100 uses the printer CO and the AP 7 uses the second AP CO to execute NA between the printer 100 and the AP 7 (T80), a Wi-Fi connection is established between the printer 100 and the AP 7 (T85). In this way, if the user of the terminal 10 performs the operation to send one printer CO to the printer 100 only once, the printer CO including the two group IDs "office1" and "office2" is sent to the printer 100, and as a result, the printer 100 can establish a Wi-Fi connection with the AP6 or AP7. Therefore, compared to the comparative example, the workload of the user of the terminal 10 can be reduced.

[0123] As described above, the terminal 10 displays a selection screen on the display unit 14 (T902 in FIG. 11), and when the "office1" button and the "office2" button are selected by the user on the selection screen (T904), the terminal 10 generates a printer CO including two group IDs "office1" and "office2" having the same character string as the selected character string (T1104 in FIG. 13), and transmits the printer CO to the printer 100 (T1110). Therefore, Wi-Fi can be established between the AP desired by the user and the printer 100.

[0124] As described above, the first and second AP COs and the printer CO include the same public key TPK2 of the terminal 10. Here, for example, assume a configuration in which the terminal 10 transmits the second AP CO including a public key (for example, TPK10) different from the public key TPK2 to the AP7. In this case, the terminal 10 generates the second AP SC using a private key (for example, tsk10) corresponding to the public key TPK10. Furthermore, in the Config with the printer 100, the terminal 10 generates the first printer SC including the group ID "office1" using the private key tsk2, and generates the second printer SC including the group ID "office2" using the private key tsk10. Then, the terminal 10 generates the printer CO including the first printer SC, the second printer SC, the public key TPK2, the public key TPK10, and the SSIDs "ap6" and "ap7", and transmits the printer CO to the printer 100. Therefore, in order to generate a CO for the printer, the terminal 10 must store in memory 34 public key TPK10 and private key tsk10 in addition to public keys TPK2 and tsk2, and must generate two SCs for the printer. In contrast, in this embodiment, in order to generate a CO for the printer, the terminal 10 only needs to store public key TPK2 and private key tsk2 in memory 34, and only needs to generate one SC for the printer. Therefore, in this embodiment, the processing load on the terminal 10 can be reduced compared to the above configuration. Note that the above configuration may be adopted in the modified example.

[0125] (Correspondence) The terminal 10, the AP6, the AP7, and the printer 100 are examples of a "terminal device", a "first access point", a "second access point", and a "communication device", respectively. The public key APK1 of the AP6, the public key APK3 of the AP7, and the public key PPK1 of the printer 100 are examples of a "first public key", a "second public key", and a "third public key", respectively. The AReq of T210 in FIG. 4, the AReq of T610 in FIG. 8, and the AReq of T1010 in FIG. 12 are examples of a "first authentication request", a "second authentication request", and a "third authentication request", respectively. The ARes of T220, the ARes of T620, and the ARes of T1020 are examples of a "first authentication response", a "second authentication response", and a "third authentication response", respectively. The CO for the first AP, the CO for the second AP, and the CO for the printer are examples of a "first connection information", a "second connection information", and a "third connection information", respectively. The group ID "office1" and the group ID "office2" are examples of a "first identifier" and a "second identifier", respectively.

[0126] The public key TPK2 of the terminal 10 is an example of the "same public key of the terminal device". The SSID "ap6" of the AP6 and the SSID "ap7" of the AP7 are examples of the "first SSID" and the "second SSID", respectively. The PReq of T1200 in FIG. 14 is an example of the "device search signal".

[0127] The process of T122 in FIG. 3, the process of T210 and the process of T220 in FIG. 4, and the process of T310 in FIG. 5 are examples of processes executed by the "first acquisition unit", the "first authentication request transmission unit", the "first authentication response reception unit", and the "first connection information transmission unit", respectively. The process of T522 in FIG. 7, the process of T610 and the process of T620 in FIG. 8, and the process of T710 in FIG. 9 are examples of processes executed by the "second acquisition unit", the "second authentication request transmission unit", the "second authentication response reception unit", and the "second connection information transmission unit", respectively. The process of T922 in FIG. 11, the process of T1010 and the process of T1020 in FIG. 12, and the process of T1110 in FIG. 13 are examples of processes executed by the "third acquisition unit", the "third authentication request transmission unit", the "third authentication response reception unit", and the "third connection information transmission unit", respectively.

[0128] The process of T1010 and T1020 in Fig. 12 and the process of T1110 in Fig. 13 are examples of processes executed by an "authentication request receiving unit", an "authentication response transmitting unit", and a "connection information receiving unit" of the "communication device", respectively. The processes of T80 and T85 in Fig. 2 are examples of processes executed by an "establishing unit" of the "communication device".

[0129] 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.

[0130] (Modification 1) In the above embodiment, the terminal 10 executes BS, Auth, Config, and NA once each with the AP6 and AP7, but this is not limited, and the terminal 10 may execute BS, Auth, Config, and NA twice with one of the APs (e.g., AP6). In wireless communication according to the Wi-Fi system, radio waves (i.e., carrier waves) of one of two frequency bands, 2.4 GHz and 5.0 GHz, are used. In this modification, the AP6 supports two frequency bands (i.e., 2.4 GHz and 5.0 GHz), and two types of QR codes (i.e., for 2.4 GHz and for 5.0 GHz) are attached to the housing of the AP6. The terminal 10 executes BS, Auth, Config, and NA twice with the AP6 using the two types of QR codes of the AP6, and then executes BS, Auth, and Config with the printer 100. As a result, the printer 100 can establish a Wi-Fi connection with the AP6 using a frequency band supported by the printer 100 (i.e., 2.4 GHz or 5.0 GHz). That is, the "second access point" may be the same as the "first access point."

[0131] (Modification 2) The first AP CO and the second AP CO may include the same group ID (for example, "office"), and the printer CO may include one group ID "office". Even with this modification, when the printer 100 is near the AP 6, the printer 100 transmits the PReq by broadcast at T1200 in FIG. 14, receives the PRes including the SSID "ap6" from the AP 6 at T1202, and can execute the same processes as T1210 to T1224. When the printer 100 is near the AP 7, the printer 100 transmits the PReq by broadcast, receives the PRes including the SSID "ap7" from the AP 7, and can execute the same processes as T1210 to T1224 except that the communication target is the AP 7. In this modification, the SSID "ap6" and the SSID "ap7" are examples of the "first identifier" and the "second identifier", respectively.

[0132] (Variation 3) In the above embodiment, the terminal 10 may execute the processes of T5 to T55 with the AP6 or AP7 after executing the processes of T65 to T75 in Fig. 2 with the printer 100. That is, the "third acquisition unit" may acquire the third public key after the first connection information is transmitted to the first access point and before the second connection information is transmitted to the second access point.

[0133] (Modification 4) The processes of T902 and T904 in Fig. 11 may be omitted. In this modification, the "display control unit" can be omitted.

[0134] (Variation 5) In the above embodiment, the terminal 10 displays a selection screen at the BS (T102 in FIG. 3, T502 in FIG. 7, and T902 in FIG. 11). However, this is not limited to the above, and the selection screen may be displayed, for example, at Auth or Config. In other words, the "selection screen" may be displayed after the third public key is obtained at Bootstrapping.

[0135] (Variation 6) The printer CO may not include the two SSIDs "ap6" and "ap7". In this case, the printer 100 may omit the processes of T1200 and T1202 in FIG. 14 and transmit the DReq by broadcast, for example. In other words, the "connection information" may not include the "first SSID" and the "second SSID". Also, in this embodiment, the "search signal transmission unit" may be omitted.

[0136] (Variation 7) 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, or a server.

[0137] (Variation 8) 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 (DSap1 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.).

[0138] (Modification 9) For example, the QR code displayed on the printer 100 in T912 of Fig. 11 does not have to be an encoded version of the channel list L3 and the MAC address "macpr". In other words, the QR code of the printer 100 only needs to 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 T910, the printer 100 monitors whether one of all wireless channels available to the printer 100 receives the used AReq. Also, in T1010 of Fig. 12, the terminal 10 sequentially transmits the AReq by broadcast using all wireless channels available to the terminal 10 in sequence.

[0139] (Variation 10) The "Device Provisioning Protocol Technical Specification Version 1.0," a standard 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 T912 in Fig. 11, the printer 100 may display on the display unit 114 an image including a shared code, key, phrase, and word obtained by encoding the public key PPK1, the channel list L3, and the MAC address "macpr."

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

[0141] 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 features of the technology disclosed in this specification are listed below. (Item 1) A computer program for a terminal device, comprising: The terminal device computer is composed of the following parts: a first acquisition unit that acquires a first public key that is a public key of a first access point; a first authentication request transmission unit that transmits a first authentication request using the first public key to the first access point when the first public key is acquired; a first authentication response receiving unit that receives, when the first authentication request is transmitted to the first access point, a first authentication response that is a response to the first authentication request from the first access point; a first connection information transmission unit that transmits first connection information to the first access point when the first authentication response is received from the first access point, the first connection information being information for establishing a wireless connection between a communication device and the first access point; a second acquisition unit that acquires a second public key that is a public key of a second access point; a second authentication request transmission unit that transmits a second authentication request using the second public key to the second access point when the second public key is acquired; a second authentication response receiving unit that receives, when the second authentication request is transmitted to the second access point, a second authentication response that is a response to the second authentication request from the second access point; a second connection information transmission unit that transmits second connection information to the second access point when the second authentication response is received from the second access point, the second connection information being information for establishing a wireless connection between the communication device and the second access point; a third acquisition unit that acquires a third public key that is a public key of the communication device; a third authentication request transmission unit that transmits a third authentication request using the third public key to the communication device when the third public key is acquired; a third authentication response receiving unit that receives, when the third authentication request is transmitted to the communication device, a third authentication response that is a response to the third authentication request from the communication device; a third connection information transmission unit that transmits third connection information to the communication device when the third authentication response is received from the communication device, the third connection information including a first identifier and a second identifier different from the first identifier, the first identifier being information for identifying a first wireless network in which the first access point operates as a master station, and the second identifier being information for identifying a second wireless network in which the second access point operates as a master station; and A computer program that functions as a (Item 2) 2. The computer program product of claim 1, wherein the third acquisition unit acquires the third public key after the first connection information is transmitted to the first access point and the second connection information is transmitted to the second access point. (Item 3) the first connection information includes the first identifier; the second connection information includes the second identifier; The computer program further causes the computer to a first storage control unit that stores the first identifier in a memory of the terminal device when the first connection information including the first identifier is transmitted to the first access point; a second storage control unit that stores the second identifier in the memory when the second connection information including the second identifier is transmitted to the second access point; a display control unit that causes a selection screen for selecting one or more identifiers from a plurality of identifiers including the first identifier and the second identifier in the memory to be displayed on a display unit of the terminal device after the first connection information is transmitted to the first access point and the second connection information is transmitted to the second access point, The computer program of item 2, wherein the third connection information sending unit sends the third connection information including the selected first identifier and the selected second identifier to the communication device when the first identifier and the second identifier are selected from the multiple identifiers on the selection screen and the third authentication response is received from the communication device. (Item 4) The computer program according to item 3, wherein the display control unit causes the selection screen to be displayed on the display unit before the third public key is acquired in bootstrapping according to a DPP (Device Provisioning Protocol) method. (Item 5) 5. The computer program product of claim 1, wherein the second access point is different from the first access point. (Item 6) 6. The computer program of claim 1, wherein each of the first connection information, the second connection information, and the third connection information includes the same public key of the terminal device. (Item 7) 7. The computer program according to any one of items 1 to 6, wherein the third connection information is one DPP (abbreviation of Device Provisioning Protocol) Configuration Object. (Item 8) The first identifier is a group ID conforming to the DPP (Device Provisioning Protocol) method, 8. The computer program according to any one of claims 1 to 7, wherein the second identifier is a group ID according to the DPP method and is different from the first identifier. (Item 9) 1. A communication device, comprising: an authentication request receiving unit that receives an authentication request using the public key of the communication device from a terminal device; an authentication response transmission unit that, when the authentication request is received from the terminal device, transmits an authentication response to the authentication request to the terminal device; a connection information receiving unit that receives connection information from the terminal device when the authentication response is transmitted to the terminal device, the connection information including a first identifier and a second identifier different from the first identifier, the first identifier being information for identifying a first wireless network in which a first access point operates as a master station, and the second identifier being information for identifying a second wireless network in which a second access point operates as a master station; an establishment unit that, when the connection information is received from the terminal device, establishes a wireless connection between the communication device and the first access point or the second access point by using the connection information; A communication device comprising: (Item 10) the connection information further includes a first SSID that identifies the first access point and a second SSID that identifies the second access point; The communication device further comprises: a search signal transmission unit that transmits, when receiving the connection information from the terminal device, a device search signal for searching for devices in the vicinity of the communication device to an outside; The establishment unit is when a response signal to the device search signal is received from the first access point, the response signal including the first SSID, establishing a wireless connection between the communication device and the first access point using the connection information; 10. The communication device according to item 9, wherein when a response signal including the second SSID is received from the second access point, the communication device establishes a wireless connection between the communication device and the second access point using the connection information. [Explanation of symbols]

[0142] 2: communication system, 6, 7: 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 computer is composed of the following parts: A first access point that operates as a configurator of a DPP (abbreviation of Device Provisioning Protocol) method and operates as an enrollee of the DPP method; and a first DPP processing unit that executes bootstrapping, authentication, and configuration; a second access point that operates as a configurator of the DPP method and an enrollee of the DPP method; and a second DPP processing unit that executes bootstrapping, authentication, and configuration; a communication device that operates as a configurator of the DPP method and operates as an enrollee of the DPP method; and a third DPP processing unit that executes Bootstrapping, Authentication, and Configuration, wherein in the Configuration executed by the third DPP processing unit, the terminal device transmits a Configuration Object to the communication device, the Configuration Object including a first identifier and a second identifier different from the first identifier, the first identifier being information for identifying a first wireless network in which the first access point operates as a master station, and the second identifier being information for identifying a second wireless network in which the second access point operates as a master station; A computer program that functions as a

2. 2 . The computer program product according to claim 1 , wherein the first DPP processing unit executes the Configuration, and the second DPP processing unit executes the Configuration, and then the third DPP processing unit executes the Bootstrapping.

3. The computer program further causes the computer to a first storage control unit that stores the first identifier in a memory of the terminal device when the first DPP processing unit executes the Configuration; a second storage control unit that stores the second identifier in the memory when the second DPP processing unit executes the Configuration; a display control unit that displays a selection screen for selecting one or more identifiers from a plurality of identifiers including the first identifier and the second identifier in the memory on a display unit of the terminal device after the first DPP processing unit executes the Configuration and the second DPP processing unit executes the Configuration; 3. The computer program according to claim 2, wherein when the first identifier and the second identifier are selected from the plurality of identifiers on the selection screen and the Authentication is executed in the third DPP processing unit, the third DPP processing unit transmits the Configuration Object including the selected first identifier and the selected second identifier to the communication device.

4. The computer program product according to claim 3 , wherein the display control unit causes the display unit to display the selection screen before the third DPP processing unit acquires a public key of the communication device in the bootstrap.

5. The computer program product of claim 1 , wherein the second access point is different from the first access point.

6. 6. The computer program product according to claim 1, wherein a Configuration Object transmitted to the first access point in the first DPP processing unit, a Configuration Object transmitted to the second access point in the second DPP processing unit, and a Configuration Object transmitted to the communication device in the third DPP processing unit each include the same public key of the terminal device.

7. The computer program product according to claim 1 , wherein the third DPP processing unit transmits one Configuration Object.

8. The first identifier is a group ID according to the DPP method, The computer program product according to claim 1 , wherein the second identifier is a group ID according to the DPP method, and is different from the first identifier.

Citation Information

Patent Citations

  • Connection control method in wireless LAN network system

    JP2004007120A

  • Communication apparatus, communication method and program

    JP2016187135A

  • Communication device, communication method and program

    JP2017028452A

  • Communication device, communication method and program

    JP2017135517A

  • Communication device, communication method and program

    JP2017135520A