Communication apparatus, communication method, and computer-readable storage medium
An instruction to start communication parameter sharing processing using a Wi-Fi Device Provisioning Protocol is received, processing for sharing a public key to be used in the communication parameter sharing processing is executed, and authentication processing is executed with a provision apparatus, which provides a communication parameter, by using the shared public key. After the authentication processing, a Configuration Request packet indicating a request for information about a communication layer upper than a communication layer of a wireless LAN, in addition to a request for a communication parameter used for connection based on the wireless LAN is generated and transmitted to the provision apparatus.
1. A communication apparatus comprising:
one or more processors; and
one or more memories including instructions that, when executed by the one or more processors, cause the communication apparatus to:
receive an instruction to start communication parameter sharing processing using a wireless-network-device provisioning protocol;
execute processing for sharing a public key to be used in the communication parameter sharing processing according to the instruction;
execute authentication processing with a provision apparatus by using the public key shared in the processing executed by the processing for sharing a public key, the provision apparatus being configured to provide a communication parameter;
after the authentication processing and in a case where a predetermined condition is met, generate one wireless-network-device-provisioning-protocol Configuration Request packet indicating (i) a request for information including at least an Internet Protocol (IP) address about a communication layer upper than a communication layer of a wireless Local Area Network (LAN), in addition to (ii) a request for a communication parameter used for connecting to another apparatus based on the wireless LAN;
transmit the Configuration Request packet generated by the generating to the provision apparatus;
receive one wireless-network-device-provisioning-protocol Configuration Response packet transmitted from the provision apparatus in response to the Configuration Request packet transmitted by the communication apparatus; and
set, at the communication apparatus, the communication parameter used for connection based on the wireless LAN acquired from the Configuration Response packet received and the information including at least the IP address about the communication layer upper than the communication layer of the wireless LAN.
2. The communication apparatus according to claim 1 ,
wherein the instructions further cause the communication apparatus to determine whether information about the communication layer upper than the communication layer of the wireless LAN is required, and
wherein
in a case where the communication apparatus determines that the information is required, the communication apparatus generates the Configuration Request packet indicating (i) the request for information including at least an IP address about the communication layer upper than the communication layer of the wireless LAN, in addition to (ii) the request for the communication parameter used for connection based on the wireless LAN, and
in a case where the communication apparatus determines that the information including at least the IP address is not required, the communication apparatus generates the Configuration Request packet indicating the request for the communication parameter used for connection based on the wireless LAN.
3. The communication apparatus according to claim 1 , wherein the processing for sharing the public key to be used in the communication parameter sharing processing is processing for sharing the public key such that one of the provision apparatus and the communication apparatus captures a two-dimensional matrix barcode for the other of the provision apparatus and the communication apparatus.
4. The communication apparatus according to claim 1 , wherein the communication parameter used for connection based on the wireless LAN includes at least one of a Service Set Identifier (SSID), an encryption method, an encryption key, an authentication method, and an authentication key.
5. A communication method comprising:
executing processing for sharing a public key to be used in communication parameter sharing processing according to an instruction to start the communication parameter sharing processing using a wireless-network-device provisioning protocol;
performing authentication to execute authentication processing with a provision apparatus by using the shared public key, the provision apparatus being configured to provide a communication parameter; after the authentication processing and in a case where a predetermined condition is met, generating one wireless-network-device-provisioning-protocol Configuration Request packet indicating (i) a request for information including at least an Internet Protocol (IP) address about a communication layer upper than a communication layer of a wireless Local Area Network (LAN), in addition to (ii) a request for a communication parameter used for connecting to another apparatus based on the wireless LAN;
transmitting the generated Configuration Request packet to the provision apparatus;
receiving one wireless-network-device-provisioning-protocol Configuration Response packet transmitted from the provision apparatus in response to the Configuration Request packet transmitted by the communication apparatus; and
setting, at the communication apparatus, the communication parameter used for connection based on the wireless LAN acquired from the Configuration Response packet received and the information including at least the IP address about the communication layer upper than the communication layer of the wireless LAN.
6. A non-transitory computer-readable storage medium that stores a program for causing a computer included in a communication apparatus to:
receive an instruction to start communication parameter sharing processing using a wireless-network-device provisioning protocol;
execute processing for sharing a public key to be used in the communication parameter sharing processing according to the instruction;
execute authentication processing with a provision apparatus by using the public key shared in the processing executed by the processing for sharing a public key, the provision apparatus being configured to provide a communication parameter;
after the authentication processing and in a case where a predetermined condition is met, generate one wireless-network-device-provisioning-protocol Configuration Request packet indicating (i) a request for information including at least an Internet Protocol (IP) address about a communication layer upper than a communication layer of a wireless Local Area Network (LAN), in addition to (ii) a request for a communication parameter used for connecting to another apparatus based on the wireless LAN;
transmit the Configuration Request packet generated by the generating to the provision apparatus;
receive one wireless-network-device-provisioning-protocol Configuration Response packet transmitted from the provision apparatus in response to the Configuration Request packet transmitted by the communication apparatus; and
set, at the communication apparatus, the communication parameter used for connection based on the wireless LAN acquired from the Configuration Response packet received and the information including at least the IP address about the communication layer upper than the communication layer of the wireless LAN.
7. A communication apparatus comprising:
one or more processors; and
one or more memories including instructions that, when executed by the one or more processors, cause the communication apparatus to:
receive an instruction to start communication parameter sharing processing using a wireless-network-device provisioning protocol;
execute processing for sharing a public key to be used in the communication parameter sharing processing according to the instruction;
execute authentication processing with a reception apparatus by using the public key shared in the processing executed by the communication apparatus, the reception apparatus being configured to receive a communication parameter;
after the authentication processing, receive, from the reception apparatus, one wireless-network-device-provisioning-protocol Configuration Request packet indicating (i) a request for information including at least an Internet Protocol (IP) address about a communication layer upper than a communication layer of a wireless Local Area Network (LAN), in addition to (ii) a request for a communication parameter used for connecting to another apparatus based on the wireless LAN; and
transmit, to the reception apparatus in response to the Configuration Request packet received by the communication apparatus, one wireless-network-device-provisioning-protocol Configuration Response packet including (i) the communication parameter used for connection based on the wireless LAN and (ii) the information including at least the IP address about the communication layer upper than the communication layer of the wireless LAN,
wherein the Configuration Response packet is used by the reception apparatus to set, at the reception apparatus, (i) the communication parameter used for connection based on the wireless LAN acquired from the Configuration Response packet received and (ii) the information including at least the IP address about the communication layer upper than the communication layer of the wireless LAN.
8. The communication apparatus according to claim 7 , wherein the processing for sharing the public key to be used in the communication parameter sharing processing is processing for sharing the public key such that one of the communication apparatus and the reception apparatus captures a two-dimensional matrix barcode code for the other of the communication apparatus and the reception apparatus.
9. The communication apparatus according to claim 7 , wherein the communication parameter used for connection based on the wireless LAN includes at least one of a Service Set Identifier (SSID), an encryption method, an encryption key, an authentication method, and an authentication key.
10. A communication method comprising:
executing processing for sharing a public key to be used in communication parameter sharing processing according to an instruction to start the communication parameter sharing processing using a wireless-network-device provisioning protocol;
performing authentication to execute authentication processing with a reception apparatus by using the shared public key, the reception apparatus being configured to receive a communication parameter; after the authentication processing, receiving, from the reception apparatus, one wireless-network-device-provisioning-protocol Configuration Request packet indicating (i) a request for information including at least an Internet Protocol (IP) address about a communication layer upper than a communication layer of a wireless Local Area Network (LAN), in addition to (ii) a request for a communication parameter used for connecting to another apparatus based on the wireless LAN; and
transmitting, to the reception apparatus in response to the Configuration Request packet received by the communication apparatus, one wireless-network-device-provisioning-protocol Configuration Response packet including (i) the communication parameter used for connection based on the wireless LAN and (ii) the information about the communication layer upper than the communication layer of the wireless LAN,
wherein the Configuration Response packet is used by the reception apparatus to set, at the reception apparatus, (i) the communication parameter used for connection based on the wireless LAN acquired from the Configuration Response packet received and (ii) the information including at least the IP address about the communication layer upper than the communication layer of the wireless LAN.
11. A non-transitory computer-readable storage medium that stores a program for causing a computer included in a communication apparatus to:
receive an instruction to start communication parameter sharing processing using a wireless-network-device provisioning protocol;
execute processing for sharing a public key to be used in the communication parameter sharing processing according to the instruction;
execute authentication processing with a reception apparatus by using the public key shared in the processing executed by the communication apparatus, the reception apparatus being configured to receive a communication parameter;
after the authentication processing, receive, from the reception apparatus, a Configuration Request packet indicating (i) a request for information about a communication layer upper than a communication layer of a wireless Local Area Network (LAN), in addition to (ii) a request for a communication parameter used for connecting to another apparatus based on the wireless LAN; and
transmit, to the reception apparatus in response to the Configuration Request packet received by the communication apparatus, a Configuration Response packet including (i) the communication parameter used for connection based on the wireless LAN and (ii) the information including at least an Internet Protocol (IP) address about the communication layer upper than the communication layer of the wireless LAN,
wherein the Configuration Response packet is used by the reception apparatus to set, at the reception apparatus, (i) the communication parameter used for connection based on the wireless LAN acquired from the Configuration Response packet received and (ii) the information including at least the IP address about the communication layer upper than the communication layer of the wireless LAN.