An electronic lock device (403, 1703) comprising: a door lock comprising a handle or a grip; and a controller electrically connected to the door lock, wherein the controller comprises a communication unit configured to perform wireless communication with an external electronic device (401, 1701), a sensor configured to sense a motion and/or a rotation of the handle or the grip, and a control circuit electrically connected to the communication circuit and the sensor, and the control circuit being configured to: transmit a first signal to the external electronic device, sensing of the first signal by the external electronic device indicating that the external electronic device is located at a selected distance from the door lock; receive a second signal from the external electronic device, the second signal indicating that the external electronic device is located within the selected distance from the door lock; determine a rotation speed and a moving distance information of the handle and/or the grip in response to the first signal; receive a third signal from the external electronic device, the third signal comprising a rotation speed and a moving distance information of the external electronic device; compare the rotation speed and the moving distance information of the handle or the grip of the door lock with the rotation speed and the moving distance information received from the external electronic device; and determine to unlock the door lock when the rotation speed and the moving distance information of the handle or the grip of the door lock match the rotation speed and the moving information received from the external electronic device. a door lock comprising a handle or a grip; and a controller electrically connected to the door lock, wherein the controller comprises a communication unit configured to perform wireless communication with an external electronic device (401, 1701), a sensor configured to sense a motion and/or a rotation of the handle or the grip, and a control circuit electrically connected to the communication circuit and the sensor, and the control circuit being configured to: transmit a first signal to the external electronic device, sensing of the first signal by the external electronic device indicating that the external electronic device is located at a selected distance from the door lock; receive a second signal from the external electronic device, the second signal indicating that the external electronic device is located within the selected distance from the door lock; determine a rotation speed and a moving distance information of the handle and/or the grip in response to the first signal; receive a third signal from the external electronic device, the third signal comprising a rotation speed and a moving distance information of the external electronic device; compare the rotation speed and the moving distance information of the handle or the grip of the door lock with the rotation speed and the moving distance information received from the external electronic device; and determine to unlock the door lock when the rotation speed and the moving distance information of the handle or the grip of the door lock match the rotation speed and the moving information received from the external electronic device. transmit a first signal to the external electronic device, sensing of the first signal by the external electronic device indicating that the external electronic device is located at a selected distance from the door lock; receive a second signal from the external electronic device, the second signal indicating that the external electronic device is located within the selected distance from the door lock; determine a rotation speed and a moving distance information of the handle and/or the grip in response to the first signal; receive a third signal from the external electronic device, the third signal comprising a rotation speed and a moving distance information of the external electronic device; compare the rotation speed and the moving distance information of the handle or the grip of the door lock with the rotation speed and the moving distance information received from the external electronic device; and determine to unlock the door lock when the rotation speed and the moving distance information of the handle or the grip of the door lock match the rotation speed and the moving information received from the external electronic device.