You are not logged in.
Okay, I'm sure there are some people out there who want this, and I don't feel like creating a proper how-to or figuring out how to integrate this into "Network Connections" applet's gui.
Here is how you get the eee to connect to GPRS/EDGE (and probably UMTS) via a bluetooth phone. I personally am using T-Mobile US, and there are one or two specific configurations for it that I will point out.
You don't need any additional software installed. Everything you need is right there to begin with. You do however need a bluetooth adapter (duh) that is supported by Linux (which is most of them).
Preparation:
Turn bluetooth on on your phone, and make it visible.
Attach the bluetooth adapter.
Open a root console.
Start the bluetooth adapter by typing´hciconfig hci0 up´.
Now run this:
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: 0x0100If nothing comes up, then there is a problem with your bluetooth adapter, or your phone (it is searching for devices with dialup networking (DUN)).
Take specific note of YOUR bluetooth address (the hex, which is 00:01:02:03:04:05 above) and the channel (which in the above example, is 2).
Now edit /etc/bluetooth/hcid.conf.
It should have these options set:
options {
autoinit yes;
security auto;
pairing multi;
passkey "1234";
}
device {
name "blah";
class 0x3e0100;
iscan enable;
pscan enable;
lm accept;
lp rswitch,hold,sniff,park;
}All of those are default, except the security mode. I also encourage you to not use "1234" as the pin, and to pick a nicer name for the device than the default (or my "blah").
Now edit /etc/bluetooth/rfcomm.conf so it matches this:
rfcomm0 {
bind yes;
device 00:01:02:03:04:05;
channel 2;
comment "Phone";
}Change the device and channel to the ones you got from sdptool (you can always re-run this command if needed).
Next up are the PPP settings.
Create the file /etc/ppp/peers/gprs with the following contents:
/dev/rfcomm0 connect '/usr/sbin/chat -v -f /etc/ppp/peers/gprs-chat' defaultroute 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
If you need to use authentication, you will have to remove "noauth" and edit the secrets files (and I didn't bother looking into the syntax on those files).
Next, create the file /etc/ppp/peers/gprs-chat as such:
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","wap.voicestream.com"' OK ATD*99# CONNECT
You must modify the part that says "wap.voicestream.com" to your own APN!
This can be found in the phone's GPRS connection settings.
Okay, that's all the files you need to edit. The rest is pretty simple.
First, turn on both dbus and bluetooth (in that order):
/etc/init.d/dbus start /etc/init.d/bluetooth start
Now go to the bluetooth connection settings for your phone, and pair it with the laptop using the pin set earlier in hcid.conf.
Okay, everything is set up now. Here is how you proceed normally to start the connection:
(The first 3 commands may be skipped if you already ran them since turning on the computer)
hciconfig hci0 up /etc/init.d/dbus start /etc/init.d/bluetooth start pon gprs
It should connect within 30 seconds, override your default route and your nameservers and you'll be online. To turn it off, run "poff gprs".
This whole setup is crude and not user friendly, and I hope someone can clean it up. If someone wants to take the time to figure out how to integrate it as a dialup connection in the "Network Connections" applet, I'm sure a lot of people would appreciate it (I made a brief attempt, stopped when I saw how it names devices). I'm sure there is also an easy way to get those two services to turn on at boot, but the init system is so screwed up I didn't feel like delving into it.
Last edited by ieatlint (2007-11-15 3:57:29 am)
Offline
I will chip in $50 towards a bounty if somebody will create a package to easily install this as a dialup connection in the network connections app.
Offline
Hi guys newbie here, wow looks complicated...contemplating doing this as i would like to get connected using my eeepc and my phone on the go. So there isn't an easier way is there?
Offline
I'm kind of scared to try it myself.
is there a way for everything to be set properly through a .deb file or something?
Offline
i followed some of this tutorial and also combined it with my setup from linuxmint.
I got it working, but had to add the option "replacedefaultroute" to the /etc/ppp/peers/gprs file. Hope that helps.
I was thinking of writing a python GUI or even just a shell script to automate setting this up a bit, will keep this thread updated if i get around to it.
P.S this post was done via gprs
Last edited by SublimePorte (2007-11-15 7:09:37 pm)
Offline
at this point (1 day into using Linux) I think I'll wait for some other brave souls to refine this process.
Please keep us posted. This is sure to be a killer app for a device of this size!
Offline
D'oh. Forgot that my phone is CDMA (Motorola Q). These instructions will not work.
Offline
...and here I thought getting Bluetooth to work on Windows was hard.
Offline
If there's a lot of interest, I can throw together a package that will automate the steps in a day or so.
I managed to get partial integration with the network connections applet.
The integration is complete, with one major deficiency: the network connection applet cannot start the connection (or restart it).
As such, a simple script can be made to start it manually (which, on my personal eee, consists of double-clicking an icon on the desktop). Once it connects, it displays in the network connections applet, complete with statistics and all. The applet can also disconnect. Attempting to connect from the applet, results in absolutely nothing happening...
As to the CDMA user, odds are the process is very similar. I'm sure it too uses PPP to connect... You may gain success by looking for instructions on other distributions of Linux and inferring the differences...
Offline
I would be more than happy to chip in a bounty for a working solution for CDMA. Put me down for $50 via paypal for your time.
Offline
Yes pleeeeeeeeeease find an easy solution to this, I followed all the instructions but I got this error:
pon gprs
/usr/sbin/pppd: In fiile /etc/ppp/peers/gprs: unrecongnized option 'dev/rfcom0'
No idea what that means, but I'm a Linux noob
Offline
Personally I'd rather use the USB cable that comes with my SE W950i than Bluetooth.
Offline
I'd take USB too, but i think that ultimately making bluetooth easier to use thru a gui would open up tons of applications thru bluetooth as opposed to just the dial up features.
This is a mobile device, so there is definitely a huge market for mobile access. I have been able to connect via USB to the internet, but can't keep the connection going long before i disconnect and must reset the phone.
Offline
/usr/sbin/pppd: In fiile /etc/ppp/peers/gprs: unrecongnized option 'dev/rfcom0'
Means you've probably typed 'dev/rfcom0' instead of '/dev/rfcomm0'. It's best if you copy and paste so as to avoid typos rather than typing things out manually, also much quicker ![]()
Personally I'd rather use the USB cable that comes with my SE W950i than Bluetooth.
Yeh so much more elegant to whip out your tiny mobile phone, plug some weird connector into the end of it and then the other end into your ultra portable laptop and have to hang it somewhere during the whole process... How awkward I look with my phone in my pocket, not even taking it to complete the auto-connection process, my laptop appearing to be completely wireless by itself!!!
Last edited by SublimePorte (2007-11-17 12:29:56 pm)
Offline
Got SublimePorte's (thankyou for adding your guide! :-D) instructions working and created two files:
"/etc/gon" contains
sudo hciconfig hci0 up sudo /etc/init.d/dbus start sudo /etc/init.d/bluetooth start sudo pon gprs
and "/etc/goff" contains
sudo poff gprs sudo /etc/init.d/bluetooth stop sudo /etc/init.d/dbus stop sudo hciconfig hci0 down
The file names and location are irrelivant but now i simply press "Ctrl + Alt + T" which opens a terminal, then type "/etc/gon" to connect or "/etc/goff" to disconnect.
If anyone can work out how to run each file using a key combo such as "Ctrl + Alt + C" to run the connect file that would be excelent.
Also UK users might wish to buy: http://www.mobilefun.co.uk/product/14583.htm
I am using it and it works just fine (for further interest it says hama on it but has no other markings of interest even on the pcb).
On an unrelated subject after installing my prefered browser Oprea, pressing "Ctrl + Alt + N" at any time loads the browser, who needs shortcuts on the desktop?!
PS - I am a linux virgin and this is my first eeeuser.com post, so look after me.
Last edited by imanuk (2007-11-19 2:24:49 pm)
Offline
Welcome iman, Just want to point out this is ieatlint's guide, not mine ![]()
I merely mentioned an extra option I needed to add, to get it working properly.
Offline
bogga wrote:
Yes pleeeeeeeeeease find an easy solution to this, I followed all the instructions but I got this error:
pon gprs
/usr/sbin/pppd: In fiile /etc/ppp/peers/gprs: unrecongnized option 'dev/rfcom0'
No idea what that means, but I'm a Linux noob
You need to re-edit the file that contains 'dev/rfcom0' and change it to '/dev/rfcomm0'
That may be the file /etc/wvdial.conf
Not sure which of these instructions you're trying to follow.
Good luck,
Jeff
Offline
Ok I've made this post into a bit of a shell script, which works for me, but since my system is already configured, I really don't know if it works on a clean system. If anyone is brave enough to try it, you can downloaad it here.
Use at your own risk. Any files it modifies it backs up with a .bkup extension, so it can't really too anything too irreversible.
When I get time, I'm going to re-image my 3e and then I'll do some more testing with a clean install, but until then if anyone tries it out, let me know the results.
P.S make sure bluetooth usb dongle is inserted before running the script, apart from that, just unzip and run it from a shell prompt as root. If you don't know how to do this, you probably shouldn't try running the script, at least not till it's properly tested.
Last edited by SublimePorte (2007-11-23 10:33:44 pm)
Offline
SublimePorte wrote:
Ok I've made this post into a bit of a shell script, which works for me, but since my system is already configured, I really don't know if it works on a clean system. If anyone is brave enough to try it, you can downloaad it here.
Unfortunately I don't have enough courage to try it ![]()
I'm too new to Linux as well as too new to the EEE, but I would really make it connecting to GPRS over bluetooth (and USB too), hopefully in 'E'asy way...
I also tried the procedure from Ieatlint step by step, but no results: I see my Nokia 6120 getting connection via bluetooth, but no GPRS connection is established.
Thanks to all of you guys who will work on it and share with the community!
Last edited by nuddu (2007-11-25 4:31:18 pm)
Offline
Slight update on my progress;
My GPRS now has a hotkey Fn+F6 (I didn't think much to the app it brings up currently and I couldn't figure how to use Fn+F10).
I edited /etc/acpi/hotkey.sh
After "#Fn+F6" I added a "#" before "Display=:0" (commeting out this line stops the orriginal app from running) and on a fresh line below I added:
kdialog --title "GPRS" --yesnocancel "Yes = Connect|nNo = Dissconnect" if [ $? = 0 ]; then /etc/gon elif [ $? = 1 ]; then /etc/goff fi ;;
(For some un-known reason if you press cancel or close the dialog box it returns 1 also, so you can only connect or dissconnect after pressing Fn+F6 not that you are likly to slip any way, its just not perfect humph!)
This follows on from my previous post and uses the files I talked about. Any sugestions for improvement would be accepted.
Last edited by imanuk (2007-11-26 5:18:45 pm)
Offline
nuddu,
Did you make the alteration I mentioned in post 5? For me it didn't work properly until I did that.
Don't give up hope, I'm sure we can help you figure it out.
Btw, I've re-imaged my 3epc, so I'm gonna do some more testing with my shell script, should have it all ironed out in the next day or so.
Offline
Sorry I kind of disappeared on this whole thing. Been somewhat busy with the Thanksgiving holiday.
Additionally, my laptop has shown a defect -- my letter T has issues. Such that, the slightest brush against the key causes it to register as a depress. So, since I'm waiting for an appointment in a waiting room on the laptop (and GPRS/EDGE), you'll have to forgive me for random or duplicate Ts that I may miss.
Okay, I did a bit of work on the whole idea of trying to integrate this into the existing network applet.
Ultimately, the closed nature of it has resulted in complicated result. In short, I failed -- but there's a but. My failure is such that I can get it working exactly as intended, with one major issue: The network applet, for reasons beyond my current comprehension, is incapable of starting the connection.
As such, I wrote a simple script is essentially identical to the "/etc/gon" script as above (Which was nice and fine, but a friendly FYI that standard *nix convention doesn't put executables in etc [except rc scripts in a sysv system], and those such scripts in a bin dir).
So for me right now, I turn on my laptop, put in my usb bluetooth adapter, ensure my phone has bluetooth on, and then start a script I have linked from an icon on the desktop.
The connection starts, the network applet saids my gprs connection is active. It shows statistics, can stop the device, and it has its weird way of juggling resolv.conf and default routes with other connections.
I plan on putting together a tar file that will contain all the files needed. I am split between putting together a crappy bash script to guide people through the configuration or simply writing a more thorough guide to go with the files.
Either way, I'll try and get it up tonight or tomorrow, when I should have a bit more free time.
Offline
I am split between putting together a crappy bash script to guide people through the configuration
If you want to improve on it, I already wrote a (very) crappy bash script to do the configuration, see post #19.
Offline
Hi, thanks for doing all this work! I've got a problem pairing, I think: I type in "1234" on my phone and I get a "Passcode mismatch" on my phone, which is an old Sony Ericsson V800. Could it be the phone, or am I missing something that will make pairing work?
Thanks,
Mark
Offline