Bluetooth Modem via GPRS
Thursday, 22 November 2007

***NOTE*** This tutorial has been superseded by the 3egprs package and is only kept here for reference purposes.

-----

This step-by-step guide will show you how to pair a bluetooth phone with your 3epc to use as a GPRS modem. I am planning on making this into a shell script or even a python script to simplify the process. It is taken largely from this guide with a few modifications and improvements added. Anything in <> brackets indicates you have to fill your details here, so <address> means to type your address (bluetooth address) into this space (note: don't type the brackets).

Setup process (only needs to be completed once): 

  1. Plug in your Bluetooth dongle to the 3epc and make sure your phone has bluetooth on
  2. Open a console (by pressing ctrl-t) and type: sudo su
  3. Type: hciconfig hci0 up
  4. Type: hcitool scan
  5. If step 4 was successful it should've listed the bluetooth devices within range along with their addresses. Copy your bluetooth address or write it down.
  6. Type: sdptool search -bdaddr <address>
  7. You should see a lot of servie entries listed, find the one called dial-up networking and make a note of the Channel it uses.
  8. Type: kate /etc/bluetooth/hcid.conf
  9. Replace the line "security     user;" to "security     auto;"
  10. Replace the passkey with the one you would like to use, or leave it as "1234" (note: this is not very secure as most people know 1234 is default)
  11. Save the file and close kate
  12. Type: kate /etc/bluetooth/rfcomm.conf
  13. Insert your bluetooth address and dial-up networking channel (from step 5)
  14. Save the file and close kate
  15. Type: kate /etc/ppp/peers/gprs
  16. Paste this text into kate:
  17. /dev/rfcomm0
    connect '/usr/sbin/chat -v -f /etc/ppp/peers/gprs-chat'

    defaultroute
    replacedefaultroute
    noipdefault
    usepeerdns
    912600

    debug
    noauth
    nopcomp

    maxfail 10
    lcp-echo-interval 5
    lcp-echo-failure 12
    holdoff 3
    noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
    lock
    nocrtscts
  18. Save the file and close kate
  19. Type: kate /etc/ppp/peers/gprs-chat
  20. Paste this text into kate:
  21. TIMEOUT         10
    ECHO ON
    ABORT '\nABORT\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 15
    OK ATE1
    OK 'AT+cgdcont=1,"IP","<Your APN goes here>"'
    OK ATD*99#
    CONNECT
  22. Make sure you change the <Your APN goes here> part, you can find your APN in your phone by looking under services or connections and seeing the name of the connection used to dial-up to the internet.
  23. That's it for the configuration.
  24. From your phone initiate the pairing process with your 3epc (it should list devices in range and one of them should be something like "myname-eeepc")
  25. Now to start the connection just type: pon gprs
  26. And to stop the connection just type: poff gprs 
 
 

Hot 3epc Products

Mini USB Mouse
Mini USB Mouse
$15.00
Digilegend 3epc Bag
Digilegend 3epc Bag
$17.50
USB-Serial Adaptor
USB-Serial Adaptor
$20.00
3epc Bag
3epc Bag
$15.00
USB-Gamepad
USB-Gamepad
$15.00