bluetooth + handphone + gprs + gnu/linux howto


title maybe obsolote, dont blame me for that. i just wanna make connection to my telkomselflash and indosat m2 with my stuff: EarOS + Sony Erricsson K320i + billionton bluetooth dongle + telkomselflash/im2 + wvdial. i love travelling thats why i need internet connection when iam mobile, even just blogging :D

i love portable, and portability, and also, transparently is good reason. i do not like PPP gui, it seems like a stupid, for some reason. turn on my laptop, boot my EarOS, attach usb bluetooth, turn on bluetooth from handphone, goes to linux terminal and type the following command:

  • $ sudo apt-get install bluez-utils wvdial
  • open file /etc/bluetooth/hcid.conf, use vim for easy editing
  • change the line that contains security user; to security auto; then save it
  • restart your bluetooth service $ sudo /etc/init.d/bluetooth restart
  • now its time to make pairing with your handphone, search new bluetooth connection from your handphone, add it, insert the passphrase, default is 1234
  • $ sudo /etc/init.d/bluetooth restart
  • $ sudo hciconfig show
  • while it up then $ sudo hcitool scan
  • while it down then check your bluetooth dongle or handphone
  • check your dial-up number $ sudo sdptool search dun
  • write down your six octect unique id and channel number
  • its time to bind connection to your handphone
  • $ sudo rfcomm bind 0 your-six-octet-unique-id your-channel
  • with my laptop i wrote like this $ sudo rfcomm bind 0 00:1C:A4:7A:16:27 1
  • check connection to /dev/rfcomm$ rfcomm
  • rfcomm connection should be open now
  • use wvdial to connect, $ wvdial

and the output should be like this but not similiar:

rizal@rizal-laptop:~$ wvdial
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Modem initialized.
–> Sending: ATDT*99***1#
–> Waiting for carrier.
ATDT*99***1#
CONNECT
~[7f]}#@!}!}!} }8}#}$@#}(}”}’}”}”}&} } } } }%}&}$AUSgn~
–> Carrier detected.  Waiting for prompt.
~[7f]}#@!}!}”} }8}#}$@#}(}”}’}”}”}&} } } } }%}&}$AUS-|~
–> PPP negotiation detected.
–> Starting pppd at Fri Nov 14 22:21:14 2008
–> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
–> –> PAP (Password Authentication Protocol) may be flaky.
–> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
–> –> CHAP (Challenge Handshake) may be flaky.
–> Pid of pppd: 11024
–> Using interface ppp0
–> pppd: x�[06][08]x�[06][08]��[06][08]
–> pppd: x�[06][08]x�[06][08]��[06][08]
–> pppd: x�[06][08]x�[06][08]��[06][08]
–> pppd: x�[06][08]x�[06][08]��[06][08]
–> pppd: x�[06][08]x�[06][08]��[06][08]
–> pppd: x�[06][08]x�[06][08]��[06][08]
–> local  IP address your-ip
–> pppd: x�[06][08]x�[06][08]��[06][08]
–> remote IP address your-ip
–> pppd: x�[06][08]x�[06][08]��[06][08]
–> primary   DNS address isp-dns
–> pppd: x�[06][08]x�[06][08]��[06][08]
–> secondary DNS address isp-dns
–> pppd: x�[06][08]x�[06][08]��[06][08]

yeah, test your connection, just to make sure it works. $ ping google.co.id if you want to terminate your ppp connection then, just press Ctrl-C, and be sure to release binding that you are used before, $ sudo rfcomm release 0

congrats! you’re in the net finally.

SOURCE:

  1. google.co.id
  2. http://sokam.or.id/artikel/gprs.html

TODO:

  1. make adhoc connection to wireless card
  2. tunelling to high-speed connection machine :) )

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s