View previous topic :: View next topic |
Author |
Message |
plastikman187 Apprentice
Joined: 15 Mar 2005 Posts: 233
|
Posted: Mon Sep 24, 2007 7:57 pm Post subject: HOWTO : Use blackberry 8700 as a GPRS Modem |
|
|
Since I finally got on the internet with my BlackBerry as a modem I figured I would share how I did it with the Gentoo community.
I am using gentoo sources 2.6.22 but also had success using vanilla sources 2.6.21.
First you will need some tools
I followed the guide from the following site
http://wiki.colar.net/tethering_with_blackberry_pearl_on_linux
Required Software
Code: |
--> XmBlackBerry
--> openmotif 2.3 (not in portage at time of writing)
--> Xlt
--> libusb
--> opensync (optional)
--> barry
--> sudo
--> wvdial
|
Kernel configuration
Make sure that the USB blackberry support is DISABLED
Code: |
Device Drivers --->
USB support --->
< > USB BlackBerry recharge support
|
To install openmotif I just did a version bump of the current ebuild
Code: |
mkdir -p /usr/local/portage/x11-libs/openmotif/
cp -r /usr/portage/x11-libs/openmotif/ cp -r /usr/local/portage/x11-libs/openmotif
cd /usr/local/portage/x11-libs/openmotif
cp openmotif-2.2.3-r9.ebuild openmotif-2.3.0.ebuild
wget ftp://ftp.ics.com/openmotif/2.3/2.3.0/openmotif-2.3.0.tar.gz -O /usr/portage/distfiles/openmotif-2.3.0.tar.gz
|
Then emerge openmotif 2.3
once that completes you will need to install a few more packages (from CVS)
Install libXlt
Code: |
cd ~
cvs -d :pserver:anonymous@xlt.cvs.sourceforge.net:/cvsroot/xlt co Xlt
cd Xlt
./CVSMake
./configure
make
make install
|
Grab the source for xMBlackBerry
Code: |
cd ~
cvs -d:pserver:anonymous@xmblackberry.cvs.sourceforge.net:/cvsroot/xmblackberry co XmBlackBerry
|
In the XmBlackBerry source dir grab the libusb source
Code: |
cd XmBlackBerry/
cvs -d :pserver:anonymous@libusb.cvs.sourceforge.net:/cvsroot/libusb co libusb
|
Lets make XmBlackberry
Code: |
./CVSMake
./configure --enable-maintainer-mode --disable-shared
make
make install
|
Install libusb for barry
Code: |
cd libusb
make install
|
Install opensync (I keep getting compilation errors this is not needed to use the blackberry as a GPRS modem tho)
Code: |
cd ../opensync
make
make install
|
Time to install barry
Code: |
cd ~
cvs -d:pserver:anonymous@barry.cvs.sourceforge.net:/cvsroot/barry login
cvs -z3 -d:pserver:anonymous@barry.cvs.sourceforge.net:/cvsroot/barry co -P barry
cd barry
sh buildgen.sh
./configure
make
make install
|
Time to start XmBlackBerry
Connect your BlackBerry to your box using a USB cable.
when the application starts in the console you will see something like
Code: |
serdata.c:initialize(237) - pty name. "/dev/pts/3"
|
If you see something like that XmBlackBerry has found your GPRS modem
Time to get connected to the internet
I use wvdial this application is in portage. (since kppp does not see /dev/pts/X as a modem)
here is the configuration that I used for /etc/wvdial.conf (I have a sprint BlackBerry so your config may vary by your provider)
http://www4.sprint.com/pcsbusiness/downloads/Sprint_Mobile_Broadband_Setup_Guide.pdf
Code: |
[Dialer Defaults]
Baud = 115200
Carrier Check = no
ISDN = false
Idle Seconds = 180
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem = /dev/pts/3
Modem Type = USB Modem
Password = ''
Phone = #777
Stupid Mode = true
Username = ''
|
start the connection
you will see the following in the console
Code: |
WvDial<*1>: WvDial: Internet dialer version 1.56
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ATZ
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<Notice>: Idle Seconds = 180, disabling automatic reconnect.
WvDial<*1>: Sending: ATDT#777
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATDT#777
WvDial Modem<*1>: CONNECT
WvDial<*1>: Carrier detected. Starting PPP immediately.
WvDial<Notice>: Starting pppd at Mon Sep 24 12:42:05 2007
WvDial<Notice>: Pid of pppd: 16927
WvDial<*1>: Using interface ppp0
WvDial<*1>: local IP address xx.xx.xx.xx
WvDial<*1>: remote IP address xx.xx.xx.xx
WvDial<*1>: primary DNS address xx.xx.xx.xx
WvDial<*1>: secondary DNS address xx.xx.xx.xx
|
It seems that the gateway does not get configured correctly when connecting using wvdial but that is easy to fix
Code: |
route add default gw xx.xx.xx.xx
|
the xx.xx.xx.xx should be replaced with the remote IP that is provided to you from wvdial
YMMV but following these steps I was able to get online as well as configure my co workers laptop too. _________________ Ubuntu -- An african word meaning 'Gentoo is too hard for me' |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|