BLE-based non-inductive unlocking method for building intercom equipment

By implementing the BLE senseless unlocking method in the building intercom device, the security level and key settings are dynamically adjusted, and the user synchronizes the account information to the smartphone BLE APP for local storage in advance, solving the problem of unlocking in poor network environment in the existing technology. The problem of insufficient convenience is achieved by automatically identifying and verifying building intercom equipment for unlocking without an Internet connection, improving user experience and system security.

CN119342474AInactive Publication Date: 2025-01-21XIAMEN DNAKE INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411587774.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-01-21
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing Bluetooth (BLE) lock-opening solution is not applicable in the building intercom field, because the access control machines in most communities are not connected to the network and are installed in closed places without signals, resulting in a significant reduction in the convenience of unlocking in poor network environments. Meet usage needs.

Method used

By implementing the BLE senseless unlocking method in the building intercom device, including initializing the configuration when BLE is not connected, dynamically adjusting the security level and key settings, users can synchronize account information to the smartphone BLE APP for local storage in advance, eliminating the need for the Internet. Once connected, the building intercom device can be automatically identified and verified for unlocking.

Benefits of technology

It solves the problem of unlocking in a poor network environment, improves the convenience of user experience, and improves the system's security protection capabilities through localization processing, making it a better choice for building intercom systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342474A_ABST
    Figure CN119342474A_ABST
Patent Text Reader

Abstract

The invention discloses a BLE-based non-inductive unlocking method for a building intercom device, and the method comprises the following steps: S1, when the BLE is not connected, advertisement data is issued to a BLE module through a CPU in the building intercom device, the advertisement data comprises DeviceName and MacAddr, and the initial configuration of the BLE is completed; according to the invention, the user synchronizes the required account information to the BLE APP of the smart phone in advance, after local storage, the user does not need to depend on Internet connection, when the user enters the access control range, the building intercom device can be automatically identified and verified locally to realize BLE non-inductive unlocking, cloud operation or manual confirmation is not needed, the unlocking problem in a poor network environment is solved, and the user experience is improved. And in addition, the safety protection capability of the system is improved through localization processing, so that the system becomes a better choice in a building intercom system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of building intercom equipment, and in particular to a BLE-based non-sensing unlocking method for a building intercom equipment. Background Art

[0002] The existing Bluetooth (BLE) unlocking solution usually obtains the name and secret key of the Bluetooth device from the Internet cloud through a mobile phone APP to unlock the door, and requires the user to confirm and perform other operations on the APP. However, this method is not applicable to the field of building intercom, because the access control machines in most communities are not connected to the Internet and are often installed in closed places without signals such as underground garages and elevators. During rush hours in the morning and evening, if every user must unlock the door through a mobile phone APP, the signal strength will be low, affecting the unlocking. The convenience of Bluetooth unlocking will be greatly reduced and cannot meet the usage needs. Based on the above situation, this application proposes a method for BLE-based non-sensing unlocking of building intercom equipment. Summary of the invention

[0003] Based on the technical problems existing in the background technology, the present invention proposes a method for BLE-based non-sensing unlocking of a building intercom device.

[0004] The present invention proposes a method for BLE-based non-sensing unlocking of a building intercom device, comprising the following steps:

[0005] S1: When BLE is not connected, the advertising data is sent to the BLE module through the CPU in the building intercom device. The advertising data includes DeviceName and MacAddr to complete the initialization configuration of BLE.

[0006] S2: The property management center remotely updates the DeviceName of the building intercom device through the management center computer. The CPU writes the DeviceName to the BLE module through UART communication and instructs the BLE module to update the advertising data to ensure that the building intercom device broadcasts normally in the application environment.

[0007] S3: The CPU sends a control command. The BLE module parses the CPU's control command, reinitializes the BLE security level and related pincode settings, and dynamically adjusts the supported security level and key settings to meet the security requirements of different scenarios. For example, if the security level is Authenticated_Pairing_with_Encryption, you need to set setSecurityLevel first, then set the setBondingMode mode, and finally set the pindcode password.

[0008] S4: The building intercom device uploads a set of 16x20-byte BLE unlocking keys to the management center, which synchronizes this information to the cloud and waits for the BLE APP on the smartphone to pull it;

[0009] S5: The owner registers an account through a smartphone and binds the owner's account to the building intercom device to ensure that the owner can perform BLE unlocking operations within the scope of authority. The BLE APP pulls the BLE unlocking key, building intercom device name (DeviceName), connection security level and corresponding password information of each building intercom device in the current community from the cloud, and stores the pulled data locally in the BLE APP;

[0010] S6: The BLE APP of the smartphone is used to connect to the building intercom device through BLE. After the connection is established, the BLE APP of the smartphone obtains the signal strength RSSI value of the device by scanning the iBeacon advertisements periodically sent by the building intercom device, and calculates the distance between the smartphone and the building intercom device based on the RSSI value. When the distance is less than 50 cm, the BLE APP of the smartphone will pop up a window to prompt the user whether to unlock the door. When the distance is further shortened to less than 15 cm, the BLE APP of the smartphone will automatically start the unlocking process and enter step S7.

[0011] S7: Send the building intercom device number through the BLE APP of the smartphone, and the building intercom device generates a set of random numbers and sends them to the BLE APP of the smartphone;

[0012] S8: The BLE APP of the smartphone uses the key to encrypt the random number received in S5 and then transmits it back to the building intercom device. The building intercom device verifies whether the data matches by decryption. If they match, the unlocking action is triggered, otherwise the connection is disconnected.

[0013] Preferably, in S2, the updating of the advertisement data is realized by calling bls_ll_setAdvEnable() and bls_ll_setAdvData() functions, so as to ensure the dynamic updating of the data and meet the demand for real-time adjustment of the advertisement content in the application scenario.

[0014] Preferably, in S3, the default security level of the BLE module is configured as No_Authentication_No_Encryption, and a Profile Service with a UUID of 0xFFF0 is defined in the BLE module to realize data interaction between the BLE module and the BLE APP in the smartphone, which includes two Attributes, namely Characteristic1 (UUID: 0xFFE1) and Characteristic 2 (UUID: 0xFFE2), wherein Characteristic 1 (UUID: 0xFFE1) supports NOTIFY for uploading data, and Characteristic 2 (UUID: 0xFFE2) supports write operations for reading back data.

[0015] Preferably, in S6, the formula used to calculate the distance between the smart phone and the building intercom device is as follows:

[0016]

[0017] Where d is the distance, rssi is the received signal strength indicator value, which is taken as an absolute value, A is the signal strength reference value measured at 1 meter, and n is the path loss factor of the propagation environment.

[0018] Preferably, the parameters A and n need to be calibrated when the building intercom equipment is produced off the production line. During the calibration process, the building intercom equipment is fixed on a slidable tooling, and a BLE scan is performed at different distances by a smart device to obtain the corresponding RSSI value. After multiple measurements and data fitting, accurate A and n parameters are finally obtained, and the calculation formula is:

[0019]

[0020] Where A is the signal strength reference value measured at 1 meter, n is the path loss factor of the propagation environment, d1 and d2 are two different distances, RSSI1 and RSSI2 are the signal strengths corresponding to d1 and d2 respectively.

[0021] Preferably, in S5, the data is stored locally in the BLE APP, which can ensure that the user can still perform unlocking operations through the BLE connection in the subsequent offline or no network state.

[0022] Compared with the prior art, the present invention has the following beneficial effects:

[0023] The present invention allows the user to synchronize the required account information to the BLE APP of the smartphone in advance and store it locally. There is no need to rely on Internet connection. When the user enters the access control range, the building intercom device can be automatically identified and verified locally to realize BLE senseless unlocking. No cloud operation or manual confirmation is required, which solves the unlocking problem in poor network environment and makes the user experience more convenient. In addition, the system's security protection capability is improved through localized processing, making it a better choice in the building intercom system. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A block diagram of the connection between a management center, a building intercom device and a smart phone in a method for BLE-based non-sensing unlocking of a building intercom device proposed by the present invention;

[0025] Figure 2 This is an unlocking flow chart of a method for BLE-based non-sensing unlocking of a building intercom device proposed by the present invention. DETAILED DESCRIPTION

[0026] The present invention will be further explained below in conjunction with specific embodiments.

[0027] Example

[0028] Reference Figure 1-2 This embodiment proposes a method for unlocking a building intercom device based on BLE, comprising the following steps:

[0029] S1: When BLE is not connected, the advertising data is sent to the BLE module through the CPU in the building intercom device. The advertising data includes DeviceName and MacAddr to complete the initialization configuration of BLE. The advertising data also includes RSSI information, that is, the signal strength of the device, which is a negative number. The RSSI information is used for subsequent BLE APP to measure the distance. The BLE module and CPU communicate through the UART bus. BLE is Bluetooth.

[0030] S2: The property management center remotely updates the DeviceName of the building intercom device through the management center computer. The CPU writes the DeviceName to the BLE module through UART communication and instructs the BLE module to update the advertising data to ensure that the building intercom device broadcasts normally in the application environment.

[0031] The update of advertising data is realized by calling bls_ll_setAdvEnable() and bls_ll_setAdvData() functions to ensure dynamic update of data to meet the demand for real-time adjustment of advertising content in application scenarios;

[0032] S3: The CPU sends a control command. The BLE module parses the CPU's control command, reinitializes the BLE security level and related pincode settings, and dynamically adjusts the supported security level and key settings to meet the security requirements of different scenarios. For example, if the security level is Authenticated_Pairing_with_Encryption, you need to set setSecurityLevel first, then set the setBondingMode mode, and finally set the pindcode password.

[0033] The default security level of the BLE module is configured as No_Authentication_No_Encryption. A Profile Service with UUID 0xFFF0 is defined in the BLE module to implement data interaction between the BLE module and the BLEAPP in the smartphone. It includes two attributes, Characteristic1 (UUID: 0xFFE1) and Characteristic 2 (UUID: 0xFFE2). Characteristic 1 (UUID: 0xFFE1) supports NOTIFY for uploading data, and Characteristic 2 (UUID: 0xFFE2) supports write operation for reading back data.

[0034] S4: The building intercom device uploads a set of 16x20-byte BLE unlocking keys to the management center, which synchronizes this information to the cloud and waits for the BLE APP on the smartphone to pull it;

[0035] S5: The owner registers an account through a smartphone and binds the owner account to the building intercom device to ensure that the owner can perform BLE unlocking operations within the scope of authority. The BLE APP pulls the BLE unlocking key, building intercom device name (DeviceName), connection security level and corresponding password information of each building intercom device in the current community from the cloud, and stores the pulled data locally in the BLE APP. Storing the data locally in the BLE APP can ensure that the user can still perform unlocking operations through the BLE connection in the offline or no network state. The locally stored key and building intercom device information ensure that the entire unlocking process does not need to rely on Internet connection, reducing security risks. All data interaction and decryption are completed locally, ensuring the safety and reliability of unlocking;

[0036] S6: The BLE APP of the smartphone is used to connect to the building intercom device through BLE. After the connection is established, the BLE APP of the smartphone obtains the signal strength RSSI value of the device by scanning the iBeacon advertisements periodically sent by the building intercom device, and calculates the distance between the smartphone and the building intercom device based on the RSSI value. When the distance is less than 50 cm, the BLE APP of the smartphone will pop up a window to prompt the user whether to unlock the door. When the distance is further shortened to less than 15 cm, the BLE APP of the smartphone will automatically start the unlocking process and enter step S7.

[0037] The formula used to calculate the distance between the smartphone and the building intercom device is as follows:

[0038]

[0039] Where d is the distance, rssi is the received signal strength indicator value, which is taken as an absolute value, A is the signal strength reference value measured at 1 meter, and n is the path loss factor of the propagation environment;

[0040] In addition, the parameters A and n need to be calibrated when the building intercom equipment is produced. During the calibration process, the building intercom equipment is fixed on a sliding tooling, and the BLE scan is performed at different distances through the smart device to obtain the corresponding RSSI value. After multiple measurements and data fitting, the precise A and n parameters are finally obtained. The calculation formula is:

[0041]

[0042]

[0043] Where A is the signal strength reference value measured at 1 meter, n is the path loss factor of the propagation environment, d1 and d2 are two different distances, RSSI1 and RSSI2 are the signal strengths corresponding to d1 and d2 respectively;

[0044] S7: Send the building intercom device number through the BLE APP of the smartphone, and the building intercom device generates a set of random numbers and sends them to the BLE APP of the smartphone;

[0045] S8: The BLE APP of the smartphone uses the key to encrypt the random number received in S5 and transmits it back to the building intercom device. The building intercom device verifies whether the data matches by decryption. If they match, the unlocking action is triggered, otherwise the connection is disconnected;

[0046] This embodiment allows the user to synchronize the required account information to the smartphone BLE APP in advance and store it locally. There is no need to rely on an Internet connection. When the user enters the access control range, the building intercom device can be automatically identified and verified locally to achieve BLE non-contact unlocking. No cloud operation or manual confirmation is required, which solves the unlocking problem in poor network environments and makes the user experience more convenient. In addition, the system's security protection capabilities are improved through localized processing, making it a better choice in building intercom systems.

[0047] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for BLE-based non-sensing unlocking of a building intercom device, characterized in that: The following steps are involved: S1: When BLE is not connected, the advertising data is sent to the BLE module through the CPU in the building intercom device. The advertising data includes DeviceName and MacAddr to complete the initialization configuration of BLE. S2: The property management center remotely updates the DeviceName of the building intercom device through the management center computer. The CPU writes the DeviceName to the BLE module through UART communication and instructs the BLE module to update the advertising data to ensure that the building intercom device broadcasts normally in the application environment. S3: The CPU sends a control command, and the BLE module parses the CPU's control command to reinitialize the BLE security level and related pincode settings, and dynamically adjust the supported security level and key settings; S4: The building intercom device uploads a set of 16x20-byte BLE unlocking keys to the management center, which synchronizes this information to the cloud and waits for the BLE APP on the smartphone to pull it; S5: The owner registers an account through a smartphone and binds the owner's account to the building intercom device to ensure that the owner can perform BLE unlocking operations within the scope of authority. The BLE APP pulls the BLE unlocking key, building intercom device name (DeviceName), connection security level and corresponding password information of each building intercom device in the current community from the cloud, and stores the pulled data locally in the BLE APP; S6: Use the BLE APP of the smartphone to connect to the building intercom device through BLE. After the connection is established, the BLE APP of the smartphone obtains the signal strength RSSI value of the device by scanning the iBeacon advertisements periodically sent by the building intercom device, and calculates the distance between the smartphone and the building intercom device based on this value. When the distance is less than 50cm, the BLE APP of the smartphone will pop up a window to prompt the user whether to unlock the door. When the distance is further shortened to less than 15cm, the BLE APP of the smartphone will automatically start the unlocking process and enter step S7. S7: Send the building intercom device number through the BLE APP of the smartphone, and the building intercom device generates a set of random numbers and sends them to the BLE APP of the smartphone; S8: The BLE APP of the smartphone uses the key to encrypt the random number received in S5 and then transmits it back to the building intercom device. The building intercom device verifies whether the data matches by decryption. If they match, the unlocking action is triggered, otherwise the connection is disconnected.

2. According to claim 1, a method for BLE-based non-sensing unlocking of a building intercom device is characterized in that: In S2, the updating of the advertisement data is realized by calling the bls_ll_setAdvEnable() and bls_ll_setAdvData() functions, thereby ensuring the dynamic updating of the data to meet the demand for real-time adjustment of the advertisement content in the application scenario.

3. According to claim 1, a method for BLE-based non-sensing unlocking of a building intercom device is characterized in that: In S3, the default security level of the BLE module is configured as No_Authentication_No_Encryption. A Profile Service with a UUID of 0xFFF0 is defined in the BLE module to implement data interaction between the BLE module and the BLE APP in the smartphone. It includes two Attributes, namely Characteristic 1 (UUID: 0xFFE1) and Characteristic 2 (UUID: 0xFFE2). Characteristic 1 (UUID: 0xFFE1) supports NOTIFY for uploading data, and Characteristic 2 (UUID: 0xFFE2) supports write operations for reading back data.

4. According to claim 1, a method for BLE-based non-sensing unlocking of a building intercom device is characterized in that: In S6, the formula used to calculate the distance between the smartphone and the building intercom device is as follows: Where d is the distance, rssi is the received signal strength indicator value, which is taken as an absolute value, A is the signal strength reference value measured at 1 meter, and n is the path loss factor of the propagation environment.

5. According to claim 4, a method for BLE-based non-sensing unlocking of a building intercom device is characterized in that: The parameters A and n need to be calibrated when the building intercom equipment is produced. During the calibration process, the building intercom equipment is fixed on a slidable tooling, and the BLE scan is performed at different distances by the smart device to obtain the corresponding RSSI value. After multiple measurements and data fitting, the precise A and n parameters are finally obtained. The calculation formula is: Where A is the signal strength reference value measured at 1 meter, n is the path loss factor of the propagation environment, d1 and d2 are two different distances, RSSI1 and RSSI2 are the signal strengths corresponding to d1 and d2 respectively.

6. The method for BLE-based non-sensing unlocking of a building intercom device according to claim 1 is characterized in that: In S5, the data is stored locally in the BLE APP, which can ensure that the user can still perform unlocking operations through the BLE connection in the subsequent offline or no network state.

Citation Information

Patent Citations

  • Ibeacon-based Bluetooth access control device and communication method thereof

    CN109003369A

  • Intelligent lock unlocking method and related equipment

    CN112116735A

  • Intelligent access control method and device, mobile terminal and storage medium

    CN115359590A