Welcome, Guest. Please Login.
Linuxslate.com Forums

<=== Back to the Linuxslate.com Homepage

Mar 25th, 2019, 2:45am
News: Welcome to the linuxslate.com forums. 16 Janruary 2015: Forum registration has been disabled due to recent advancements in bypassing captcha's and the resulting increase in spam on the forums. Registration will be re-enabled at a later date. In the meantime, if you need to register, or have relevant information, please email "john" at this domain, or request an account using the linuxslate.com Google+ Page: https://plus.google.com/+Linuxslate/


Pages: 1
Mobile Phone Bluetooth tethering (Read 3412 times)
Administrator
Forum Administrator
*****


Administrator

Posts: 88
Gender: male
Mobile Phone Bluetooth tethering
Jul 10th, 2008, 9:29pm
 
Bluetooth Connection to a Mobile Phone
 
This section has not been updated for Ubuntu 8.04.  Network Manager now has settings for GPRS/UTMS, so this may now be easier.  In the mean time. what is below still works.
 
 
Unfourtunately, Ubuntu 7.10 does not support Bluetooth connections via Network Manager or any other GUI.  For this one we have to hit the command line.  Ubuntu 8.04 may work from the Network manager GUI. I'll post again when I test it.
 
Note:  For some Motorola phones you will need to edit /etc/ppp/options as indicated in the post about USB tethering. This is not needed for most other phones.
 
Note: Make sure the phone is properly configured to access the internet on its own first.
 
Note:  Much of what is here is an adaptation and simplification of information contained on this site. http://davesource.com/Solutions/20070520.T-Mobile-Nokia-E65-Ubuntu-Linux.html
 
1. Copy the following 3 files to /etc/ppp/peers/
 
gprs
http://linuxslate.com/files/gprs
gprs-connect-chat
http://linuxslate.com/files/gprs-connect-chat
gprs-disconnect-chat
http://linuxslate.com/files/gprs-disconnect-chat
 
These links contain files configured for the New AT&T in North America.  If you are using T-Mobile, grab the files from the DaveSource site linked to above. Others can use either set of files, as you will have to edit them anyway.
 
2.  Change the execute permissions on gprs-connect-chat and gprs-disconnect-chat:
 
chmod +x /etc/ppp/peers/gprs-*
 
The files should have owner and group as root, and should have no extension.
 
3.  Find the phone via Bluetooth, and note the channel for Dial-Up-Networking (DUN).
 
sdptool search dun
 
Note the device address (In the form of  00:xx:xx:xx:xx:xx), and the RFCOMM Channel (A single number, usually 1 or 2).
 
4.  Activate the rfcomm device
 
sudo rfccomm bind 1 00:xx:xx:xx:xx:xx  (Use your channel and  BT address)
 
5. Call pppd to make the connection:
 
pppd call gprs
 
If the chat script runs successfully, you should be connected.  Use <Ctrl><C> to disconnect.
 
Troubleshooting:
 
Is there an rfcomm device?
 
ls -al /dev/rfcomm*
 
Did the chat script complete?
 
Check for a ppp0 entry in ifconfig.  Is there a valid IP address?
 
ifconfig
 
Back to top
 
 

Mobile Linux ?
Got That:
Z1 Android Watch Phone, Huawei Honor 2, Nexus 7 (2013), MUCH G2.
WWW   IP Logged
Pages: 1