GPRS on your 3e
The next thing I’ve added to my 3e laptop is the ability to connect to the net via gprs on my mobile phone. You can do this via usb or bluetooth and i’ve opted for the latter event though it’s a bit more hassle to get it going.
Credit for this has to go to SublimePorte over on the eeeuser.com forums, he has packaged the installer up into a .deb package that can be downloaded and installed straight onto your Xandros system, so I did, it didn’t work
So after checking into things and testing, I eventually got things working using wvdial rather than the scripts included in Porte’s package. It did however mean that I got an icon on the home page to use to start and stop the connection so I adapted what was already installed. I will try and give you the full instructions on how to do this without Porte’s deb package.
Firstly, plug your bluetooth adaptor in! Once you have done this run the following from a terminal on your 3e:
hciconfig hci0 up
You shouldn’t see any response back, if you do then their was a problem and you will need to check into this before carrying on.
Next run the following command which will search for devices with bluetooth enabled and DUN (dial up networking enabled). If you get a failed response back here then you have a problem with your bluetooth dongle or your mobile phone:
eepc:/root> sdptool search DUN
Inquiring ...
Searching for DUN on 00:01:02:03:04:05 ...
Service Name: Dial-Up Networking
Service RecHandle: 0x10027
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Make a note of the bluetooth address and channel (00:01:02:03:04:05 and Channel 2 in the example above). Next, edit /etc/bluetooth/hcid.conf and enter the following config:
options {
autoinit yes;
security auto;
pairing multi;
passkey "1234";
}device {
name "phone";
class 0x3e0100;
iscan enable;
pscan enable;
lm accept;
lp rswitch,hold,sniff,park;
}
This file is available to download here
Change the passkey line to something that only you will know, this is the passkey you will use when you synch your 3e with your phone. Also change the name to something a bit more descriptive for the phone. Now edit /etc/bluetooth/rfcomm.conf and paste the following code into it
rfcomm0 {
bind yes;
device 00:01:02:03:04:05;
channel 2;
comment "Mobile";
}
This file is available to download here.
Change the device to match your bluetooth address from earlier, the channel and set the comment to something descriptive so you can identify this connection.
Ok, bluetooth should be now setup, if you try and find and pair with your dinky 3e using the passkey you set. If everything has worked ok then you should be able to pair successfully. This needs to be done from your mobile phone of choice using the bluetooth wizard most have installed. - Note, thanks to a reader for pointing out that I didn’t make it clear that you should now start the pairing from your mobile.
Now it’s onto the wvdial setup, firstly you need to install it though so add an additional repo to your apt configuration - I’m not going to show you how to do that here and then run apt-get install wvdial. Once installed you will need to setup the wvdial.conf in /etc/ to use the settings applicable for your mobile network provider. Mine was O2 in the UK so my settings reflect this. Anyway, edit the wvdial.conf file and put this in it:
[BluetoothMobile]
Modem = /dev/rfcomm0
Baud = 912600
SetVolume = 0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0-0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,”mobile.o2.co.uk”
FlowControl = CRTSCTS
ISDN=0[Dialer GPRS]
Username = mobileweb
Password = password
Phone = *99#
Stupid Mode = 1
Inherits = BluetoothMobile
This file is available to download here. You need to replace the mobile.o2.co.uk with the APN (access point name) for your mobile provider, the username and password need to be provided by them as well. Nothing else needs changing in this file so you should be good to go.
Next paste this into the /usr/sbin/gprs script (if you are creating this yourself then don’t forget to chmod 755 /usr/sbin/gprs when done):
#!/bin/sh
wvdial_running=$(ps xa | grep -v grep | grep 'wvdial GPRS' | awk '{print $1}')
pppd_running=$(ps xa | grep -v grep | grep 'pppd' | grep wvdial | awk '{print $1}'
if test $wvdial_running > 0 && test $pppd_running > 0
then
sudo kill -9 $wvdial_running
sudo kill -9 $pppd_running
kdialog --msgbox "GPRS Connection has been stopped!"
else
kdialog --msgbox "Please make sure your bluetooth dongle is inserted then press OK to continue"
sudo /usr/bin/wvdial GPRS &
kdialog --msgbox "GPRS Connection has been started!"
fi
This file is also available to download.
Ok, nearly finished now. Time to get the icons we need and place them in /opt/xandros/share/AsusLauncher/:
accessibility_gprs_hi.png
business_gprs_hi.png
gprs_norm.png
gprs_hi.png
home_gprs_hi.png
student_gprs_hi.png
You will also need to edit the /opt/xandros/share/AsusLauncher/simpleui.rc and add the following line somewhere above </simpleui>:
<parcel simplecat="Internet" extraargs="/usr/sbin/gprs"
icon="gprs_norm.png"
selected_icon="grps_hi.png">
<name lang="en">GPRS</name>
</parcel>
Now all that you need to is restart your X session (CTRL+ALT+BACKSPACE) and once you log back in, you should have a GPRS icon on your home page which you can click to lanch the GPRS connection and stop it.
My longest blog so far? I think so ![]()















Jeffrey Harris:
Directions seem mostly clear. But there is a gap. You say ” Ok, bluetooth should be now setup, if you try and find and pair with your dinky 3e using the passkey you set.”
What command is needed to “try and find and pair …”
I have learned by bricking my EEE not to simply apply commands from others without checking each step thoroughly.
Thanks and happy Christmas.
jhh
23 December 2007, 11:30 pmNeil Lathwood:
Hi,
Thanks for the feedback. Basically that next step is where you would now go and use your mobile phones bluetooth wizard to find and pair with the asus. This is different for each mobile pretty much so hence why I left out that step. I will add more detail though to clarify.,
Thanks,
Neil
24 December 2007, 5:44 pmHitman1:
Thanks… your tutorial worked for me… however, the gprs connection is getting dropped after 2 minutes every time.
Do you have any idea why is this happening?
23 February 2008, 6:00 pmNeil Lathwood:
I no longer have Xandros installed on my eee but you could try changing the wvdial.conf file and changing the init lines to:
Init1 = ATE0
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0-0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,”IP”,”mobile.o2.co.uk”
You are setting the apn, username and password as per your provider aren’t you?
Does it drop even if you keep data sending all the time?
24 February 2008, 5:49 pmASUS Showcases Expanded Eee PC Family of PCs at CeBIT 2008 | pure roon:
[...] A mate of mine has been customising an Eee PCÂ since they came out and has an excellent guide on getting GPRS working via bluetooth and your mobile. [...]
4 March 2008, 5:15 pmNeil Lathwood:
Cheers Giles, not customising it anymore - well unless you class XP as being customised
4 March 2008, 9:06 pmRich Kenchington:
Neil,
I have it all working just when i dial my connection (not quite got as far as you i do wvdial gprs) everything connects just firefox wont work did you come across this anywhere?
Rich
12 March 2008, 7:36 pmNeil Lathwood:
Maybe your routing table isn’t being updated.
Open up a terminal and type route and paste the output here.
12 March 2008, 10:16 pmRich Kenchington:
Thanks Neil its ok though i managed to get it working
13 March 2008, 12:00 pmNeil Lathwood:
What did you do to get it working out of interest?
13 March 2008, 2:58 pm