Communication apparatus, control method thereof, and program
A method for controlling a communication apparatus, includes specifying, before joining a wireless network, an external device that will be a data transmitting source, receiving related information relating to data to be transmitted from the specified external device, determining whether to receive the data to be transmitted based on the received related information, joining a wireless network when it is determined to receive the data to be transmitted, and receiving the data to be transmitted from the specified external device after joining the wireless network.
1. A communication apparatus comprising:
at least one processor;
a wireless communication interface;
wherein the at least one processor is configured to function as the following units:
a specifying unit configured to, before joining a wireless network, specify an external device that will be a content data transmitting source;
a first receiving unit configured to, before joining a wireless network, receive related information relating to content data to be transmitted from the external device specified by the specifying unit via the wireless communication interface;
a determination unit configured to, before joining a wireless network, determine whether to receive the content data to be transmitted based on the related information received by the first receiving unit;
a network joining unit configured to make the communication apparatus join a wireless network via the wireless communication interface when the determination unit determines to receive the content data to be transmitted; and
a second receiving unit configured to receive the content data to be transmitted from the external device specified by the specifying unit via the wireless communication interface after the communication apparatus has joined the wireless network via the network joining unit,
wherein the wireless communication interface is a single common interface used for reception of the related information by the first receiving unit and reception of the content data by the second receiving unit.
2. The communication apparatus according to claim 1 , wherein the related information includes a name of the content data to be transmitted, and
wherein the determination unit is configured to determine not to receive the content data to be transmitted if the communication apparatus has content data with the same name as the name of the content data to be transmitted.
3. The communication apparatus according to claim 2 , further comprising a transmitting unit configured to transmit a rejection signal to the external device via the wireless communication interface if the determination unit determines not to receive the content data to be transmitted.
4. The communication apparatus according to claim 2 , further comprising a transmitting unit configured to transmit a permission signal to the external device via the wireless communication interface before joining a wireless network via the joining unit if the determination unit determines to receive the content data to be transmitted.
5. The communication apparatus according to claim 1 , wherein the joining of the wireless network by the joining unit is performed not via a device other than the external device.
6. The communication apparatus according to claim 1 , wherein the joining in the wireless network by the network joining unit is performed according to Wi-Fi direct standard.
7. The communication apparatus according to claim 1 , wherein the communication apparatus is a printer.
8. The communication apparatus according to claim 1 , wherein the communication apparatus is a mobile terminal.
9. The communication apparatus according to claim 1 wherein the communication apparatus is a mobile telephone.
10. The communication apparatus according to claim 1 wherein the wireless communication interface is a wireless LAN interface.
11. The communication apparatus according to claim 1 , wherein the related information includes a name and size of the content data to be transmitted, and
wherein the determination unit is configured to determine not to receive the content data to be transmitted if the communication apparatus has content data with the same name and size as the name and size of the content data to be transmitted.
12. A method for controlling a communication apparatus having a wireless communication interface, the method comprising:
specifying, before joining a wireless network, an external device that will be a content data transmitting source;
receiving, before joining a wireless network, related information relating to content data to be transmitted from the specified external device via the wireless communication interface;
determining, before joining a wireless network, whether to receive the content data to be transmitted based on the received related information;
making the communication apparatus join a wireless network via the wireless communication interface when it is determined to receive the content data to be transmitted; and
receiving the content data to be transmitted from the specified external device via the wireless communication interface after joining the wireless network,
wherein the wireless communication interface is a single common interface used for reception of the related information by the first receiving unit and reception of the content data by the second receiving unit.
13. A non-transitory computer-readable storage medium storing a program that, when executed, causes a computer to execute a process for controlling a communication apparatus having a wireless communication interface, the process comprising:
specifying, before joining a wireless network, an external device that will be a content data transmitting source;
receiving, before joining a wireless network, related information relating to content data to be transmitted from the specified external device via the wireless communication interface;
determining, before joining a wireless network, whether to receive the content data to be transmitted based on the received related information;
making the communication apparatus join a wireless network via the wireless communication interface when it is determined to receive the content data to be transmitted; and
receiving the content data to be transmitted from the specified external device via the wireless communication interface after joining the wireless network,
wherein the wireless communication interface is a single common interface used for reception of the related information by the first receiving unit and reception of the content data by the second receiving unit.