laporan tugas akhir permata nur mr 13203031 program studi teknik

advertisement
MOBILE SURVEYOR
SEBAGAI PENGEMBANGAN APLIKASI BERBASIS LOKASI
LAPORAN TUGAS AKHIR
Diajukan sebagai salah satu syarat untuk memperoleh Gelar Sarjana Teknik Elektro
Sekolah Teknik Elektro dan Informatika
Institut Teknologi Bandung
Oleh:
PERMATA NUR M.R.
13203031
KELOMPOK KEILMUAN TEKNIK TELEKOMUNIKASI
PROGRAM STUDI TEKNIK ELEKTRO
SEKOLAH TEKNIK ELEKTRO DAN INFORMATIKA
INSTITUT TEKNOLOGI BANDUNG
2007
LEMBAR PENGESAHAN
MOBILE SURVEYOR
SEBAGAI PENGEMBANGAN APLIKASI BERBASIS LOKASI
Oleh :
Permata Nur M.R.
NIM :13203031
Kelompok Keilmuan Teknik Telekomunikasi
Laporan Tugas Akhir
Telah diterima dan disahkan untuk memenuhi persyaratan
memperoleh Gelar Sarjana Teknik Elektro di
Kelompok Keilmuan Teknik Telekomunikasi
Program Studi Teknik Elektro
Sekolah Teknik Elektro dan Informatika
Institut Teknologi Bandung
Bandung, September 2007
Pembimbing I,
Pembimbing II,
Ir Nana Rachmana M.Eng
Joko Suryana ST. MT.
NIP. 131473905
NIP. 132162438
ii
ABSTRAK
Location Based Service (LBS) merupakan suatu layanan yang mampu
memberikan sebuah informasi berdasarkan akan lingkungan penggunanya (user).
Sampai saat ini, perkembangan teknologi tersebut sangatlah pesat, terutama pada
implementasi handheld communication. Aplikasi penggunaanya semakin meluas,
mulai dari penggunaan untuk sistem navigasi, tracking, sampai pada penentuan point
of Interest suatu objek bergerak dalam pemanfaatan bisnis-bisnis di sebuah kota.
Pada penelitian Tugas Akhir ini, dilakukan pembuatan aplikasi yang bernama
Mobile Surveyor. Mobile Surveyor merupakan suatu pengembangan aplikasi LBS
yang nantinya akan diterapkan pada mobil penjelajah untuk mensurvey daerah-daerah
terpencil di wilayah Indonesia, yakni daerah dimana tidak ada sistem komunikasi
yang memadahi untuk mengirimkan informasi. Dengan adanya teknologi ini, maka
nantinya mobil penjelajah akan bisa memperoleh informasi realtime berupa koordinat
dan gambar dari wilayah yang di survey. Informasi-informasi tersebut di olah
sedemikian rupa sehingga memungkinkan semua orang bisa mengaksesnya melalui
jaringan internet.
Kelengkapan sistem terdiri dari GPS receiver, handphone yang dilengkapi
dengan Bluetooth & wireless LAN, serta access point yang di pasang pada mobil
penjelajah. GPS berfungsi untuk mendapatkan koordinat dari satellite. Handphone
digunakan (dalam hal ini kami menggunakan nokia E61i) untuk menjalankan
aplikasi yang berbasis J2ME, sedangkan acces point yang ada berfungsi sebagai
perantara untuk mengirimkan data dari handphone ke server yang berada pada mobil
penjelajah.
Proses yang dilakukan pada aplikasi ini diawali dengan mengambil data lokasi
yang berupa format data NMEA dari GPS receiver melalui koneksi Bluetooth. Data
lokasi tersebut, akan dipadukan dengan gambar yang di capture oleh user, yang
kemudian akan di kirimkan ke server melalui koneksi http . Di server, data tersebut
akan di olah secara berkala , yang nantinya akan di sajikan kepada client dalam
bentuk web interaktif. Disini, client akan lebih leluasa untuk mengetahui secara detail
tentang informasi yang ada karena web tersebut disajikan dengan mapserver.
Kata kunci: Location Based Service, J2ME, Bluetooth, GPS, http, Mapserver
iii
ABSTRACT
Location based Service is a service that able to give information based on
user’s position. Nowadays, the development of technology growth rapidly, especially
in handheld communication. The application expand from navigation system,
tracking, and gaining point of interest from a mobile object of a business case.
In this final project, the result of application well known as Mobile
Surveyor. Mobile Surveyor as a modified application of LBS, has been applicated at
vehicle surveyor which used for monitoring the area that doesn’t have good
communication system for getting information access. This technology allowed the
vehicle to get realtime information that is gambars and coordinates from the object.
The information will be processed properly as well as people can access within the
internet network.
The system consist of GPS Receiver, handphone equiped with Bluetooth and
wireless LAN, and access point put into the vehicle. GPS Receiver is used for
obtaining coordinates from satellite. In other hand, handphone - nokia E61i – can be
functioned to run application from J2ME (Java 2 Micro Edition). Finally, access point
is a tool that used as intermediator between handphone and server within the process
of transmitting information.
By using Bluetooth connection, the process of application will be started by
taking location data in NMEA format from GPS Receiver. The data is combined with
gambars take from camera. Both of them will be delivered to the server with http
connection and processed into interactive web which has many figure. In this case,
user client will take more advantages from interactive web.
Keywords : Location Based Service, J2ME, Bluetooth, GPS, http, Mapserver
iv
DAFTAR ISI
Lembar Pengesahan .............................................................................................................. ii
Abstrak
...................................................................................................................... iii
Daftar isi
....................................................................................................................... v
Daftar Tabel ........................................................................................................... viii
Daftar gambar ...................................................................................................................... ix
Bab 1 PENDAHULUAN .................................................................................................... 1
1.1 Latar belakang ................................................................................................... 1
1.2 Tujuan................................................................................................................ 2
1.3 Perumusan masalah ........................................................................................... 3
1.4 Batasan Masalah ................................................................................................ 3
1.5 Metodologi Penelitian ....................................................................................... 4
1.6 Sistematika Penulisan ........................................................................................ 5
BAB 2 TINJAUAN PUSTAKA ......................................................................................... 6
2.1 Location Based Service ..................................................................................... 6
2.2 J2ME (Java2 Micro Edition) .......................................................................... 8
2.2.1 CLDC (Connected imited Device Configuration) ................................... 11
2.2.2 CDC (Connected Device Configuration) ................................................ 11
2.2.3 MIDP (Mobile Information Device Profile) ............................................ 12
2.2.4 Kilobyte Virtual Machine ........................................................................ 15
2.2.5 C-Virtual Machine (CVM)....................................................................... 15
2.2.6 MIDlet ...................................................................................................... 15
2.3 MMAPI (Mobile Media API) ......................................................................... 17
2.4 Mapserver ........................................................................................................ 18
2.4.1 Arsitektur pemetaan di web ..................................................................... 20
2.5 SIG (Sistem Informasi Gegrafis)..................................................................... 22
2.5.1 Data spasial .............................................................................................. 23
v
2.5.2 Sistem Koordinat ..................................................................................... 24
2.5.3 Format data spasial .................................................................................. 24
BAB 3 PERANCANGAN SISTEM DAN APLIKASI ................................................ 28
3.1 Spesifikasi sistem ............................................................................................ 29
3.1.1 Gambaran umum ...................................................................................... 29
3.1.2 Spesifikasi Fungsional .............................................................................. 30
3.1.3 Spesifikasi Teknis .................................................................................... 31
3.2 Arsitektur Sistem ............................................................................................. 31
3.3 Desain Perangkat Lunak untuk Aplikasi User Aktif ....................................... 32
3.3.1 Usecase Diagram ..................................................................................... 32
3.3.2 Deployment Diagram ............................................................................... 35
3.3.3 Sequence Diagram ................................................................................... 35
3.3.4 Class diagram .......................................................................................... 40
3.3.4.1 Class Camera ............................................................................... 41
3.3.4.2 Class Position ............................................................................... 41
3.3.4.3 Class GPS..................................................................................... 42
3.3.4.4 Class Gambar Servlet ................................................................... 43
3.3.4.5 Class Base64 ................................................................................ 43
3.3.5 State Chart Diagram ................................................................................. 44
BAB 4 IMPLEMENTASI DAN ANALISIS ................................................................. 47
4.1 Perangkat Pendukung ...................................................................................... 47
4.1.1 Perangkat Lunak ..................................................................................... 47
4.1.2 Perangkat Keras ....................................................................................... 48
4.2 Implementasi Aplikasi pada emulator ............................................................. 51
4.3 Pengkodean ..................................................................................................... 52
4.4 Kompilasi dan Verifikasi................................................................................. 53
4.5 Pemaketan ....................................................................................................... 54
4.6 Instalasi pada Mobie Devise nokia E61i ......................................................... 55
vi
4.7 Pengujian Perangkat keras .............................................................................. 56
4.7.1 Pengujian GPS Receiver .......................................................................... 56
4.7.2 Pengujian Handphone .............................................................................. 57
4.7.2.1 Koneksi Bluetooth ................................................................................. 57
4.7.2.2 Koneksi WLAN ..................................................................................... 58
4.7.2.3 Gambar Capture..................................................................................... 59
4.8 Pengujian sistem dan aplikasi ......................................................................... 60
4.8.1 Pengujian Sistem Aplikasi pada emulator ............................................... 60
4.8.1.1 Tampilan Menu ..................................................................................... 61
4.8.1.2 My Position ........................................................................................... 62
4.8.1.2 GPS ........................................................................................................ 64
4.8.1.3 Camera ................................................................................................... 66
4.9 Implementasi pada Mobile Devices .............................................................. 67
4.10 Pengujian Server ............................................................................................ 69
4.10.1 Aplikasi login ........................................................................................... 70
4.10.2 Penerimaan koordinat .............................................................................. 71
4.10.3 Penerimaan Gambar ................................................................................. 72
4.10.4 Peta kampus ............................................................................................. 73
4.11 Evaluasi .......................................................................................................... 75
BAB V KESIMPULAN DAN SARAN .......................................................................... 76
5.1
Kesimpulan .............................................................................................. 76
5.2
Saran ........................................................................................................ 76
DAFTAR PUSTAKA ......................................................................................................... 77
LAMPIRAN ..................................................................................................................... 77
vii
DAFTAR TABEL
Tabel 2.1: Perbandingan CLDC dan CDC........................................................................ 12
Tabel 2.2: Perbandingan MIDP 1.0 dan MIDP 2.0 ......................................................... 13
Tabel 3.1 : Class Camera .................................................................................................... 41
Tabel 3.2 : Class Position .................................................................................................... 41
Tabel 3.3 : Class GPS .......................................................................................................... 42
Tabel 3.4 : Class Gambar Servlet....................................................................................... 43
Tabel 3.5 : Class Camera .................................................................................................... 44
Tabel 5.1 : Daftar Kelas aplikasi Mobile Surveyor ......................................................... 52
viii
DAFTAR GAMBAR
Gambar 1.1: ilustrasi teknologi LBS ............................................................................ 6
Gambar 2.2 : Infrastruktur LBS (Brimi-Combe 2002) ................................................. 7
Gambar 2.3: Arsitektur J2ME (John W 2002) .............................................................. 9
Gambar 2.4: Lingkup Configuration CLDC dan CDC (John W 2002) ..................... 10
Gambar 2.5 : Hubungan Configuration dan Profiles (John W 2002) ........................ 11
Gambar 2.6 : MIDP user Interface .............................................................................. 14
Gambar 2.7 : Siklus Hidup MIDlet (John W 2002) .................................................... 16
Gambar 3.1 : Rancangan alur Mobile Surveyor ......................................................... 30
Gambar 3.2 : Arsitektur Mobile Surveyor .................................................................. 32
Gambar 3.3 : Aktor Mobile Surveyor ......................................................................... 33
Gambar 3.4 : Usecase diagram pada aplikasi mobie surveyor ................................... 33
Gambar 3.5 : Deployment Diagram ............................................................................ 35
Gambar 3.6 : Diagram sequence analisis menampilkan posisi surveyor ................... 36
Gambar 3.7 : Diagram sequence analisis camera ....................................................... 37
Gambar 3.8 : Sequence Diagram analisis GPS ........................................................... 38
Gambar 3.9 : Sequence diagram untuk request Peta oleh user ................................... 39
Gambar 3.10 : Class diagram analisis untuk aplikasi di Mobile Device ................... 40
Gambar 3.11 : Class diagram analisis aplikasi Server ................................................ 40
Gambar 3.12 : State Chart Diagram aplikasi Mobile Surveyor .................................. 46
Gambar 4.1 : GPS Garmin 10 ..................................................................................... 51
Gambar 4.2 : Nokia E61i ............................................................................................ 51
Gambar 4.3 : Testing koneksi GPS Bluetooh dengan PC ........................................... 54
Gambar 4.4 : Bluetooth yang mendeteksi Nokia E61i................................................ 55
Gambar 4.5 : Pengecekan file .jar dan .jad pada Handphone ..................................... 56
Gambar 4.6 :Pengiriman Data dari GPS Receiver ke PC ........................................... 57
Gambar 4.7 : Setting koneksi Bluetooth ..................................................................... 58
ix
Gambar 4.8 : Availabe WLAN di handphone............................................................. 59
Gambar 4.9 : Pengambilan gambar pada Camera ...................................................... 59
Gambar 4.10 : Tampilan awal mobile surveyor.......................................................... 60
Gambar 4.11 : Tampilan splash screen mobile surveyor............................................ 60
Gambar 4.12 : Tampilan Menu pada Mobile Surveyor .............................................. 61
Gambar 4.13 : Inisialisasi dan tampilan peta ITB....................................................... 62
Gambar 4.14 : Tampilan inisialisasi kembali............................................................. 63
Gambar 4.15 : Tampilan detail Landmark ................................................................. 63
Gambar 4.16 : Tracking Surveyor pada Handphone................................................... 64
Gambar 4.17 : Tampilan koordinat GPS.................................................................... 65
Gambar 4. 18 : Tampilan pilihan Menu Start / Send ................................................. 65
Gambar 4.19 : Mengambil Gambar ............................................................................ 66
Gambar 4. 20 : Pengiriman Gambar Berhasil ............................................................. 66
Gambar 4.21 : Splash Screen pada handphone ........................................................... 67
Gambar 4.22 : Tampilan My Position pada handphone ............................................. 68
Gambar 4.23 : Tampilan menu GPS pada Handphone ............................................... 69
Gambar 4.24 : Tampilan Login Aplikasi .................................................................... 70
Gambar 4.25 : Pengulangan login aplikasi karena gagal ............................................ 70
Gambar 4.26 : Tampilan utama web Mobile Surveyor.............................................. 71
Gambar 4.27 : Data Koordinat dimasukkan ke dalam database ................................. 71
Gambar 4.28 : Tampilan koordinat lintang dan bujur pada web ................................ 72
Gambar 4.29 : pengaktifan Java Servlet ..................................................................... 73
Gambar 4.30 : Penerimaan Gambar pada server......................................................... 73
Gambar 4.31 : Layanan Pilihan Mapserver Mobile Surveyor .................................... 74
x
Download