Bluetooth GPRS Modem on Ubuntu

Monday, September 17, 2007

Cara untuk connect GPRS dengan bluetooth ke ponsel GSM.
(HP yang dipergunakan disini sebagai contoh adalah Motorola V-Series)

Langkah2 nya adalah :

Pastikan bluetooth sudah running di laptop atau desktop kita. Jika perlu lakukan perintah :

sudo /etc/init.d/bluetooth restart

Bluetooth di ponsel sudah menyala (aktif), pastikan juga discoverable.

Dari console lakukan proses scan untuk mengetahui alamat hardware dari bluetooth yg ada di ponsel:

hcitool scan

#:~$ hcitool scan Scanning ... 00:17:E3:86:AF:17 Motorola V3x

Nah hingga disini kita telah mendapatkan hardware addressnya yaitu :

00:17:E3:86:AF:17


Pada console, gunakan sdptool untuk mengetahui channel number yg digunakan untuk dial-up networking (tiap tipe ponsel beda2)

#:~$ sdptool browse 00:17:E3:86:AF:17

Browsing 00:17:E3:86:AF:17 ...
Service Class ID List:
"SDP Server" (0x1000)
Protocol Descriptor List:
"L2CAP" (0x0100)
"SDP" (0x0001)
Profile Descriptor List:
"SDP Server" (0x1000)
Version: 0x0100
Service Name: Dial-up Networking Gateway
Service Description: Dial-up Networking Gateway
Service Provider: Motorola
Service RecHandle: 0x10001
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x00
encoding: 0x6a
base_offset: 0xc800
code_ISO639: 0x7a68
encoding: 0x6a
base_offset: 0xc803
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100

Dari hasil browse di atas maka channel yg digunakan adalah 1

Edit file /etc/bluetooth/rfcomm.conf dengan editor favorit. Bisa memakai nano, gedit atau lainnya.

sudo nano /etc/bluetooth/rfcomm.conf

Ketik dan edit seperti ini, yg penting adalah hardware address dari bluetooth di ponsel dan channel numbernya.

#
# RFCOMM configuration file.
#

rfcomm0 {
# # Automatically bind the device at startup
bind yes;
#
# # Bluetooth address of the device
device 00:17:E3:86:AF:17;
#
# # RFCOMM channel for the connection
channel 1;
#
# # Description of the connection
comment "Bluetooth device Motorola V3x";
}


Jangan lupa untuk menyimpannya.

Lalu restart bluetooth di PC/laptop:

sudo /etc/init.d/bluetooth restart

Kemudian check dengan rfcomm apakah sudah ter-bind address tersebut :

rfcomm
rfcomm0: 00:17:E3:86:AF:17 channel 1 clean

Ok, rfcomm nya sudah ready untuk digunakan. Kalau tidak muncul apa2 setelah lakukan perintah rfcomm, berarti masih ada yg salah. Cek ulang konfigurasi di atas.

Install gnome-ppp lalu jalankan (Application-> Internet -> gnome-ppp). Pada bagian konfigurasi modem, ubah /dev/ttys0 menjadi /dev/rfcomm0. Jangan lupa pada saat koneksi aktifkan log untuk melihat error yg mungkin timbul. Biasanya error yg timbul pertama kali adalah masalah permission. Set permission kalau memang diperlukan.

Pastikan phone number, username dan password yg disediakan provider gprs benar penulisannya.

Untuk kartu XL (Xplor dan Bebas) :

Username = xlgprs
Password = proxl

Phone number = *99***1#


Untuk kartu 3 (Three) :

Username : 3gprs
Password : 3gprs
Phone number = *99***1#

Untuk kartu lainnya:

Kartu Matrix, klik disini.
Kartu Hallo, Simpati, As (Telkomsel), klik disini.
Kartu IM3, klik disini.

Selesai, silahkan mencoba!

Digg this
Diposting oleh BTVideo di 10:22 PM  

0 komentar:

Post a Comment


Delicious Digg Technorati Reddit Furl BlinkList Yahoo! NewsVine Netscape Google Live Bookmark Netvouz Squidoo StumbleUpon Magnolia.png
Open Source Is Never Die - Free AdSense Tips e-Book