ELECTRONIC DEVICE FOR CONTROLLING ENTRY OR EXIT BY USING WIRELESS COMMUNICATION, AND METHOD THEREFOR
Abstract:
An electronic device is provided. The electronic device includes a communication circuit for performing first communication and second communication, an entry-exit management circuit for controlling a door locking device, and a processor operatively connected to the communication circuit and the entry-exit management circuit. The processor establishes a connection to an external electronic device by using the first communication, transmit or receive a parameter for the second communication by using the first communication, establish a connection to the external electronic device by using the second communication, measure the distance from the external electronic device by using a first mode of the second communication, identify a key stored in the external electronic device when the measured distance is within a designated distance, activate or deactivate the door locking device by using the entry-exit management circuit on the basis of the key, and determine whether a first distance from a user of the external electronic device or a second distance from the external device is measured, on the basis of at least one of a state of the external electronic device, the first distance, and the second distance when the door locking device is deactivated, wherein the first distance may be measured using a second mode of the second communication.
Information query
Patent Agency Ranking
0/0