LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2008, 01:22 PM   #1
karthickannamalai
Member
 
Registered: Jun 2008
Posts: 32

Rep: Reputation: 15
[B]Connect to Internet from Linux via GSM Phone[/B]


Hi,

I am running fedora 6 on my laptop and I would like to connect it to internet using my GSM Phone (The GSM phone is latest 3G and has internet capability, EDGE enabled). How could I do it?

I have installed the wvdial package and is working fine. I'm able to connect my laptop to internet using a Dial-up modem but how can I connect my laptop to internet using a GSM phone?

In the wvdial.conf file for the Dial-up case I know the phone, username and password. But now for the GSM phone case what should I enter as the phone, username and password?. will the wvdial package work for GSM phone too?? If so what changes should I do??.

If anybody has connected or tried connecting a GSM phone to linux machine to access the Internet, please post your experiences and suggestions.. Your help will be very much appreciated.

Cheers!!

K.Karthick Annamalai
 
Old 07-15-2008, 01:43 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Here's a procedure I managed to use to get connected using a Sony K850i and a USB bluetooth dongle my laptop on Ubuntu Gutsy. I didn't try it with Hardy yet, to which I have upgraded since I documented the procedure.

1. Run:
Code:
hcitool scan
Write down the address of device, e.g. 00:1E:28:88:C1:52

2. Run:
Code:
sdptool browse 00:1E:28:88:C1:52
Look for "Dial-up Networking" in the output. This little sed command will narrow down the output to the right section, but if it doesn't work for you then you will need to check the output of the whole thing without the sed part:
Code:
sdptool browse 00:1E:28:88:C1:52 | sed -n '/Dial-up Networking/,/^$/p'
Output looks like this:
Code:
Service Name: Dial-up Networking
Service RecHandle: 0x2008004
Service Class ID List:
  "Dialup Networking" (0x1103)
  "Generic Networking" (0x1201)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100
Write down the channel. In my case 1.

3. Run:
Code:
sudo vi /etc/bluetooth/rfcomm.conf
Add an rfcomm entry, using the channel from step 2, e.g.
Code:
rfcomm0 {
        bind yes ;
        device 00:1E:28:88:C1:52 ;
        channel 1 ;
        comment "My Mobile Dial-up -- for PPP" ;
}
4. Re-start bluetooth sub-system with this command:
Code:
/etc/init.d/bluetooth restart
Verify that device /dev/rfcomm0 exists and is writable.

5. Using kppp set up modem for /dev/rfcomm0 (set the fastest baud possible).

6. This step will be phone/service provider specific: On phone look in connectivity settings -> internet and select contract internet. In the options -> view it will tell you the external ID of this connection, e.g. 3.

7. Using kppp set up dialout account to number: *99***${external_id}# e.g. *99***3# for the contract internet connection described in step 6. Again this will be service provider specific. I googled about to find this number for my service provider.

8. Disable network manager / wireless / any existing connections FIRST, then dial up with kppp.
 
Old 07-15-2008, 01:45 PM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
There's probably a much better way to achieve what I did in the last post, but there it is for what it's worth.

I devised the procedure with a mixture of reading the manual pages, and googling for tutorials and so on. Now I look at it and wonder what on Earth it's doing. I hope it's helpful for you, but please don't ask me to explain exactly how it works.
 
Old 07-16-2008, 09:45 AM   #4
karthickannamalai
Member
 
Registered: Jun 2008
Posts: 32

Original Poster
Rep: Reputation: 15
Hi Matthew,

Thank you so much for taking your time to help me with the procedure.. I got that working.. Now I'm able to connect to the internet using a GSM phone.. I will never ask you to explain what it is as long as it is working

Do you know how I can connect to the internet using a GSM modem from my linux machine?

Cheers!!

K.Karthick Annamalai
 
Old 07-16-2008, 10:05 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Quote:
Originally Posted by karthickannamalai View Post
Hi Matthew,

Thank you so much for taking your time to help me with the procedure.. I got that working.. Now I'm able to connect to the internet using a GSM phone.. I will never ask you to explain what it is as long as it is working

Do you know how I can connect to the internet using a GSM modem from my linux machine?

Cheers!!

K.Karthick Annamalai
I'm confused. You got it working, but you still need to know how to get it working?
 
Old 01-14-2011, 06:20 AM   #6
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Rep: Reputation: 0
thanx alot.it worked for me also
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What GSM phone can I buy to test wireless connectivity with fedora linux? karthickannamalai Linux - Software 1 06-27-2008 07:11 AM
connect internet through phone byvimal Linux - General 1 09-06-2007 04:56 PM
LXer: Linux/qtopia dual-mode GSM/VoIP phone spotted at CES LXer Syndicated Linux News 0 01-06-2006 12:46 AM
Connect GSM cell to Linux to recieve SMS dlublink Linux - Hardware 2 09-27-2005 11:51 AM
using a gprs cell phone to connect to the internet cwahoyes Linux - Newbie 3 10-03-2004 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration