CPC H04W 48/16 (2013.01) [H04W 12/04 (2013.01); H04W 12/06 (2013.01); H04W 84/12 (2013.01)] | 11 Claims |
1. A non-transitory computer-readable medium storing computer-readable instructions for a terminal device, wherein
the terminal device comprises a Wi-Fi interface configured to execute a wireless communication complying with a Wi-Fi scheme, wherein
the computer-readable instructions, when executed by a processor of the terminal device, cause the terminal device to:
in a case where it is determined that a communication device outputs related information which is related to a wireless connection, obtain the related information;
in a case where it is determined that the communication device is a first type of communication device, a Wi-Fi connection is established between the terminal device and a first external device, and the obtained related information is a first type of related information including a public key of the first type of communication device, send an authentication request according to a Device Provisioning Protocol (DPP) of the Wi-Fi scheme, which is obtained by using the first type of related information including the public key, to the first type of communication device via the Wi-Fi interface, the first type of communication device is capable of executing a wireless communication complying with the DPP;
in a case where it is determined that the terminal device receives an authentication response according to the DPP as a response to the authentication request from the first type of communication device via the Wi-Fi interface, send first connection information to the first type of communication device via the Wi-Fi interface, the first connection information is for establishing a first type of wireless connection complying with the DPP between the first type of communication device and the first external device different from the first type of communication device;
in a case where it is determined that the communication device is a second type of communication device and the obtained related information is a second type of related information which is different from the first type of related information, send second connection information to the second type of communication device via the Wi-Fi interface by using the second type of related information without sending the authentication request according to the DPP to the second type of communication device, the second type of communication device is incapable of executing a wireless communication complying with the DPP, and the second connection information is for establishing a second type of wireless connection not complying with the DPP between the second type of communication device and a second external device different from the second type of communication device; and
in a case where it is determined that the first type of wireless connection is not established between the first type of communication device and the first external device due to the first external device incapable of executing a wireless communication complying with the DPP after the first connection information has been sent to the first type of communication device, send third connection information to the first type of communication device, the third connection information is for establishing the second type of wireless connection not complying with the DPP between the first type of communication device and the first external device, and the third connection information including a first Service Set Identifier (SSID) identifying a wireless network in which the first external device operates as a parent station and a first password used for the wireless network,
wherein,
the first connection information is information having a format that complies with the DPP, and
the third connection information is information having a format that complies with the DPP which is same as that of the first connection information.
|