| The door lock is an important guarantee for the safety of family property and personal safety,and it is the first line of defense for security and have a very important role in security.In recent years,with the rapid development of society and the continuous advancement of science and technology,the living standards have also increased.The need for protection of family property is also increasing.For traditional mechanical door locks,the unlocking method is single,cumbersome,and poor in security,which can not satisfy people’s need for convenient,safe,and efficient unlocking.In China,the penetration rate of smart locks is only 3% of the home base.Therefore,smart locks have a large market capacity and a wide range of development.At present,there are IC cards,passwords,or biometric identification methods for unlocking the smart locks.The unlocking mode of the door locks based on the private cloud platform has poor stability,and there are also problems of beauty,safety,and practicality.Based on the above background,this paper uses STM32 to connect the Jing dong cloud platform through Wi Fi modules to realize the function of remote control on the mobile phone.In addition,the STM32 uses an external numeric keypad,an IC card module,and an ID card module to realize unlocking locally by passwords,IC cards,ID cards,and other methods.This paper analyzes the application and demand of smart lock both at home and abroad,and designs the smart lock frame with a variety of unlocking methods such as password keyboard,IC card,ID card and mobile phone remotely.The customer can do a certain degree of tailor on unlocking methods according to the demand.Based on the smart lock frame,the hardware,software,cloud platforms and mobile terminal of the smart lock has developed.The microprocessor and peripheral modules are selected and the hardware is designed.The protocol for communication between each other is selected.At the same time,the STM32,the Wi Fi module programs and the mobile phone interface are developed so that they could communicate with each other.After completing these works,The communication and functions between STM32 single chip and digital keyboard module,IC card module,ID card module,WiFi module are debugged.Based on the software and hardware program design,the device and interface on mobile phones are debugged and the result is satisfactory.The smart lock system designed in this paper realizes the functions of unlocking by local digital passwords,IC cards,ID cards and mobile phones remotely.And all the functions have been subjected to relevant practical tests,and can meet the required indicators.And the security,convenience and stability of the system have all been approved. |