IITDU Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

use mobile phone as modem via bluetooth in ubuntu....

2 posters

Go down

use mobile phone as modem via bluetooth in ubuntu.... Empty use mobile phone as modem via bluetooth in ubuntu....

Post by BIT0111-muctadir Wed Jun 16, 2010 6:00 am

hello ubuntu users. today i will tell you how to use your mobile phone as a modem via bluetooth. you can do that in windows using the application provided by your cell phone vendor, but what about ubuntu linux. i will tell you how. just follow the steps below.
1. turn on your mobiles bluetooth(bt) and insert ur bt device in ur pc.
2. open a terminal and type this command hcitool scan. this will show ur phones mac address and name.
3. now execute this command sudo hcitool cc your-phone-mac-address.
4. again execute this command sudo hcitool auth your-phone-mac-address.
step 3 and 4 will pair ur mobile with ur pc. you can do that using bt manager. it will appear in the upper right corner in the screen. click on it and click Set up new device.
5. you need to find out ur phones channel number. execute sudo browse your-phone-mac-address.
6. Under "Protocol Descriptor List:" and "RFCOMM", there should be a number after "Channel:". Remember that number; you'll need it for the rfcomm configuration.
7. execute gksudo gedit /etc/bluetooth/rfcomm.conf.
8. Paste the following into the file, replacing your-phone-mac-address and your-phone-rfcomm-channel with appropriate values-
rfcomm0 {
bind yes;
device your-phone-mac-address;
channel your-phone-rfcomm-channel;
comment "Bluetooth PPP Connection";
}
9. you have to bind the phone with ur pc. execute this command -
sudo rfcomm bind 0 your-phone-mac-address your-phone-rfcomm-channel.
If you get the wrong channel (or if the wrong channel was bound at startup as a result of rfcomm.conf) then you need to release it before you can bind it again:
sudo rfcomm release 0
10. Run the following -
gksudo gedit /etc/ppp/peers/BluetoothDialup
11. Paste the following into the file -
debug
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup"
usepeerdns
/dev/rfcomm0 115200
defaultroute
crtscts
lcp-echo-failure 0
12. Run the following -
gksudo gedit /etc/chatscripts/BluetoothDialup
13. Paste the following into the file replacing your-apn-here and your-data-profile-number-here with correct value-
TIMEOUT 35
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
OK 'AT+CGDCONT=2,"IP","your-apn-here"'
OK ATD*99***your-data-profile-number-here#
CONNECT ""
for me they are gpinternet and 1 respectively.
14. now to connect ur phone as modem execute -
sudo pon BluetoothDialup
15. you will find a new mobile broadband connection in the notification area. if you had any connection previously configured you will see that connection there.you can create a new profile or use existiong profile to connect. just click on the profile.

the configuration process is not easy, specially for new users. it is very much possible to have problem. feel free to tell me about ur problem. i will try my best to solve. enjoy ubuntu......Very Happy Very Happy Very Happy
BIT0111-muctadir
BIT0111-muctadir
Expert
Expert

Course(s) :
  • BIT

Blood Group : B+
Posts : 233
Points : 395

Back to top Go down

use mobile phone as modem via bluetooth in ubuntu.... Empty Re: use mobile phone as modem via bluetooth in ubuntu....

Post by BIT0122-Amit Wed Jun 16, 2010 7:32 pm

good work.
Suggested formatting for making it more reading friendly Smile
like
Code:

hcitool scan
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

use mobile phone as modem via bluetooth in ubuntu.... Empty Re: use mobile phone as modem via bluetooth in ubuntu....

Post by BIT0122-Amit Wed Jun 16, 2010 8:02 pm

also, if you picked it up from this link
then you could've mentioned it Smile
Also, requesting the recheck of all commands.

sudo browse phone-mac-address returns no command called browse in terminal :p
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

use mobile phone as modem via bluetooth in ubuntu.... Empty Re: use mobile phone as modem via bluetooth in ubuntu....

Post by BIT0111-muctadir Thu Jun 17, 2010 1:16 am

oops...
my mistake. that should be
Code:
sudo sdptool browse phones_mac_address

and you are right, i got it from the link you mentioned.
BIT0111-muctadir
BIT0111-muctadir
Expert
Expert

Course(s) :
  • BIT

Blood Group : B+
Posts : 233
Points : 395

Back to top Go down

use mobile phone as modem via bluetooth in ubuntu.... Empty Re: use mobile phone as modem via bluetooth in ubuntu....

Post by BIT0122-Amit Wed Aug 11, 2010 11:24 pm

I am recommending the usage of blueman Smile It does not require any kind of file editing. I reintalled ubuntu today. Connected the mobile via wire at first to download blueman. After installation, after pairing with blueman, it automatically enabled the internet settings Smile
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

use mobile phone as modem via bluetooth in ubuntu.... Empty Re: use mobile phone as modem via bluetooth in ubuntu....

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum