*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: [1]
Print
Author Topic: Bluetooth+PPP Internet over GPRS/EDGE on the XO  (Read 5479 times)

Bluetooth+PPP Internet over GPRS/EDGE on the XO

Dev
New

Posts: 4


April 04, 2009, 08:49:02 PM

How to configure internet access through GPRS/EDGE, using a bluetooth connection with your GSM phone.

* Requirements:
1) Bluetooth services enabled in the Kernel you're using.
2) GPRS/EDGE Enabled Mobile.
3) GPRS Data Connection (With your Cellular operator)
4) BlueTooth Dongle
5) bluez-utils (package)
6) PPP (currently available with kernel support on XOs)
7) minicom

Kernel Configuration:
Check your Kernel to see if Bluetooth is enabled/available.
Check on /boot/configxxx (xxx is the kenel you're booted in on)
uname -r would let you know your kernel version.
Check for the following strings under Network Settings.

CONFIG_BT=y
CONFIG_BT_L2CAP=m
CONFIG_BT_SCO=m
CONFIG_BT_RFCOMM=m
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=m
CONFIG_BT_BNEP_MC_FILTER=y
CONFIG_BT_BNEP_PROTO_FILTER=y
CONFIG_BT_HIDP=m
## Bluetooth device drivers
CONFIG_BT_HCIUSB=m
CONFIG_BT_HCIUSB_SCO=y
CONFIG_BT_HCIUART=m
CONFIG_BT_HCIUART_H4=y
CONFIG_BT_HCIUART_BCSP=y
CONFIG_BT_HCIBCM203X=m
CONFIG_BT_HCIBPA10X=m
CONFIG_BT_HCIBFUSB=m
CONFIG_BT_HCIDTL1=m
CONFIG_BT_HCIBT3C=m
CONFIG_BT_HCIBLUECARD=m
CONFIG_BT_HCIBTUART=m
CONFIG_BT_HCIVHCI=m
## PPP
CONFIG_PPP=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
CONFIG_PPP_MPPE=m

If its commented out/ not enabled you would need to recompile your Kernel to support it.

Pls check on the following link on how to rebuild your XO's kernel:
http://www.olpcnews.com/forum/index.php?topic=1436.255

Make sure to select Bluetooth under Networking, once you get to "make menuconfig". I decided to have it all built-in to the the kernel then to have them run as modules, stays less complicated that way.

Once you're done building your bluetooth enabled kernel.

Download
8- Bluez-utils (Bluetooth software)
sudo apt-get install bluez-utils

9) ppp (Point-to-Point Dialup Software)
sudo apt-get install ppp

10) pppconfig (PPP conf files creation tool)
sudo apt-get install pppconfig

11) minicom (TTY debug tool) Supports USB/Serial/Bluetooth debugging.
sudo apt-get install minicom

* Now the simple easy steps:

Step 1.
Plugin The bluetooth dongle and activate the bluetooth on your mobile

Step 2.
Issue this command
hcitool scan
It should give you an output like this
Scanning ...
AA:BB:CC:DD:EE Nokia
Note/Copy the address "AA:BB:CC:DD:EE"
This is the bluetooth address of your mobile.

Step 3.
Issue this command
sudo vi /etc/bluetooth/hcid.conf
Leave most of the configs as default and check/change your 4 digit passkey here.

Step 4.
Issue this
sudo vi /etc/bluetooth/rfcomm.conf
Put this replacing the address with your mobile's bluetooth address:

rfcomm0 {
bind yes;
device AA:BB:CC:DD:EE ;
channel 1;
comment "Nokia";
}

sudo spdtool search DUN
note the channel number under dial-up networking and change in /etc/rfcomm.conf file if its different then channel 1.

rfcomm0 is the default bluetooth device address. Check for it in /dev/rfcomm0

rfcomm
check its output (Address, channel status)

/etc/init.d/bluetooth start
If the service isn't auto-started.

pppconfig
And fill in all the details as provided by your cellular operator.

That would create a file in /etc/ppp/peers/xxx (xxx=the name you saved the file with). It would also create a file /etc/chatscripts/xxx

sudo vi /etc/ppp/peers/xxx
It should look like something like this..

# This optionfile was generated by pppconfig 2.3.17.
#
#
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/Orange"
debug
/dev/rfcomm0
115200
defaultroute
noipdefault
user ""
remotename Test
ipparam Test
usepeerdns

it would reflect all that you fed in "pppconfig"

Issue:
vi /etc/chatscripts/xxx
It should somewhat like

# This chatfile was generated by pppconfig 2.3.17.
# Please do not delete any of the comments.  Pppconfig needs them.
#
# ispauth chat
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
# ispnumber
OK-AT-OK "ATDT*99***1#"
# ispconnect
CONNECT ''
# prelogin

# ispname
 ""
# isppassword
 ""
# postlogin
'' \d\c
# end of pppconfig stuff

You need to ask your service provider get info on:
Dial-up number e.g (*99*#)
APN= Access Point e.g (oragegprs.com)
User name and password if any.
Nameservers (DNS and/ Proxy Servers)
Baud speed e.g (112500)

sudo pppd call xxx
xxx= name of connection as in /etc/ppp/peer/xxx

If you've followed the instructions correctly you should be able to get online.

For any errors use:
hcitool, hcidump, sdptool to check the bluetooth configurations.
minicom-s to debug bluetooth modem AT commands or check output in /var/log/messages. Make sure you save rfcomm0 as your modem/device in minicom -s tool it would automatically connect on startup henceforth.

Have tried to putting in as much info, but its very much possible I might have missed or skipped something.. so feel free to ask.
« Last Edit: April 04, 2009, 08:55:38 PM by Dev » Logged

#1 Re: Bluetooth+PPP Internet over GPRS/EDGE on the XO

Johnbert18
New

Posts: 1


May 17, 2009, 11:05:28 PM

Thanks for the information about how to configure internet access through GPRS/EDGE, using a bluetooth connection with your GSM phone.



_________________
Call Center Software
Logged

#2 Re: Bluetooth+PPP Internet over GPRS/EDGE on the XO

ChristophD
Administrator
Senior Contributor
*****
Posts: 161


Co-Editor


WWW
May 18, 2009, 07:49:29 AM

Very nice indeed, I'll definitely give this a try once I have some spare time... :-)
Logged

#3 Re: Bluetooth+PPP Internet over GPRS/EDGE on the XO

sola
Senior Contributor
**
Posts: 135


June 05, 2009, 01:34:06 PM

Wouldn't it be easier to use Blueman after the bluetooth stack is fixed?

Blueman should be able to build GPRS/UMTS/CDMA connections over bluetooth together with NetworkManager.
Logged
Pages: [1]
Print
Jump to:  

Members
Total Members: 2406
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 30
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 17
Total: 17