| With the improvement of residents’ living standards and the continuous development of technology,smart door locks have gradually entered the lives of the public because of their convenience,safety and efficiency.In the application of private houses,people hope that the smart door lock has the unity of privacy and convenience,so the door lock authentication method based on biometric features is sought after by people.However,in the application scenario of hotel apartment management with frequent personnel flow,it is obviously not suitable to use biometric authentication because of the risk of privacy leakage.And because the management of hotel apartments originally requires identity registration,and the encryption technology used by the second-generation ID card is also much higher than that of the hotel-made IC card,choosing to use the ID card as the identification method is obviously a convenient way of authentication.Smartphones in today’s life have become a must-have for going out,so unlocking through a mobile APP is also a convenient way to unlock.At the same time,as a hotel apartment with a large number of rooms,it is not enough to make a single door lock closed loop work.The door lock manager needs to know the operation status of each device,so there is a need for device networking.The Internet of Things technology makes it possible to upload the operating information of the door lock to the network in a low-power state due to its wide range and low power consumption.By analysing the demands of system,this paper designs and implements a set of ID card door lock system based on ISO14443 B standard.The door lock system can be recognized by the second-generation ID card swiping card or unlocked by BLE Bluetooth.In order to realize the unlocking function,this paper selects the domestic chip SYD8811 with Bluetooth radio frequency function as the main control chip.The mobile phone APP sends an unlock command to the door lock through BLE,and it can be unlocked after successful verification.In terms of RFID identification,this paper designs a radio frequency identification module,which can identify the ID card and unlock the door.In order to prevent identity data leakage,this paper realizes the function of encrypting ID card data as ciphertext to unlock based on SHA1 encryption algorithm and AES encryption algorithm.In addition to realizing the basic functions of the door lock,the system also realizes the uploading of power data and unlocking records.There are two uploading methods: one is based on BLE-based short-range mobile phone upload,and the other is based on NB-IoT objects.The networking module is uploaded regularly to the cloud over a long distance.The two uploading methods enable the door lock information to be acquired by the door lock manager in time.The door lock in this paper needs to be used for several months under the power supply of four dry batteries.Based on the power consumption of the door lock,this paper designs a low-power control circuit for the door lock system and makes the system at the lowest level with the help of the software system.power consumption.In terms of hardware,this paper completes the theoretical design of the door lock terminal hardware circuit and the drawing of the schematic diagram,and draws the corresponding PCB board according to the schematic diagram,and finally completes the production of the terminal electronic module through the board casting and welding circuit.In terms of software,this paper designs the Bluetooth communication between the door lock terminal and the APP,the communication between the NB-IoT IoT module and the door lock terminal,the identification process of the RFID module,the design of the encryption algorithm that generates ciphertext during the unlocking process,and the door lock related The data storage method and the program of each peripheral function of the door lock terminal are designed.Finally,the overall performance of the system was tested,and the test results were in line with expectations. |