Use Nokia E65 as GPRS modem in Ubuntu 8.04

A short description about how to use a Nokia E65 as a GPRS modem in Ubuntu 8.04.

Install the needed software packages:

sudo apt-get install bluez bluez-utils wvdial

Enable bluetooth on your phone, scan for it and copy the address for your phone.

hcitool scan

The next step is to find the channel for the phone’s dialup service. Run

sdptool browse xx:xx:xx:xx:xx:xx

where xx:xx:xx:xx:xx:xx is the address found in the previous step. Look for “Service Name: Dial-Up Networking”, and note the channel number.

The phone now has to be bound as a rfcomm device, which is configured in /etc/bluetooth/rfcomm.conf. Add

rfcomm4 { bind yes; device xx:xx:xx:xx:xx:xx; channel 2; comment “Serial Port”; }

to the file with the numbers found above.

Now make a configuration file for wvdial

sudo gedit /etc/wvdial.conf

with this content:

[Dialer Defaults]
Modem = /dev/rfcomm4
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = ATM0
Init5 = AT+CGDCONT=1,”IP”,”internet”
ISDN = 0
Modem Type = Analog Modem
Phone = *99***1#
Username = foo
Password = bar

Thats it. I use the commands below to start the connection. First shut down wlan0, which should not be necessary, but sometimes DNS won’t work if wlan0 is searching for access points. I restart bluetooth in order to make sure the phone is bound, and finally, I run wvdial to start the connection.

sudo ifconfig wlan0 down
sudo /etc/init.d/bluetooth restart
sudo wvdial

Du kan følge med på alle reaktioner til dette indlæg via RSS 2.0-feedet. Du kan lægge et svar – eller trackbacke fra dit eget site.

2 kommentarer »

 
  • your /etc/wvdial.conf didn’t work for me – but this did;

    [Dialer Defaults]
    Modem = /dev/rfcomm4
    Modem Type = USB Modem
    Baud = 460800
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Init3 = ATM0
    Init5 = AT+CGDCONT=1,”IP”,”general.t-mobile.uk”
    ISDN = 0
    Modem Type = Analog Modem
    Carrier Check = no
    Stupid Mode = 1
    Phone = *99***1#
    Username = ”
    Password = ”

  • flemming says:

    Thanx for the guide, helped me (finally) to connect to the Internet with my Nokia E52 in Karmic 9.10. have to use Stupid Mode = 1 though and also I had to bind the rcomm device (I use 0 as devicenumber and 5 is my channel) first

    Sudo rfcomm bind 0 XX:XX:XX:XX:XX:XX 5

    a little tip: instead of sdptool browse xx:xx:xx:xx:xx:xx
    use sdptool browse xx:xx:xx:xx:xx:xx DUN
    since my device gets a timeout before getting to the dial up network.

    Note if you copy the lines for the wvdial conf, replace the ” in the Init5 = AT+CGDCONT=1,”IP”,”internet”
    should be Init5 = AT+CGDCONT=1,”IP”,”internet”
    sorry dont know the English names (in Danish anførelsestegn vs gåsetegn)

 

Læg et svar

XHTML: Du kan bruge disse tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Subscribe without commenting