ĐẠI HỌC QUỐC GIA TP. HCM TRƯỜNG ĐẠI HỌC BÁCH KHOA TRAN BẢO AN THIET KE HE THONG KHOA CUA DIEN TU DESIGN AN ELECTRONIC DOOR LOCK SYSTEM Chuyên ngành : Cơ điện tử Mã sô: 60520114 LUẬN VAN THAC SĨ TP. HO CHI MINH, tháng 12 năm 2017 CÔNG TRÌNH ĐƯỢC HOÀN THÀNH TẠI TRUONG ĐẠI HOC BACH KHOA —DHQG -HCM (Ghi rõ họ, tên, học ham, học vị va chữ ky) Luận văn thạc sĩ được bảo vệ tại Truong Đại học Bách Khoa, DHQG Tp. HCM Thành phan Hội đồng đánh giá luận văn thạc sĩ gồm: (Ghi rõ họ, tên, học hàm, học vi của Hội đồng chấm bảo vệ luận văn thạc sĩ) Xác nhận của Chủ tịch Hội đồng đánh giá LV và Trưởng Khoa quản lý chuyên ngành sau khi luận văn đã được sửa chữa (nêu có).
CHỦ TỊCH HỘI ĐÔNG TRƯỞNG KHOA. ĐẠI HỌC QUỐC GIA TP.HCM CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM TRƯỜNG ĐẠI HỌC BÁCH KHOA Độc lập - Tự do - Hạnh phúc NHIỆM VỤ LUẬN VĂN THẠC SĨ Họ tên học viên: Trần Bao Ấn. Ngày, tháng, năm sinh: 22/10/1993.-- +5 s<<<<++ssssss2 Nơi sinh: Tp. Chuyên ngành: Kỹ thuật cơ điện tử.
L TEN DE TÀI: THIẾT KE HE THONG KHOA CUA ĐIỆN TỬ. DESIGN AN ELECTRONIC DOOR LOCK SYSTEM. NHIEM VU VA NOI DUNG: - Tim hiểu tổng quan về sản phẩm khóa cửa điện tử.-- 2-22 ©2s+x2+x+rsrsee - Tìm hiểu và thiết kế giải thuật kết nối mạng và bao mật cho khóa cửa điện tử. - Thiết kế các lược đồ hoạt động của hệ thống và thực nghiệm.
NGÀY GIAO NHIỆM VỤ: (Ghi theo trong QD giao dé tai) voces IV. NGÀY HOÀN THÀNH NHIỆM VỤ: (Ghi theo trong QD giao đề tài). CÁN BỘ HƯỚNG DAN (Ghi rõ hoc ham, học vi, họ, tên): II :880yi8A/1900si0. CAN BỘ HƯỚNG DAN CHỦ NHIỆM BỘ MÔN ĐÀO TẠO (Họ tên và chữ ký) (Họ tên và chữ ký) TRƯỞNG KHOA.
(Họ tên và chữ ký) li PREFACE I appreciate Ho Chi Minh City University of Technology to give me a chance to improve my technical skill and documentation skill throughout the master thesis. Thanks my faculty, Mechatronics, to provide me information and all supports. Last words, I want to send great thank to my supervisor - Dr. Trần Việt Hồng who has given me lots of advice and instruction along the way.
Ho Chi Minh city, 4" Dec, 2017 Trần Bảo An 11 INTRODUCTION Trong qua trình nghiên cứu va báo cáo khoa học, tôi luôn nghe được lời khuyên: “Nghiên cứu khoa học không phải là một báo cáo đơn thuần, mà phải là một câu chuyện sống động”. Tôi đã viết chương đâu tiên của câu chuyện này vào năm 2016. Câu chuyện này chưa kết thúc vào năm ay, vì bây giờ câu chuyện sẽ được tiếp nối Một chương mới day hap dẫn sẽ được kể trong phân tiếp theo của báo cáo. Phan tổng quan sẽ cung cấp thông tin về tương lai của sản phẩm Smart lock.
Nó có tiềm năng cũng như có rủi ro khi phát triển. Và rủi ro lớn nhất là An ninh mạng. Thiết kế sẽ bat đầu từ hộp đen đến thiết ké chi tiết, từ kết nối đơn thuần đến bảo mật cấp cao. Mô hình dòng chảy di liệu cũng được thết kế và sẽ được km chứng bằng thực nghiệm.
Charlie Munger đã nói “Lay một ý tưởng đơn giản và giải quyết nó nghiêm túc”. Đó cũng là ý tưởng mà câu chuyện mà tôi mang đến, không chỉ đưa ra cách thiết kế Smart lock mà còn là những sản phẩm IoT sau này nữa. During research and technical presentation, I always heard that“A Scientific Research should be a story, instead of a mere report”. I have written its first season during my thesis in 2016 - Design a electronic Door Lock.
Stories doesn’t end up like that. Now, I continue to write the following season. A very sexy one that bring you a panoramic and structured view of the whole Door Lock system. An overview section will bring information about future of Smart lock product.
It has potential as well as risk when developing. The most critical issue is cyber attack on Smart lock. A design will go from Black box to detail design, from connectivity to security. A model of data stream will also given.
A prototype is built up to validate designed function. “Take a simple idea and take it seriously’ - Charlie Munger. That is the idea of this document which not only shows the way to design Smart lock but also to design IoT devices in the future. Tran Bao An iV GUARANTEE I will guarantee this research is my independent study.
All data and figure have reference and publish correctly. All results has been written myself and they have never been published in other technical research. Trần Bao An TABLE OF CONTENT CHAPTER 1: OVERVIEW 2. Reason to develop a Smart LOCK.
Downside of having a Smart OCK. Steep learming CUrVe 111107. Invasion Of Privacy. Security FLAWS wo.
Cyber attack on ni 0802 na. Interstice for Cyber attack 0. Function of existing 6i). Research Of Previous StUGY 2.
Objective, purpose aNd SCOPE na. 10 CHAPTER 2: SELECTION OF DESIGN PLAN. Smart lock design in the previous StUY. óc c s x11 HT TH TH TH TH TH HT HH II 2.
lo 'T Platform - Cloud service S€ÏCẨTOTN. eccecsccsccssesseesecesseesecesscesseesecesecsscessecsscessececessseseeesscesecseeeeeceasesseeeesenes 16 "403 000000) 02 vï 0 nnn. 18 CHAPTER 3: SYSTEM DESIGN. LH HH HH 1210111 11g ri, 19 3.
Black bOX reVealing 1. WiFi communication 1 - Microcontroller, ESP8266 and ThingSpeak. WiFi communication - ThingSpeak and App. Design for vi v an ae.
Connection | - Bluetooth connection with advance proftecftion. Connection 2 - WiFi connection between ESP8266 and Modem. Connection 3 - Security of Cloud Platform. Connection 4 - WiFi connection between Phone and Cloud Platform.
28 CHAPTER 4: INNOVATION AND FINALIZATION. Functionality of study product. One-time key acess provided by SMS. One-time (and.
One-time key access Vid SMS wu. 34 AA, Data Stream nan. System under harsh Conditions. Phone 1OSt ma.
Electricity and Internet lost n6 e. 39 CHAPTER 5: EXPERILMEN TS.- LH H HH HH 11g11 ng it 4] 5. Purpose Of EXperiMe 8 a. Wide range ve vc ca 0i nh e.
One-time key access Via SMS wu. 48 CHAP TER 6: CONCLUSION AND FUTURE DIRECTION. ACHIC VE MENL. 49 Vili TABLE OF FIGURES Figure 1.1 An advertisement to promote product from Hafele .2 Available service at Airbinb n6.3 Design concept of Smarthome Services .4 Black box design of a Smartlock SysteM.e ccc escessetsesceeceeseeeseeeeeceeseeeeees 7 Figure 1.5 Functionality of existing product.
ccc ecsccsccsscesccecesseeesceseseseeseeeseesseesseens 8 Figure 1.6 Secure function introduced 1n Last S{Uy.- 5 5c 5c S23 SE seesrssessres 9 Figure 2.1 Option Ï for connection seÏ€CfIOTI.2 Option 2 for connecfion S€Ï€CfIOTI.- 5 5c 3c St *91 13121 ses 12 Figure 2.3 A real-time dashboards used to display weather condition by Thinger.4 Diagram of IoT system providing by ThingSpe ak.5 A screenshot of Ibm Watson pÏatÍOrm.6 An online catalogue sold ESP8266 in Vietnam.1 Black box Of vu.3 Schematic Of SYSteM .4 Some key features in Thing SDe aK.5 Schematic of system and its prOf€CfIOT\.6 Auto-changing code mechanism .8 Process on Microcontroller .9 System is safe under repl ay-atack .- -- sss + + 3xx se ses 25 Figure 3.10 System is safe under two phases of jam-and-relay-attack .11 ESP8266 operating as the Client SŠ€CUFC.- 5-5 55 2c SS 1s seeseesres 26 Figure 3.12 Thumbprint of api.13 Write and Read API Keys function in ThingSpeak .14 Design of system in term of connectivity and SeCUTIItY .1 Functionality of study prOdUCẨ.2 Generating one-time key access pfOC€dUFC.3 User Interface for selecting role: Guest or HoSf.6 Interface of creating one-time key access for Hosf.7 A model of data streaming in Door LOCĂ. -- 5-5555 s55 *ss+ssssesssess 35 Figure 4.8 Data streaming in closed range access via Bluetooth.9 Data streaming in wide range access Via [nf€rnef.- --- + s«ss<ss+s 36 Figure 4.10 Data streaming in getting Lock notification and Tracking Log .11 Data streaming in Password Changing.12 Data streaming in processing of one-time key access via SMS.1 Blue LCD module 1602.2 Some picture of used model for †eSfing.- -- 55s 5<ssss+sxssxsseeeesssrs 42 Figure 5.3 Module NodeMCU WIFI ESP8266 V1.4 Test setup for wide range access via Internet .5 Capability of ThingSpeak’s free US€T .6 Test procedure for Internet access: door cÌÏos€d.- -- s5 ss<ss+ss+s 44 Figure 5.7 Test procedure for Internet access: door opened.8 A graph of sent data to ThingSpeak 0.9 Test setup for one-time key access ÍUnCfIOT.10 Guest successfully sent SMS to HOSt .11 Host successfully sent back SMS to Guest 0. ccc cecesceeseeseseseeseeseeeseeseeeees 47 Figure 5.12 Text message the Guest received .13 Guest successfully used One-time access key .------<s<<<+<<<<<ss2 48 XI TABLE OF TABLES Table 1.1 Detail price of the popular smartlock on different market.2 Burglary statistical in United State 2014 wo.1 Plan selection for Comne ction type ooo. cc ceeesecsceseceseecsscessececesecsseesseessceseeeees 13 Table 2.2 Comparison of different platform for IoT application .1 System response when using Wide range access function.
45 Chapter 1: Overview CHAPTER 1: OVERVIEW Living in a home with smart home technology provides you with convenient features. Be a part of Smart Home, it is true that there are several advantages of having a Smart Lock, but there are a few disadvantages of having it, too. Reason to develop a Smart Lock There are several reasons to bring this product on air. Customer need Convenience is what this product bring to life.
Home owner can provide access, tracking status of his door remotely. Also, mechanical key is unnecessary, it is integrated into customer daily accessory - his smartphone. Market trend People notice that Internet of Thing is a coming event but people don’t realize that how fast this trend is. In Viet Nam, beside many Startup companies such as Atovi Smart Lock, Häfele- a German company- has invested in Smart Lock section in Viet Nam.
They promote a lot of program to advertise this product (Fig 1. Why an international furniture company have interest in this field and invest that much to Viet Nam? Figure 1.1 An advertisement to promote product from Hafele Source: keyless.vn Chapter 1: Overview This trend will not stop, back in 2015, no one in Viet Nam could imagine they would use GrabBike rather than traditional taxi motorbike. In fact it is. There is a rising service called Airbnb, AirBed and Breakfast, which allows user to book homes and vacation rentals through an App.
Accompanied with Smartphone, Smart Lock is a key feature to make this service alive (Fig 1.2 Available service at Airbnb Source: Airbnb.com As it is unsure when these trend will explode. Prepare and be a pioneer in this field will bring vast opportunity to enterprise. Downside of having a Smart Lock Smart Lock product has six points which customer are not happy to have. Its technology is expensive Would customer pay more for more convenience door opening? How much will they eager to pay? With the price $300 that state in the table 1.1, it’s hard to convince customer.
Brand August Danalock Kwikset Kevo Atovi Country US.A Vietnam Standard August Smart Danalock V3 Kwikset Kevo Khóa nha Glock package Lock Pro + (2nd Gen) price Connect $279 249,00 € $229.1 Detail price of the popular smartlock on different market Chapter 1: Overview 1. Steep learning curve Learning how to operate smart lock is not difficult if you are a tech-savvy individual. If your technology skills are not advanced, you will have to take time to learn how to use it.