use mobile phone as modem via bluetooth in ubuntu....
2 posters
IITDU Forum :: TechTalks :: Ubuntu
Page 1 of 1
use mobile phone as modem via bluetooth in ubuntu....
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......
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......
BIT0111-muctadir- Expert
- Course(s) :
- BIT
Blood Group : B+
Posts : 233
Points : 395
Re: use mobile phone as modem via bluetooth in ubuntu....
good work.
Suggested formatting for making it more reading friendly
like
Suggested formatting for making it more reading friendly
like
- Code:
hcitool scan
Re: use mobile phone as modem via bluetooth in ubuntu....
also, if you picked it up from this link
then you could've mentioned it
Also, requesting the recheck of all commands.
sudo browse phone-mac-address returns no command called browse in terminal :p
then you could've mentioned it
Also, requesting the recheck of all commands.
sudo browse phone-mac-address returns no command called browse in terminal :p
Re: use mobile phone as modem via bluetooth in ubuntu....
oops...
my mistake. that should be
and you are right, i got it from the link you mentioned.
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- Expert
- Course(s) :
- BIT
Blood Group : B+
Posts : 233
Points : 395
Re: use mobile phone as modem via bluetooth in ubuntu....
I am recommending the usage of blueman 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
Similar topics
» zoom ultra ZTE AC682 modem installation in linux mint 14 nadia
» Assignment(14-08-2011): Create a Mobile Phone with constructor
» Qubee Modem In Ubuntu
» Using ZOOM ZTE modem in UBUNTU 10.04
» CItycell zoom ZTE MG880+ and zoom ultra AC2726 modem installation in ubuntu
» Assignment(14-08-2011): Create a Mobile Phone with constructor
» Qubee Modem In Ubuntu
» Using ZOOM ZTE modem in UBUNTU 10.04
» CItycell zoom ZTE MG880+ and zoom ultra AC2726 modem installation in ubuntu
IITDU Forum :: TechTalks :: Ubuntu
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford