Unlocking and locking control device and method

TW202642052AActive Publication Date: 2026-10-16WHETRON ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
TW114113230
Authority / Receiving Office
TW · TW
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-04-08
Publication Date
2026-10-16
Estimated Expiration
2045-04-07

AI Technical Summary

Technical Problem

Existing car key systems using Bluetooth Low Energy (BLE) technology for ranging suffer from low positioning accuracy and high power consumption when combined with Ultra-Wide Band (UWB) technology, leading to unsatisfactory performance.

Method used

A control device and method that combines Bluetooth and ultra-wideband modules to measure distances using phase difference ranging, round-trip time delay, and optionally received signal strength indication, activating ultra-wideband only when necessary to improve accuracy and conserve power.

Benefits of technology

Enhances ranging accuracy to sub-meter levels while reducing unnecessary power consumption by selectively using ultra-wideband technology based on Bluetooth measurements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure TWG2TA001080128_001
    Figure TWG2TA001080128_001
  • Figure TWG2TA001080128_002
    Figure TWG2TA001080128_002
  • Figure TWG2TA001080128_003
    Figure TWG2TA001080128_003
Patent Text Reader

Abstract

An unlocking and locking control device comprising a key equipment and an electronic equipment. The key equipment includes a first Bluetooth module and a first ultra-wideband module. The electronic equipment includes a second Bluetooth module, a second ultra-wideband module, an electronic lock module and a processor module. Using the first Bluetooth module to obtain a first distance between the key equipment and the electronic equipment. Activating the second ultra-wideband module and wake up the first ultra-wideband module when the processor module determines that the first distance is less than a first set distance. Using the first ultra-wideband module to obtain a second distance between the key equipment and the electronic equipment. Controlling the electronic lock module to unlock when the processor module determines that the second distance is less than a second set distance, and the second set distance is less than the first set distance. In this way, can achieve the purpose of saving unnecessary power consumption while improving the ranging accuracy of Bluetooth.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention is mainly a control device and method for unlocking and locking, and particularly relates to a control device and method for unlocking and locking that can save unnecessary power consumption while improving the accuracy of Bluetooth ranging. [Previous Technology]

[0002] With the development of technology, cars are now offering electronic keys for drivers to use, allowing the car to actively detect the location of the electronic key and determine whether it is near the vehicle. Currently, cars generally use Bluetooth Low Energy (BLE) technology to achieve this. For example, Bluetooth Low Energy (BLE) technology uses Received Signal Strength Indication (RSSI) for ranging, but its ranging accuracy is only at the meter level, with an error generally of ±1~1.5 meters or even larger. Furthermore, it is easily interfered with in complex environments, resulting in problems such as low positioning accuracy and poor stability.

[0003] Ultra-Wide Band (UWB) technology is a wireless carrier communication technology that uses nanosecond-level non-sinusoidal narrow pulses to transmit data, thus occupying a very wide spectrum. Ultra-Wide Band (UWB) has many advantages such as high positioning accuracy, good security, high transmission rate, low power consumption, and strong anti-interference capability.

[0004] However, if Bluetooth Low Energy (BLE) technology is used and Ultra Wideband (UWB) communication technology is enabled directly at the same time for ranging, it will lead to high power consumption (usually ≥100 mA). Even if the Received Signal Strength Indication Ranging (RSSI) method is used to determine when to enable UWB, the ranging error of RSSI is as high as ±1~1.5 meters, making it difficult to accurately determine the best time to enable UWB for ranging, resulting in unsatisfactory application results. [Summary of the Invention]

[0005] The purpose of this invention is to provide a control device for unlocking and locking, which can save unnecessary power consumption while improving the accuracy of Bluetooth ranging.

[0006] To achieve the above objectives, the present invention provides a control device for unlocking and locking, comprising: a key device including a first Bluetooth module and a first ultra-wideband module; and an electronic device including a second Bluetooth module, a second ultra-wideband module, an electronic lock module, and a processor module, wherein the processor module is electrically connected to the second Bluetooth module, the second ultra-wideband module, and the electronic lock module; wherein, when the second Bluetooth module and the first Bluetooth module are successfully paired, the first Bluetooth module measures a first distance between the key device and the electronic device using Bluetooth ranging technology; wherein, when the processor module determines that the first distance is less than a first preset distance, the processor module activates the second ultra-wideband module and wakes up the first ultra-wideband module, so that the first ultra-wideband module measures... A second distance is obtained between the key device and the electronic device; wherein, when the processor module determines that the second distance is less than a second preset distance and the second preset distance is less than a first preset distance, the processor module controls the electronic lock module to unlock; wherein, the distance between the key device and the electronic device is measured using a phase difference ranging method and a round-trip time delay ranging method of the Bluetooth ranging technology to obtain a first distance and a second distance, the first distance is multiplied by a first weight to generate a first weighted value, the second distance is multiplied by a second weight to generate a second weighted value, the first distance is equal to the sum of the first weighted value and the second weighted value, the first weight and the second weight are respectively between 0 and 100%, excluding endpoint values, and the first weight is greater than the second weight.

[0007] In some embodiments, the first weight is between 60 and 70% and includes endpoint values, the second weight is between 30 and 40% and includes endpoint values, and the sum of the first weight and the second weight is 100%.

[0008] In some embodiments, the first Bluetooth module further measures the distance between the key device and the electronic device using one of the Bluetooth ranging technologies, namely, the signal strength indication ranging method, to obtain a third distance. The third distance is multiplied by a third weight to generate a third weighted value. The first distance is equal to the sum of the first weighted value, the second weighted value and the third weighted value. The third weight is between 0 and 100%, does not include endpoint values, and the second weight is greater than the third weight.

[0009] In some embodiments, the first weight is between 10% and 70%, the second weight is between 10% and 70%, the third weight is between 0% and 20%, does not include endpoint values, and the sum of the first weight, the second weight and the third weight is 100%.

[0010] In some embodiments, the first weight is 60%, the second weight is 30%, and the third weight is 10%.

[0011] In some embodiments, when the electronic lock module is unlocked, a third distance between the key device and the electronic device is measured by the first ultra-wideband module; when the processor module determines that the third distance is greater than a third set distance and the third set distance is between the first set distance and the second set distance, the processor module controls the electronic lock module to lock.

[0012] In some embodiments, when the electronic lock module switches from unlocking to locking, a fourth distance between the key device and the electronic device is measured by the first ultra-wideband module; when the processor module determines that the fourth distance is greater than a fourth preset distance and the fourth preset distance is greater than the first preset distance, the processor module controls the first ultra-wideband module to go into sleep mode through the second ultra-wideband module.

[0013] In some embodiments, after the first ultra-wideband module goes into sleep mode, a fifth distance between the key device and the electronic device is measured using the Bluetooth ranging technology; when the processor module determines that the fifth distance is greater than the first set distance, the second Bluetooth module disconnects from the first Bluetooth module.

[0014] The present invention also provides a method for controlling unlocking and locking, suitable for use in unlocking and locking an electronic device with a key device. The key device includes a first Bluetooth module and a first ultra-wideband module. The electronic device includes a second Bluetooth module, a second ultra-wideband module, an electronic lock module, and a processor module. The processor module is electrically connected to the second Bluetooth module, the second ultra-wideband module, and the electronic lock module. The method for controlling unlocking and locking includes the following steps: when the second Bluetooth module and the first Bluetooth module are successfully paired, the first Bluetooth module measures a first distance between the key device and the electronic device using Bluetooth ranging technology; when the processor module determines that the first distance is less than a first set distance, the processor module activates the second ultra-wideband module and wakes up the first ultra-wideband module, so that... The first ultra-wideband module measures a second distance between the key device and the electronic device. When the processor module determines that the second distance is less than a second preset distance and the second preset distance is less than the first preset distance, the processor module controls the electronic lock module to unlock. The distance between the key device and the electronic device is measured using a phase difference ranging method and a round-trip time delay ranging method of the Bluetooth ranging technology to obtain a first distance and a second distance. The first distance is multiplied by a first weight to generate a first weighted value, and the second distance is multiplied by a second weight to generate a second weighted value. The first distance is equal to the sum of the first weighted value and the second weighted value. The first weight and the second weight are respectively between 0 and 100%, excluding endpoint values, and the first weight is greater than the second weight.

[0015] In some embodiments, the first Bluetooth module further measures the distance between the key device and the electronic device using one of the Bluetooth ranging technologies, namely the signal strength indication ranging method, to obtain a third distance. The third distance is multiplied by a third weight to generate a third weighted value. The first distance is equal to the sum of the first weighted value, the second weighted value and the third weighted value. The third weight is between 0 and 100%, does not include endpoint values, and the second weight is greater than the third weight.

[0016] The unlocking and locking control device and method of the present invention have the following characteristics: It can combine Bluetooth communication technology and ultra-wideband communication technology to measure the distance between the key device and the electronic device. First, the distance between the key device and the electronic device (i.e., the first gap) is measured by using the phase difference ranging method (PBR) and round-trip delay time ranging method (RTT) of the Bluetooth ranging technology, or by using the phase difference ranging method (PBR), round-trip delay time ranging method (RTT) and received signal strength indication ranging method (RSSI) of the Bluetooth ranging technology. When the first gap is within the set first set distance, the processor module activates the second ultra-wideband module of the electronic device and wakes up the first ultra-wideband module of the key device. Then, the distance between the key device and the electronic device (i.e., the second gap) is measured through the first ultra-wideband module. When the second gap is within the set second set distance, the processor module controls the electronic lock module to unlock. Therefore, the unlocking and locking control device and method of the present invention can measure the distance (i.e., the first gap) between the key device and the electronic device by means of a combination of phase difference ranging (PBR) and round-trip time delay ranging (RTT), or by means of a combination of phase difference ranging (PBR), round-trip time delay ranging (RTT) and received signal strength indication ranging (RSSI). The final estimated value of the first gap is more stable and accurate, and the first ultra-wideband module of the key device does not need to be kept in an operating state all the time, which has the effect of saving unnecessary power consumption while improving the accuracy of Bluetooth ranging.

Implementation Method

[0017] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The accompanying drawings are mainly simplified schematic diagrams, which are only used to illustrate the basic structure of the present invention. Therefore, only the elements related to the present invention are marked in these drawings, and the elements shown are not drawn according to the number, shape, size ratio, etc. of the implementation. The actual specifications and dimensions of the implementation are a selective design, and the layout of the elements may be more complex.

[0018] The following description of the embodiments is with reference to the accompanying drawings, illustrating specific embodiments in which the present invention may be implemented. Directional terms used in this invention, such as "up," "down," "front," and "back," are merely directional references to the accompanying drawings. Therefore, the directional terms used are for illustration and understanding of this application, and not for limiting this application. Furthermore, in the specification, unless explicitly stated otherwise, the word "comprising" will be understood to mean including the stated elements, but not excluding any other elements.

[0019] Please refer to Figure 1, which is a block diagram of a specific embodiment of the unlocking and locking control device of the present invention. It includes: a key device 1 and an electronic device 2, wherein the key device 1 can be coupled to the electronic device 2.

[0020] The key device 1 includes a first Bluetooth module 11 and a first ultra-wideband module 12. In this embodiment, the key device 1 can be a smartphone, the first Bluetooth module 11 can use Bluetooth wireless communication technology version 6.0, and the first ultra-wideband module 12 can use ultra-wideband communication technology.

[0021] The electronic device 2 includes a second Bluetooth module 21, a second ultra-wideband module 22, an electronic lock module 23, and a processor module 24. The second Bluetooth module 21 uses the same communication technology as the first Bluetooth module 11, the second ultra-wideband module 22 uses the same communication technology as the first ultra-wideband module 12, and the processor module 24 is electrically connected to the second Bluetooth module 21, the second ultra-wideband module 22, and the electronic lock module 23. In this embodiment, the electronic device 2 can be a vehicle or an access control system. The second Bluetooth module 21 can use Bluetooth wireless communication technology version 6.0, the second ultra-wideband module 22 can use ultra-wideband communication technology, and the processor module 24 can be an electronic control unit (ECU).

[0022] In one specific implementation, the first ultra-wideband module 12 is in a sleep state before being woken up, which will be explained in advance. When the second Bluetooth module 21 is successfully paired with the first Bluetooth module 11, the first Bluetooth module 11 uses Bluetooth ranging technology to measure a first distance between the key device 1 and the electronic device 2.

[0023] As described above, the distance between the key device 1 and the electronic device 2 is measured using two Bluetooth ranging technologies: Phase-Based Ranging (PBR) and Round Trip Time (RTT), respectively, to obtain a first distance and a second distance. The first distance is multiplied by a first weight to generate a first weighted value, and the second distance is multiplied by a second weight to generate a second weighted value. The first distance is equal to the sum of the first and second weighted values. The first and second weights are both between 0% and 100%, excluding endpoint values, and the first weight is greater than the second weight. Specifically, this Bluetooth ranging technology can measure the distance between the key device 1 and the electronic device 2 using Bluetooth Channel Sounding (CS) technology based on Phase-Based Ranging (PBR) and Round Trip Time (RTT), thereby improving ranging accuracy to the sub-meter level and providing higher signal security. For example, the principle of Phase Difference Ranging (PBR) is to analyze the phase of a radio signal to estimate the distance between two wireless devices; that is, to use phase information to calculate the accumulated phase difference during signal propagation, and thus calculate the distance between the devices. The principle of Round-Trip Delay Ranging (RTT) is to estimate the distance between two wireless devices by evaluating the time it takes for a radio signal to travel from one wireless device to another and back.

[0024] In one embodiment, the first weighting system can be between 60% and 70%, including endpoint values, and the second weighting system can be between 30% and 40%, including endpoint values, and the sum of the first weight and the second weight is 100%. Since the present invention utilizes two Bluetooth ranging technologies (i.e., the phase difference ranging method and the round-trip time ranging method) for distance estimation, the final estimated value of the first distance is relatively stable. Furthermore, since the distance estimation value of the phase difference ranging method (PBR) is more accurate than the distance estimation value of the round-trip time ranging method (RTT), the final estimated value of the first distance is more accurate when the first weight of the phase difference ranging method (PBR) is greater than the second weight of the round-trip time ranging method (RTT).

[0025] When the processor module 24 determines that the first distance is less than a first preset distance, the processor module 24 activates the second ultra-wideband module 22 and wakes up the first ultra-wideband module 12, so that the first ultra-wideband module 12 measures and obtains a second distance between the key device 1 and the electronic device 2. For example, but not limited to, the first preset distance can be set to 6 meters. For example, the principle of ultra-wideband (UWB) communication technology is to use nanosecond-level narrow pulses for data transmission and to use time-of-flight ranging to accurately estimate the distance between two wireless devices.

[0026] When the processor module 24 determines that the second distance is less than a second preset distance and the second preset distance is less than the first preset distance, that is, the distance between the owner of the key device 1 and the electronic device 2 is continuously decreasing, the processor module 24 controls the electronic lock module 23 to unlock. For example, but not limited to, the second preset distance can be set to 2 meters.

[0027] In one embodiment, when the electronic lock module 23 is unlocked, a third distance between the key device 1 and the electronic device 2 is measured by the first ultra-wideband module 12. When the processor module 24 determines that the third distance is greater than a third preset distance, and the third preset distance is between the first preset distance and the second preset distance, that is, the owner of the key device 1 is moving away from the electronic device 2, the processor module 24 controls the electronic lock module 23 to lock. For example, but not limited to, the third preset distance can be set to 4 meters.

[0028] When the electronic lock module 23 switches from unlocking to locking, a fourth distance between the key device 1 and the electronic device 2 is measured by the first ultra-wideband module 12. When the processor module 24 determines that the fourth distance is greater than a fourth preset distance, and the fourth preset distance is greater than the first preset distance, that is, the distance between the owner of the key device 1 and the electronic device 2 is continuously increasing, the processor module 24 controls the first ultra-wideband module 12 to go into sleep mode through the second ultra-wideband module. For example, but not limited to, the fourth preset distance can be set to 6.5 meters.

[0029] After the first ultra-wideband module 12 goes into sleep mode, a fifth distance between the key device 1 and the electronic device 2 is measured using Bluetooth ranging technology. When the processor module 24 determines that the fifth distance is greater than the first set distance, the second Bluetooth module 21 disconnects from the first Bluetooth module 11. In this embodiment, the Bluetooth ranging technology measures the distance between the key device 1 and the electronic device 2 using phase difference ranging (PBR) and round-trip time delay (RTT) methods, respectively.

[0030] In other embodiments, the first Bluetooth module 11 can also measure the distance between the key device 1 and the electronic device 2 using the phase difference ranging method, round-trip time ranging method, and Received Signal Strength Indication (RSSI) of the Bluetooth ranging technology to obtain a third distance. The third distance is multiplied by a third weight to generate a third weighted value. The first distance is equal to the sum of the first weighted value, the second weighted value, and the third weighted value. The third weight is between 0 and 100%, excluding endpoint values, and the second weight is greater than the third weight. In this embodiment, the sum of the first weight, the second weight, and the third weight is 100%. For example, the principle of the Received Signal Strength Indication (RSSI) method is to calculate the distance based on the degree of attenuation of the signal (i.e., amplitude) between two wireless devices over the transmission distance.

[0031] In one embodiment, the first weighting system can be between 10% and 70%, the second weighting system can be between 10% and 70%, and the third weighting system can be between 0% and 20%, excluding endpoint values, and the sum of the first weight, the second weight, and the third weight is 100%. Preferably, the first weighting system can be 60%, the second weighting system can be 30%, and the third weighting system can be 10%. Since the present invention utilizes three Bluetooth ranging technologies (i.e., the phase difference ranging method, the round-trip time ranging method, and the received signal strength indication ranging method) simultaneously for distance estimation, the final estimated value of the first distance is relatively stable. Furthermore, since the distance estimate of the phase difference ranging method (PBR) is more accurate than the distance estimate of the round-trip time ranging method (RTT) and the distance estimate of the received signal strength indication ranging method (RSSI), the final estimate of the first distance is more accurate when the first weight of the phase difference ranging method (PBR) is greater than the second weight of the round-trip time ranging method (RTT), and the second weight of the round-trip time ranging method (RTT) is greater than the third weight of the received signal strength indication ranging method (RSSI).

[0032] Please refer to Figure 2, which is a flowchart of a specific embodiment of the unlocking and locking control method of the present invention, suitable for use in unlocking and locking the aforementioned electronic device 2 with the aforementioned key device 1. Please refer to Figures 1 and 2, the unlocking and locking control method includes the following steps:

[0033] Step S1: When the aforementioned second Bluetooth module 21 is successfully paired with the aforementioned first Bluetooth module 11, the first Bluetooth module 11 uses a Bluetooth ranging technology to measure and obtain a first distance between the key device 1 and the electronic device 2.

[0034] As described above, the distance between the key device 1 and the electronic device 2 is measured using the phase difference ranging method and round-trip time ranging method of the Bluetooth ranging technology to obtain a first distance and a second distance. The first distance is multiplied by a first weight to generate a first weighted value, and the second distance is multiplied by a second weight to generate a second weighted value. The first distance is equal to the sum of the first weighted value and the second weighted value. The first weight and the second weight are respectively between 0 and 100%, excluding endpoint values, and the first weight is greater than the second weight. This Bluetooth ranging technology can measure the distance between the key device 1 and the electronic device 2 through Bluetooth channel detection technology based on the phase difference ranging method (PBR) and the round-trip time ranging method (RTT), thereby improving the ranging accuracy to the sub-meter level and providing higher signal security.

[0035] In one embodiment, the first weight system may be between 60 and 70%, including endpoint values, the second weight system may be between 30 and 40%, including endpoint values, and the sum of the first weight and the second weight is 100%.

[0036] Step S2: When the aforementioned processor module 24 determines that the first distance is less than a first preset distance, the processor module 24 activates the aforementioned second ultra-wideband module 22 and wakes up the first ultra-wideband module 12, so that the first ultra-wideband module 12 measures and obtains a second distance between the key device 1 and the electronic device 2. For example, but not limited to, the first preset distance can be set to 6 meters.

[0037] Step S3: When the processor module 24 determines that the second distance is less than a second preset distance and the second preset distance is less than the first preset distance, the processor module 24 controls the aforementioned electronic lock module 23 to unlock. For example, but not limited to, the second preset distance can be set to 2 meters.

[0038] Please refer to Figure 3, which is a flowchart of another embodiment of the unlocking and locking control method of the present invention. In another embodiment, the following step S4 may also be included: When the electronic lock module 23 is unlocked, a third distance between the key device 1 and the electronic device 2 is measured by the first ultra-wideband module 12. When the processor module 24 determines that the third distance is greater than a third preset distance, and the third preset distance is between the first preset distance and the second preset distance, the processor module 24 controls the electronic lock module 23 to lock. For example, but not limited to, the third preset distance can be set to 4 meters.

[0039] Please refer to Figure 4, which is a flowchart of another embodiment of the unlocking and locking control method of the present invention. In this further embodiment, the following step S5 may also be included: When the electronic lock module 23 switches from unlocking to locking, a fourth distance between the key device 1 and the electronic device 2 is measured by the first ultra-wideband module 12. When the processor module 24 determines that the fourth distance is greater than a fourth preset distance and the fourth preset distance is greater than the first preset distance, the processor module 24 controls the first ultra-wideband module 12 to go into sleep mode through the second ultra-wideband module. For example, but not limited to, the fourth preset distance can be set to 6.5 meters.

[0040] Please refer to Figure 5, which is a flowchart of another embodiment of the unlocking and locking control method of the present invention. In another embodiment, the following step S6 may also be included: After the first ultra-wideband module 12 goes into sleep mode, a fifth distance between the key device 1 and the electronic device 2 is measured using the Bluetooth ranging technology. When the processor module 24 determines that the fifth distance is greater than the first set distance, the second Bluetooth module 21 disconnects from the first Bluetooth module 11.

[0041] In other embodiments, the first Bluetooth module 11 may also measure the distance between the key device 1 and the electronic device 2 using the phase difference ranging (PBR), round-trip delay time ranging (RTT), and received signal strength indication ranging (RSSI) methods of the Bluetooth ranging technology to obtain a third distance. The third distance is multiplied by a third weight to generate a third weighted value. The first distance is equal to the sum of the first weighted value, the second weighted value, and the third weighted value. The third weight is between 0 and 100%, does not include endpoint values, and the second weight is greater than the third weight.

[0042] In one embodiment, the first weight system can be between 10% and 70%, the second weight system can be between 10% and 70%, and the third weight system can be between 0% and 20%, excluding endpoint values, and the sum of the first weight, the second weight, and the third weight is 100%. Preferably, the first weight system can be 60%, the second weight system can be 30%, and the third weight system can be 10%.

[0043] Please refer to Figure 6, which is a flowchart of the steps of all embodiments in conjunction with Figures 2 to 5. Referring to Figures 1 and 6, firstly, when the first Bluetooth module 11 of the key device 1 enters the Bluetooth connection range of the second Bluetooth module 21 of the electronic device 2, the distance (i.e., the first gap) between the key device 1 and the electronic device 2 is measured using Bluetooth ranging technology. Based on the calculation result of the Bluetooth ranging technology (the first gap), it is determined whether the distance is not greater than the first set distance (e.g., the first set distance is 6 meters). If the determination result is negative, the measurement using Bluetooth ranging technology continues. If the determination result is positive, the processor module 24 activates the second ultra-wideband module 22 and wakes up the first ultra-wideband module 12, enabling the measurement of the distance (i.e., the second gap) between the key device 1 and the electronic device 2 using ultra-wideband communication technology. Then, based on the calculation result of the ultra-wideband communication technology (the second gap), it is determined whether the distance is not greater than the second set distance (e.g., the second set distance is 2 meters). If the determination result is negative, the measurement using ultra-wideband communication technology continues. If the determination result is positive, the processor module 24 controls the electronic lock module 23 to unlock.

[0044] When the electronic lock module 23 is unlocked, the distance between the key device 1 and the electronic device 2 (i.e., the third distance) is measured using the ultra-wideband communication technology. Then, based on the calculation result of the ultra-wideband communication technology (the third distance), it is determined whether it is greater than the third set distance (for example, the third set distance is 4 meters). If the determination result is not, it is further determined whether the calculation result of the ultra-wideband communication technology is less than the second set distance. The measurement of the ultra-wideband communication technology is continued according to the determination result, or the processor module 24 controls the electronic lock module 23 to unlock. If the determination result is yes, the processor module 24 controls the electronic lock module 23 to lock.

[0045] When the electronic lock module 23 switches from unlocking to locking, the distance between the key device 1 and the electronic device 2 (i.e., the fourth distance) is measured using the ultra-wideband communication technology. Then, based on the calculation result of the ultra-wideband communication technology (the fourth distance), it is determined whether it is greater than the fourth set distance (e.g., the fourth set distance is 6.5 meters). If the determination result is not, it is further determined whether the calculation result of the ultra-wideband communication technology is greater than the third set distance (e.g., the third set distance is 4 meters). Based on the determination result, the measurement of the ultra-wideband communication technology continues, or the processor module 24 controls the electronic lock module 23 to lock. If the determination result is yes, the processor module 24 controls the first ultra-wideband module 12 to go into sleep mode through the second ultra-wideband module.

[0046] When the first ultra-wideband module 12 goes into sleep mode, the distance between the key device 1 and the electronic device 2 (i.e., the fifth distance) is measured using the Bluetooth ranging technology, and it is determined whether the distance is not greater than the first set distance (e.g., the first set distance is 6 meters) based on the calculation result of the Bluetooth ranging technology (the fifth distance). If the determination result is negative, the second Bluetooth module 21 disconnects from the first Bluetooth module 11.

[0047] As described above, the unlocking and locking control device and method of the present invention can combine Bluetooth communication technology and ultra-wideband communication technology to measure the distance between the key device and the electronic device. First, the phase difference ranging method (PBR) and round-trip delay time ranging method (RTT) of the Bluetooth ranging technology are used, or the phase difference ranging method (PBR), round-trip delay time ranging method (RTT) and received signal strength indication ranging method (RSSI) of the Bluetooth ranging technology are used to measure the distance (i.e., the first distance) between the key device and the electronic device. When the first distance is within the set first set distance, the processor module activates the second ultra-wideband module of the electronic device and wakes up the first ultra-wideband module of the key device. Then, the distance (i.e., the second distance) between the key device and the electronic device is measured through the first ultra-wideband module. When the second distance is within the set second set distance, the processor module controls the electronic lock module to unlock. Therefore, the unlocking and locking control device and method of the present invention can measure the distance (i.e., the first gap) between the key device and the electronic device by means of a combination of phase difference ranging (PBR) and round-trip time delay ranging (RTT), or by means of a combination of phase difference ranging (PBR), round-trip time delay ranging (RTT) and received signal strength indication ranging (RSSI). The final estimated value of the first gap is more stable and accurate, and the first ultra-wideband module of the key device does not need to be kept in an operating state all the time, which has the effect of saving unnecessary power consumption while improving the accuracy of Bluetooth ranging.

[0048] The embodiments disclosed above are merely illustrative of the principles, features, and effects of the present invention, and are not intended to limit the scope of the invention. Any person skilled in the art may modify and alter the above embodiments without departing from the spirit and scope of the present invention. Any equivalent changes and modifications made using the content disclosed in this invention shall still be covered by the following claims. [Simplified Explanation of the Diagram]

[0049] [Figure 1] is a block diagram of the unlocking and locking control device of the present invention. [Figure 2] is a flowchart of one embodiment of the unlocking and locking control method of the present invention. [Figure 3] is a flowchart of another embodiment of the unlocking and locking control method of the present invention. [Figure 4] is a flowchart of yet another embodiment of the unlocking and locking control method of the present invention. [Figure 5] is a flowchart of yet another embodiment of the unlocking and locking control method of the present invention. [Figure 6] is a flowchart combining all embodiments of Figures 2 to 5.

Claims

1. A control device for unlocking and locking, comprising: A key device, comprising a first Bluetooth module and a first ultra-wideband module; The system also includes an electronic device comprising a second Bluetooth module, a second ultra-wideband module, an electronic lock module, and a processor module, wherein the processor module is electrically connected to the second Bluetooth module, the second ultra-wideband module, and the electronic lock module; wherein, when the second Bluetooth module successfully pairs with the first Bluetooth module, the first Bluetooth module measures a first distance between the key device and the electronic device using Bluetooth ranging technology; wherein, when the processor module determines that the first distance is less than a first preset distance, the processor module activates the second ultra-wideband module and wakes up the first ultra-wideband module, so that the first ultra-wideband module measures a second distance between the key device and the electronic device; wherein, when the processor module determines that the second distance is less than a second preset distance, and the second preset distance is less than the first preset distance, the processor module controls the electronic lock module to unlock; Specifically, the distance between the key device and the electronic device is measured using one of the Bluetooth ranging technologies: phase difference ranging and round-trip time ranging, to obtain a first distance and a second distance. The first distance is multiplied by a first weight to generate a first weighted value, and the second distance is multiplied by a second weight to generate a second weighted value. The first distance is equal to the sum of the first weighted value and the second weighted value. The first weight and the second weight are respectively between 0 and 100%, excluding endpoint values, and the first weight is greater than the second weight.

2. The unlocking and locking control device as described in claim 1, wherein, The first weight is between 60% and 70%, including the endpoint values, the second weight is between 30% and 40%, including the endpoint values, and the sum of the first weight and the second weight is 100%.

3. The unlocking and locking control device as described in claim 1, wherein, The first Bluetooth module also uses one of the Bluetooth ranging technologies, the signal strength indicator ranging method, to measure the distance between the key device and the electronic device to obtain a third distance. The third distance is multiplied by a third weight to generate a third weighted value. The first distance is equal to the sum of the first weighted value, the second weighted value, and the third weighted value. The third weight is between 0 and 100%, does not include endpoint values, and the second weight is greater than the third weight.

4. The unlocking and locking control device as described in claim 3, wherein, The first weight is between 10% and 70%, the second weight is between 10% and 70%, and the third weight is between 0% and 20%, excluding endpoint values, and the sum of the first weight, the second weight, and the third weight is 100%.

5. The unlocking and locking control device as described in claim 4, wherein, The first weight is 60%, the second weight is 30%, and the third weight is 10%.

6. The unlocking and locking control device as described in any one of claims 1 to 5, wherein, When the electronic lock module is unlocked, a third distance between the key device and the electronic device is measured by the first ultra-wideband module; when the processor module determines that the third distance is greater than a third preset distance and the third preset distance is between the first preset distance and the second preset distance, the processor module controls the electronic lock module to lock.

7. The unlocking and locking control device as described in claim 6, wherein, When the electronic lock module switches from unlocking to locking, the first ultra-wideband module measures a fourth distance between the key device and the electronic device. When the processor module determines that the fourth distance is greater than a fourth preset distance and the fourth preset distance is greater than the first preset distance, the processor module controls the first ultra-wideband module to go into sleep mode through the second ultra-wideband module.

8. The unlocking and locking control device as described in claim 7, wherein, After the first ultra-wideband module goes into sleep mode, a fifth distance between the key device and the electronic device is measured using the Bluetooth ranging technology; when the processor module determines that the fifth distance is greater than the first set distance, the second Bluetooth module disconnects from the first Bluetooth module.

9. A method for controlling unlocking and locking, suitable for use in unlocking and locking an electronic device with a key device, the key device including a first Bluetooth module and a first ultra-wideband module, the electronic device including a second Bluetooth module, a second ultra-wideband module, an electronic lock module and a processor module, the processor module being electrically connected to the second Bluetooth module, the second ultra-wideband module and the electronic lock module, the method for controlling unlocking and locking comprising the following steps: when the second Bluetooth module and the first Bluetooth module are successfully paired, the first Bluetooth module measures a first distance between the key device and the electronic device using Bluetooth ranging technology; when the processor module determines that the first distance is less than a first preset distance, the processor module activates the second ultra-wideband module and wakes up the first ultra-wideband module, so that the first ultra-wideband module measures a second distance between the key device and the electronic device; When the processor module determines that the second distance is less than a second preset distance, and the second preset distance is less than a first preset distance, the processor module controls the electronic lock module to unlock; wherein... Using one of the Bluetooth ranging technologies, phase difference ranging and round-trip time ranging, the distance between the key device and the electronic device is measured to obtain a first distance and a second distance. The first distance is multiplied by a first weight to generate a first weighted value, and the second distance is multiplied by a second weight to generate a second weighted value. The first distance is equal to the sum of the first weighted value and the second weighted value. The first weight and the second weight are respectively between 0 and 100%, excluding endpoint values, and the first weight is greater than the second weight.

10. The unlocking and locking control method as described in claim 9, wherein, The first Bluetooth module also uses one of the Bluetooth ranging technologies, the signal strength indicator ranging method, to measure the distance between the key device and the electronic device to obtain a third distance. The third distance is multiplied by a third weight to generate a third weighted value. The first distance is equal to the sum of the first weighted value, the second weighted value, and the third weighted value. The third weight is between 0 and 100%, does not include endpoint values, and the second weight is greater than the third weight.