R761's commentary

12 July 2008

Connecting Ubuntu with bluetooth to Telstra 3g

Filed under: E51, Ubuntu — Tags: , , , , , , — r761 @ 10:35 pm

I have a Nokia E51 with a Telstra (Australia) SIM. There are a number of pages which describe how to connect. The one crucial step they didn’t explain is what Telstra calls its access point. It is “telstra.wap”. The AT command required is:

AT+CGDCONT=1,”IP”,”internet”

Here’s the whole process:

  1. Set bluetooh on the phone to temporarily discoverable (Home/Menu, Connectivity, Bluetooth, My phone’s visibility=Defined period, 2 minutes.)
  2. Run: sdptool search dun
    Make a note of the MAC address (00:1D:FD:….) and the Channel, (eg 4)
  3. Edit /etc/bluetooth/rfcomm.conf to look like
    # RFCOMM configuration file.
    rfcomm0 {
    # Automatically bind the device at startup
    bind yes;
    # Bluetooth address of the device
    device 00:1D:FD:AB:CD:EF;  # replace with your MAC
    # RFCOMM channel for the connection
    channel	4;  # replace with your channel
    # Description of the connection
    comment "Nokia E51 phone";
    }
  4. Run: sudo rfcomm bind 0 00:1D:FD:AB:CD:EF
  5. Run: sudo /etc/init.d/bluetooth restart
  6. Edit /etc/ppp/peers/3g to look like
    # user and password are ignored by the other end
    user "3g"
    password "3g"
    show-password
    connect "/usr/sbin/chat -t 5 -v '' ATZ OK 'ATV1 E0' OK 'AT+CGDCONT=1,\"IP\",\"telstra.wap\"' OK 'ATDT*99***1#' '}'"
    # Serial device to which the modem is connected.
    /dev/rfcomm0
    # Speed of the serial line.
    115200
    # Assumes that your IP address is allocated dynamically by the ISP.
    noipdefault
    # Try to get the name server addresses from the ISP.
    usepeerdns
    # Use this connection as the default route.
    defaultroute
    # Makes pppd "dial again" when the connection is lost.
    #persist
    # Do not ask the remote to authenticate.
    noauth
    # log connecting messages to /var/log/syslog (via syslog)
    debug
    # serial port locking
    lock
    # disable compression
    novj
    nobsdcomp
    novjccomp
    nopcomp
    noaccomp
    noccp
  7. To connect run: pon 3g
  8. Enjoy the internet at premium Telstra prices
  9. To disconnect run: poff

If the bluetooth serial port stops working for no apparent reason, and minicom complains that the device has gone away, check the channel. It changed on me for no apparent reason. Once I updated it in /etc/bluetooth/rfcomm0 and ran /etc/init.d/bluetooth restart it started working again.

Advertisements

2 Comments »

  1. Hi, nice post.

    Did you get full 3G speed? Or just edge?

    I’m planning to buy a new mobile, and I want to use it to connect to the internet.

    rgrds,
    Braulio Gergull

    Comment by Braulio Gergull — 23 October 2008 @ 11:13 am

  2. My subjective evaluation from using it is that it was slow – significantly slower than Optus cable, even for simple web browsing of ordinary pages.
    Given Telstra’s prices I don’t use it much, and haven’t performed any objective speed tests.

    Comment by r761 — 23 October 2008 @ 12:26 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

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

Create a free website or blog at WordPress.com.

%d bloggers like this: