| CPC G06F 21/44 (2013.01) [G06F 21/602 (2013.01)] | 17 Claims |

|
1. A communication apparatus which is able to receive, by a predetermined communication protocol, first information for connecting with a first external apparatus and is able to output second information for performing authentication, by the predetermined communication protocol, the communication apparatus comprising:
a memory containing instructions and a processor to execute the instructions to function as:
a waiting unit configured to cause the communication apparatus to start, based on a predetermined trigger, an operation in a waiting state to wait for a request of the authentication by the predetermined communication protocol, the request of the authentication being transmitted from a second external apparatus which has obtained the second information output from the communication apparatus;
an output unit configured to start, based on the predetermined trigger, output of the second information;
an authentication unit configured to, in a case where the request of the authentication is received from the second external apparatus in a state that the communication apparatus operates in the waiting state, perform the authentication by the predetermined communication protocol based on a communication by the predetermined communication protocol between the communication apparatus and the second external apparatus;
a reception unit configured to receive the first information by the predetermined communication protocol from the second external apparatus which has been authenticated by the predetermined communication protocol;
an establishment unit configured to establish a connection between the first external apparatus and the communication apparatus based on the first information being received; and
an update unit configured to update the second information output by the output unit in a state that the communication apparatus operates in the waiting state,
wherein the waiting unit stops the waiting state of the communication apparatus based on a first period elapsing, from a start of an operation in the waiting state of the communication apparatus, without a predetermined process being performed, and
the update unit updates the second information based on a second period shorter than the first period elapsing from a start of the operation in the waiting state of the communication apparatus.
|