Communication apparatus and control method
A communication apparatus connects to an external apparatus and generates operation information for operating the external apparatus on a basis of predetermined information. The predetermined information is stored and operation information is generated or the operation information is generated without storing the predetermined information. The predetermined information includes identification information of the external apparatus, and in a case where the operation state is in a first state the predetermined information is stored as registration information of the external apparatus, and generates first operation information which is a screen for operating the external apparatus based on the registration information. In a case where the operation state is in a second state, second operation information is generated which is a notification screen prompting the user to operate the external apparatus without storing the predetermined information as registration information of the external apparatus.
1 . A communication apparatus comprising:
a first communication unit that is connectable to an external apparatus via a first wireless communication method;
a second communication unit that is connectable to the external apparatus via a second wireless communication method different from the first wireless communication method;
a storage unit; and
a control unit that, on a basis of predetermined information obtained from the external apparatus via the first communication unit, connects to the external apparatus via the second communication unit and generates operation information for operating the external apparatus on a basis of the predetermined information,
wherein the control unit, on a basis of an operation state of the external apparatus at a time when the external apparatus is connected via the second communication unit on a basis of the predetermined information, performs control to store the predetermined information and generate the operation information or generate the operation information without storing the predetermined information, and
wherein the predetermined information includes identification information of the external apparatus,
in a case where the operation state is in a first state, the control unit stores the predetermined information in the storage unit as registration information of the external apparatus, and generates first operation information which is a screen for operating the external apparatus based on the registration information, and
in a case where the operation state is in a second state, the control unit generates second operation information which is a notification screen prompting the user to operate the external apparatus without storing the predetermined information as registration information of the external apparatus.
2 . The apparatus according to claim 1 , wherein
the control unit deletes the operation information according to a user operation or after a predetermined amount of time has elapsed.
3 . The apparatus according to claim 1 , wherein
in a case where a connection with the external apparatus via the second communication unit is disconnected, the control unit determines whether or not to store the predetermined information.
4 . The apparatus according to claim 1 , wherein
in a case where a connection via the second communication unit is disconnected, the control unit determines whether or not to store the predetermined information according to a user operation.
5 . The apparatus according to claim 1 , further comprising:
a display unit that displays the first operation information and the second operation information.
6 . The apparatus according to claim 1 , wherein
the second wireless communication method has a faster communication speed and a wider communicable range than the first wireless communication method.
7 . The apparatus according to claim 6 , wherein
the first wireless communication method is Near Field Communication (NFC), and
the second wireless communication method is wireless Local Area Network (LAN).
8 . The apparatus according to claim 5 , wherein
the predetermined information includes information of a function of the external apparatus, and information for connecting to a wireless LAN network created by the external apparatus.
9 . The apparatus according to claim 1 , wherein
the external apparatus is an image capture apparatus,
the first state is a shooting mode, and
the second state is a reproduction mode.
10 . The apparatus according to claim 9 , wherein
in a case where an operation state of the image capture apparatus at a time when the image capture apparatus is connected to the communication apparatus via the second communication unit is the reproduction mode, the image capture apparatus does not store information obtained from the communication apparatus via the first communication unit.
11 . A method of controlling a communication apparatus,
wherein the communication apparatus includes,
a first communication unit that is connectable to an external apparatus via a first wireless communication method,
a second communication unit that is connectable to an external apparatus via a second wireless communication method different from the first wireless communication method, and
a storing unit,
the method comprising:
on a basis of predetermined information obtained from an external apparatus via the first communication unit, connecting to the external apparatus via the second communication unit and for generating operation information for operating the external apparatus on a basis of the predetermined information, and
on a basis of an operation state of the external apparatus at a time when the external apparatus is connected via the second communication unit on a basis of the predetermined information, performing control to store the predetermined information and generate the operation information or generate the operation information without storing the predetermined information, and
wherein the predetermined information includes identification information of the external apparatus,
in a case where the operation state is in a first state, storing the predetermined information in the storage unit as registration information of the external apparatus and generating first operation information which is a screen for operating the external apparatus based on the registration information, and
in a case where the operation state is in a second state, generating second operation information which is a notification screen prompting the user to operate the external apparatus without storing the predetermined information as registration information of the external apparatus.
12 . A non-transitory computer-readable storage medium storing a program for causing a computer to function as a communication apparatus comprising:
a first communication unit that is connectable to an external apparatus via a first wireless communication method;
a second communication unit that is connectable to the external apparatus via a second wireless communication method different from the first wireless communication method;
a storage unit; and
a control unit that, on a basis of predetermined information obtained from the external apparatus via the first communication unit, connects to the external apparatus via the second communication unit and generates operation information for operating the external apparatus on a basis of the predetermined information,
wherein the control unit, on a basis of an operation state of the external apparatus at a time when the external apparatus is connected via the second communication unit on a basis of the predetermined information, performs control to store the predetermined information and generate the operation information or generate the operation information without storing the predetermined information, and
wherein the predetermined information includes identification information of the external apparatus,
in a case where the operation state is in a first state, the control unit stores the predetermined information in the storage unit as registration information of the external apparatus, and generates first operation information which is a screen for operating the external apparatus based on the registration information, and
in a case where the operation state is in a second state, the control unit generates second operation information which is a notification screen prompting the user to operate the external apparatus without storing the predetermined information as registration information of the external apparatus.