A communication apparatus that executes a predetermined service which is executable by the communication apparatus by communicating with a first other apparatus and a second other apparatus, the communication apparatus comprising: communication means for establishing connections with the first other apparatus and the second other apparatus and communicating data with the first other apparatus and the second other apparatus in order to execute the predetermined service; and control means, wherein the control means is configured to control the communication means so that the communication apparatus operates as a first role corresponding to a role of slave in the case of connecting to the first other apparatus operating as a second role corresponding to a role of master, and the communication apparatus operates as the second role in the case of connecting to the second other apparatus operating as the first role, wherein the control means is configured to control the communication means to maintain a connected state with the first other apparatus operating as the second role, by executing a first process in which the communication apparatus operates as the first role at predetermined intervals after the connection with the first other apparatus operating as the second role is established, wherein the control means is configured to control the communication means so that the communication apparatus, in the connected state with the first other apparatus operating as the second role, and if there is no service execution instruction from the first other apparatus, operates as the second role in order to connect to the second other apparatus operating as the first role in between predetermined intervals when the first process is executed, wherein the control means is configured to control the communication means so that, in the case where the communication apparatus is caused to operate as the second role in order to connect to the second other apparatus, the communication means receives information indicating the presence of the second other apparatus, and wherein the control means is configured to control the communication means so that, in wireless communication between the role of slave, corresponding to the first role, and the role of master, corresponding to the second role, the communication means transmits information indicating the presence of the communication apparatus to another apparatus which is connected with the communication apparatus in the case where the communication apparatus operates as the role of the slave, and the communication means receives information indicating the presence of another apparatus which is connected with the communication apparatus from the other apparatus which is connected with the communication apparatus in the case where the communication apparatus operates as the role of the master. communication means for establishing connections with the first other apparatus and the second other apparatus and communicating data with the first other apparatus and the second other apparatus in order to execute the predetermined service; and control means, wherein the control means is configured to control the communication means so that the communication apparatus operates as a first role corresponding to a role of slave in the case of connecting to the first other apparatus operating as a second role corresponding to a role of master, and the communication apparatus operates as the second role in the case of connecting to the second other apparatus operating as the first role, wherein the control means is configured to control the communication means to maintain a connected state with the first other apparatus operating as the second role, by executing a first process in which the communication apparatus operates as the first role at predetermined intervals after the connection with the first other apparatus operating as the second role is established, wherein the control means is configured to control the communication means so that the communication apparatus, in the connected state with the first other apparatus operating as the second role, and if there is no service execution instruction from the first other apparatus, operates as the second role in order to connect to the second other apparatus operating as the first role in between predetermined intervals when the first process is executed, wherein the control means is configured to control the communication means so that, in the case where the communication apparatus is caused to operate as the second role in order to connect to the second other apparatus, the communication means receives information indicating the presence of the second other apparatus, and wherein the control means is configured to control the communication means so that, in wireless communication between the role of slave, corresponding to the first role, and the role of master, corresponding to the second role, the communication means transmits information indicating the presence of the communication apparatus to another apparatus which is connected with the communication apparatus in the case where the communication apparatus operates as the role of the slave, and the communication means receives information indicating the presence of another apparatus which is connected with the communication apparatus from the other apparatus which is connected with the communication apparatus in the case where the communication apparatus operates as the role of the master.