UWB-based digital key unlocking and locking judgment method and intelligent door lock system
Through UWB two-way communication ranging and CIR signal processing, combined with CFAR target detection, it solves the problem of misjudgment of digital keys in multi-path environments, achieves accurate opening and closing operations of smart door locks and improves safety, and extends the battery life of the device. life.
Patent Information
- Application Number
- CN202410997390.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-09-24
AI Technical Summary
Existing digital key technology has shortcomings in terms of low position sensing accuracy and security. Especially in multipath environments, it can easily lead to misjudgments, resulting in the smart door lock being accidentally opened or the digital key being locked in the room or car.
The UWB-based digital key opening and closing lock determination method is adopted, through UWB two-way communication ranging and CIR signal processing, combined with CFAR target detection, to accurately determine the position of the digital key inside and outside the door, and determine the digital key through distance calculation and first diameter peak comparison position to ensure the accuracy and safety of the opening and closing operation.
It accurately determines the location of the digital key in a multipath environment, preventing the smart door lock from being accidentally opened or the digital key from being locked by mistake, improving security, and extending battery life through the low-power BLE module to avoid network relay attacks.
Smart Images

Figure CN118692176A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology and relates to intelligent door lock technology, and specifically to a digital key unlocking and locking determination method based on UWB and an intelligent door lock system. Background Art
[0002] Digital key technology has brought great convenience and a certain degree of security, and has begun to be used in the opening and closing control of car doors or house doors. However, existing digital key technologies mostly use Bluetooth for data exchange and thereby realize the positioning of digital keys. However, the position perception accuracy is not high, and it is impossible to accurately determine whether the digital key is inside or outside the room or inside or outside the vehicle. It is also susceptible to relay attacks and has security vulnerabilities.
[0003] Smartphones, watches and other electronic devices are gradually equipped with Bluetooth technology, near-field communication technology, UWB technology, etc., which has promoted the development of digital keys and smart door locks. Digital key technology has high position perception accuracy and security, but there is still the problem of misjudgment of the position of digital keys inside and outside the door, which in turn causes smart door locks to be unlocked by mistake and digital keys to be locked in the room or car.
[0004] Ultra Wide Band (UWB) technology is a wireless carrier communication technology that does not use a sinusoidal carrier but uses nanosecond non-sinusoidal narrow pulses to transmit data, so it occupies a wide spectrum range. UWB technology has the advantages of low system complexity, low power spectrum density of transmitted signals, insensitivity to channel fading, low interception capability, and high positioning accuracy. It is especially suitable for high-speed wireless access in dense multipath places such as indoors.
[0005] The Chinese patent with the public number CN109993868A discloses using a mobile terminal to send unlocking information to a smart door lock through remote communication, and detects whether the mobile terminal is within the near-field communication range of the smart door lock. If both the remote communication verification and the near-field communication verification are legal, the smart door lock triggers unlocking. However, the near-field end of this patent only determines whether the digital key is within a certain radius of the smart door lock, and cannot accurately determine the position of the digital key inside and outside the door. At the same time, the Internet and WIFI and other communication technologies used in remote communication are vulnerable to relay attacks.
[0006] The Chinese patent with the public number CN205845116U discloses a smart lock system with the function of identifying the inside and outside of the PKE smart card. It mainly determines the inside and outside position of the smart card by comparing the strength of the received signal inside and outside the door, that is, the signal strength received by the antenna on one side of the smart card is greater than the signal strength received by the antenna on the other side. However, since the geographical environment of the door is generally more complex, the wireless signal will be reflected by the wall outside the door, reflected by the ground, penetrate the door and be reflected by the object behind the door, etc., that is, the wireless transmission channel must be a multipath channel, and the reflected signal will interfere with the direct signal, resulting in multipath fading, and the strength of the received signal inside and outside the door will also change. This may also cause the system to have the problem of incorrect recognition of the inside and outside position of the door in actual application, and it may be impossible to unlock or lock the digital key into the room or car. Summary of the invention
[0007] In view of the defects of the above-mentioned prior art, the present invention discloses a UWB-based digital key unlocking and locking judgment method and an intelligent door lock system.
[0008] The UWB-based digital key unlocking and locking determination method of the present invention comprises the following steps: Step S1: Pairing the digital key and the smart door lock. If the pairing is successful, the communication module is awakened and the process goes to step S105; Step S105: state perception, the smart door lock perceives the current door open or closed state, if it is in the closed state, it proceeds to step S106, otherwise it terminates or waits until the door is in the closed state; Step S106: Distance measurement is initiated, and the smart door lock initiates UWB two-way communication distance measurement; Step S107: ranging reply, the digital key replies to the UWB two-way communication ranging; Step S108: ranging processing, performing CIR acquisition and CFAR target detection on the UWB two-way communication ranging reply signal in step S107; obtaining the CIR signal first path peaks inside and outside the door; Step S109: Distance calculation. After step S107 is completed, the smart door lock performs distance calculation to obtain the distance between the digital key and the smart door lock. Step S110: comparing the CIR peak values of the inner and outer antenna UWB signals processed in step S108; Step S111: Position determination, Determine the inside and outside positions of the digital key according to the comparison of the CIR peak values of the inner and outer antenna received signals detected in step S110. If the outer antenna CIR peak value is greater than the inner antenna CIR peak value, determine that the digital key is outside the door. Otherwise, determine that the digital key is inside the door. Step S112: unlock and lock execution, The unlocking and locking are performed according to whether the distance calculated in step S109 is within the restricted distance range and the position of the digital key outside the door determined in step S111; Specifically: if the distance measured by the digital key and the smart door lock meets the restricted distance range and it is determined that the digital key is outside the door, the unlocking and locking will be executed; in other cases, the unlocking and locking will not be executed.
[0009] Preferably, in the CFAR detection of step 108, the initial value M of the number of protection units is set to 2, the initial value N of the number of reference units is set to 20, the constant false alarm rate is set to 1e-6, and the calculated value of the scale factor is 19.9.
[0010] Preferably, in step S109, the smart door lock performs distance calculation according to the UWB signal flight time TOF of the UWB two-way communication ranging, specifically: The time interval between sending and receiving signals at the smart door lock end is recorded as t 1 , the time interval between receiving and sending signals on the digital key is t 2 , then the flight time of the UWB signal is t TOF =(t 1 -t 2 ) / 2, then the distance between the smart door lock and the digital key is d=c*t TOF ; c is the speed of light.
[0011] Preferably, step S1 comprises the following steps: Step S101: Initiate a connection, the digital key initiates a communication connection with the smart door lock; Step S102: The digital key wakes up in any of the following ways: Wake-up method 1: The person who locks the door outside sends an unlock command to the unlock sensor of the smart door lock. The smart door lock transmits the unlock command to the digital key. The digital key receives the unlock command and sends its own identity information, and wakes up the UWB module of the digital key at the same time. Wake-up method 2: The person who locks the door outside initiates the unlocking and locking command through the digital key. The digital key sends the unlocking and locking signal and its own identity information to the smart door lock and wakes up the UWB module of the digital key. Step S103: Identity pairing, the smart door lock verifies whether the identity information of the digital key matches the identity information preset in the smart door lock. If they are completely consistent, it is considered a match and the process proceeds to step 104, otherwise the process is terminated.
[0012] Step S104: The smart door lock wakes up. The smart door lock receives the unlocking and locking signals of the target digital key, and the UWB module of the smart door lock is awakened.
[0013] Preferably, in steps S101 to S104, both the digital key and the smart door lock include a BLE module and establish a communication connection through the BLE module, and the UWB module is awakened by the BLE module.
[0014] Preferably, in other cases described in step S112, if the smart door lock receives an unlocking signal and determines that the digital key is inside the door, unlocking is not performed; if the smart door lock receives a locking signal but determines that the digital key is inside the door, locking is not performed.
[0015] A UWB-based smart door lock system, comprising a smart door lock and a digital key, wherein the digital key comprises an information input module, a BLE module, and a UWB module; Among them, the information input module is used to input unlocking and locking information and store digital key identity information, the BLE module is used to send unlocking or unlocking signals containing identity information and wake up the smart door lock; the UWB module is used to send UWB two-way communication ranging replies; The smart door lock includes a main control module, an opening and closing lock signal input module, a BLE module, a UWB module, an outer antenna, an inner antenna, an opening and closing lock module, and a power module; Among them, the main control module is used to execute the method; the induction switch is used to sense the open and closed states of the door; the unlock and lock signal input module is used to input the open and unlock signals and preset identity information; the BLE module is used to receive the unlock or unlock signal containing identity information and wake up the UWB module; the UWB module is used to initiate UWB two-way communication ranging; the outer antenna and the inner antenna are used to send or receive UWB signals; the unlock and lock module is used to execute unlocking or locking.
[0016] Preferably, the UWB module includes: A signal receiver, used to receive the pulse signal and record the arrival time of the signal; A signal transmitter, which transmits a pulse signal and records the signal transmission time; Clock generator, providing the clock signal required by the UWB module; Host interface, connected to the terminal host for signal storage and processing; State controller, regulating the A / D converter and antenna switch K; It also includes an A / D converter connected to each module for converting digital signals into analog signals.
[0017] Preferably, the inner antenna and the outer antenna are respectively arranged on the inner side and the outer side of the door on which the smart door lock is installed, and a metal isolation plate is provided between the inner antenna and the outer antenna.
[0018] Preferably, the digital key is implemented by installing software on a smartphone equipped with a UWB module and a BLE module.
[0019] Preferred.
[0020] The beneficial effects of the UWB-based digital key unlocking and locking determination method and the intelligent door lock system of the present invention are as follows: 1. The smart door lock can accurately determine whether the digital key is inside or outside the door by comparing the peak value of the first path in the received UWB ranging signal CIR. It can prevent the smart door lock from being opened by mistake or the digital key from being locked in the door by mistake in the multipath environment formed in the actual application scenario.
[0021] 2. The digital key and smart door lock are usually in a low-power state of the BLE module, which can effectively increase the working time of the digital key and smart door lock battery.
[0022] 3. The digital key and the smart door lock can sense the actual distance between them through distance measurement, which can prevent network relay attacks over long distances and improve the security of the smart door lock.
[0023] 4. The digital key of the present invention can utilize the UWB and BLE modules of a smart phone by loading application software to use the smart phone as a digital key, without the need to make a separate physical digital key, which saves costs and is easy to carry. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a system schematic diagram of a smart door lock and a digital key in one embodiment of the present invention; Figure 2 is a schematic diagram of a multipath channel model for wireless transmission of an intelligent door lock in one embodiment of the present invention; Figure 3 It is a signal block diagram of a UWB module of a digital key and a smart door lock in one embodiment of the present invention; Figure 4 1 is a schematic diagram of a CIR waveform of an actual channel receiving signal after target detection in an embodiment of the present invention, wherein the horizontal axis is time t and the vertical axis is the waveform voltage value.
[0025] Figure 5 It is a schematic cross-sectional view of the side structure of a smart door lock in one embodiment of the present invention.
[0026] Figure 6 This is a schematic diagram of the composition of a digital key module in one embodiment of the present invention; Figure 7 This is a schematic diagram of the composition of the smart door lock module in one embodiment of the present invention; Figure 8 It is a schematic diagram of a UWB two-way communication ranging method based on flight time in one embodiment of the present invention.
[0027] Fig. 9 It is a schematic diagram of the working process of a digital key and a smart door lock in one embodiment of the present invention.
[0028] Fig.10 It is a schematic diagram of the information interaction process between the digital key and the smart door lock in one embodiment of the present invention.
[0029] Fig.11 It is a flow chart of a method for determining the inside and outside positions of a digital key door based on UWB in one embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the significance, technical solutions and innovations of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments and drawings. It should be understood that the drawings of the present invention are only for the purpose of illustration and description and are not used to limit the protection scope of the present invention. In addition, it should be understood that the schematic drawings are not drawn according to the actual scale. It should be understood that the operations of the flowchart may not be performed in the order described. In this embodiment, the UWB module used for the physical digital key and the smart door lock adopts a functional module based on NXP Trimension-SR150; the digital key and the smart door lock are paired in advance, the digital key or the smart door lock sends an unlock or unlock signal and wakes up the smart door lock, the smart door lock receives the unlock or unlock signal and verifies the ID information of the digital key, and the smart door lock senses whether the door is in a closed state after successfully verifying the digital key ID information. The smart door lock initiates UWB two-way communication ranging only when it senses that the door is in a closed state, and performs a second ID information verification.
[0031] The inner and outer antennas on both sides of the smart door lock receive two UWB two-way communication ranging reply signals respectively, and perform distance calculation after completing UWB two-way communication ranging with the digital key, and obtain CIR (Channel Impulse Response) and CFAR (Constant False-Alarm Rate) target detection by performing CIR (Channel Impulse Response) on the UWB signals received by the antennas on both sides.
[0032] Then, the first path peak values of the signals processed by the antennas on both sides are compared. If the CIR first path peak value of the signal processed by the antenna outside the door is greater than the first path peak value of the signal processed by the antenna inside the door, it is determined that the digital key is outside the door. Otherwise, it is determined that the digital key is inside the door, and the door is unlocked or locked when the measured distance between the digital key and the smart door lock is within the set distance limit.
[0033] Figure 1 The specific structure of a UWB-based intelligent door lock system is shown. Figure 1As shown, the smart door lock includes a digital key 10 and a smart door lock 20, wherein the digital key 10 can be a physical key specially matched with the smart door lock, or it can be a mobile terminal that realizes the digital key function by loading software, such as a smart phone.
[0034] Among them, the digital key 10 is used to initiate unlocking or locking; the smart door lock 20 is used to verify the identity of the digital key 10 and determine the location of the digital key, and perform corresponding unlocking or locking actions according to the identity authentication, ranging distance, and location determination results.
[0035] The smart door lock 20 can also initiate unlocking or locking on its own, and its unlocking or locking request is transmitted to the digital key 10 through the BLE (low-power Bluetooth module) module. The digital key 10 then initiates identity authentication, and the smart door lock 20 verifies the identity of the digital key 10 and determines the location of the digital key, and performs corresponding unlocking or locking actions based on the identity authentication, ranging distance, and position determination results.
[0036] Figure 2 The wireless transmission multipath channel model of this embodiment is shown. Since the multipath environment of the digital key when it is located outside the door and inside the door is similar, the two multipath channel models outside the door and inside the door are summarized as follows: Figure 2 .
[0037] like Figure 2 As shown, when the digital key 10 is outside the door, the corresponding signal transmission paths include: a first direct signal Z1 from the digital key on the outside of the door directly reaching the outer antenna of the smart door lock 20, a first reflected signal 1 from the digital key reflected from the side wall outside the door to the outer antenna of the smart door lock, a second reflected signal 2 from the digital key reflected from the ground to the outer antenna of the smart door lock, and a third reflected signal 3 from the digital key penetrating from the outside of the door to the inside of the door and then reflected from the reflector 30 inside the door to the inner antenna of the smart door lock. Four types of multipath signals.
[0038] Similarly, when the digital key is on the inside of the door, the corresponding signal transmission paths include: the second direct signal from the digital key on the inside of the door directly to the antenna inside the smart door lock, the fourth reflected signal 4 from the digital key reflected from the inner wall of the door to the antenna inside the smart door lock, the fifth reflected signal 5 from the digital key reflected from the ground to the antenna inside the smart door lock, and the sixth reflected signal 6 from the digital key penetrating from the inside of the door to the outside of the door and then reflected from the reflective object on the outside of the door to the outside antenna of the smart door lock. There are four types of multipath signals.
[0039] In order to solve the signal multipath fading problem caused by these types of transmission paths, the present invention uses UWB signals with ultra-high distance resolution to transmit signals between digital keys and smart door locks. Due to the ultra-wideband characteristics of ultra-wideband signals, the pulse width of UWB signals in the time domain is nanoseconds, and its corresponding distance resolution is as high as centimeters, which makes it possible to distinguish the above four types of signal transmission paths in the time domain waveform, that is, the direct signal waveform is in front, and the signal strength is the largest, and the remaining types of signal transmission paths receive signal waveforms in the back, and the signal strength decreases with the transmission distance and penetration loss.
[0040] Figure 3 The block diagram of the UWB module of the physical digital key and the smart door lock of the embodiment of the present invention is shown. It includes a signal receiver. In this embodiment, a UWB receiving module with two receivers is used as a signal receiver to receive pulse signals and record the arrival time of the signals; a signal transmitter to transmit pulse signals and record the signal transmission time; a clock generator to provide various clock signals required by the UWB module; an A / D converter to convert digital signals and analog signals; a power module to provide the power required for the UWB module to work; a host interface to connect to the terminal host to store and process signals; a state controller to adjust the A / D converter and the antenna switch K. The antenna switch is connected to the signal transmitter when transmitting the signal and to the signal receiver when receiving the signal. The transmission or reception of the signal is completed by multiplexing the antenna.
[0041] Figure 4 FIG. 4 shows a schematic diagram of the CIR waveform of the actual channel receiving signal after target detection in this embodiment. Figure 2 The four types of multipath signals in the two situations inside and outside the gate are shown in FIG.
[0042] like Figure 4 As shown, when the digital key is outside the door, the first path of the signal received by the antenna outside the door is the first direct signal Z1, followed by the first reflected signal 1 and the second reflected signal 2 outside the door, and the signal received by the antenna inside the door is only the third reflected signal 3 inside the door, that is, the first path inside the door is the third reflected signal 3; when the digital key is inside the door, the signal received by the antenna outside the door is only the sixth reflected signal 6, that is, the first path outside the door is the sixth reflected signal 6, and the first path of the signal received by the antenna inside the door is the second direct signal Z2, followed by the fourth reflected signal 4 and the fifth reflected signal 5 of the multipath inside the door. Regardless of whether the digital key is inside or outside the door, the comparison of the CIR first paths of the received signals on both sides can clearly and accurately determine the relative position of the key inside and outside the door.
[0043] Figure 5 FIG. 2 shows the side structure of an intelligent door lock device according to a specific embodiment of the present invention. Figure 5As shown, the inner antenna and the outer antenna are respectively arranged on both sides of the metal door lock. The inner antenna and the outer antenna are directional antennas with a large front-to-back ratio. A metal isolation plate is set between the two antennas to further increase the front-to-back ratio of the inner antenna and the outer antenna and prevent signal coupling and signal leakage.
[0044] Figure 6 FIG. 1 shows the composition of a physical digital key module according to an embodiment of the present invention. Figure 6 As shown, the physical digital key includes an information input module, a BLE module, a UWB module, and a power module.
[0045] Among them, the information input module is used to input unlocking and locking information and store the digital key's own identity information; the BLE module is used to send unlocking or unlocking signals containing identity information and wake up the smart door lock; the UWB module is used to send UWB two-way communication ranging replies; the power module is used to power each module.
[0046] Figure 7 The figure shows the components of the intelligent door lock module according to the embodiment of the present invention. Figure 7 As shown, the smart door lock has a main control module, an opening and closing lock signal input module, a BLE module, a UWB module, an outer antenna, an inner antenna, an opening and closing lock module, and a power module.
[0047] Among them, the main control module is used for identity authentication, location, distance determination, and control; the induction switch is used to sense the open and closed status of the door; the open and close lock signal input module is used to input open and close lock signals and preset identity information; the BLE module is used to receive unlock or open and close lock signals containing identity information and wake up the UWB module; the UWB module is used to initiate UWB two-way communication ranging; the outer antenna and the inner antenna are used to send or receive UWB signals; the open and close lock module is used to execute unlocking or locking; the power module is used to power each module.
[0048] In a specific implementation, the BLE module may be a CC2640 module, and the induction switch may be use The unipolar Hall sensor switch HAL131 will cause voltage changes when the metal door lock is close to the Hall element, thereby determining whether the door is closed. The lock and unlock signal input module can use a capacitive touch module of the TTP223 model, etc., and can be operated directly through touch buttons.
[0049] Figure 8A UWB two-way communication ranging method based on time of flight (TOF) is shown. It calculates the distance by measuring the time of flight (TOF) of the UWB signal between the smart door lock and the digital key. The smart door lock first initiates the ranging, the digital key receives and replies to the ranging, the smart door lock receives the ranging reply, and the smart door lock and the digital key respectively record the timestamp information of sending and receiving through the clock generator of their UWB modules to obtain the time interval between sending and receiving. For example, the time interval between sending and receiving signals on the smart door lock end is recorded as t 1 , the time interval between receiving and sending signals on the digital key is t 2 , the time of flight (TOF) of the UWB signal can be calculated as t TOF =(t 1 -t 2 ) / 2, and then the distance between the smart door lock and the digital key can be calculated based on the product of the flight time and the electromagnetic wave propagation speed d=c*t TOF ; c is the speed of light.
[0050] Fig. 9 FIG. 1 shows the working process of the digital key 10 and the smart door lock 20 of the UWB-based smart door lock device according to an embodiment of the present invention. Figure 8 As shown, the workflow of the digital key 10 and the smart door lock 20 includes steps S101 to S111.
[0051] Step S101: Establish a connection. The digital key establishes a communication connection with the smart door lock through the BLE module; Step S102: The digital key wakes up, and the wake-up method can be any of the following; Wake-up method 1, wake-up through the unlocking and locking sensor: the person who locks the door outside sends an unlocking and locking command to the unlocking and locking sensor of the smart door lock, and the smart door lock transmits the unlocking and locking command to the digital key. The digital key receives the unlocking and locking command and sends its own identity information, and wakes up the UWB module of the digital key at the same time; Wake-up method 2, directly wake up through the digital key: the person who locks the door outside initiates the unlocking and locking command through the digital key, and the digital key sends the unlocking and locking signal and its own identity information to the smart door lock and wakes up the UWB module of the digital key. Both methods require holding the digital key.
[0052] Step S103: identity pairing. Before executing the above-mentioned UWB-based digital key door inside and outside position determination method, the smart door lock and the digital key must establish a connection pairing through the BLE protocol, and the smart door lock verifies whether the identity information of the digital key matches the identity information preset in the smart door lock. If they are completely consistent, it is considered a match and proceeds to step 104, otherwise the process is terminated.
[0053] Step S104: The smart door lock wakes up. After completing step S103, the smart door lock receives the unlocking and locking signals of the target digital key, and the UWB module of the smart door lock is awakened.
[0054] Step S105: state perception, the smart door lock perceives the current open and closed state of the door. If it is in the closed state, it proceeds to step S106. Otherwise, the door cannot be locked because it is in the open state. In the open state, a prompt may be issued and wait until the door is in the closed state. Step S106: Distance measurement is initiated. In step S105, the smart door lock initiates UWB two-way communication distance measurement only when it senses that the door is in a closed state.
[0055] Step S107: Distance measurement reply, the digital key replies to the UWB two-way communication distance measurement.
[0056] Step S108: ranging processing, performing CIR acquisition and CFAR target detection on the UWB two-way communication ranging reply signal in step S107, and obtaining the first path peak value of the CIR signal inside and outside the door; In this step, the initial value M of the number of protection units that can be set in CFAR detection is 2. Its main function is to prevent the target energy from leaking into the reference unit and affecting the detection effect. The initial value N of the number of reference units is set to 20. It mainly calculates the statistical information of the background noise by averaging and multiplies it with the scale factor k to determine the threshold. When the target value is greater than the threshold, it means that the target energy is at a high level in the nearby units, so the target is detected and some clutter interference is eliminated.
[0057] Since the scale factor k is related to the constant false alarm rate and the number of reference units, when the constant false alarm rate is set to 1e-6, the scale factor k is 19.9. At the same time, in actual application, both N and the constant false alarm rate can be adjusted to improve the effect of target detection and avoid misidentification of the first path peak due to clutter interference.
[0058] Step S109: Distance calculation. After step S107 is completed, the smart door lock performs distance calculation to obtain the distance between the digital key and the smart door lock.
[0059] Step S110: Comparison of the CIR peak values of the inner and outer antenna UWB signals processed in step S108.
[0060] Step S111: Position determination, The position of the digital key inside or outside the door is determined based on the comparison of the CIR peak values of the inner and outer antenna received signals detected in step S110. If the outer antenna CIR peak value is greater than the inner antenna CIR peak value, the digital key is determined to be outside the door; otherwise, the digital key is determined to be inside the door.
[0061] Step S112: unlock and lock execution, The locking is performed when the distance calculated in step S109 is within the restricted distance range and the position of the digital key outside the door is determined in step S111, that is, if the distance measured between the digital key and the smart door lock meets the restricted distance range and it is determined that the digital key is outside the door, the unlocking or locking is performed according to the unlocking or locking instruction issued in step S102; in other cases, it is not executed and the original state is maintained. For example, if it is determined that the digital key is inside the door, no action is performed, thereby preventing the digital key from being locked in the door by mistake; the restricted distance range is a preset spatial distance, which is used to determine whether the digital key is within a reasonable distance near the smart door lock, for example, it can be set to 0.5-2 meters; Furthermore, if the person unlocking the door from outside sends an unlocking signal to the input module of the smart door lock through the unlocking and locking sensor on the outside door handle of the smart door lock, then in step S112, when the distance measured between the digital key and the smart door lock meets the restricted distance range, if it is determined that the digital key is outside the door, unlocking is executed; if it is determined that the digital key is inside the door, unlocking is not executed, thereby preventing the smart door lock from being accidentally unlocked when the digital key is placed inside the door.
[0062] The above situation is for the case where the person holding the digital key is indoors and the person outside unlocks the door by inputting an unlocking signal, so as to avoid accidental unlocking.
[0063] Specifically, in step S101 and step S103, the smart door lock pre-stores the UUID (Universally Unique Identifier) of the target digital key BLE module. The digital key establishes a connection with the smart door lock in the form of BLE broadcast. The broadcast contains the UUID of the BLE service. The smart door lock completes the identity authentication of the target digital key by identifying the UUID.
[0064] In steps S102 and S104, the UWB module is controlled by the BLE module. Usually, the UWB module of the smart door lock is in standby mode for a long time to reduce power consumption. After startup, the UWB module of the smart door lock wakes up after receiving the BLE unlocking or unlocking signal sent by the target digital key.
[0065] In step S106, the UWB module of the smart door lock wakes up and initiates the following Figure 6 The UWB two-way communication ranging shown, the UWB module of the target digital key replies with the UWB two-way communication ranging.
[0066] In step S109, the smart door lock calculates the distance based on the flight time TOF of the UWB two-way communication ranging.
[0067] Fig.10The information interaction process between the digital key and the smart door lock of an embodiment of the present invention is shown, including pairing and identity authentication of the digital key and the smart door lock through BLE, and two-way communication ranging through UWB.
[0068] Fig.11 FIG. 1 is a flow chart showing a method for determining the inside and outside positions of a digital key door based on UWB according to an embodiment of the present invention. Fig.11 As shown, the method for determining whether a digital key is inside or outside a door includes steps S501 to S507.
[0069] Step S501: Based on BLE pairing, the smart door lock and the target digital key complete identity authentication through BLE.
[0070] Step S502: Wake up UWB based on BLE. The UWB of the smart door lock and the digital key are both in a low power consumption state, and wake up UWB through BLE.
[0071] Step S503: Sense the open or closed state of the door, and the smart door lock senses whether the door is in a closed state.
[0072] Step S504: Perform UWB two-way communication distance measurement. The door is closed. The digital key and the smart door lock perform the following steps: Fig. 9 UWB two-way communication ranging shown.
[0073] Step S505: Distance calculation: the smart door lock performs distance calculation based on TOF.
[0074] Step S506: Compare the CIR peak values of the signals inside and outside the door, and compare the peak values of the processed two-way UWB ranging reply signals received by the inner antenna and the outer antenna of the smart door lock in step S504.
[0075] Step S507: Determine the position inside and outside the door. Determine the position of the digital key inside and outside the door based on the comparison result of the first path peak size determined in step S506. If the first path peak of the CIR signal received by the outer antenna is greater than the first path peak of the inner antenna, it is determined that the digital key is outside the door. Otherwise, it is determined that the digital key is inside the door.
[0076] Step S508: unlock or lock. When receiving the unlocking command, the unlocking control is performed only when the distance calculated according to step S505 meets the distance limit requirement and the digital key is outside the door as determined in step S507, in order to prevent the door lock from being opened by mistake.
[0077] When a locking command is received, the locking control can be executed only when the distance calculated according to step S505 meets the distance limit requirement and the digital key is outside the door as determined in step S507 to prevent the digital key from being locked in the room or car.
[0078] The beneficial effects of the UWB-based digital key unlocking and locking determination method and the intelligent door lock system of the present invention are as follows: 1. The smart door lock can accurately determine whether the digital key is inside or outside the door by comparing the peak value of the first path in the received UWB ranging signal CIR. It can prevent the smart door lock from being opened by mistake or the digital key from being locked in the door by mistake in the multipath environment formed in the actual application scenario.
[0079] 2. The digital key and smart door lock are usually in a low-power state of the BLE module, which can effectively increase the working time of the digital key and smart door lock battery.
[0080] 3. The digital key and the smart door lock can sense the actual distance between them through distance measurement, which can prevent network relay attacks over long distances and improve the security of the smart door lock.
[0081] 4. The digital key of the present invention can utilize the UWB and BLE modules of a smart phone by loading application software to use the smart phone as a digital key, without the need to make a separate physical digital key, which saves costs and is easy to carry.
[0082] The foregoing describes various preferred embodiments of the present invention. Unless the preferred implementation modes in various preferred embodiments are obviously self-contradictory or based on a certain preferred implementation mode, various preferred implementation modes can be arbitrarily superimposed and used in combination. The embodiments and specific parameters in the embodiments are only for clearly describing the invention verification process of the inventor, and are not used to limit the patent protection scope of the present invention. The patent protection scope of the present invention shall still be based on its claims. All equivalent structural changes made using the contents of the description and drawings of the present invention should be included in the protection scope of the present invention.
Claims
1. A UWB-based digital key unlocking and locking determination method, characterized in that: The following steps are involved: Step S1: Pairing the digital key and the smart door lock. If the pairing is successful, the communication module is awakened and the process goes to step S105; Step S105: state perception, the smart door lock perceives the current door open or closed state, if it is in the closed state, it proceeds to step S106, otherwise it terminates or waits until the door is in the closed state; Step S106: Distance measurement is initiated, and the smart door lock initiates UWB two-way communication distance measurement; Step S107: ranging reply, the digital key replies to the UWB two-way communication ranging; Step S108: ranging processing, performing CIR estimation and CFAR target detection on the UWB two-way communication ranging reply signal in step S107; obtaining the CIR signal first path peaks inside and outside the door; Step S109: Distance calculation. After step S107 is completed, the smart door lock performs distance calculation to obtain the distance between the digital key and the smart door lock. Step S110: comparing the CIR peak values of the inner and outer antenna UWB signals processed in step S108; Step S111: Position determination, Determine the inside and outside positions of the digital key according to the comparison of the CIR peak values of the inner and outer antenna received signals detected in step S110. If the outer antenna CIR peak value is greater than the inner antenna CIR peak value, determine that the digital key is outside the door. Otherwise, determine that the digital key is inside the door. Step S112: unlock and lock execution, The unlocking and locking are performed according to whether the distance calculated in step S109 is within the restricted distance range and the digital key is located outside the door as determined in step S111; Specifically: if the distance measured by the digital key and the smart door lock meets the restricted distance range and it is determined that the digital key is outside the door, the unlocking and locking will be executed; in other cases, the unlocking and locking will not be executed.
2. The UWB-based digital key unlocking and locking determination method as claimed in claim 1, characterized in that: In the CFAR detection of step 108, the initial value M of the number of protection units is set to 2, the initial value N of the number of reference units is set to 20, the constant false alarm rate is set to 1e-6, and the calculated value of the scale factor is 19.
9.
3. The UWB-based digital key unlocking and locking determination method as claimed in claim 1, characterized in that: In step S109, the smart door lock performs distance calculation based on the UWB signal flight time TOF of the UWB two-way communication ranging, specifically: The time interval between sending and receiving signals at the smart door lock end is recorded as t1, and the time interval between receiving and sending signals at the digital key end is recorded as t2. The flight time of the UWB signal is t TOF =(t1-t2) / 2, then the distance between the smart door lock and the digital key d=c*t TOF ; c is the speed of light.
4. The UWB-based digital key unlocking and locking determination method as claimed in claim 1, characterized in that: The step S1 comprises the following steps: Step S101: Initiate a connection, the digital key initiates a communication connection with the smart door lock; Step S102: The digital key wakes up in any of the following ways: Wake-up method 1: The person who locks the door outside sends an unlock command to the unlock sensor of the smart door lock. The smart door lock transmits the unlock command to the digital key. The digital key receives the unlock command and sends its own identity information, and wakes up the UWB module of the digital key at the same time. Wake-up method 2: The person who locks the door outside initiates the unlocking and locking command through the digital key. The digital key sends the unlocking and locking signal and its own identity information to the smart door lock and wakes up the UWB module of the digital key. Step S103: Identity pairing, the smart door lock verifies whether the identity information of the digital key matches the identity information preset in the smart door lock. If they are completely consistent, it is considered that the match is qualified, and then proceeds to step 104, otherwise the process is terminated; Step S104: The smart door lock wakes up. The smart door lock receives the unlocking and locking signals of the target digital key, and the UWB module of the smart door lock is awakened.
5. The UWB-based digital key unlocking and locking determination method as claimed in claim 4, characterized in that: In the steps S101 to S104 , both the digital key and the smart door lock include a BLE module and establish a communication connection through the BLE module, and the UWB module is awakened by the BLE module.
6. The UWB-based digital key unlocking and locking determination method as claimed in claim 1, characterized in that: In other cases described in step S112, if the smart door lock receives an unlocking signal and determines that the digital key is inside the door, unlocking is not performed; if the smart door lock receives a locking signal but determines that the digital key is inside the door, locking is not performed.
7. A UWB-based smart door lock system, comprising a smart door lock and a digital key, characterized in that: The digital key includes an information input module, a BLE module, and a UWB module; Among them, the information input module is used to input unlocking and locking information and store digital key identity information, the BLE module is used to send unlocking or unlocking signals containing identity information and wake up the smart door lock; the UWB module is used to send UWB two-way communication ranging replies; The smart door lock includes a main control module, an opening and closing lock signal input module, a BLE module, a UWB module, an outer antenna, an inner antenna, an opening and closing lock module, and a power module; Among them, the main control module is used to execute the method as described in claims 1 to 5; the induction switch is used to sense the open and closed states of the door; the unlock and lock signal input module is used to input the unlock and lock signals and preset identity information; the BLE module is used to receive the unlock or lock signal containing identity information and wake up the UWB module; the UWB module is used to initiate UWB two-way communication ranging; the outer antenna and the inner antenna are used to send or receive UWB signals; the unlock and lock module is used to execute unlocking or locking.
8. The UWB-based smart door lock system as claimed in claim 7, characterized in that: The UWB module includes: A signal receiver, used to receive the pulse signal and record the arrival time of the signal; A signal transmitter, which transmits a pulse signal and records the signal transmission time; Clock generator, providing the clock signal required by the UWB module; Host interface, connected to the terminal host for signal storage and processing; State controller, regulating the A / D converter and antenna switch K; It also includes an A / D converter connected to each module for converting digital signals into analog signals.
9. The UWB-based smart door lock system as claimed in claim 7, characterized in that: The inner antenna and the outer antenna are respectively arranged on the inner side and the outer side of the door on which the smart door lock is installed, and a metal isolation plate is arranged between the inner antenna and the outer antenna.
10. The UWB-based smart door lock system according to claim 7, characterized in that: The digital key is implemented by installing software on a smartphone equipped with a UWB module and a BLE module.
Citation Information
Patent Citations
Wireless unlocking method of intelligent door lock
CN109993868A
Intelligence lock system with inside and outside recognition function of PKE smart card
CN205845116U
Automobile door handle module based on UWB technology and implementation method
CN111873942A
Remote control method and system for vehicle
CN114040331A
Determining when portable key device is located on front side or rear side
CN115698758A
Cited By
Low-cost and low-delay intelligent door lock device based on ultra-wideband transceiver
CN120472569A
