Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
DETERMINING WHEN A PORTABLE KEY DEVICE IS LOCATED ON A FRONT SIDE OR ON A BACK SIDE
Document Type and Number:
WIPO Patent Application WO/2021/249832
Kind Code:
A1
Abstract:
It is provided a method for determining when a portable key device is located on a front side or on a back side in relation to a barrier secured by an electronic lock. The method is performed in a location determiner and comprises the steps of: obtaining a channel impulse response, CIR, based on an impulse signal transmitted from the portable key device, the CIR being based on a plurality of samples of the impulse signal as received by an antenna being fixedly mounted in relation to the electronic lock; and determining, based on the CIR, whether the portable key device is located on the front side or on the back side.

Inventors:
SAHLSTRÖM ANDERS (SE)
EINBERG FREDRIK (SE)
HAEGER MATTIAS (SE)
CEDERBLAD MATS (SE)
Application Number:
PCT/EP2021/064696
Publication Date:
December 16, 2021
Filing Date:
June 01, 2021
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ASSA ABLOY AB (SE)
International Classes:
G01S11/02; G07C9/00
Foreign References:
US20190004155A12019-01-03
US20130241694A12013-09-19
Other References:
ZOUARI RAIDA ET AL: "Relevant CIR parameters selection for fingerprinting based location algorithm", 2015 23RD INTERNATIONAL CONFERENCE ON SOFTWARE, TELECOMMUNICATIONS AND COMPUTER NETWORKS (SOFTCOM), UNIVERSITY OF SPLIT, FESB, 16 September 2015 (2015-09-16), pages 170 - 173, XP032803797, DOI: 10.1109/SOFTCOM.2015.7314117
Attorney, Agent or Firm:
KRANSELL & WENNBORG KB (SE)
Download PDF:
Claims:
CLAIMS

1. A method for determining when a portable key device (2a, 2b) is located on a front side (14) or on a back side (16) in relation to a barrier (15) secured by an electronic lock (12), the method being performed in a location determiner (1) and comprising the steps of: obtaining (40) a channel impulse response, CIR, (30a, 30b, 30c) based on an impulse signal (29) transmitted from the portable key device (2a, 2b), the CIR (30a,

30b, 30c) being based on a plurality of samples of the impulse signal (29) as received by an antenna (13, 13a, 13b) being fixedly mounted in relation to the electronic lock (12); and determining (42), based on the CIR, whether the portable key device (2a, 2b) is located on the front side (14) or on the back side (16).

2. The method according to claim 1, wherein the front side (14) is a side with line-of- sight to the antenna (13, 13a, 13b) and the back side (16) is a side without line-of-sight to the antenna (13, 13a, 13b).

3. The method according to claim 1 or 2, wherein the step of obtaining the CIR comprises obtaining a first CIR from a first antenna and a second CIR from a second antenna and wherein the step of determining is based on determining a difference between the first CIR and the second CIR over a measurement time period.

4. The method according to claim 3, wherein the difference between the first CIR and the second CIR is determined by calculating an area between an envelope of the first CIR and an envelope of the second CIR in the measurement time period.

5. The method according to claim 3 or 4, wherein the difference between the first CIR and the second CIR is determined by calculating a correlation between the envelope of the first CIR (30a) and the envelope of the second CIR (30b) in the measurement time period (32).

6. The method according to any one of claims 3 to 5, wherein a difference between the first CIR and the second CIR larger than a threshold indicates that the portable key device (2a, 2b) is on the back side (16) and a difference between the first CIR and the second CIR less than a threshold indicates that the portable key device (2a, 2b) is on the front side (14).

7. The method according to any one of the preceding claims, wherein the step of determining is based on the shape of the CIR in the measurement time period.

8. The method according to any one of the preceding claims, wherein the step of determining is based on comparing on energy of the CIR in a first time period (33a) with an energy of the CIR in a second time period (33b), wherein the first time period (33a) and the second time period (33b) are both part of the measurement time period.

9. The method according to any one of the preceding claims, wherein the step of determining is based on a machine learning model having its output being whether the portable key device is located on the front side or on the back side in relation to the barrier, and the machine learning model having its input being the CIR.

10. The method according to any one of the preceding claims, wherein the impulse signal is an ultra-wideband, UWB, signal.

11. A location determiner (1) for determining whether a portable key device (2a, 2b) is located on a front side or on a back side in relation to a barrier secured by an electronic lock (12), the location determiner (1) comprising: a processor (60); and a memory (64) storing instructions (67) that, when executed by the processor, cause the location determiner (1) to: obtain a channel impulse response, CIR, based on an impulse signal transmitted from the portable key device, the CIR being based on a plurality of samples of the impulse signal as received by an antenna being fixedly mounted in relation to the electronic lock; and determine, based on the CIR, whether the portable key device (2a, 2b) is located on the front side or on the back side.

12. The location determiner (1) according to claim 11, wherein the front side (14) is a side with line-of-sight to the antenna (13, 13a, 13b) and the back side (16) is a side without line-of-sight to the antenna (13, 13a, 13b).

13. The location determiner (1) according to claim 11 or 12, wherein the instructions to obtain the CIR comprise instructions (67) that, when executed by the processor, cause the location determiner (1) to obtain a first CIR from a first antenna and a second CIR from a second antenna and wherein the instructions to determine comprise instructions (67) that, when executed by the processor, cause the location determiner (1) to determine a difference between the first CIR and the second CIR over a measurement time period.

14. The location determiner (1) according to claim 13, wherein the difference between the first CIR and the second CIR is determined by calculating an area between an envelope of the first CIR and an envelope of the second CIR in the measurement time period.

15. The location determiner (1) according to claim 13 or 14, wherein the difference between the first CIR and the second CIR is determined by calculating a correlation between the envelope of the first CIR (30a) and the envelope of the second CIR (30b) in the measurement time period (32).

16. The location determiner (1) according to any one of claims 13 to 15, wherein a difference between the first CIR and the second CIR larger than a threshold indicates that the portable key device (2a, 2b) is on the back side (16) and a difference between the first CIR and the second CIR less than a threshold indicates that the portable key device (2a, 2b) is on the front side (14).

17. The location determiner (1) according to any one of claims 11 to 16, wherein the instructions to determine comprise instructions (67) that, when executed by the processor, cause the location determiner (1) to determine the side based on the shape of the CIR in the measurement time period.

18. The location determiner (1) according to any one of claims 11 to 17, wherein the instructions to determine comprise instructions (67) that, when executed by the processor, cause the location determiner (1) to determine the side based on comparing on energy of the CIR in a first time period (33a) with an energy of the CIR in a second time period (33b), wherein the first time period (33a) and the second time period (33b) are both part of the measurement time period.

19. The location determiner (1) according to any one of claims 11 to 18, wherein the instructions to determine comprise instructions (67) that, when executed by the processor, cause the location determiner (1) to determine the side based on a machine learning model having its output being whether the portable key device is located on the front side or on the back side in relation to the barrier, and the machine learning model having its input being the CIR.

20. The location determiner (l) according to any one of claims 11 to 19, wherein the impulse signal is an ultra-wideband, UWB, signal.

21. A computer program (67, 91) for determining whether a portable key device (2a, 2b) is located on a front side or on a back side in relation to a barrier secured by an electronic lock (12), the computer program comprising computer program code which, when executed on a location determiner (1) causes the location determiner (1) to: obtain a channel impulse response, CIR, based on an impulse signal transmitted from the portable key device, the CIR being based on a plurality of samples of the impulse signal as received by an antenna being fixedly mounted in relation to the electronic lock; and determine, based on the CIR, whether the portable key device (2a, 2b) is located on the front side or on the back side.

22. A computer program product (64, 90) comprising a computer program according to claim 21 and a computer readable means on which the computer program is stored.

Description:
DETERMINING WHEN A PORTABLE KEY DEVICE IS LOCATED ON A

FRONT SIDE OR ON A BACK SIDE

TECHNICAL FIELD

[0001] The present disclosure relates to the field of electronic locks and in particular to determining when a portable key device is located on a front side or on a back side in relation to a barrier secured by an electronic lock.

BACKGROUND

[0002] Locks and keys are evolving from the traditional pure mechanical locks. These days, there are wireless interfaces for electronic locks, e.g. by interacting with a portable key device. For instance, Radio Frequency Identification (RFID) has been used as the wireless interface.

[0003] When RFID is used, the user needs to present the portable key device in close proximity to a reader connected to the lock. Moreover, RFID requires a relatively large antenna in the reader by the lock and uses a large amount of energy. Significantly, RFID requires a user to actively take out the portable key device (e.g. RFID card or NFC (Near Field Communication) enabled smartphone) and bring it to be within centimetres of the lock. This is inconvenient and potentially insecure, since it is easier for an attacker to steal the portable key device when it is presented to the lock for the access control.

[0004] By using other short-range wireless communication with slightly longer communication range, e.g. Bluetooth Low Energy (BLE), Bluetooth or Ultra High Frequency (UHF), the portable key device can stay in a pocket or handbag and still be used for access control. However, the increased range also causes new problems. One problem which occurs if the lock unlocks whenever an authorised portable key device is within range, is that when a person on the inside of an electronic lock walks past the electronic lock, the electronic lock could unintentionally be unlocked, and anyone could gain access to the restricted physical space.

[0005] By determining the position of the portable key device in relation to the lock, it can be determined if the portable key device (and thus the user) is on the inside or the outside. In this way, the automatic access control can still be used, but a person walking past on the inside will not trigger the unlock procedure. SUMMARY

[0006] One object is to improve reliability in determining whether a portable key device is on a front side or back side.

[0007] According to a first aspect, it is provided a method for determining when a portable key device is located on a front side or on a back side in relation to a barrier secured by an electronic lock. The method is performed in a location determiner and comprises the steps of: obtaining a channel impulse response, CIR, based on an impulse signal transmitted from the portable key device, the CIR being based on a plurality of samples of the impulse signal as received by an antenna being fixedly mounted in relation to the electronic lock; and determining, based on the CIR, whether the portable key device is located on the front side or on the back side.

[0008] The front side may be a side with line-of-sight to the antenna and the back side is a side without line-of-sight to the antenna.

[0009] The step of obtaining the CIR may comprises obtaining a first CIR from a first antenna and a second CIR from a second antenna, in which case the step of determining is based on determining a difference between the first CIR and the second CIR over the measurement time period.

[0010] The difference between the first CIR and the second CIR may be determined by calculating an area between an envelope of the first CIR and an envelope of the second CIR in the measurement time period.

[0011] The difference between the first CIR and the second CIR may be determined by calculating a correlation between the envelope of the first CIR 30a and the envelope of the second CIR 30b in the measurement time period 32.

[0012] When a difference between the first CIR and the second CIR is larger than a threshold, this may indicate that the portable key device is on the back side and when a difference between the first CIR and the second CIR is less than a threshold, this may indicate that the portable key device is on the front side.

[0013] The step of determining may be based on the shape of the CIR in the measurement time period. [0014] The step of determining may be based comparing on energy of the CIR in a first time period with an energy of the CIR in a second time period, wherein the first time period and the second time period are both part of the measurement time period.

[0015] The step of determining may be based on a machine learning model having its output being whether the portable key device is located on the front side or on the back side in relation to the barrier, and the machine learning model having its input being the CIR.

[0016] The impulse signal may be an ultra-wideband, UWB, signal.

[0017] According to a second aspect, it is provided a location determiner for determining whether a portable key device is located on a front side or on a back side in relation to a barrier secured by an electronic lock. The location determiner comprises: a processor; and a memory storing instructions that, when executed by the processor, cause the location determiner to: obtain a channel impulse response, CIR, based on an impulse signal transmitted from the portable key device, the CIR being based on a plurality of samples of the impulse signal as received by an antenna being fixedly mounted in relation to the electronic lock; and determine, based on the CIR, whether the portable key device is located on the front side or on the back side.

[0018] The front side may be a side with line-of-sight to the antenna, in which case the back side is a side without line-of-sight to the antenna.

[0019] The instructions to obtain the CIR may comprise instructions that, when executed by the processor, cause the location determiner to obtain a first CIR from a first antenna and a second CIR from a second antenna, in which case the instructions to determine comprise instructions that, when executed by the processor, cause the location determiner to determine a difference between the first CIR and the second CIR over the measurement time period.

[0020] The difference between the first CIR and the second CIR may be determined by calculating an area between an envelope of the first CIR and an envelope of the second CIR in the measurement time period. [0021] The difference between the first CIR and the second CIR may be determined by calculating a correlation between the envelope of the first CIR 30a and the envelope of the second CIR 30b in the measurement time period 32.

[0022] When a difference between the first CIR and the second CIR is larger than a threshold, this may indicate that the portable key device is on the back side and when a difference between the first CIR and the second CIR is less than a threshold, this may indicate that the portable key device is on the front side.

[0023] The instructions to determine may comprise instructions that, when executed by the processor, cause the location determiner to determine the side based on the shape of the CIR in the measurement time period.

[0024] The instructions to determine may comprise instructions that, when executed by the processor, cause the location determiner to determine the side based on comparing on energy of the CIR in a first time period with an energy of the CIR in a second time period, in which case the first time period and the second time period are both part of the measurement time period.

[0025] The instructions to determine may comprise instructions that, when executed by the processor, cause the location determiner to determine the side based on a machine learning model having its output being whether the portable key device is located on the front side or on the back side in relation to the barrier, and the machine learning model having its input being the CIR.

[0026] The impulse signal may be an ultra-wideband, UWB, signal.

[0027] According to a third aspect, it is provided a computer program for determining whether a portable key device is located on a front side or on a back side in relation to a barrier secured by an electronic lock. The computer program comprises computer program code which, when executed on a location determiner causes the location determiner to: obtain a channel impulse response, CIR, based on an impulse signal transmitted from the portable key device, the CIR being based on a plurality of samples of the impulse signal as received by an antenna being fixedly mounted in relation to the electronic lock; and determine, based on the CIR, whether the portable key device is located on the front side or on the back side. [0028] According to a fourth aspect, it is provided a computer program product comprising a computer program according to the third aspect and a computer readable means on which the computer program is stored.

[0029] Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the element, apparatus, component, means, step, etc." are to be interpreted openly as referring to at least one instance of the element, apparatus, component, means, step, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.

BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Aspects and embodiments are now described, by way of example, with refer ence to the accompanying drawings, in which:

[0031] Fig 1 is a schematic diagram showing an electronics access control system being an environment in which embodiments presented herein can be applied;

[0032] Fig 2 is a schematic diagram illustrating components of the location determiner of Fig 1;

[0033] Figs 3A-B are schematic graphs illustrating an impulse signal from a portable key device and a corresponding channel impulse response;

[0034] Figs 4A and 4B are schematic graphs illustrating how the CIR differs between different antennas;

[0035] Figs 5A and 5B are schematic graphs illustrating how the CIR diffuses differently based on when the portable key device is on the front side or back side of the location determiner;

[0036] Fig 6 is a flow chart illustrating embodiments of methods for determining when a portable key device is located on a front side or on a back side in relation to a barrier secured by an electronic lock; and [0037] Fig 7 shows one example of a computer program product comprising computer readable means.

DETAILED DESCRIPTION

[0038] The aspects of the present disclosure will now be described more fully hereinafter with reference to the accompanying drawings, in which certain embodiments of the invention are shown. These aspects may, however, be embodied in many different forms and should not be construed as limiting; rather, these embodiments are provided by way of example so that this disclosure will be thorough and complete, and to fully convey the scope of all aspects of invention to those skilled in the art. Like numbers refer to like elements throughout the description.

[0039] Embodiments presented herein determine when a portable key device is located on a front side or on a back side in relation to a barrier (e.g. a door), based on a channel impulse response (CIR). An impulse is transmitted by the portable key device and the CIR is based on reception by an antenna being fixed in relation to an electronic lock. Depending on whether the portable key device is located on the front side or back side, this will affect the CIR received by the fixed antenna. This allows a convenient and reliable determination of front side or back side, allowing access control e.g. to be performed only when the portable key device is on the front side (i.e. outside) of the barrier.

[0040] Fig 1 is a schematic diagram showing an electronics access control system 10 being an environment in which embodiments presented herein can be applied. Access to a back side 16 of a location determiner 1 is restricted by a physical barrier 15, which is selectively unlockable. The physical barrier 15 stands between the back side 16 of the location determiner and a front side 14 of the location determiner. The back side 16 of the location determiner 1 is restricted physical space and the front side 14 of the location determiner 1 is an accessible physical space. Note that the front side 14 of the location determiner 1 can be a restricted physical space in itself, but in relation to this particular location determiner 1 the front side 14 of the location determiner is accessible. In other words, the back side 16 of the location determiner 1 is inside the physical barrier 15 and the front side 14 of the location determiner is outside the physical barrier 15. The barrier 15 can be a door, gate, hatch, window, drawer, etc. A handle 17 or doorknob is provided to allow opening of the barrier 15, once unlocked. In order to unlock or lock the barrier 15, an electronic lock 12 is provided. The electronic lock 12 can be in an unlocked state or locked state. The electronic lock 12 can be separate from, but connected to, the location determiner 1 or can form part of the location determiner 1 (not shown). The barrier 15 is provided in a surrounding fixed structure 11, such as a wall, fence or vehicle.

[0041] The location determiner 1 comprises one or more antennas 13. Each antenna is fixedly mounted in relation to the electronic lock 12. Each antenna can be a directional antenna, where gain varies depending on direction of reception or transmission. In such a case, the antenna(s) face the front side 14 of the location determiner 1. This implies that the antenna(s) 13 have line-of-sight with portable key devices in the front side 14 of the location determiner. Line-of-sight is to be interpreted as line of sight in terms of radio signal propagation. In other words, there maybe a thin plastic cover or similar protecting the antenna(s) 13 from the space on the front side 14 of the location determiner 1. The direction that the antennas 13a, 13b is facing is the direction in which reception and transmission of signals occur best. Hence, when the antenna(s) are directional antenna(s), the maximum gain of the antenna(s) faces the front side 14. This can e.g. be achieved with a ground plane provided on the opposite side (the back side) of the antennas, see below.

[0042] The front side 14 can be defined as the side of the location determiner that provides line-of-sight communication with a portable key device and the back side 16 can be defined as the opposite side, i.e. the side of the location determiner that does not provide line-of-sight communication with a portable key device.

[0043] The location determiner 1 is used to determine when any portable key devices, such as a first portable key device 2a and a second portable key device 2b in the vicinity of the electronic lock 12 is located on the front side 14 or the back side 16 of the location determiner 1. This determination is based in relation to the location determiner 1 and can e.g. be based on UWB (ultra-wideband) technology. UWB provides great accuracy of device positioning but at the cost of relatively large energy usage. Alternatively or additionally, the positioning module 13 can be based on other positioning technologies.

[0044] The electronic lock 12 is able to receive and send signals from/to portable key devices 2a-b over a communication channel which maybe a short-range wireless interface. The electronic lock 12 can use the same antenna(s) 13 used by the location determiner 1 for the short-range wireless interface.

[0045] Optionally, the electronic lock 12 comprises a separate unit, also known as an access control reader, for communicating with the portable key devices 2a-b and evaluating access. In this example, there is a first portable key device 2a and a second portable key device 2b. The portable key devices 2a-b are implemented using any suitable device which is portable by a user and which can be used by the electronic lock 12 to evaluate whether to grant access or not by communicating over the communication channel. The portable key devices can comprise digital cryptographic keys for electronic authentication.

[0046] The portable key devices 2a-b are typically carried or worn by a user and may be implemented as a smart phone, wearable device, key fob, etc. In this example, the first portable key device 2a is carried by a first user 4a and the second portable key device 2b is carried by a second user 4b. The first user 4a and the first portable key device 2a are located on the front side 14 of the location determiner 1 (i.e. outside the electronic lock 12) and the second user 4b and the second portable key device 2b are located on back side 16 of the location determiner (i.e. inside the electronic lock 12).

[0047] The short-range wireless interface between the portable key devices 2a-b and the electronic lock 12 is a radio frequency wireless interface and could e.g. employ Bluetooth Low Energy (BLE), Bluetooth, ZigBee, Radio Frequency Identification (RFID), any of the IEEE 802.11 standards, any of the IEEE 802.15 standards, etc. Using the communication channel, the portable key devices 2a-b can be authenticated and authorisation determination (access control) can be performed by the electronic lock 12 or the access control reader. The communication over the short-range wireless interface can be encrypted.

[0048] When the access control by the electronic lock 12 results in granted access, the electronic lock 12 is set in an unlocked state. When the electronic lock 12 is in the unlocked state, the barrier 15 can be opened and when the electronic lock 12 is in a locked state, the barrier 15 cannot be opened. In this way, access to the back side 16 of the location determiner 1 is controlled by the electronic lock 12. It is to be noted that the electronic lock 12 can be mounted in the fixed structure 11 by the physical barrier 15 (as shown) or in the physical barrier 15 itself (not shown). [0049] The electronic lock 12 can perform an access control for any portable key device 2a-b presented to it. However, according to embodiments presented herein, access can only be granted after the portable key device 2a is determined to be on the front side 14 of the location determiner. The reason for this is that if access is granted by the electronic lock 12 whenever a portable key device is within communicable range, the second portable key device 2b in the restricted physical space 16 (i.e. on the inside) can result in the electronic lock 12 unlocking when the second user 5 walks by, without intending to unlock the electronic lock 12 to open the barrier. An unauthorised person could then open the barrier 15 and gain access to the restricted physical space 16.

[0050] The electronic lock optionally contains communication capabilities to connect to a server 6 for the electronics access control system 10 via a network 5. The network can be a wide area network, such as the Internet, to which the portable key devices 2a-b can connect e.g. via WiFi (e.g. any of the IEEE 802. nx standards) or a cellular network, e.g. LTE (Long Term Evolution), next generation mobile networks (fifth generation, 5G), UMTS (Universal Mobile Telecommunications System) utilising W-CDMA (Wideband Code Division Multiplex), etc.

[0051] Fig 2 is a schematic diagram illustrating components of the location determiner 1 of Fig 1. A processor 60 is provided using any combination of one or more of a suitable central processing unit (CPU), multiprocessor, microcontroller, digital signal processor (DSP), etc., capable of executing software instructions 67 stored in a memory 64, which can thus be a computer program product. The processor 60 could alternatively be implemented using an application specific integrated circuit (ASIC), field programmable gate array (FPGA), etc. The processor 60 can be configured to execute the method described with reference to Fig 6 below.

[0052] The memory 64 can be any combination of random-access memory (RAM) and/or read-only memory (ROM). The memory 64 also comprises persistent storage, which, for example, can be any single one or combination of magnetic memory, optical memory, solid-state memory or even remotely mounted memory.

[0053] A data memory 66 is also provided for reading and/ or storing data during execution of software instructions in the processor 60. The data memory 66 can be any combination of RAM and/or ROM. [0054] The location determiner 1 further comprises an I/O interface 62 for communicating with external and/or internal entities. Optionally, the I/O interface 62 also includes a user interface. In this embodiment, the location determiner 1 comprises two separate antennas i3a-b. However, the location determiner can be embodied with any suitable number of antennas.

[0055] Other components of the location determiner 1 are omitted in order not to obscure the concepts presented herein.

[0056] Figs 3A-B are schematic graphs illustrating an UWB impulse signal 29 from a portable key device 2a, 2b and a corresponding channel impulse response (CIR). The horizontal axis represents time and the vertical axis represents amplitude.

[0057] In Fig 3A, the UWB impulse signal 29 from the portable key device is shown, in the form it is generated and transmitted from the portable key device. The UWB impulse signal 29 can be transmitted by the portable key device based on a command triggered by the location determiner.

[0058] In Fig 3B, a CIR 30 is shown. The CIR 30 is how the UWB impulse signal 29 is received, in this case by one of the antennas 13a, 13b of the location determiner. Due to attenuation, reflection, absorption, antenna shape and other radio environment factors, the CIR 30 differs in shape from the UWB impulse signal 29.

[0059] Since the radio environment factors differ significantly if the UWB impulse signal is received from the front side 14, in an line-of-sight situation, and if the UWB impulse signal is received from the back side 16, the CIR can be used to determine if the transmitter of the UWB impulse signal 29, i.e. a portable key device, is located on the front side 14 or the back side 16 of the location determiner.

[0060] Figs 4A and 4B are schematic graphs illustrating how the CIR differs between different antennas. A first CIR 30a is shown, being the envelope of the signal received by a first antenna. A second CIR 30b is shown, being the envelope of the signal received by a second antenna.

[0061] In Fig 4A, the first CIR 30a and the second CIR 30b are shown based on the portable key device transmitting the UWB impulse signal 29 from the front side 14. It can be seen how the first CIR 30a and the second CIR 30b are very similar and follow each other very well over a measurement period 32. When the UWB impulse signal 29 is received from the front side 14, there is line-of-sight to the antennas. In this case, the difference between the CIR shapes for the two antennas is very small.

[0062] In Fig 4B, the first CIR 30a and the second CIR 30b are shown based on the portable key device transmitting the UWB impulse signal from the back side 16. In this case, the radio signal will experience different radio environments, and is affected differently by reflection and absorption, resulting in a significant difference between the shapes of the first CIR 30a and the second CIR 30b.

[0063] Due to the difference in how well the CIRs 3oa-b match when the portable key device is on the front side 14 or the back side 16, the location determiner 1 can deduce that the portable key device is on the front side 14 if the difference between the CIR shapes for the two antennas 13a, 13b is less than a threshold and that the portable key device is on the back side if the difference between the CIR shapes for the two antennas 13a, 13b is greater than a threshold.

[0064] Figs 5A and 5B are schematic graphs illustrating how the CIR diffuses differently based on when the portable key device is on the front side or back side of the location determiner. A first CIR 30a is shown, being the envelope of the signal received by a first antenna. A second CIR 30b is shown, being the envelope of the signal received by a second antenna. The measurement period 32 here contains a first time period 33a and a second time period 33b. The first time period 33a and the second time period 33b do not need to cover the entire measurement period 32. In one embodiment, the first time period 33a and the second time period 33b do not overlap. The first time period 33a and the second time period 33b can be fixed to a preconfigured duration, e.g. from when the CIR is greater than a particular amplitude, and the second time period 33b following the first time period 33a with a preconfigured duration. Alternatively, the first time period and the second time period can be determined dynamically based on pre determined rules.

[0065] In Fig 5A, the first CIR 30a and the second CIR 30b are shown based on the portable key device transmitting the UWB impulse signal 29 from the front side 14.

[0066] There is here a line-of-sight between the portable key device and the antennas, in which case the CIR reasonably well reflects the UWB impulse signal 29. When the portable key device is on the front side 14, there is thus a significant amount of energy received in the first time period 33a than in the second time period 33b. Energy can be defined as the integration of the CIR in question in the time period, i.e. the area under the CIR.

[0067] In Fig 5B, the first CIR 30a and the second CIR 30b are shown based on the portable key device transmitting the UWB impulse signal 29 from the back side 16.

[0068] In this situation, the UWB impulse signal is reflected and absorbed by different materials before being received by the antenna(s). This diffuses the UWB impulse signal, resulting in CIRs that are more spread out in energy over time, compared to when the portable key device is on the front side.

[0069] In other words, when the portable key device is on the back side 16, the energy of the CIR(s) in the second time period 33b is more similar to the amount of energy of the CIR(s) in the first time period 33a.

[0070] The determination of side of the portable key device can thus be determined by evaluating a quote between the energy of a CIR in the first time period 33a in relation to the energy of the CIR in the second time period 33b. This quote can be for each CIR or a combination of CIRs. It is to be noted that there can be more time periods than two. For instance, there can be three time periods and one or several ratios of energy between the different time periods can be used to determine on which side the portable key device is located

[0071] Fig 6 is a flow chart illustrating embodiments of methods for determining when a portable key device 2a, 2b is located on a front side 14 or on a back side 16 in relation to a barrier 15 secured by an electronic lock 12. The embodiments of the methods are performed in the location determiner 1. The front side 14 can be defined as a side of the location determiner with line-of-sight to the antenna(s) 13, 13a, 13b and the back side 16 can be defined as a side without line-of-sight to the antenna 13, 13a, 13b.

[0072] In an obtain CIR(s) step 40, the location determiner obtains one or more CIRs, 30a, 30b, 30c based on an impulse signal 29 transmitted from the portable key device 2a, 2b. Each CIR 30a, 30b, 30c is based on a plurality of samples of the impulse signal 29 as received by a respective antenna 13, 13a, 13b. As mentioned above, each antenna 13, 13a, 13b is fixedly mounted in relation to the electronic lock 12.

[0073] This step can comprise obtaining a first CIR 30a from a first antenna 13a and a second CIR 30b from a second antenna 13b.

[0074] In a determine side step 42, location determiner determines, based on the CIR, whether the portable key device 2a, 2b is located on the front side 14 or on the back side 16. This determination considers the shape of the CIR, and not only to find the first peak. For instance, the determination can consider a measurement time period 35 of the CIR that contain at least two peaks. The determination of side is based on the shape of the CIR in the measurement time period 32.

[0075] When the first CIR 30a and the second CIR 30b are obtained in the preceding step 40, the determining of side can be based on determining a difference between the first CIR and the second CIR over the measurement time period, as illustrated in Figs 4A and 4B and explained above.

[0076] The difference between the first CIR and the second CIR can be determined by calculating an area between an envelope of the first CIR 30a and an envelope of the second CIR 30b in the measurement time period 32.

[0077] The difference between the first CIR and the second CIR can be determined by calculating a correlation between the envelope of the first CIR 30a and the envelope of the second CIR 30b in the measurement time period 32.

[0078] In the determination of side, when a difference between the first CIR and the second CIR is larger than a threshold, this can indicate that the portable key device 2a, 2b is on the back side 16. Analogously, when a difference between the first CIR and the second CIR is less than a threshold, this can indicate that the portable key device 2a, 2b is on the front side 14.

[0079] In one embodiment, the determination of side is based comparing on energy of the CIR in a first time period 33a with an energy of the CIR in a second time period 33b, wherein the first time period 33a and the second time period 33b are both part of the measurement time period. This is illustrated in Figs 5A-B and is described above. [0080] Optionally, the determination of side is based on a machine learning model having its output being whether the portable key device is located on the front side or on the back side in relation to the barrier, and the machine learning model having its input being the CIR.

[0081] Optionally, the presented method can be combined with angle-of-arrival measurements for improved accuracy. The angle-of-arrival measurements are based on a time difference between the two antennas 13a, 13b of receiving the UWB signal. The angle-of-arrival defines a direction to the portable key device from the antennas. For instance, in one embodiment, if the distance is determined to be less than a threshold distance, and the angle-of-arrival is in a predefined range, and the method described above indicates that the portable key device is on the outside (i.e. front side), access can be granted (if the portable key device is authenticated and is authorised access).

[0082] Fig 7 shows one example of a computer program product 90 comprising computer readable means. On this computer readable means, a computer program 91 can be stored, which computer program can cause a processor to execute a method according to embodiments described herein. In this example, the computer program product is in the form of a removable solid-state memory, e.g. a Universal Serial Bus (USB) drive. As explained above, the computer program product could also be embodied in a memory of a device, such as the computer program product 64 of Fig 6. While the computer program 91 is here schematically shown as a section of the removable solid- state memory, the computer program can be stored in any way which is suitable for the computer program product, such as another type of removable solid-state memory, or an optical disc, such as a CD (compact disc), a DVD (digital versatile disc) or a Blu-Ray disc.

[0083] The aspects of the present disclosure have mainly been described above with reference to a few embodiments. However, as is readily appreciated by a person skilled in the art, other embodiments than the ones disclosed above are equally possible within the scope of the invention, as defined by the appended patent claims. Thus, while various aspects and embodiments have been disclosed herein, other aspects and embodiments will be apparent to those skilled in the art. The various aspects and embodiments disclosed herein are for purposes of illustration and are not intended to be limiting, with the true scope and spirit being indicated by the following claims.