IMPLEMENTATION OF SMART CARDS
IN DATABASE SYSTEMS FOR AUTHORISED ACCESS TO SGU ROOM MODEL
By
Ivan Angelo
A Bachelor’s Thesis
Submitted to the Faculty of Engineering
Department of Mechatronics
in partial fulfillment of the requirements for the Degree of
BACHELOR OF SCIENCES WITH A MAJOR IN MECHATRONICS
SWISS GERMAN UNIVERSITY Campus Edutown – BSD City Tangerang 15339 – Indonesia
www.sgu.ac.id
STATEMENT BY THE AUTHOR
I hereby declare that this submission is my own work and to the best of my knowledge, it contains no material previously published or written by another person, not material which to a substantial extent has been accepted for the award of may other degree or diploma at any educational institution, except where due acknowledgement is made in the thesis.
_______________________________________ ________________
Ivan Angelo Date
Approved by:
________________________________________ __________________
Dipl. –Ing. Maralo Sinaga Date
______________________________________ _________________
Chairman of the Examination Steering Committee Date
ABSTRACT
IMPLEMENTATION OF SMART CARDS IN DATABASE SYSTEMS FOR AUTHORIZED ACCESS TO SGU ROOM MODEL
By
Ivan Angelo
SWISS GERMAN UNIVERSITY Bumi Serpong Damai
Dipl. -Ing. Maralo Sinaga
Stand alone smart card system is the main topic of this thesis. This system connects between a contactless smart card reader and the microcontroller as the main controller device using a serial interface and the communication will be monitored in data terminal program. It will give an authorization to access the room by comparing the smart card data such as identification number of the SGU students to the database in the microcontroller. The system is added with keypad to input personal identification number (PIN) in order to provide higher level of security system. The LCD is an additional device to display the process that is done in the system.
To support the main system, the registration process is needed in order to write the identification number into the contactless blank smart card. In this registration process, it is also possible to read the data on the smart card. The registration process is done by the PC with connecting to the contactless
DEDICATION
I dedicate this thesis to Jesus Christ who gives me strength and makes everything possible, to my beloved family especially for my mom and dad and my girlfriend who always supported me. Thank you for all the support, advised. Without their support this thesis would not be completed.
My friends Darius Leander Nilam Tjioe, Albertus Dipo Radityo, Andrew Tirtawidjaja, Hadi Sanjaya and Putu Agus Santika, thank you for all the support and those fun that we had. Thank you for those wonderful times that we have been through.
ACKNOWLEDGMENTS
First of all, I would like to offer my gratitude to Jesus Christ for His loving, kindness and amazing grace, so I can carry on even in the darkest hour. This thesis would not be finished without His compassion.
I also would like to thank my advisor, Dipl. –Ing. Maralo Sinaga for the continuous support in completing my thesis, for his assistance, motivation, patience and excellent knowledge. He helps me a lot in doing my research and writing this thesis.
To all my mechatronics friends who work together with me in the Swiss German University every day, I would like to thank them for the helpful discussion, for our unforgettable moment in working the thesis at sleepless nights before deadline and for all of the fun we have ever had in the last four years.
The last acknowledgement is dedicated to my parents, for their support in everything I do, and their biggest devotion for me to teach me the best thing, so I can be a better person.
TABLE OF CONTENTS
STATEMENT BY THE AUTHOR ... 2
ABSTRACT ... 3
DEDICATION ... 4
ACKNOWLEDGMENTS ... 5
CHAPTER 1 – INTRODUCTION ... 12
1.1 General Statement of Problem Area... 12
1.2 Project Objective ... 13
1.3 Project Scope ... 13
1.4 Thesis Limitation ... 13
1.5 Methodology ... 14
1.6 Thesis Structure ... 14
CHAPTER 2 – LITERATURE REVIEW ... 16
2.1 Introduction to Literature Review ... 16
2.2 Physical Security in access control ... 16
2.3 Access Codes ... 19
2.4 Biometrics ... 20
2.5 Smart Card Technology Review ... 24
2.5.1 Smart Card Introduction ... 24
2.5.2 Smart Card Elements ... 25
2.5.3 Single Function Cards ... 26
2.5.4 Multi – Function Cards ... 26
2.5.5 Contact – Based Smart Card ... 26
2.5.6 Contactless Smart Card ... 28
2.5.7 Contact-Based Smart Card Reader ... 28
2.5.8 Contactless Smart Card Reader ... 29
2.5.9 Smart Card Operating Systems ... 30
2.5.10 Smart Card File Management ... 30
2.6 Smart Card application ... 32
2.6.1 Identification ... 32
2.6.4 Banking ... 34
2.6.5 Medical ... 35
2.6.6 Other Value-Added Services ... 35
2.7 Concluding Remarks ... 36
CHAPTER 3 – METHODOLOGY ... 37
3.1 Introduction ... 37
3.2 Study of Smart Card Technology ... 38
3.2.1 Smart Card Based Service ... 38
3.2.2 Contactless Smart Card Reader ... 42
3.2.3 Communication Principle ... 44
3.3 Registration Design ... 46
3.4 Stand Alone Smart Card System Design ... 52
3.4.1 Database Design ... 53
3.4.2 Communication Protocol ... 54
3.4.3 Microcontroller ... 56
3.4.3.1 Microcontroller Input / Output Pins Configuration ... 64
3.4.4 Keypad ... 65
3.4.5 LCD Information Display System ... 66
3.5 Electrical System Design ... 69
3.5.1 Electrical Wiring Schematic ... 69
3.5.2 Motor Driver ... 70
3.5.3 Proximity Sensor ... 71
3.6 Mechanical Design ... 72
3.7 Concluding Remarks ... 74
CHAPTER 4 – RESULT & DISCUSSION ... 75
4.1 Introduction ... 75
4.2 Smart Card Registration Result ... 75
4.3 Stand Alone Smart Card System Testing and Result ... 80
APPENDIX A: Technical Drawing ... 102
APPENDIX B: Datasheet ... 109
APPENDIX C: Programming ... 117
A.1 Registration Codes ... 117
A.2 Stand Alone Smart Card System Codes ... 127
APPENDIX D: Bill of Material ... 138
CURRICULUM VITAE ... 139