Internet Via Bluetooth And GPRS

Useful for road warriors with notebooks and mobiles with a data plan

  • install:
    • bluez-utils
    • bluez-pin
    • ppp
  • hcitool scan and grab your phone's mac address

  • from your phone, associate your phone to your notebook and make it permanent
  • sdptool browse AA:BB:CC:DD:EE:FF with your mac address

  • Under the section that lists "Dial-Up Networking", grab the Channel number
  • Edit /etc/bluetooth/rfcomm.conf:

    rfcomm0 {
            bind yes;
            device AA:BB:CC:DD:EE:FF;
            channel X;
            comment "Nokia Phone";
    }
  • Restart bluetooth using /etc/init.d/bluetooth restart or whatever your OS calls it

  • Edit /etc/ppp/peers/bluetooth:

    debug
    noauth
    connect "/usr/sbin/chat -v -f /etc/ppp/chat-gprs"
    usepeerdns
    /dev/rfcomm0 115200
    crtscts
    defaultroute
    lcp-echo-failure 0
    noccp
    nomagic
    refuse-pap
    mtu 1420
  • Edit /etc/ppp/chat-gprs:

TIMEOUT 35
ECHO    ON
ABORT   'nBUSYr'
ABORT   'nERRORr'
ABORT   'nNO ANSWERr'
ABORT   'nNO CARRIERr'
ABORT   'nNO DIALTONEr'
ABORT   'nRINGINGrnrnRINGINGr'
''      rAT
OK      AT+CGDCONT=1,"IP","XXXXXXXX"
OK      ATD*99#
CONNECT ""
  • Replace XXXXXXXX with the GPRS access point connection name. NOT the name you select from the menu, but the actual Access Point name in the connection settings for it.

To start the connection run pon bluetooth and to stop run poff bluetooth. You should see messages in /var/log/syslog, although debugging is usually hard.

Resources