Determining when to establish a communication channel for access control
It is provided a method for determining when to establish a communication channel using an electronic lock ( 12 ) controlling access to a restricted physical space ( 16 ). The method is performed by a portable key device ( 2 ). The method comprises: obtaining ( 40 ) a first time-indicator indicating when the portable key device ( 2 ) detects a stop in motion of the portable key device ( 2 ); receiving ( 42 ) a broadcast message from the electronic lock ( 12 ); deriving ( 44 ) a second time-indicator based on the received broadcast message, the second time-indicator indicating when the electronic lock ( 12 ) determines a stop in motion; determining ( 46 ) that a difference between the first time-indicator and the second time-indicator is less than a threshold; and establishing ( 48 ) a communication channel between the portable key device and the electronic lock when it is determined that the difference between the first time-indicator and the second time-indicator is less than the threshold.
1 . A method for determining when to establish a communication channel for access control using an electronic lock controlling access to a restricted physical space, the method being performed by a portable key device, the method comprising:
obtaining a first time-indicator indicating when the portable key device detects a stop in motion of the portable key device;
receiving a broadcast message from the electronic lock, wherein the broadcast message comprises a time lapse indicator;
deriving a second time-indicator based on the received broadcast message, the second time-indicator indicating when the electronic lock determines a stop in motion by detecting a stop of a nearby object using a fixedly mounted sensor;
determining that a difference between the first time-indicator and the second time-indicator is less than a threshold; and
establishing a communication channel between the portable key device and the electronic lock when it is determined that the difference between the first time-indicator and the second time-indicator is less than the threshold;
wherein the deriving the second time-indicator comprises:
determining a current time of the portable key device; and
subtracting the time lapse indicator from the current time to obtain the second time-indicator.
2 . The method according to claim 1 , wherein the time lapse indicator indicates an amount of time that lapsed between a time that the electronic lock determined the stop in motion and a time when the electronic lock generated the broadcast message, within a margin of error.
3 . The method according to claim 1 , wherein the obtaining the first time-indicator is based on accelerometer data of the portable key device.
4 . The method according to claim 1 , wherein the establishing the communication channel comprises establishing the communication channel between the portable key device and the electronic lock only when it is determined that the difference between the first time-indicator and the second time-indicator is less than the threshold.
5 . The method according to claim 1 , further comprising:
determining that a received signal strength of a signal from the electronic lock is greater than a first threshold;
notifying a user of the portable key device of the nearby electronic lock;
receiving user input from the user indicating intent to unlock the electronic lock; and
determining that a received signal strength of a signal from the electronic lock is greater than a second threshold, wherein the second threshold is greater than the first threshold;
wherein the establishing the communication channel between the portable key device and the electronic lock is performed after determining that the received signal strength is greater than the second threshold.
6 . A portable key device for determining when to establish a communication channel for access control using an electronic lock controlling access to a restricted physical space, the portable key device comprising:
a processor; and
a memory storing instructions that, when executed by the processor, cause the portable key device to:
obtain a first time-indicator indicating when the portable key device detects a stop in motion of the portable key device;
receive a broadcast message from the electronic lock, wherein the broadcast message comprises a time lapse indicator;
derive a second time-indicator based on the received broadcast message, the second time-indicator indicating when the electronic lock determines a stop in motion by detecting a stop of a nearby object using a fixedly mounted sensor;
determine that a difference between the first time-indicator and the second time-indicator is less than a threshold; and
establish a communication channel between the portable key device and the electronic lock when it is determined that the difference between the first time-indicator and the second time-indicator is less than the threshold;
wherein the instructions to derive the second time-indicator comprise instructions that, when executed by the processor, cause the portable key device to:
determine a current time of the portable key device; and
subtract the time lapse indicator from the current time to obtain the second time-indicator.
7 . The portable key device according to claim 6 , wherein the time lapse indicator indicates an amount of time that lapsed between a time that the electronic lock determined the stop in motion and a time when the electronic lock generated the broadcast message, within a margin of error.
8 . The portable key device according to claim 6 , wherein the instructions to obtain comprise instructions that, when executed by the processor, cause the portable key device to obtain the first time-indicator based on accelerometer data of the portable key device.
9 . The portable key device according to claim 6 , wherein the instructions to establish the communication channel comprise instructions that, when executed by the processor, cause the portable key device to establish the communication channel between the portable key device and the electronic lock only when it is determined that the difference between the first time-indicator and the second time-indicator is less than the threshold.
10 . The portable key device according to claim 6 to further comprising instructions that, when executed by the processor, cause the portable key device to:
determine that a received signal strength of a signal from the electronic lock is greater than a first threshold;
notify a user of the portable key device of the nearby electronic lock;
receive user input from the user indicating intent to unlock the electronic lock; and
determine that a received signal strength of a signal from the electronic lock is greater than a second threshold, wherein the second threshold is greater than the first threshold;
wherein the instructions to establish the communication channel between the portable key device and the electronic lock comprise instructions that, when executed by the processor, cause the portable key device to establish the communication channel after determining that the received signal strength is greater than the second threshold.
11 . A non-transitory computer-readable medium comprising a computer program stored thereon for determining when to establish a communication channel for access control using an electronic lock controlling access to a restricted physical space, the computer program comprising computer program code which, when executed on a portable key device, causes the portable key device to:
obtain a first time-indicator indicating when the portable key device detects a stop in motion of the portable key device;
receive a broadcast message from the electronic lock, wherein the broadcast message comprises a time lapse indicator;
derive a second time-indicator based on the received broadcast message, the second time-indicator indicating when the electronic lock determines a stop in motion by detecting a stop of a nearby object using a fixedly mounted sensor;
determine that a difference between the first time-indicator and the second time-indicator is less than a threshold; and
establish a communication channel between the portable key device and the electronic lock when it is determined that the difference between the first time-indicator and the second time-indicator is less than the threshold;
wherein the computer program code to derive the second time-indicator comprises computer program code that, when executed on the portable key device, causes the portable key device to:
determine a current time of the portable key device; and
subtract the time lapse indicator from the current time to obtain the second time-indicator.