ViktallicA

Just Another Indonesian Blog

Step By Step setting Bluetooth Modem Ubuntu pake ponsel

Written by Satria on 4:15 PM

Free Website Hosting

Step By Step setting Bluetooth Modem Ubuntu

DI milis ubuntu-id sering kali muncul pertanyaan bagaimana cara setting internet gprs dengan bluetooth sebagai modem , saya akan coba berbagi pengalaman cara setting bluetooth modem, tentunya setting ini juga bisa di gunakan untuk distro linux lainnya ( semoga ) , mohon maaf sebelumnya jika ada bingung dengan tulisan saya ini, maklum baru belajar ngeblog. oke langsung aja yah…


Perangkat saya:


Ubuntu Feisty 7.04


Usb Bluetooth Dongle Billionton


Handphone T68i


Kartu simcard im3


Install gnome-bluetooth dan bluez-gnome( optimal )

$ sudo apt-get install gnome-bluetooth bluez-gnome


Cek bluetooth dongle dengan command lsusb

$ lsusb | grep Bluetooth
Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)


Edit file /etc/bluetooth/hcid.conf yang perlu di ganti adalah pada bagian options, set security auto, dan passkey “1234?, ubah angka 1234 sesuai dengan selera anda. saya sendiri tidak merubah passkey default. ini maksudnya adalah ketika kita inisiasi pairing dari device, ubuntu akan secara otomatis menerima dengan passkey yang sudah kita tentukan tadi.

$ sudo gedit /etc/bluetooth/hcid.conf


Pada baris

security user;


Ganti dengan

security auto;


Restart bluetooth service

$ sudo /etc/init.d/bluetooth restart


Selanjutnya lakukan pairing bluetooth , biar saling berkenalan gitu bluetoothnya…
Lakukan pairing dari device ( hp anda ) jika di tanya passkey masukan saja 1234 password standard ini ada di file /etc/bluetooth/hcid.conf setelah pairing sukses lanjutkan langkah anda.


Cari MAC address bluetooh hp anda dengan command hcitool scan jangan lupa setting bluetooth di hp discoverable.

$ hcitool scan
Scanning …
00:80:37:7E:EC:30 T68i


00:80:37:7E:EC:30 ini adalah MAC address bluetooth hp saya T68i


Selanjutnya cari cahnnel dial up nya dengan command sdptool searh DUN

masjito@blueinside:~$ sdptool searh DUN
Inquiring …
Searching for DUN on 00:80:37:7E:EC:30 …
Service Name: Dial-up Networking
Service RecHandle: 0×10000
Service Class ID List:
“Dialup Networking” (0×1103)
“Generic Networking” (0×1201)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 1
Profile Descriptor List:
“Dialup Networking” (0×1103)
Version: 0×0100


Dari hasil di atas maka di ketahui bahwa channel untuk dialup networking ada di channel 1
Setelah mengetahui MAC address dan channel edit file /etc/bluetooth/rfcomm.conf
buat seperti ini, sesuaikan saja dengan mac address dan channel dari hp anda.

$ sudo gedit /etc/bluetooth/rfcomm.conf

rfcomm0 {
bind yes;


device 00:80:37:7E:EC:30;


channel 1;


comment “Bluetooth Modem”;


}


Selanjutnya jalankan command berikut ini…

$ sudo rfcomm bind 0


Contoh

$ sudo rfcomm bind 0 00:80:37:7E:EC:30 1


edit file /etc/wvdial.conf

sudo gedit /etc/wvdial.conf


Berikut file contoh wvdial.conf saya.

#wvdial.conf untuk bluetooth modem,
#jika anda menggunakan kabel data ganti sesuai modem anda
#Modem = /dev/ttyACM0
#untuk kartu indosat ( im3 dan mentari )
[Dialer indosat]
Modem = /dev/rfcomm0
Baud = 460800
Init1 =ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = at+cgdcont=1,”ip”,”indosatgprs”
Modem Type = Analog Modem
ISDN = 0
Phone = *99***1#
Username = “indosat”
Password = “indosat”


#untuk kartu xl
[Dialer xlgprs]
Modem = /dev/rfcomm0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = at+cgdcont=1,”ip”,”www.xlgprs.net”
Modem Type = Analog Modem
ISDN = 0
Phone = *99***1#
Username = “xlgprs”
Password = “proxl”


#untuk telkomsel ( simpati, as dan hallo )
[Dialer telkomsel]
Modem = /dev/rfcomm0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = at+cgdcont=1,”ip”,”telkomsel”
Modem Type = Analog Modem
ISDN = 0
Phone = *99***1#
Username = “wap”
Password = “wap123?


#untuk kartu flexi
[Dialer flexi]
Modem = /dev/rfcomm0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = at+crm=1;+cso=33
Modem Type = Analog Modem
ISDN = 0
Phone = #777
Username = “telkomnet@flexi”
Password = “telkom”


#untuk kartu starone
[Dialer starone]
Modem = /dev/rfcomm0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = at+crm=1;+cso=33
Modem Type = Analog Modem
ISDN = 0
Phone = #777
Username = “starone”
Password = “indosat”


Oke sekarang coba lakukan dial dengan command

$ wvdial


Contoh:

masjito@blueinside:~$ wvdial xlgprs
masjito@blueinside:~$ wvdial indosat
masjito@blueinside:~$ wvdial flexi
masjito@blueinside:~$ wvdial starone


jangan tutup konsole selama anda conect internet
untuk disconect cukup ketik ctrol + c


masalah masalah yang mungkin terjadi :


Berhasil konek tapi tidak bisa browsing,


Coba shutdown koneksi interface lainnya dengan command $ sudo ifdown < interface >
contoh…

$ sudo ifdown ath0
$ sudo ifdown eth0


Berhasil konek tetapi tidak lama disconect dengan pesan error seperti ini…

–> The PPP daemon has died: Lack of LCP echo responses (exit code = 15)
–> man pppd explains pppd error codes in more detail.
–> I guess that’s it for now, exiting
–> Provider is overloaded(often the case) or line problem.
–> The PPP daemon has died. (exit code = 15)


Edit file /etc/ppp/options

$ sudo gedit /etc/ppp/options


Cari baris

lcp-echo-failure 4


Rubah jadi seperti ini

lcp-echo-failure 0


Bagaimana kalau ganti hp:


yah edit lagi file /etc/bluetooth/rfcomm.conf


terus

$ sudo rfcomm bind release 0


$sudo rfcomm bind 0 < Channel>


Catatan : saya belum mencoba configurasi di atas untuk modem bluetooth dengan handphone cdma , jika ada yang berhasil tolong kasih tau…
Free Website Hosting

Related Posts by Categories



Widget by Hoctro | Jack Book
  1. 0 comments: Responses to “ Step By Step setting Bluetooth Modem Ubuntu pake ponsel ”

Gratisan Blog

About Me

I am just another fans of