(Update: Instructions for connecting via the DKU2 cable now at the end of the post.)
This is how I made the GPRS Internet connection working from my Ubuntu Dapper laptop via a Nokia 9300 and Bluetooth. I found this info on an Ubuntu forums thread, kudos go to emperon:
- Have a working bluetooth setup.
hcitool scangives you your phone’s BD address. Make a note of this.sdptool search DUNwill show you the appropriate channel to use. Make a note of this.- Check that you have a 4-number code in
/etc/bluetooth/pinunless your phone and the machine are very friendly already. Your phone may ask for this number later. - Type
rfcomm bind /dev/rfcomm0 X:X:X:X:X:X YY(where X:X:X:X:X:X is the BD address and YY is the channel number). - Type
rfcommand check that the channel is either “clear” or “closed”. - Create
/etc/ppp/peers/gprswith the following contents:/dev/rfcomm0
connect '/usr/sbin/chat -v -f /etc/ppp/peers/gprs.chat'
noauth
defaultroute
usepeerdns
lcp-echo-interval 65535
debug - Create
/etc/ppp/peers/gprs.chatwith the following contents:TIMEOUT 15(NOTE: *99*# above is the number to call. This one works for Sonera in Finland and many other providers, but call your friendly provider helpdesk and make sure you have the correct one.)
ECHO ON
HANGUP ON
'' AT
OK ATZ
OK ATD*99*# - Initiate bluetooth pairing between your phone and the computer.
- Make the call:
sudo pppd call gprs - Surf away!
Here’s instructions for connecting via the DKU2 cable supplied with the 9300. Cables are uncool and sometimes get in the way, but the procedure is simpler. This info comes mostly from gr0kzer0 in another forum thread:
- Install wvdial.
- Connect the cable.
- Run
wvdialconf /etc/wvdial.conf - Edit the
/etc/wvdial.confjust created. Look at the last four lines, we edit the Phone, Password and Username lines (the username and password are bogus ones. wvdial wants non-empty ones but you can enter Batman’s credentials there if you like), and additionally force the modem into Stupid Mode.[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99#
Password = foo
Username = bar
Stupid Mode = 1
(NOTE: Again try to find a suitable phone number) - Now you should be able to dial out with
wvdialor GNOME PPP.
May 29, 2006 at 8:22 am
topyli, I owe you one. Be it coffee, beer, wine. I owe you.
June 7, 2006 at 2:37 pm
[...] This is how I made my Nokia 9300’s file system available to my Ubuntu Dapper box. I can now copy/move files around, as well as edit files on the phone just like I could earlier with the 9210. You need a working Bluetooth setup. See my earlier Bluetooth related HOWTO on how to find out your phone’s Bluetooth address with the hcitool and how to setup a PIN so you can pair the devices in a friendly fashion. Then you need the key ingredient, p3nfs. Download the ARCH Linux binary package and the corresponding nfsapp SIS installer for the 9300/9500. [...]