FOR DYNAMIC INFRASTRUCTURE
By
Fransisco Derridy J.P.R 11110031
BACHELOR’S DEGREE in
MECHANICAL ENGINEERING – MECHATRONICS CONCENTRATION FACULTY OF ENGINEERING AND INFORMATION TECHNOLOGY
SWISS GERMAN UNIVERSITY EduTown BSD City
Tangerang 15339 Indonesia
Revision after Thesis Defense on 14 January 2015
Fransisco Derridy J.P.R 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, nor material which to a substantial extent has been accepted for the award of any other degree or diploma at any educational institution, except where due acknowledgement is made in the thesis.
Fransisco Derridy J.P.R
_____________________________________________
Student Date
Approved by:
Ir.Arko, M.Sc., Ph.D.
_____________________________________________
Thesis Advisor Date
Dr. Ir. Gembong Baskoro, M.Sc.
_____________________________________________
Dean
Date
Fransisco Derridy J.P.R ABSTRACT
DESIGNING AND IMPLEMENTING MOBILE AD-HOC NETWORK BASED ON ANDROID SMARTPHONE FOR DYNAMIC INFRASTRUCTURE
By
Fransisco Derridy J.P.R
Ir. Arko Djajadi, M.Sc., Ph.D, Advisor
SWISS GERMAN UNIVERISTY
The purpose of this thesis is to prevent an accident from happening by using mobile ad-hoc network in android smartphone. This thesis is an improvement from the previous project in communication system. Multi peers communication is needed to communicate in real world application, so the devices can communicate among each other. Implemented in Android based smartphones equipped with built-in WiFi Direct, the mobile ad-hoc network will enable information sharing about road condition and warning to other devices seamlessly so it can prevent accident. The system uses internal android sensor to read the environment and GPS to determine the position of the server and the clients. The system has been tested in road condition and can communicate between multiple devices and share warning signal successfully.
Keywords: Android, Communication System, WiFi Direct, Java.
Fransisco Derridy J.P.R
© Copyright 2015 by Fransisco Derridy J.P.R
All rights reserved
Fransisco Derridy J.P.R DEDICATION
I dedicate this works for the future of the country I loved: Indonesia
Fransisco Derridy J.P.R ACKNOWLEDGEMENTS
First of all I would like to thank God for giving me strength and determination to finish this thesis. Without His will I will never finished this thesis. I also would like to thank my advisor Ir.Arko, M.Sc., Ph.D who gave me the idea of this thesis and also guiding me in accomplished this thesis. And also I would like to give thanks to both of my parents who support me spiritually and financially to finish this thesis.
Day by day will be boring without good company. I would like to give special thanks to Priska Askarina who accompanies me day and night while working in this thesis.
And also my friend Tobias Subyanto, Amarendra Putra, Adhi Buana Putra, Ryan Saputra, Nicholas Airlangga and also friends in Robotic Room.
Without all of them I listed above my thesis will never be finished.
Fransisco Derridy J.P.R TABLE OF CONTENTS
Page
ABSTRACT ... 3
DEDICATION ... 5
ACKNOWLEDGEMENTS ... 6
CHAPTER 1 – INTRODUCTION ... 11
1.1 Background ... 11
1.2 Thesis Purpose ... 11
1.3 Thesis Scope ... 12
1.4 Thesis Limitation ... 12
1.5 Thesis Organization ... 12
CHAPTER 2 - LITERATURE REVIEW ... 14
2.1 Review of Paper and Journal ... 14
2.1.1 Inter-Cars Safety Communication System Based On Android [1] ... 14
2.1.2 Pothole Detection Using Android Phone’s Accelerometer [2] ... 14
2.1.3 Ad Hoc Networking Using WiFi during Natural Disasters [4] ... 17
2.2 Android System ... 20
2.2.1 Android Operating System ... 20
2.2.2 Android Development Tools ... 21
2.2.3 Android Application ... 22
2.2.4 Android Built-in Sensor ... 23
2.3 WiFi Direct [12] ... 24
2.4 Voice Recognition [14] ... 25
CHAPTER 3 – METHODOLOGY ... 26
3.1 Overall System Overview ... 26
3.2 System Design Overview ... 28
3.3 Development Environment Configuration ... 34
3.3.1 Java Development Kit ... 34
3.3.2 Android SDK ... 34
3.3.3 Android Development Tools: Android Studio IDE vs Eclipse IDE... 34
3.4 Android Application Development ... 36
3.4.1 Wi-Fi Direct... 36
3.4.2 Client List ... 37
3.4.3 Voice Command ... 38
Fransisco Derridy J.P.R
CHAPTER 4 – RESULTS AND DISCUSSIONS ... 41
4.1 Built-in Sensor Testing ... 41
4.1.1 WiFi-Direct Multi-Connection Test ... 41
4.1.2 Voice Recognition Test ... 44
4.1.3 GPS Location Detection ... 46
4.2 Application Testing ... 48
4.2.1 Connection with Multi Clients ... 48
4.2.2 Accident Prevention ... 49
4.2.3 Voice Command ... 50
CHAPTER 5 – CONCLUSIONS AND RECOMMENDATIONS ... 52
5.1 Conclusions ... 52
5.2 Recommendations ... 52
GLOSSARY ... 53
REFERENCES ... 54
CURRICULUM VITAE ... 102