Monday, April 18, 2005

Koneksi GPRS menggunakan Bluetooth Nokia 9500 di Ubuntu

Sumber : http://www.teaparty.net/technotes/blue-gprs.html
Linux : Ubuntu 5.04
Bluetooth USB
GSM/GPRS : Matrix (Indosat)

Install bluez-utils.
Saya menggunakan bluetooth USB.
Colok BT ke PC.
Cek dmesg | grep USB kira-kira akan terlihat spt :
---------
usb 2-1: new full speed USB device using uhci_hcd and address 2
Bluetooth: HCI USB driver ver 2.7
---------

Nyalakan BT di Nokia.
Scan BT dari Linux


$ hcitool scan
Scanning ...
00:11:9F:EC:59:29 mh n9500


OK kita dpt BT Device address.
Sekarang kita cari channel Dial Up Network.


$ sdptool search DUN
Inquiring ...
Searching for DUN on 00:11:9F:EC:59:29 ...
Service Name: Dial-Up Networking
Service RecHandle: 0x1001c
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100


Penting diperhatikan nomor Channel yg didapat ( 2 ).
Mungkin utk device lain berbeda.
Copy file /etc/ppp/peers/provider jadi gprs .
Edit file /etc/ppp/peers/gprs .

----------------------------------
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs"
defaultroute
/dev/rfcomm0
57600
debug
----------------------------------

Copy /etc/chatscripts/provider jadi gprs
Edit /etc/chatscripts/gprs

----------------------------------
TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 12
OK ATE1
OK 'AT+cgdcont=1,"IP","satelindogprs.com"'
OK ATD*99***1#
----------------------------------

Untuk menjalankan koneksi GPRS.
Jalankan :

$ rfcomm release 0

$ rfcomm bind 0 00:11:9F:EC:59:29 2

$ cat < /dev/rfcomm0

Isi PIN di Nokia 9500

Isi PIN di Linux.
Jika tdk muncul dialog PIN. Jalankan command 'xhost +' . Ini trik kasar. Lihat man xhost .
Ulangi cat < /dev/rfcomm0
Ketik Ctr+C untuk kembali ke prompt.


$ pppd call gprs


Happy surfing ...

Salam,
Mige
Post a Comment