CPC H04W 4/021 (2013.01) [H04W 4/026 (2013.01); H04W 4/029 (2018.02); H04W 4/80 (2018.02)] | 13 Claims |
1. An electronic device comprising:
a wireless communication circuit comprising a broadband communication module and a Bluetooth communication module;
a processor; and
a memory operably connected to the wireless communication circuit and the processor,
wherein the memory stores instructions which, when executed, cause the processor to:
measure a distance between a mobile device and the electronic device based on a first signal transmitted or received through the broadband communication module,
determine a direction in which the mobile device is located according to whether a second signal transmitted or received through the Bluetooth communication module is measurable, and
control execution of a function of the electronic device when a location of the mobile device is in a first direction and a condition that the measured distance is located in an area configured for execution of the function is satisfied, and
wherein the instructions are configured to cause the processor to, as an operation of measuring the distance between the mobile device and the electronic device,
identify a time difference between transmission and reception times of the first signal by comparing the transmission time, at which the electronic device transmits the first signal, and the reception time, at which the first signal is received from the mobile device,
measure the distance between the electronic device and the mobile device based on signal speeds and the time difference, and
track the location and a movement of the mobile device based on a change in difference values of the measured distance.
|