http://openmoko.org/api.php?action=feedcontributions&user=Lakshmikanth&feedformat=atomOpenmoko - User contributions [en]2024-03-29T13:43:09ZUser contributionsMediaWiki 1.19.24http://openmoko.org/wiki/Manually_using_GPRSManually using GPRS2009-06-11T15:29:37Z<p>Lakshmikanth: /* Some APN names for reference */</p>
<hr />
<div>{{note| These instructions are for OM2008.8 . If you are using the FSO stack, see [[GPRS_FSO]].}}<br />
<br />
The GPRS connection is made using the PPP protocol to a server identified by an "APN" at the network operator. Once a GPRS connection is made, it is possible to [[#Sharing_the_GPRS_connection_with_a_computer|share that connection with a connected computer]], allowing that computer to access the internet through the phone!<br />
<br />
= Option 1: With GSM multiplexing and with a GUI =<br />
<br />
{{note|The following does not appear to work if you have a SIM PIN. The dialog to enter your SIM PIN never pops up and the GSM multiplexing daemon continuous loops and runs into a SIM PIN error.}}<br />
<br />
GSM multiplexing allows both a GPRS connection and a phone call to be handled at the same time. By default, [[Om 2008.8]] does not multiplex the GSM device. The [[FSO]] distribution, however, introduces GSM multiplexing with a new service and a DBus API to that service. The instructions to modify the OM2008.8 distribution to make use of GSM multiplexing and allow you to start GPRS from a GUI can be found here: http://freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295 ('''Note:''' Script package seems to be no longer be available, but a later post in the thread links to a version at [http://fyp-archiv.relei.de/ http://fyp-archiv.relei.de/].)<br />
<br />
== gsm0710muxd ==<br />
<br />
There are two sources, where you can find gsm0710muxd.<br />
<br />
=== From OM2008.8 repositories ===<br />
<br />
Good news, working gsm0710muxd can be installed just by typing "opkg install gsm0710muxd"<br />
<br />
NOTE: ASU2008.12 boots in 45s and gsm0710muxd has probably not enough time to initialize GSM modem (gsm0710muxd is unable to provide working tty device to qtopia => qpe fails to open GSM modem and quits)<br />
==> Some kind of delay may be needed in /etc/X11/Xsession.d/89qtopia<br />
<br />
==> It has also been suggested on the mailing lists that an "update-rc.d gsm0710muxd defaults 11" be issued to get this to start earlier in the boot process to give the modem a chance to initialize before QPE starts.<br />
<br />
=== From Angstrom Repositories ===<br />
<br />
If the gsm0710muxd that is found in the OM2008.8 repository refuses to work, you can use the one from the Angstrom Repositories (see [[Repositories]]) instead.<br />
<br />
Alternatively, if you simply want to download all the packages, you can get them from here:<br />
<br />
http://www.angstrom-distribution.org/feeds/2008/ipk/glibc/armv4t/base/gsm0710muxd_0.9.1+r0-gitr3ff86b129640b647ccba3d86eb243d864671b039-r0_armv4t.ipk<br />
<br />
I don't know if the package got renamed but that one wasn't in there the one i downloaded was<br />
<br />
http://www.angstrom-distribution.org/feeds/2008/ipk/glibc/armv4t/base/gsm0710muxd_0.9.2+gitr79e10fe8ad0828e5be9a5c087ac9ee04956674c1-r0.1_armv4t.ipk<br />
<br />
haven't gotten past this step yet well see how / if it works. :)<br />
<br />
This link was working for me on 11.12.2008 (I've successfully muxed GSM device and sent command for echo reduction - http://lists.openmoko.org/pipermail/community/2008-August/028495.html)<br />
<br />
http://shr.bearstech.com/shr-testing/ipk/armv4t/gsm0710muxd-dbg_0.9.2+gitr12+d8b36b923ef69a64cb5a2d3bca799d772b9c73c3-r0.1_armv4t.ipk<br />
<br />
and the dependencies from here:<br />
<br />
http://www.angstrom-distribution.org/repo/?pkgname=gsm0710muxd<br />
<br />
Make sure that you install the armv4t versions of all packages.<br />
<br />
=== Common part ===<br />
<br />
The most important step after installing gsm0710muxd is to tell QPE to use the MUX instead of the device directly. If you follow the instructions in the link above, there is a step that replaces the 89qtopia init script with one from their script package. The key difference is the addition of the following lines that tells QPE to use the MUX:<br />
<br />
in /etc/X11/Xsession.d/89qtopia<br />
<br />
identvar=$(date +%s)<br/><br />
ptsvar=$(dbus-send --system --print-reply --type=method_call --dest=org.pyneo.muxer /org/pyneo/Muxer<br />
org.freesmartphone.GSM.MUX.AllocChannel string:$identvar | grep string | awk -F '"' '{ print $2 }')<br/><br />
export QTOPIA_PHONE_DEVICE=$ptsvar<br />
<br />
The [[#Some APN names for reference|APN Reference]] table may come in handy when you are looking for the required network specific information for the other scripts.<br />
<br />
Once you follow through with all the instructions, you will notice that the "Services" GUI will crash. This has to do with this bug: http://docs.openmoko.org/trac/ticket/1718<br />
<br />
The fix is to change the "init()" call on line 82 of /usr/lib/python2.5/site-packages/gtk-2.0/gtk/_init_.py to "_init()" (add an underscore).<br />
<br />
You may also have to modify your /etc/resolv.conf file and add the nameserver (DNS Server) of your service provider if you have DNS resolution problems.<br />
<br />
Then, hopefully, you should be up in running with GPRS and a GUI to turn it on and off. Note that you can use the command line scripts "gprson" and "gprsoff" in place of the GUI if you need to do some debugging.<br />
<br />
= Option 2: With GSM multiplexing and without a GUI =<br />
<br />
You will have to get gsm0710muxd the same way as detailed in Option 1.<br />
<br />
'''1) In /etc/rc5.d start gsm0710muxd before gsmd:'''<br />
* S34gsm0710muxd -> ../init.d/gsm0710muxd<br />
* S35gsmd -> ../init.d/gsmd<br />
<br />
'''2) Modify S35gsmd so it can start either with or without gsm0710muxd:'''<br />
<pre><br />
...<br />
case "$1" in<br />
start)<br />
if [ "$(pidof gsm0710muxd)" ] ; then<br />
id=$(date +%s)<br />
GSM_DEV=$(dbus-send --system --print-reply --type=method_call --dest=org.pyneo.muxer /org/pyneo/Muxer org.freesmartphone.GSM.MUX.AllocChannel string:$id | grep string | cut -d \" -f 2)<br />
else<br />
[ -n "$GSM_POW" ] && ( echo "0" >$GSM_POW; sleep 1 )<br />
[ -n "$GSM_POW" ] && ( echo "1" >$GSM_POW; sleep 1 )<br />
[ -n "$GSM_RES" ] && ( echo "1" >$GSM_RES; sleep 1 )<br />
[ -n "$GSM_RES" ] && ( echo "0" >$GSM_RES; sleep 2 )<br />
fi<br />
<br />
if [ ! "$GSM_DEV" ] ; then<br />
echo "GSM_DEV was not set"<br />
exit 1<br />
fi<br />
<br />
echo -n "Starting GSM daemon: "<br />
start-stop-daemon -S -x /usr/sbin/gsmd -- gsmd -p $GSM_DEV $GSMD_OPTS -d -l /var/log/gsmd<br />
<br />
if [ $? = 0 ]; then<br />
echo "gsmd."<br />
else<br />
echo "(failed.)"<br />
fi<br />
;;<br />
stop)<br />
if [ ! "$(pidof gsm0710muxd)" ] ; then<br />
[ -n "$GSM_POW" ] && echo "0" >$GSM_POW<br />
fi<br />
<br />
echo -n "Stopping GSM daemon: "<br />
...<br />
</pre><br />
<br />
'''3) Remove the tty from /etc/ppp/peers/simyo''' (replace simyo with your provider).<br />
<br />
'''4) Use a ppp start script like this:'''<br />
<pre><br />
$ cat /usr/local/bin/ppp-start<br />
#!/bin/sh<br />
<br />
id=$(date +%s)<br />
TTY=$(dbus-send --system --print-reply --type=method_call --dest=org.pyneo.muxer /org/pyneo/Muxer org.freesmartphone.GSM.MUX.AllocChannel string:$id | grep string | cut -d \" -f 2)<br />
logger -t ppp-start "using tty $TTY"<br />
pppd $TTY call simyo<br />
</pre><br />
<br />
'''5) Use "killall pppd" to terminate the PPP connection.'''<br />
<br />
<br />
[[:Image:Gsmmuxd.trace.txt|Here]] is some strace information from gsm0710muxd, showing how the daemon responds when receiving a call when GPRS is up.<br />
<br />
[http://www.teaparty.net/technotes/openmoko-2.html#GPRS Here] is Tom's documentation on how he got it working (under 2008.08), with config files and example output.<br />
<br />
= Option 3: Without GSM multiplexing and without a GUI =<br />
<br />
[Important Note: It has been pointed out that this is only for 2007.2 and not for the 2008.8 images. If someone can confirm this and update this comment with more detail it would help out this page. Thanks]<br />
<br />
The program that implements PPP on Linux is [[pppd]], which we need to configure and run to get a connection. When that is working, we can configure pppd to wait until it's needed before it connects, and to disconnect if the connection becomes idle. Further, we can start pppd in the background during the boot process.<br />
<br />
== Configuring pppd for manual connections ==<br />
<br />
You'll need /etc/ppp/peers/gprs:<br />
<pre><br />
# Uncomment the following if you want some debug.<br />
#debug<br />
#logfile /var/volatile/log/pppd.log<br />
lock<br />
/dev/ttySAC0 115200<br />
crtscts<br />
connect /etc/ppp/gprs-connect-chat<br />
disconnect /etc/ppp/gprs-disconnect-chat<br />
hide-password<br />
usepeerdns<br />
ipcp-accept-local<br />
noauth<br />
noipdefault<br />
novj<br />
novjccomp<br />
defaultroute<br />
replacedefaultroute<br />
# Reopen the connection if it fails, pausing for a while.<br />
persist<br />
holdoff 15<br />
# Check the line every 20 seconds and presume<br />
# the peer is gone if no replay for 4 times.<br />
lcp-echo-interval 20<br />
lcp-echo-failure 4<br />
</pre><br />
<br />
Comment by Vasco: I also had to include this in order to survive a "'''IPCP: timeout sending Config-Requests'''" sporadic error that dropped my connection right in the beginning:<br />
<pre><br />
ipcp-restart 10<br />
</pre><br />
<br />
<br />
Depending on the APN, you may need password authentication using CHAP or PAP. In /etc/ppp/pap-secrets you can add the following default line for "password-less" connections:<br />
<br />
<pre><br />
# client server secret IP addresses<br />
* * "" *<br />
</pre><br />
<br />
For CHAP, lines in /etc/ppp/chap-secrets are used. For PAP, the lines are in /etc/ppp/pap-secrets. The client should match the "user" option in pppd the config file (below). You can use * to mean any here, but the option user "" doesn't mean empty!<br />
<br />
For example:<br />
<br />
<pre><br />
# Secrets for authentication using CHAP<br />
# client server secret IP addresses<br />
"user" * "password" *<br />
</pre><br />
<br />
For this you need the following options in /etc/ppp/peers/gprs:<br />
<br />
<pre><br />
# username to use for authentication, should match "client" in /etc/ppp/{chap,pap}-secrets<br />
user "user"<br />
</pre><br />
<br />
== gprs-connect-chat, version 1 ==<br />
<br />
You'll also need /etc/ppp/gprs-connect-chat (needs "chmod +x"):<br />
<br />
<pre><br />
#!/bin/sh -e<br />
exec chat -v -S -s\<br />
TIMEOUT 15\<br />
"" "\K\K\K\d+++ATH"\<br />
OK-AT-OK ATZ\<br />
OK ATE1\<br />
ABORT BUSY\<br />
ABORT DELAYED\<br />
ABORT "NO ANSWER"\<br />
ABORT "NO DIALTONE"\<br />
ABORT VOICE\<br />
ABORT ERROR\<br />
ABORT RINGING\<br />
TIMEOUT 60\<br />
OK AT+CFUN=1\<br />
OK AT+COPS\<br />
OK AT+CGDCONT=1,\"IP\",\"internet\"\<br />
OK ATD*99#\<br />
CONNECT /n/d<br />
</pre><br />
<br />
<b>Note:</b> In the 3rd last line, replace the word <i>internet</i> by your provider's APN (listed below).<br />
<br />
<b>(08/18/08) Note:</b> I needed to add the command "AT+CMOD=2" (formatted as "OK AT+CMOD=2\" without the quotes) in order to get GPRS working with the above script (otherwise it would ERROR on the CFUN, COPS, or the ATD if the other two were removed). I have T-Mobile (US) with the $5.99 "tzones" addon, which works with Minimo as it supports HTTP proxy setups.<br />
<br />
Notes:<br />
AT+CMOD=?<br />
0 single mode<br />
1 alternating voice/fax (teleservice 61)<br />
2 alternating voice/data (bearer service 61)<br />
3 voice followed by data (bearer service 81)<br />
also all other values below 128 are reserved by this ETS<br />
<br><br />
AT+CFUN=?<br />
0 minimum functionality<br />
1 full functionality ("full functionality" is where the highest level of power is drawn)<br />
2 disable phone transmit RF circuits only<br />
3 disable phone receive RF circuits only<br />
4 disable phone both transmit and receive RF circuits<br />
5...127 reserved for manufacturers as intermediate states between full and minimum functionality<br />
<br><br />
<br />
== gprs-connect-chat, version 2 ==<br />
<br />
Update: On my freerunner the first AT+CFUN=1 always generated ERROR. I managed to get gprs work by using the following script from http://lists.openmoko.org/pipermail/community/2008-July/023246.html:<br />
<br />
<pre><br />
#!/bin/sh -e<br />
exec /usr/sbin/chat -v \<br />
TIMEOUT 10 \<br />
OK-AT-'' ''\<br />
ABORT BUSY\<br />
ABORT DELAYED\<br />
ABORT "NO ANSWER"\<br />
ABORT "NO DIALTONE"\<br />
ABORT VOICE\<br />
ABORT ERROR\<br />
ABORT RINGING\<br />
TIMEOUT 30 \<br />
'' ATZ\<br />
OK ATE1\<br />
OK AT+CFUN=1\<br />
ERROR AT+CPIN=\"XXXX\"\ << USE YOUR OWN<br />
OK AT+COPS\<br />
OK AT+CGDCONT=1,\"IP\",\"internet\"\<br />
OK 'ATDT*99***1#'\<br />
CONNECT ''<br />
</pre><br />
<br />
The error seems to vary a bit, sometimes it's before AT+COPS, sometimes as above. I have two versions of the gprs-connect-chat, which I vary between depending on which is needed. Or is there a way to specify two acceptable answers like {OK,ERROR}?<br />
<br />
You will need to adjust the APN name "internet" in at+cgdcont line and possibly the phone number in the ATD line to match what your network operator provides. See below in the table "Some APN names for reference" for the right settings for your operator.<br />
<br />
== gprs-disconnect-chat ==<br />
<br />
Also good to have is /etc/ppp/gprs-disconnect-chat (needs "chmod +x"):<br />
<br />
<pre><br />
#!/bin/sh -e<br />
/usr/sbin/chat -v\<br />
ABORT OK\<br />
ABORT BUSY\<br />
ABORT DELAYED\<br />
ABORT "NO ANSWER"\<br />
ABORT "NO CARRIER"\<br />
ABORT "NO DIALTONE"\<br />
ABORT VOICE\<br />
ABORT ERROR\<br />
ABORT RINGING\<br />
TIMEOUT 12\<br />
"" "\K\K\K\d+++ATH"\<br />
"NO CARRIER-AT-OK" "\c"<br />
</pre><br />
<br />
== Starting PPP connection ==<br />
<br />
The following script can be used to start the ppp connection. First it stops gsmd because gsmd may put the phone in a unknown state. It then turns on the power to the phone, modifies the ownership, and then creates a tty connection. Finally it starts [[pppd]] with the gprs settings.<br />
<br />
<pre><br />
/etc/init.d/gsmd stop<br />
echo "1" > /sys/bus/platform/devices/neo1973-pm-gsm.0/power_on<br />
chown uucp.uucp /dev/ttySAC0<br />
stty -F /dev/ttySAC0 crtscts<br />
pppd call gprs<br />
</pre><br />
<br />
If you are having problems connecting ensure you have a good GSM signal and replace the last line with the below line. This will allow you to see the details of the connection on the console.<br />
<br />
<pre><br />
pppd debug nodetach call gprs<br />
</pre><br />
<br />
The config above will establish a persistant link over gprs. The battery will run low in less than an hour. See an example for an on-demand config below.<br />
<br />
=== Resolve.conf issues ===<br />
<br />
The latest build seems to have solved the following issue, it should be automatically updated by pppd.<br />
<br />
If you expeience DNS issues after connecting to DNS you may need a proper /etc/resolv.conf:<br />
<br />
<pre><br />
ln -sf /var/run/resolv.conf /etc<br />
</pre><br />
<br />
If needed put your nameserver for usb-net into /var/run/resolv.conf, not in /etc.<br />
<br />
The image does not set a correct resolv.conf. i do so with an<br />
<br />
<pre><br />
echo nameserver 192.168.0.201 > /var/run/resolv.conf<br />
</pre><br />
<br />
in the right place. because a post-up in /etc/network/interfaces is not supported i do that in /etc/network/if-up.d/08setupdns<br />
<br />
another problem is pppd's /etc/ppp/ip-down.d/92removedns which does not properly remove the link when shuting down ppp. my fix is this script:<br />
<br />
<pre><br />
#!/bin/sh<br />
ACTUALCONF=/var/run/resolv.conf<br />
PPPCONF=/var/run/ppp/resolv.conf<br />
if [ -f $PPPCONF ] ; then<br />
if [ -f $ACTUALCONF ] ; then<br />
if [ ! -h $ACTUALCONF -o ! "`readlink $ACTUALCONF 2>&1`" = "$PPPCONF" ] ; then<br />
mv $ACTUALCONF $ACTUALCONF.ppporig<br />
fi<br />
fi<br />
<br />
ln -sf $PPPCONF $ACTUALCONF<br />
fi<br />
</pre><br />
<br />
<br />
<br />
=== Some APN names for reference ===<br />
<br />
{| border="1"<br />
! Country<br />
! Carrier<br />
! Plan<br />
! APN/Phone<br />
! user/password if required<br />
! Working pppd scripts<br />
|-<br />
| Australia || Telstra || Any || telstra.internet || || use CHAP auth with "" secret ||<br />
|-<br />
| Australia || Virgin || Any || VirginInternet || ||<br />
|-<br />
| Australia || Virgin || Any || VirginBroadband || || Uses a captive portal to register the first time that did not work on 2008.12 - had to place inside a 3G tethered device on PC.<br />
|-<br />
| Australia || Vodafone || Any || vfinternet.au || ||<br />
|-<br />
| Austria|| Orange/One|| Any || web.one.at || web/web || works with gsm0710d under om2008.9: [http://freeyourphone.de/portal_v1/viewtopic.php?f=21&t=295 howto] - complete /etc/ppp/ directory with settings can be found here: [http://www.true-binary.com/wp-content/uploads/2008/11/orange_ppp.tar.gz orange_ppp.tar.gz]<br />
|-<br />
| Canada || Fido || Any, behind NAT || internet.fido.ca || fido/fido || use pap authetication<br />
proxy address 205.151.011.011:8080<br />
<br />
mdbus -s org.freesmartphone.frameworkd /org/freesmartphone/GSM/Device<br />
org.freesmartphone.GSM.PDP.ActivateContext internet.fido.ca fido<br />
fido<br />
|-<br />
| Canada || Rogers || Any, behind NAT || internet.com || wapuser1/wap || nameserver 207.181.101.4<br />
|-<br />
| Canada || Rogers || $7 unlimited browsing || goam.com || wapuser1/wap || Must use a proxy server 10.128.1.69:80 (or 172.25.0.107:80 or 208.200.67.150:8080)<br />
|-<br />
| Czech Republic || Vodafone || any postpaid || internet || must be empty || [[GPRS_FSO|Works with FSO]] Behind NAT.<br />
|-<br />
| Czech Republic || Vodafone || prepaid || ointernet || must be empty || [[GPRS_FSO|Works with FSO]] Behind NAT.<br />
|-<br />
| Czech Republic || 02 || Unlimited data plan || internet || must be empty || [[http://wiki.openmoko.org/index.php?title=Manually_using_GPRS&action=submit#Option_3:_Without_GSM_multiplexing_and_without_a_GUI Works with OM2008.9]] and with [[GPRS_FSO|FSO]].<br />
|-<br />
<br />
| Denmark || Telmore || || wap || must be empty ||<br />
|-<br />
| Denmark || Unotel || || internet || must be empty || Note: APN not tested<br />
|-<br />
| Estonia || Elisa || Any, behind NAT || internet || ||<br />
|-<br />
| Estonia || EMT || Any, behind NAT || internet.emt.ee || ||<br />
|-<br />
| Fiji || Digicel || Any || wap.digicelpacific.com || || nameserver 10.150.123.41 10.150.102.240 Must use a proxy server 10.150.122.12:8080<br />
|-<br />
| Finland || Elisa || unknown || internet || ||<br />
|-<br />
| Finland || Saunalahti || Any || internet.saunalahti || ||<br />
|-<br />
| Finland || Sonera || Any, behind NAT || internet || ||<br />
|-<br />
| Finland || Sonera || Any, public IP || prointernet || ||<br />
|-<br />
| France || SFR || 10.x.x.x? || websfr || || under tests<br />
|-<br />
| France || SFR || 10.x.x.x? || wapsfr<sup>[1]</sup>|| || under tests<br />
|-<br />
| France || Orange || ??? || orange || orange orange|| Work under OM2008.9 FDOM with UI ( gsm0710muxd )<br />
|-<br />
| France || Bouyges Telecom || Web & Mail || mmsbouygtel.com || || Work great under FSO. Just follow instructions at http://wiki.openmoko.org/wiki/GPRS_FSO. Proxy: 62.201.129.225:8080. For emails, only ports 25 (smtp) and 110 (pop) are allowed. (They use a transparent proxy ...)<br />
|-<br />
| Germany || Alice || || internet.partner1 || || worked (tested with zhone), [http://www.alice-dsl.de/alicehelp/index.jsp?showContentNodeId=1006&type=6#1006 source of information]<br />
|-<br />
| Germany || E-Plus || BASE (and others?) || internet.eplus.de || eplus gprs || [[Base pppd scripts]]<br />
|-<br />
| Germany || E-Plus || Blau.de || internet.eplus.de || NO_USERNAME eplus || http://wiki.openmoko.org/wiki/GPRS_FSO#Using_scripts<br />
|-<br />
| Germany || E-Plus || Simyo || internet.eplus.de || simyo simyo || [[simyo pppd scripts]]<br />
|-<br />
| Germany || T-Mobile || || internet.t-mobile.de || t-d1/gprs || nameserver 193.254.160.1<br />
|-<br />
| Germany || Vodafone || Any, behind NAT || web.vodafone.de || ||<br />
|-<br />
| Hungary || T-Mobile || Any || internet / *99***1# || must be empty || must disable chap auth: refuse-chap, refuse-mschap, refuse-mschap-v2<br />
|-<br />
| India || Vodafone|| Vodafone Live![tested on prepaid] || portalnmms || guest/guest[any but must] || gprs-on.sh and gprs-off.sh from http://wiki.openmoko.org/wiki/GPRS_FSO and proxy is 10.10.1.100 and port 9401 || ||<br />
|-<br />
| India || AirTel || MobileOffice || airtelgprs.com || ||<br />
|-<br />
| Ireland || Vodafone || || isp.vodafone.ie || vodafone/vodafone ||<br />
|-<br />
| Ireland || O2 || || open.internet || gprs/gprs ||<br />
|-<br />
| Israel || Orange || Base (and others?) || internet || orange/mobile54 ||<br />
|-<br />
| Italy || Wind || Superinternet, public IP || internet.wind / *99# || wind/wind (any string) || [[Wind pppd scripts]]<br />
|-<br />
| Netherlands || Telfort || Any || internet / *99***1# || must be emtpy || [http://www.quickim.com/support/gprs-settings.html#Netherlands internet access GPRS settings for your mobile phone and mobile operator]<br />
|-<br />
| Netherlands || Vodafone || Any || live.vodafone.com / *99***1# || || [[Vodafone pppd scripts]]<br />
|-<br />
| New Zealand || Vodafone || Any || live.vodafone.com / *99***2# || ||<br />
|-<br />
| Norway || Netcom || Any || internet.netcom.no || ||<br />
|-<br />
| Norway || Chess || Any || netcom || username="chess", password="chess" || [[GPRS FSO]]<br />
|-<br />
| Norway || OneCall || Any || internet || ||<br />
|-<br />
| Norway || Telenor || Any || telenor || ||<br />
|-<br />
| Russia || MTS || Any || internet.mts.ru / *99***1# || mts/mts ||<br />
|-<br />
| Russia || Megafon || Any || internet || ||<br />
|-<br />
| Russia || Tele2 || Any || internet.tele2.ru || ||<br />
|-<br />
| Russia || Beeline || Any || internet.beeline.ru || ||<br />
|-<br />
| Spain || Masmovil || Any || internetmas || ||<br />
|-<br />
| Spain || Simyo || Any || gprs-service.com / *99# || ||<br />
|-<br />
| Spain || Yoigo || Any || internet / *99***1 || must be empty || [[Yoigo pppd scripts]]<br />
|-<br />
| Sweden || Parlino || || internet.parlino.se || || [[GPRS_FSO|Works with FSO]]<br />
|-<br />
| Sweden || Telia || || online.telia.se || || [[GPRS_FSO|Works with FSO]]<br />
|-<br />
| Switzerland || Sunrise || || internet || ||<br />
|-<br />
| Switzerland || Sunrise || MMS || mms.sunrise.ch || ||<br />
|-<br />
| Switzerland || Swisscom || e.g. Natel Basic Liberty, behind NAT || gprs.swisscom.ch || ||<br />
|-<br />
| Taiwan || Taiwan Mobile || Prepaid| internet || || shr-settings (FSO)<br />
|-<br />
| UK || T-Mobile|| || general.t-mobile.uk || ||<br />
|-<br />
| UK || Virgin || || goto.virginmobile.uk || user ||<br />
|-<br />
| UK || [http://www.filesaveas.com/gprs.html other providers] || || || ||<br />
|-<br />
| USA || AT&T || Unlimited data plan (attached to pay-as-you-go voice plan) || wap.cingular / *99***1# || WAP@CINGULARGPRS.COM/CINGULAR1 ||<br />
|-<br />
| USA || Cincinnati Bell Wireless || || wap.gocbw.com || cbw ||<br />
|-<br />
| USA || Cingular (AT&T) || Less than full internet || wap.cingular / may require *99***1# || ||<br />
|-<br />
| USA || T-mobile || Anything less than full internet || wap.voicestream.com || || Need to set proxy to 216.155.165.50 T-Mobile docs say "216.155.165.050". 050 octal = 40 decimal and will *not* work. I think port is 8080 or 9100. No luck w/ pppd scripts. GPRS_FSO directions work under FSO though.<br />
|-<br />
| USA || T-mobile || Regular internet plan || internet2.voicestream.com || || [[T-Mobile pppd scripts]]<br />
|-<br />
| USA || T-mobile || "VPN" internet plan || internet3.voicestream.com || ||<br />
|-<br />
| Venezuela || Digitel || Pre- y post-pago || gprsweb.digitel.ve || ||<br />
|-<br />
|}<br />
<br />
[1] connected through a WAP proxy (slower, but the only way to access Vodafone live! and SFR portal)<br />
<br />
[2] Unless stated otherwise the phone number to call is "*99#"<br />
<br />
Also see Ross Barkman's page for a detailed list of more [http://www.taniwha.org.uk/gprs.html global GPRS providers APN details]<br />
<br />
== Starting pppd automatically ==<br />
<br />
Once you have finished debugging your gprs-connect-chat and gprs options files, you may wish to automatically connect whenever needed and hang up when finished. Make sure you understand the impact of this change to your carrier plan billing. This is not recommended unless you have a large-use or unlimited data plan. These scripts do NOT prompt you before connecting.<br />
<br />
=== On-demand connection settings ===<br />
<br />
Additional settings are needed if you want the actual connection to be up only while there is traffic. In the 'gprs' file above, insert the following, making sure 'nodetach' is commented out. If 'nodetach' is on, the boot process will stop when it starts pppd. Also remove the option 'persist' mentioned above.<br />
<br />
<pre><br />
<br />
# Wait until needed before connecting<br />
demand<br />
<br />
# Disconnect if idle for given amount of seconds<br />
idle 20<br />
<br />
</pre><br />
<br />
=== Start on boot (method 1) ===<br />
<br />
Add the following definition to /etc/network/interfaces:<br />
<pre><br />
auto ppp0<br />
iface ppp0 inet ppp<br />
provider gprs<br />
</pre><br />
<br />
That should be it. Now you can use 'ifup ppp0' and 'ifdown ppp0' manually too.<br />
<br />
=== Start on boot (method 2) ===<br />
<br />
Create the following file as /etc/ppp/ppp_on_boot (needs chmod +x). The /etc/init.d/ppp script will call it to set up the daemon.<br />
<pre><br />
#!/bin/sh<br />
#<br />
# Rename this file to ppp_on_boot and pppd will be fired up as<br />
# soon as the system comes up, connecting to `provider'.<br />
#<br />
# If you also make this file executable, and replace the first line<br />
# with just "#!/bin/sh", the commands below will be executed instead.<br />
#<br />
<br />
# The location of the ppp daemon itself (shouldn't need to be changed)<br />
PPPD=/usr/sbin/pppd<br />
<br />
# The default provider to connect to<br />
$PPPD call gprs<br />
<br />
# Additional connections, which would just use settings from<br />
# /etc/ppp/options.<tty><br />
#$PPPD ttyS0<br />
#$PPPD ttyS1<br />
#$PPPD ttyS2<br />
#$PPPD ttyS3<br />
</pre><br />
<br />
<br />
Finally, you need to add the /etc/init.d/ppp script to the init process by creating symbolic links from the appropriate directories. I chose the following:<br />
<br />
<pre><br />
/etc/rc0.d/K25ppp<br />
/etc/rc1.d/K45ppp<br />
/etc/rc2.d/S45ppp<br />
/etc/rc3.d/S45ppp<br />
/etc/rc4.d/S45ppp<br />
/etc/rc5.d/S45ppp<br />
/etc/rc6.d/K25ppp<br />
</pre><br />
<br />
= Qt Extended =<br />
If password/username is not mandotory for your provider, input anything e.g. x. Works fine with 4.4.2.<br />
<br />
= Sharing the GPRS connection with a computer =<br />
<br />
See [[Tethering]]<br />
<br />
== See also ==<br />
* [[pppd]]<br />
* [[Manually using GSM]]<br />
* [[Manually using Bluetooth]]<br />
* [[GPRS FSO]]<br />
{{Languages|Manually_using_GPRS}}<br />
<br />
[[Category:Application Developer]]<br />
[[Category:Networking]]<br />
[[Category:GSM]]</div>Lakshmikanth