








技术领域technical field
本申请涉及智能门锁领域,尤其涉及一种实现安全无感开锁的方法和系统。The present application relates to the field of smart door locks, in particular to a method and system for realizing safe and non-inductive unlocking.
背景技术Background technique
近年来,在国家政策扶持下,人工智能技术快速发展,消费者在智能家居领域的消费需求激增,整个智能家居行业也正在快速发展和渗透。其中,智能门锁作为智能家居的入口级产品,以及家庭智能安防产品的重要组成,已经逐渐成为智能家居产业链的重要一环。In recent years, with the support of national policies, artificial intelligence technology has developed rapidly, consumers' consumption demand in the field of smart home has surged, and the entire smart home industry is also developing and penetrating rapidly. Among them, smart door locks, as an entry-level product for smart homes and an important component of home smart security products, have gradually become an important part of the smart home industry chain.
目前,智能门锁应用技术主要包括三方面:在安全开锁技术应用方面,普遍应用指纹识别、人脸识别、密码、手机app以及智能卡等安全级别相对较高的开锁技术;在平台连接方面,随着应用场景的拓展,蓝牙、zigbee、wifi、NB以及lora等物联技术都在智能门锁上有应用;智能化和人性化方面,报警提醒,防撬提醒,亲情提醒等功能可以为用户提供更多的智能化和个性化服务。At present, the application technology of smart door lock mainly includes three aspects: in the application of security unlocking technology, fingerprint recognition, face recognition, password, mobile phone app and smart card and other unlocking technologies with relatively high security levels are widely used; in terms of platform connection, With the expansion of application scenarios, IoT technologies such as Bluetooth, zigbee, wifi, NB, and lora are all applied to smart door locks; in terms of intelligence and humanization, functions such as alarm reminders, tamper-resistant reminders, and family reminders can provide users with More intelligent and personalized services.
在整体应用技术中,开锁涉及的安全技术无疑是考量智能门锁的一个最重要的指标。智能门锁普遍应用指纹识别,人脸识别、密码、手机app、智能卡等开锁技术,但是无论指纹识别、人脸识别这种应用生物识别技术的开锁方式,还是通过手机app、密码或者智能卡开锁的方式都存在明显的缺点。例如,生物识别存在功耗问题,成本问题,生物识别信息造假以及在使用过程中经常的采集困难等。而手机app、密码和智能卡存在安全性问题和使用便捷性问题。In the overall application technology, the security technology involved in unlocking is undoubtedly the most important indicator for considering smart door locks. Smart door locks generally use fingerprint recognition, face recognition, passwords, mobile apps, smart cards and other unlocking technologies, but regardless of fingerprint recognition, face recognition, which uses biometric technology to unlock the lock, it is still unlocked through mobile app, password or smart card Both methods have obvious disadvantages. For example, biometric identification has problems of power consumption, cost, fraudulent biometric information, and frequent collection difficulties during use. However, mobile apps, passwords, and smart cards have security and usability issues.
发明内容Contents of the invention
基于此,本申请提供了一种实现安全无感开锁的方案,在兼顾便捷性的同时,具备更高的安全性和开锁成功效率。Based on this, the present application provides a solution for realizing safe and non-inductive unlocking, which has higher security and successful unlocking efficiency while taking convenience into consideration.
根据本申请的第一个方面,提供一种实现安全无感开锁的方法,应用于智能门锁端,其包括:According to the first aspect of the present application, a method for realizing safe and non-inductive unlocking is provided, which is applied to the smart door lock terminal, which includes:
响应于感应用户的靠近,智能门锁启动蓝牙定位阵列天线;In response to sensing the approach of the user, the smart door lock activates the Bluetooth positioning array antenna;
通过所述蓝牙定位阵列天线定位蓝牙SIM密码卡所处的位置;Locate the location of the Bluetooth SIM password card through the Bluetooth positioning array antenna;
响应于所述蓝牙SIM密码卡在预定范围内且处于门外区域,执行与所述蓝牙SIM密码卡对应的认证流程;In response to the Bluetooth SIM code card being within a predetermined range and in an outside area, executing an authentication process corresponding to the Bluetooth SIM code card;
响应于所述蓝牙SIM密码卡通过认证,触发开锁逻辑。In response to the Bluetooth SIM passcode card being authenticated, the unlocking logic is triggered.
根据本申请的第二个方面,提供一种实现安全无感开锁的方法,应用于蓝牙SIM密码卡端,其包括:According to the second aspect of the present application, a method for realizing safe and non-inductive unlocking is provided, which is applied to the Bluetooth SIM password card end, which includes:
向智能门锁发送广播信号,所述广播信号用于所述智能门锁确定所述蓝牙SIM密码卡的位置;Send a broadcast signal to the smart door lock, and the broadcast signal is used for the smart door lock to determine the position of the Bluetooth SIM code card;
响应于所述蓝牙SIM密码卡在预定范围内且处于门外区域,执行与所述智能门锁对应的认证流程;以及In response to the Bluetooth SIM code card being within a predetermined range and in an area outside the door, performing an authentication process corresponding to the smart door lock; and
向所述智能门锁发送认证通过信息。Send authentication passing information to the smart door lock.
根据本申请的第三个方面,提供一种实现安全无感开锁的系统,其包括智能门锁管理平台、智能门锁和智能终端,所述智能终端包括蓝牙SIM密码卡并运行智能终端APP,其中,According to the third aspect of the present application, a system for realizing safe and non-inductive unlocking is provided, which includes a smart door lock management platform, a smart door lock and a smart terminal, the smart terminal includes a Bluetooth SIM code card and runs a smart terminal APP, in,
所述智能门锁管理平台用于远程管理所述智能门锁;The intelligent door lock management platform is used for remote management of the intelligent door lock;
所述智能终端APP用于管理所述蓝牙SIM密码卡和所述智能门锁;The smart terminal APP is used to manage the Bluetooth SIM password card and the smart door lock;
所述智能门锁用于执行如第一个方面所述的方法;The smart door lock is used to execute the method described in the first aspect;
所述蓝牙SIM密码卡用于执行如第二个方面所述的方法。The Bluetooth SIM password card is used to execute the method as described in the second aspect.
根据本申请提供的实现安全无感开锁的方法和系统,将智能门锁与智能终端的蓝牙SIM密码卡进行绑定,通过智能门锁与蓝牙SIM密码卡的自行交互进行安全认证,在认证通过的情况下,用户只需直接按下门把手开门,实现开锁过程中的“智能”与“无感”。而且,在智能门锁与蓝牙SIM密码卡进行安全认证之前,智能门锁能够通过蓝牙天线阵列定位蓝牙SIM密码卡的位置,只有SIM密码卡处于预设的感应距离并且处于门外时,才会启动认证流程,防止门锁被恶意开锁或错误开锁。此外,本申请提出一种新颖的智能门锁与蓝牙SIM密码卡的安全认证流程,确保开锁过程的安全性。According to the method and system for realizing safe and non-inductive unlocking provided by this application, the smart door lock is bound to the Bluetooth SIM code card of the smart terminal, and security authentication is performed through the self-interaction between the smart door lock and the Bluetooth SIM code card. Under the circumstances, the user only needs to directly press the door handle to open the door, realizing "smart" and "non-inductive" in the unlocking process. Moreover, before the security authentication between the smart door lock and the Bluetooth SIM password card, the smart door lock can locate the position of the Bluetooth SIM password card through the Bluetooth antenna array. Start the authentication process to prevent the door lock from being unlocked maliciously or by mistake. In addition, this application proposes a novel security authentication process for the smart door lock and the Bluetooth SIM code card to ensure the security of the unlocking process.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图,而并不超出本申请要求保护的范围。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without going beyond the protection scope of the present application.
图1是根据本申请实施例的通过蓝牙SIM卡实现无感开锁的使用场景示意图。Fig. 1 is a schematic diagram of a usage scenario of realizing non-inductive unlocking through a Bluetooth SIM card according to an embodiment of the present application.
图2是通过智能门锁管理平台将蓝牙SIM密码卡与智能门锁进行绑定的流程示意图。Fig. 2 is a schematic flow diagram of binding the Bluetooth SIM code card and the smart door lock through the smart door lock management platform.
图3是通过智能终端的APP将蓝牙SIM密码卡与智能门锁进行绑定的流程示意图。Fig. 3 is a schematic flow diagram of binding the Bluetooth SIM password card and the smart door lock through the APP of the smart terminal.
图4是通过智能门锁的菜单功能将蓝牙SIM密码卡与智能门锁进行绑定的流程示意图。Fig. 4 is a schematic flow chart of binding the Bluetooth SIM password card with the smart door lock through the menu function of the smart door lock.
图5是根据本申请实施例的实现安全无感开锁系统的示意图。Fig. 5 is a schematic diagram of a system for realizing safe and non-inductive unlocking according to an embodiment of the present application.
图6是根据本申请实施例的通过蓝牙定位阵列天线定位蓝牙SIM密码卡所处位置的示意图。Fig. 6 is a schematic diagram of locating the location of the Bluetooth SIM code card through the Bluetooth positioning array antenna according to an embodiment of the present application.
图7是根据本申请实施例的智能门锁与蓝牙SIM密码卡的认证流程图。Fig. 7 is a flow chart of authentication between a smart door lock and a Bluetooth SIM code card according to an embodiment of the present application.
图8是根据本申请实施例的智能门锁执行的实现安全无感开锁的流程图。Fig. 8 is a flow chart of realizing safe and non-inductive unlocking executed by the smart door lock according to the embodiment of the present application.
图9是根据本申请实施例的蓝牙SIM密码卡执行的实现安全无感开锁的流程图。Fig. 9 is a flow chart of realizing safe and non-inductive unlocking executed by the Bluetooth SIM password card according to the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of this application.
无感开锁技术的诞生是智能锁行业甚至是门锁发展史上一次突破性的革新,从钥匙到密码、指纹、人脸识别,再到无感开锁……人被技术不断解放,智能锁行业也在科技的变革中诞生并不断突破发展。而对于行业来说,无感开锁技术同样是个契机,可以让智能锁企业看到行业创新的更多可能性。The birth of non-inductive unlocking technology is a breakthrough innovation in the smart lock industry and even in the history of door lock development, from keys to passwords, fingerprints, face recognition, and then to non-inductive unlocking... People are constantly liberated by technology, and the smart lock industry is also Born in the revolution of science and technology and constantly breaking through and developing. For the industry, the non-inductive unlocking technology is also an opportunity, allowing smart lock companies to see more possibilities for industry innovation.
本申请涉及的安全无感开锁技术革新了用户传统的验证开锁模式,既不需要指纹认证、人脸识别,也不需要输入密码,更不用钥匙。如图1所示,只需要住户处于门外设定范围(例如,0.5米-1米范围)内的识别区域,智能门锁与智能终端内的蓝牙SIM密码卡自行交互,“隔空”安全验证,认证通过后,用户直接按下门把手开门,真正实现“智能”与“无感”。The safe and non-inductive unlocking technology involved in this application revolutionizes the traditional verification and unlocking mode of users. It does not require fingerprint authentication, face recognition, password input, or keys. As shown in Figure 1, only the resident needs to be in the identification area within the set range outside the door (for example, within the range of 0.5 meters to 1 meter), and the smart door lock interacts with the Bluetooth SIM code card in the smart terminal by itself, and the "space" security After verification, after the authentication is passed, the user directly presses the door handle to open the door, truly realizing "smart" and "non-sensing".
而且,用户使用这项技术,所使用的蓝牙SIM卡密码卡不需要更换移动终端和手机号,跨硬件平台和操作系统,可以兼容IOS和安卓系统,即便是功能机和电话手表同样适用,老年人和儿童无需学习代价即可畅享高科技带来的全新智能开锁体验。Moreover, when users use this technology, the Bluetooth SIM card password card used does not need to change the mobile terminal and mobile phone number. It is cross-hardware platform and operating system, and can be compatible with IOS and Android systems. It is also applicable to functional phones and phone watches. People and children can enjoy the brand-new smart unlocking experience brought by high technology without the cost of learning.
在智能门锁与蓝牙SIM密码卡能够进行认证之前,需要将智能门锁与蓝牙SIM密码卡进行绑定,如图2、图3和图4所示。Before the smart door lock and the Bluetooth SIM password card can be authenticated, the smart door lock and the Bluetooth SIM password card need to be bound, as shown in Figure 2, Figure 3 and Figure 4.
如图2所示,通过智能门锁管理平台将蓝牙SIM密码卡与智能门锁进行绑定的流程包括如下步骤:As shown in Figure 2, the process of binding the Bluetooth SIM password card to the smart door lock through the smart door lock management platform includes the following steps:
(1)登陆智能终端APP,并添加智能门锁设备;(1) Log in to the smart terminal APP and add a smart door lock device;
(2)智能门锁添加成功以后,用户通过智能终端APP扫码或者手动输入方式采集蓝牙SIM密码卡硬件ID信息,并上送给智能门锁设备管理平台;(2) After the smart door lock is successfully added, the user collects the hardware ID information of the Bluetooth SIM password card through the smart terminal APP scanning code or manual input, and sends it to the smart door lock device management platform;
(3)智能门锁设备管理平台通过蓝牙SIM密码卡硬件ID信息,将匹配的开锁权限(包括蓝牙SIM密码卡的蓝牙广播配置参数)通过安全的方式下发给智能门锁的安全芯片进行存储,完成绑定;(3) The smart door lock device management platform sends the matching unlock authority (including the Bluetooth broadcast configuration parameters of the Bluetooth SIM code card) to the security chip of the smart door lock in a safe manner through the hardware ID information of the Bluetooth SIM code card for storage , to complete the binding;
(4)绑定授权成功以后就可以通过蓝牙SIM密码卡进行安全无感开锁。(4) After the binding authorization is successful, the lock can be unlocked safely and senselessly through the Bluetooth SIM password card.
如图3所示,通过智能终端的APP将蓝牙SIM密码卡与智能门锁进行绑定的流程包括如下步骤:As shown in Figure 3, the process of binding the Bluetooth SIM password card to the smart door lock through the APP of the smart terminal includes the following steps:
(1)登陆智能终端APP,并添加智能门锁设备;(1) Log in to the smart terminal APP and add a smart door lock device;
(2)智能门锁添加成功以后,用户通过智能终端APP扫码或者手动输入方式采集蓝牙SIM密码卡蓝牙广播配置参数;(2) After the smart door lock is successfully added, the user scans the code through the smart terminal APP or manually enters the Bluetooth SIM password card Bluetooth broadcast configuration parameters;
(3)手机APP重新连接智能门锁,并将采集的蓝牙广播配置参数通过安全的方式下发给智能门锁的安全芯片进行存储,完成绑定;(3) The mobile APP reconnects to the smart door lock, and sends the collected Bluetooth broadcast configuration parameters to the security chip of the smart door lock for storage in a safe manner, and completes the binding;
(4)绑定授权成功以后就可以通过蓝牙SIM密码卡进行安全无感开锁。(4) After the binding authorization is successful, the lock can be unlocked safely and senselessly through the Bluetooth SIM password card.
如图4所示,通过智能门锁的菜单功能将蓝牙SIM密码卡与智能门锁进行绑定的流程包括如下步骤:As shown in Figure 4, the process of binding the Bluetooth SIM password card to the smart door lock through the menu function of the smart door lock includes the following steps:
(1)在智能门锁上操作,进入授权模式;(1) Operate on the smart door lock and enter the authorization mode;
(2)智能门锁自动搜索在有效范围内(例如,0.5-1米)的蓝牙SIM密码卡,并将搜索的蓝牙SIM密码卡进行绑定;(2) The smart door lock automatically searches for the Bluetooth SIM code card within the effective range (for example, 0.5-1 meter), and binds the searched Bluetooth SIM code card;
(3)绑定授权成功以后就可以通过蓝牙SIM密码卡进行安全无感开锁。(3) After the binding authorization is successful, the lock can be unlocked safely and senselessly through the Bluetooth SIM password card.
图5是根据本申请实施例的实现安全无感开锁系统的示意图。如图5所示,当用户携带安装了蓝牙SIM密码卡智能终端靠近智能门锁时,智能门锁首先通过其中的人体感应模块判断用于在靠近,智能门锁启动蓝牙定位阵列天线用于判断智能终端内的蓝牙SIM密码卡的位置是否足够接近并且处于门外,当蓝牙SIM密码卡处于设定范围(例如,0.5~1米)外或门内时,关闭蓝牙定位阵列天线;当蓝牙SIM密码卡处于设定范围内且在门外时,建立智能门锁与蓝牙SIM密码卡的蓝牙连接,启动智能门锁与蓝牙SIM密码卡的认证。在图5所示的实施例中,蓝牙定位阵列天线为高精度蓝牙定位阵列天线。Fig. 5 is a schematic diagram of a system for realizing safe and non-inductive unlocking according to an embodiment of the present application. As shown in Figure 5, when the user carries a smart terminal installed with a Bluetooth SIM password card and approaches the smart door lock, the smart door lock first judges the proximity through the human body sensing module, and the smart door lock starts the Bluetooth positioning array antenna for judging Whether the location of the Bluetooth SIM password card in the smart terminal is close enough and outside the door, when the Bluetooth SIM password card is outside the set range (for example, 0.5 to 1 meter) or inside the door, turn off the Bluetooth positioning array antenna; when the Bluetooth SIM When the password card is within the set range and outside the door, a Bluetooth connection between the smart door lock and the Bluetooth SIM password card is established, and the authentication of the smart door lock and the Bluetooth SIM password card is started. In the embodiment shown in FIG. 5 , the Bluetooth positioning array antenna is a high-precision Bluetooth positioning array antenna.
当蓝牙SIM密码卡的认证通过(即蓝牙SIM密码卡合法)时,智能门锁触发后续的开锁逻辑;而当蓝牙SIM密码卡的认证没有通过(即蓝牙SIM密码卡不合法)时,智能门锁不会触发开锁逻辑,门继续保持锁定状态。When the authentication of the Bluetooth SIM password card is passed (that is, the Bluetooth SIM password card is legal), the smart door lock triggers the subsequent unlocking logic; The lock does not trigger the unlock logic and the door remains locked.
对于通过蓝牙定位阵列天线定位蓝牙SIM密码卡所处位置,图6是根据本申请实施例的通过蓝牙定位阵列天线定位蓝牙SIM密码卡所处位置的示意图。如图6所示,蓝牙定位阵列天线包括多个蓝牙定位天线,分别用于接收蓝牙SIM密码卡的广播信号。蓝牙定位天线对接收到的特定广播信号进行测量,分别计算出信号的高度角和方向角,并将结果反馈给智能门锁的主控制器。智能门锁的主控制器根据各个蓝牙定位天线采集的高度角和方向角,计算出蓝牙SIM密码卡的位置,即蓝牙SIM密码卡与智能门锁的距离以及处于门内还是门外。For locating the location of the Bluetooth SIM password card through the Bluetooth positioning array antenna, FIG. 6 is a schematic diagram of locating the location of the Bluetooth SIM password card through the Bluetooth positioning array antenna according to an embodiment of the present application. As shown in FIG. 6 , the Bluetooth positioning array antenna includes a plurality of Bluetooth positioning antennas, which are respectively used to receive broadcast signals of the Bluetooth SIM password card. The Bluetooth positioning antenna measures the specific broadcast signal received, calculates the elevation angle and direction angle of the signal, and feeds back the results to the main controller of the smart door lock. The main controller of the smart door lock calculates the position of the Bluetooth SIM code card according to the altitude angle and direction angle collected by each Bluetooth positioning antenna, that is, the distance between the Bluetooth SIM code card and the smart door lock and whether it is inside or outside the door.
对于智能门锁与蓝牙SIM密码卡的认证流程,图7是根据本申请实施例的智能门锁与蓝牙SIM密码卡的认证流程图。如图7所示,该流程包括如下步骤。Regarding the authentication flow of the smart door lock and the Bluetooth SIM password card, FIG. 7 is a flowchart of the authentication of the smart door lock and the Bluetooth SIM password card according to an embodiment of the present application. As shown in Figure 7, the process includes the following steps.
(1)智能门锁与蓝牙SIM密码卡建立蓝牙连接。(1) The smart door lock establishes a Bluetooth connection with the Bluetooth SIM code card.
(2)智能门锁终端生成并发送第一随机数给蓝牙SIM密码卡,其中该第一随机数可以是任意长度的随机数,例如可以是两字节的随机数。(2) The smart door lock terminal generates and sends a first random number to the Bluetooth SIM password card, wherein the first random number may be a random number of any length, for example, a two-byte random number.
(3)蓝牙SIM密码卡端建立连接后,可以延时等待100ms后,向智能门锁终端发送加密数据和蓝牙SIM密码卡生成的第二随机数。其中,加密数据生成过程可以是:使用蓝牙SIM密码卡安全芯片中保存的密钥将广播配置参数中的选定数据部分和智能门锁发送的第一随机数进行加密。(3) After the Bluetooth SIM password card terminal establishes a connection, it can wait for 100ms after a delay, and then send the encrypted data and the second random number generated by the Bluetooth SIM password card to the smart door lock terminal. Wherein, the encrypted data generating process may be: using the key stored in the security chip of the Bluetooth SIM password card to encrypt the selected data part in the broadcast configuration parameters and the first random number sent by the smart door lock.
其中,进行加密的密钥可以通过广播配置参数生成,例如,将广播配置参数的后四字节重复3次,然后补四字节0组成16字节长度的密钥。广播配置参数中的选定数据部分可以是广播配置参数后7字节数据。还可以要求加密数据需能被16整除,对不能整除的数据进行补齐,例如,补齐数据的第1个字节为0x80,第2~n字节均为0x00,加密算法可以采用3DES-ECB模式。Wherein, the encryption key can be generated through broadcast configuration parameters, for example, the last four bytes of the broadcast configuration parameters are repeated three times, and then four bytes of 0 are added to form a 16-byte key. The selected data part in the broadcast configuration parameter may be 7-byte data after the broadcast configuration parameter. You can also require that the encrypted data be divisible by 16, and fill in the data that is not divisible. For example, the first byte of the filled data is 0x80, and the second to n bytes are all 0x00. The encryption algorithm can use 3DES- ECB mode.
(4)智能门锁收到蓝牙SIM密码卡的加密数据以后,在完成数据解密,判断解密的明文数据和智能门锁中保存的广播配置参数、第一随机数是否一致。(4) After the smart door lock receives the encrypted data of the Bluetooth SIM password card, it completes the data decryption, and judges whether the decrypted plaintext data is consistent with the broadcast configuration parameters and the first random number saved in the smart door lock.
(5)如果解密的明文数据和智能门锁中保存的广播配置参数、第一随机数一致,智能门锁发送认证数据返回给蓝牙SIM密码卡认证数据生成过程。认证数据的生成过程包括:使用智能门锁安全芯片中保存的密钥,将广播配置参数中的选定数据部分和智能门锁发送的第二随机数进行加密。(5) If the decrypted plaintext data is consistent with the broadcast configuration parameters and the first random number stored in the smart door lock, the smart door lock sends the authentication data back to the Bluetooth SIM password card authentication data generation process. The process of generating the authentication data includes: using the key stored in the security chip of the smart door lock to encrypt the selected data part in the broadcast configuration parameters and the second random number sent by the smart door lock.
其中,其中该第二随机数可以是任意长度的随机数,例如可以是两字节的随机数。进行加密的密钥可以通过广播配置参数生成,例如,将广播配置参数的后四字节重复3次,然后补四字节0组成16字节长度的密钥。广播配置参数中的选定数据部分可以是广播配置参数后7字节数据。还可以要求加密数据需能被16整除,对不能整除的数据进行补齐,例如,补齐数据的第1个字节为0x80,第2~n字节均为0x00,加密算法可以采用3DES-ECB模式。一般要求加密数据的长度是16个字节的整数倍。例如,加密数据的长度是12个字节,通过增加一个0x80的字节和3个0x00的字节将其补齐到16个字节。再如,加密数据的长度是26个字节,通过增加一个0x80的字节和5个0x00的字节将其补齐到32个字节。Wherein, the second random number may be a random number of any length, for example, may be a two-byte random number. The encryption key can be generated through the broadcast configuration parameters, for example, repeat the last four bytes of the broadcast configuration parameters three times, and then add four bytes of 0 to form a 16-byte key. The selected data part in the broadcast configuration parameter may be 7-byte data after the broadcast configuration parameter. You can also require that the encrypted data be divisible by 16, and fill in the data that is not divisible. For example, the first byte of the filled data is 0x80, and the second to n bytes are all 0x00. The encryption algorithm can use 3DES- ECB mode. It is generally required that the length of encrypted data be an integer multiple of 16 bytes. For example, the length of encrypted data is 12 bytes, and it is padded to 16 bytes by adding a byte of 0x80 and three bytes of 0x00. For another example, the length of encrypted data is 26 bytes, and it is padded to 32 bytes by adding a byte of 0x80 and 5 bytes of 0x00.
可以理解的是,加密的密钥、广播配置参数中的选定数据部分、第一随机数和第二随机数的实现方式以及加密数据的补齐方式和加密算法的选定不限于上述实施例举出的方式,只要能够实现加密满足安全要求,本领域技术人员在上述实施例的启发下可以想到的其他实现方式都属于本申请覆盖的范围。It can be understood that the encryption key, the selected data part in the broadcast configuration parameters, the implementation of the first random number and the second random number, the complementing method of the encrypted data and the selection of the encryption algorithm are not limited to the above-mentioned embodiments As long as the enumerated manners can realize encryption and meet security requirements, other implementation manners that those skilled in the art can think of under the inspiration of the above-mentioned embodiments all fall within the scope covered by the present application.
(6)蓝牙SIM密码卡端接收认证数据,并使用自身安全芯片中存储的密钥进行解密,解密后的数据与自身存储的广播配置参数、第二随机数进行比对查看是否正确,如果通过则返回认证通过信息给智能门锁终端;其中,认证通过信息可以是代码E09000。(6) The Bluetooth SIM password card end receives the authentication data, and uses the key stored in its own security chip to decrypt, and compares the decrypted data with its own stored broadcast configuration parameters and the second random number to check whether it is correct. Then return the authentication passing information to the smart door lock terminal; wherein, the authentication passing information can be code E09000.
(7)智能门锁终端收到蓝牙SIM密码卡返回的认证通过信息,判断双向认证通过,并驱动电机完成开锁。(7) The smart door lock terminal receives the authentication passing information returned by the Bluetooth SIM password card, judges that the two-way authentication is passed, and drives the motor to complete the unlocking.
基于实现安全无感开锁系统,本申请提供一种实现安全无感开锁的方法,如图8所示,对于智能门锁来说,该方法包括如下步骤。Based on realizing the safe and non-inductive unlocking system, the present application provides a method for realizing safe and non-inductive unlocking. As shown in FIG. 8 , for an intelligent door lock, the method includes the following steps.
步骤S801,应于感应用户的靠近,智能门锁启动蓝牙定位阵列天线。Step S801, in response to sensing the approach of the user, the smart door lock activates the Bluetooth positioning array antenna.
智能门锁的人体感应模块可以识别人体的靠近,当人体靠近时,智能门锁启动蓝牙定位阵列天线。The human body sensing module of the smart door lock can recognize the approach of the human body. When the human body approaches, the smart door lock activates the Bluetooth positioning array antenna.
步骤S802,通过蓝牙定位阵列天线定位蓝牙SIM密码卡所处的位置。Step S802, locating the location of the Bluetooth SIM code card through the Bluetooth positioning array antenna.
如图6所示,蓝牙定位阵列天线包括多个蓝牙定位天线,分别用于接收蓝牙SIM密码卡的广播信号。蓝牙定位天线对接收到的特定广播信号进行测量,分别计算出信号的高度角和方向角,并将结果反馈给智能门锁的主控制器。智能门锁的主控制器根据各个蓝牙定位天线采集的高度角和方向角,计算出蓝牙SIM密码卡的位置。As shown in FIG. 6 , the Bluetooth positioning array antenna includes a plurality of Bluetooth positioning antennas, which are respectively used to receive broadcast signals of the Bluetooth SIM password card. The Bluetooth positioning antenna measures the specific broadcast signal received, calculates the elevation angle and direction angle of the signal, and feeds back the results to the main controller of the smart door lock. The main controller of the smart door lock calculates the position of the Bluetooth SIM password card according to the altitude angle and direction angle collected by each Bluetooth positioning antenna.
具体来说,步骤S802包括如下子步骤:Specifically, step S802 includes the following sub-steps:
子步骤S8021,通过蓝牙定位阵列天线中的两个以上蓝牙定位天线分别接收蓝牙SIM密码卡的广播信号。Sub-step S8021, receiving the broadcast signal of the Bluetooth SIM code card through two or more Bluetooth positioning antennas in the Bluetooth positioning array antenna.
子步骤S8022,通过蓝牙定位天线对接收到的广播信号进行测量,计算出广播信号的高度角和方向角,并将所计算的结果反馈给智能门锁的主控制器。Sub-step S8022, measure the received broadcast signal through the Bluetooth positioning antenna, calculate the altitude angle and direction angle of the broadcast signal, and feed back the calculated result to the main controller of the smart door lock.
子步骤S8023,智能门锁的主控制器根据各个蓝牙定位天线采集的高度角和方向角,计算出蓝牙SIM密码卡的位置。In sub-step S8023, the main controller of the smart door lock calculates the position of the Bluetooth SIM password card according to the altitude angle and direction angle collected by each Bluetooth positioning antenna.
通过蓝牙定位阵列天线定位的蓝牙SIM密码卡的位置,就可以知道蓝牙SIM密码卡是否在预定范围内、位于门内还是门外。当蓝牙SIM密码卡在预定范围外或位于门内区域时,智能门锁关闭蓝牙定位阵列天线,不执行与蓝牙SIM密码卡的认证。当蓝牙SIM密码卡在预定范围内且位于门外区域时,执行步骤S803。By the position of the Bluetooth SIM password card located by the Bluetooth positioning array antenna, it can be known whether the Bluetooth SIM password card is within the predetermined range, inside or outside the door. When the Bluetooth SIM password card is outside the predetermined range or located in the door area, the smart door lock turns off the Bluetooth positioning array antenna and does not perform authentication with the Bluetooth SIM password card. When the Bluetooth SIM code card is within the predetermined range and located in the area outside the door, step S803 is executed.
步骤S803,响应于蓝牙SIM密码卡在预定范围内且处于门外区域,执行与蓝牙SIM密码卡对应的认证流程。Step S803, in response to the bluetooth SIM code card being within the predetermined range and outside the door area, execute an authentication process corresponding to the bluetooth SIM code card.
智能门锁与蓝牙SIM密码卡根据图7所示的流程步骤执行认证流程,从而得出蓝牙SIM密码卡是否通过认证,即是否合法。The smart door lock and the Bluetooth SIM password card execute the authentication process according to the process steps shown in Figure 7, so as to determine whether the Bluetooth SIM password card passes the authentication, that is, whether it is legal.
具体来说,步骤S803包括如下子步骤:Specifically, step S803 includes the following sub-steps:
子步骤S8031,与蓝牙SIM密码卡建立蓝牙连接。Sub-step S8031, establish a Bluetooth connection with the Bluetooth SIM code card.
子步骤S8032,发送第一随机数给蓝牙SIM密码卡。Sub-step S8032, sending the first random number to the Bluetooth SIM password card.
子步骤S8033,接收来自蓝牙SIM密码卡的加密数据和蓝牙SIM密码卡生成的第二随机数,其中,所述加密数据是基于与蓝牙SIM密码卡相关的广播配置参数和第一随机数形成的。其中,进行加密的密钥可以通过广播配置参数生成,加密数据生成过程可以是:使用蓝牙SIM密码卡安全芯片中保存的密钥将广播配置参数中的第一选定数据部分和智能门锁发送的第一随机数进行加密。Sub-step S8033, receiving the encrypted data from the Bluetooth SIM password card and the second random number generated by the Bluetooth SIM password card, wherein the encrypted data is formed based on the broadcast configuration parameters related to the Bluetooth SIM password card and the first random number . Wherein, the encryption key can be generated by broadcasting configuration parameters, and the encrypted data generation process can be: use the key stored in the security chip of the Bluetooth SIM password card to send the first selected data part in the broadcasting configuration parameters to the smart door lock The first random number is encrypted.
子步骤S8034,解密加密数据获得第一明文数据。Sub-step S8034, decrypt the encrypted data to obtain the first plaintext data.
子步骤S8035,响应于第一明文数据与广播配置参数以及第一随机数一致,发送认证数据给蓝牙SIM密码卡,其中,所述认证数据是基于广播配置参数和第二随机数形成的。其中,进行加密的密钥与形成加密数据的密钥是对应的,也可以通过广播配置参数生成,认证数据的生成过程包括:使用智能门锁安全芯片中保存的密钥,将广播配置参数中的第二选定数据部分和智能门锁发送的第二随机数进行加密。Sub-step S8035, in response to the first plaintext data being consistent with the broadcast configuration parameters and the first random number, sending authentication data to the Bluetooth SIM password card, wherein the authentication data is formed based on the broadcast configuration parameters and the second random number. Among them, the key for encryption corresponds to the key for forming encrypted data, and can also be generated by broadcasting configuration parameters. The generation process of authentication data includes: using the key stored in the security chip of the smart door lock, converting the Encrypt the second selected data part and the second random number sent by the smart door lock.
子步骤S8036,接收蓝牙SIM密码卡发送的认证通过信息。Sub-step S8036, receiving the authentication passing information sent by the Bluetooth SIM code card.
当蓝牙SIM密码卡没有通过认证时,智能门锁不会触发开锁逻辑。而当蓝牙SIM密码卡通过认证时,执行步骤S804。When the Bluetooth SIM code card is not authenticated, the smart door lock will not trigger the unlock logic. And when the Bluetooth SIM password card passes the authentication, step S804 is executed.
步骤S804,响应于所述蓝牙SIM密码卡通过认证,触发开锁逻辑。Step S804, in response to the Bluetooth SIM passcode card being authenticated, trigger unlocking logic.
智能门锁收到蓝牙SIM密码卡返回的认证通过信息后,判断双向认证通过,驱动电机完成开锁。After receiving the authentication passing information returned by the Bluetooth SIM password card, the smart door lock judges that the two-way authentication has passed, and drives the motor to complete the unlocking.
在智能门锁与蓝牙SIM密码卡之间可以执行认证之前,需要对智能门锁和蓝牙SIM密码卡进行绑定,如图2、图3和图4所示,可以分别通过智能门锁管理平台、智能终端APP和智能门锁的菜单功能将智能门锁和蓝牙SIM密码卡进行绑定,在绑定的过程中,将蓝牙SIM密码卡的蓝牙广播配置参数发送给智能门锁,用于之后的认证过程。Before authentication can be performed between the smart door lock and the Bluetooth SIM code card, the smart door lock and the Bluetooth SIM code card need to be bound, as shown in Figure 2, Figure 3 and Figure 4, which can be accessed through the smart door lock management platform , the smart terminal APP and the menu function of the smart door lock to bind the smart door lock and the Bluetooth SIM code card. During the binding process, the Bluetooth broadcast configuration parameters of the Bluetooth SIM code card are sent to the smart door lock for future use. authentication process.
基于实现安全无感开锁系统,本申请提供一种实现安全无感开锁的方法,如图9所示,对于蓝牙SIM密码卡来说,该方法包括如下步骤。Based on realizing the safe and non-inductive unlocking system, the present application provides a method for realizing safe and non-inductive unlocking. As shown in FIG. 9 , for the Bluetooth SIM password card, the method includes the following steps.
步骤S901,向智能门锁发送广播信号,所述广播信号用于智能门锁确定蓝牙SIM密码卡的位置。In step S901, a broadcast signal is sent to the smart door lock, and the broadcast signal is used for the smart door lock to determine the location of the Bluetooth SIM code card.
蓝牙SIM密码卡向智能门锁发送广播信号,智能门锁根据图6所示的方式根据广播信号定位蓝牙SIM密码卡的位置。当蓝牙SIM密码卡在预定范围外或位于门内时,智能门锁关闭蓝牙定位天线阵列,不执行与蓝牙SIM密码卡的认证。而当蓝牙SIM密码卡在预定范围内且处于门外时,执行步骤S902。The Bluetooth SIM password card sends a broadcast signal to the smart door lock, and the smart door lock locates the position of the Bluetooth SIM password card according to the broadcast signal in the manner shown in FIG. 6 . When the Bluetooth SIM password card is outside the predetermined range or inside the door, the smart door lock turns off the Bluetooth positioning antenna array and does not perform authentication with the Bluetooth SIM password card. And when the Bluetooth SIM password card is within the predetermined range and outside the door, step S902 is executed.
步骤S902,响应于蓝牙SIM密码卡在预定范围内且处于门外区域,执行与智能门锁对应的认证流程。Step S902, in response to the Bluetooth SIM password card being within a predetermined range and outside the door, an authentication process corresponding to the smart door lock is executed.
具体来说,步骤S902包括如下子步骤:Specifically, step S902 includes the following sub-steps:
子步骤S9021,与智能门锁建立蓝牙连接。Sub-step S9021, establish a Bluetooth connection with the smart door lock.
子步骤S9022,接收来自智能门锁的第一随机数。Sub-step S9022, receiving the first random number from the smart door lock.
子步骤S9023,形成加密数据并生成第二随机数,其中,所述加密数据是基于与蓝牙SIM密码卡相关的广播配置参数和第一随机数形成的。Sub-step S9023, forming encrypted data and generating a second random number, wherein the encrypted data is formed based on broadcast configuration parameters related to the Bluetooth SIM password card and the first random number.
子步骤S9024,向智能门锁发送加密数据和所生成的第二随机数。Sub-step S9024, sending the encrypted data and the generated second random number to the smart door lock.
子步骤S9025,接收认证数据,其中,所述认证数据是基于广播配置参数和第二随机数形成的。Sub-step S9025, receiving authentication data, wherein the authentication data is formed based on broadcast configuration parameters and a second random number.
子步骤S9026,解密认证数据获得第二明文数据。Sub-step S9026, decrypt the authentication data to obtain the second plaintext data.
子步骤S9027,响应于第二明文数据与广播配置参数以及第二随机数一致的,发送认证通过信息。Sub-step S9027, in response to the fact that the second plaintext data is consistent with the broadcast configuration parameter and the second random number, send authentication passing information.
步骤S903,向智能门锁发送认证通过信息。Step S903, sending authentication passing information to the smart door lock.
智能门锁收到蓝牙SIM密码卡返回的认证通过信息后,判断双向认证通过,驱动电机完成开锁。After receiving the authentication passing information returned by the Bluetooth SIM password card, the smart door lock judges that the two-way authentication has passed, and drives the motor to complete the unlocking.
根据本申请的另一个方面,提供一种实现安全无感开锁的系统,其包括智能门锁管理平台、智能门锁和智能终端,所述智能终端包括蓝牙SIM密码卡并运行智能终端APP。在该系统中,智能门锁管理平台用于远程管理所述智能门锁;智能终端APP用于管理蓝牙SIM密码卡和智能门锁;智能门锁根据图8所示的方法执行安全无感开锁;蓝牙SIM密码卡根据图9所示的方法执行安全无感开锁。According to another aspect of the present application, a system for realizing safe and non-inductive unlocking is provided, which includes a smart door lock management platform, a smart door lock, and a smart terminal, and the smart terminal includes a Bluetooth SIM code card and runs a smart terminal APP. In this system, the smart door lock management platform is used to remotely manage the smart door lock; the smart terminal APP is used to manage the Bluetooth SIM password card and the smart door lock; the smart door lock performs safe and non-inductive unlocking according to the method shown in Figure 8 ; The Bluetooth SIM password card performs safe and senseless unlocking according to the method shown in FIG. 9 .
根据本申请提供的实现安全无感开锁的方法和系统,将智能门锁与智能终端的蓝牙SIM密码卡进行绑定,通过智能门锁与蓝牙SIM密码卡的自行交互进行安全认证,在认证通过的情况下,用户只需直接按下门把手开门,实现开锁过程中的“智能”与“无感”。而且,在智能门锁与蓝牙SIM密码卡进行安全认证之前,智能门锁能够通过蓝牙天线阵列定位蓝牙SIM密码卡的位置,只有SIM密码卡处于预设的感应距离并且处于门外时,才会启动认证流程,防止门锁被恶意开锁或错误开锁。此外,本申请提出一种新颖的智能门锁与蓝牙SIM密码卡的安全认证流程,确保开锁过程的安全性。According to the method and system for realizing safe and non-inductive unlocking provided by this application, the smart door lock is bound to the Bluetooth SIM code card of the smart terminal, and security authentication is performed through the self-interaction between the smart door lock and the Bluetooth SIM code card. Under the circumstances, the user only needs to directly press the door handle to open the door, realizing "smart" and "non-inductive" in the unlocking process. Moreover, before the security authentication between the smart door lock and the Bluetooth SIM password card, the smart door lock can locate the position of the Bluetooth SIM password card through the Bluetooth antenna array. Start the authentication process to prevent the door lock from being unlocked maliciously or by mistake. In addition, this application proposes a novel security authentication process for the smart door lock and the Bluetooth SIM code card to ensure the security of the unlocking process.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明仅用于帮助理解本申请的方法及其核心思想。同时,本领域技术人员依据本申请的思想,基于本申请的具体实施方式及应用范围上做出的改变或变形之处,都属于本申请保护的范围。综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to the embodiments of the present application. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. At the same time, changes or deformations made by those skilled in the art based on the ideas of the application, specific implementation methods and application scopes of the application all belong to the scope of protection of the application. To sum up, the contents of this specification should not be understood as limiting the application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110962625.6ACN115708136A (en) | 2021-08-20 | 2021-08-20 | Method and system for realizing safe and non-inductive unlocking |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110962625.6ACN115708136A (en) | 2021-08-20 | 2021-08-20 | Method and system for realizing safe and non-inductive unlocking |
| Publication Number | Publication Date |
|---|---|
| CN115708136Atrue CN115708136A (en) | 2023-02-21 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110962625.6APendingCN115708136A (en) | 2021-08-20 | 2021-08-20 | Method and system for realizing safe and non-inductive unlocking |
| Country | Link |
|---|---|
| CN (1) | CN115708136A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116563983A (en)* | 2023-06-28 | 2023-08-08 | 海十联(上海)智能科技有限公司 | Intelligent door lock control system and method and intelligent door lock |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105261104A (en)* | 2015-11-24 | 2016-01-20 | 重庆理工大学 | Bluetooth door lock system based on intelligent terminal, and control method of Bluetooth door lock system |
| CN105590363A (en)* | 2016-02-29 | 2016-05-18 | 云丁网络技术(北京)有限公司 | Method for unlocking intelligent door lock based on distance change induction and intelligent door lock system thereof |
| CN109493488A (en)* | 2018-11-23 | 2019-03-19 | 北京小米移动软件有限公司 | Smart card authentication method, smart lock, smart card, system and device |
| CN109887145A (en)* | 2018-12-19 | 2019-06-14 | 兰溪铂蓝智能科技有限公司 | A kind of bluetooth cellular phone is close to auto-unlocking scheme |
| CN111489468A (en)* | 2020-05-30 | 2020-08-04 | 德施曼机电(中国)有限公司 | Intelligent door lock suitable for opening door by shaking mobile phone and system and unlocking method thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105261104A (en)* | 2015-11-24 | 2016-01-20 | 重庆理工大学 | Bluetooth door lock system based on intelligent terminal, and control method of Bluetooth door lock system |
| CN105590363A (en)* | 2016-02-29 | 2016-05-18 | 云丁网络技术(北京)有限公司 | Method for unlocking intelligent door lock based on distance change induction and intelligent door lock system thereof |
| CN109493488A (en)* | 2018-11-23 | 2019-03-19 | 北京小米移动软件有限公司 | Smart card authentication method, smart lock, smart card, system and device |
| CN109887145A (en)* | 2018-12-19 | 2019-06-14 | 兰溪铂蓝智能科技有限公司 | A kind of bluetooth cellular phone is close to auto-unlocking scheme |
| CN111489468A (en)* | 2020-05-30 | 2020-08-04 | 德施曼机电(中国)有限公司 | Intelligent door lock suitable for opening door by shaking mobile phone and system and unlocking method thereof |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116563983A (en)* | 2023-06-28 | 2023-08-08 | 海十联(上海)智能科技有限公司 | Intelligent door lock control system and method and intelligent door lock |
| Publication | Publication Date | Title |
|---|---|---|
| US11330429B2 (en) | Vehicle digital key sharing service method and system | |
| US20190385392A1 (en) | Digital door lock having unique master key and method of operating the digital door | |
| EP3605997A1 (en) | Method, apparatus and system for securing a mobile application | |
| KR101613476B1 (en) | Face recognition based authenticable door-lock control system | |
| CN109949461B (en) | Unlocking method and device | |
| CN112750242B (en) | Dynamic coded lock unlocking method and system and dynamic coded lock circuit | |
| CN104303481A (en) | Method and apparatus for remote portable wireless device authentication | |
| CN115439959B (en) | Method for controlling access to at least one function of a motor vehicle | |
| WO2008149366A2 (en) | Device method & system for facilitating mobile transactions | |
| KR102301742B1 (en) | Method for registering and using non keypad smart door-lock key and access control system thereof | |
| CN109920100B (en) | Unlocking method and system of intelligent lock | |
| CN103761647A (en) | Electronic payment system and electronic payment method | |
| CN105205894A (en) | An access control-based audio recognition method and an audio recognition access control system | |
| CN107045743A (en) | Joint NFC and fingerprint technique a kind of public bicycles lock control method | |
| CN110648431B (en) | Lock control method, system and storage medium based on Bluetooth communication technology | |
| CN106157409A (en) | Communication means between intelligent terminal and gate inhibition and device | |
| CN115708136A (en) | Method and system for realizing safe and non-inductive unlocking | |
| JP2016115098A (en) | Smart card with fingerprint authentication and settlement method using the same | |
| KR100991658B1 (en) | Door lock setting system using usim card and method thereof | |
| US12406168B2 (en) | Touchless identity card emulator systems and methods | |
| CN117714079A (en) | Authorization method of encrypted storage device and encrypted storage device | |
| CN110223420A (en) | A kind of fingerprint unlocking system | |
| CN115915131A (en) | Vehicle key bidirectional encryption authentication method and system, vehicle binding device and NFC card | |
| JP2002189703A (en) | Security system | |
| US12001910B1 (en) | Initialization of touchless identity card emulator |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |