GPRS working (somewhat) with T-Mobile and Freerunner

Norbert Hartl norbert at hartl.name
Mon Aug 11 12:13:03 CEST 2008


I gave it a try, too! I have a t-mobile flat rate which I use
from my laptop. I just copied the file to the freerunner altered
/etc/group as you supposed.

My files look like this:

/etc/ppp/peers/t-mobile
-----------------------
user "tm"
connect "/usr/sbin/chat -v -f /etc/ppp/connect-t-mobile"
/dev/ttySAC0
persist
modem
noipdefault
usepeerdns
defaultroute
ipcp-accept-local
ipcp-accept-remote
lock
crtscts

/etc/ppp/connect-t-mobile
-------------------------

ABORT 'BUSY' 
ABORT 'NO CARRIER' 
ABORT 'ERROR' 
'' AT 
OK AT+CGATT=1 
OK AT+CGDCONT=1,"IP","internet.t-mobile" 
OK      ATDT*99***1#

/etc/ppp/pap-secrets
--------------------
# Secrets for authentication using PAP
# client	server	secret			IP addresses
*	*	""	*
"tm"	*	"tm"	*

That's all. I connected it yesterday and it worked. I used tangogps
along with it and it downloaded the tiles automatically without having
a usb cable connected. This is great! Gprs indeed feels slow and 
sluggish.

The user tm in my files is arbitrarily chosen. It is said it's just 
better to connect with supplying a user and password.

Norbert


08-09 at 14:51 -0700, Nathan Kinkade wrote:
> I just wanted to share with the community that I have somewhat got
> GPRS working T-Mobile on a Freerunner (GTA02) with the August 8
> release of Om2008.8.  I'm going to paste a bunch of stuff in here, so
> sorry if this email is pretty confused and long.  I need to say up
> front that I don't have any data plan with T-Mobile.  I just went to a
> T-Mobile store yesterday and bought a SIM chip (US$10) and a pre-paid
> plan.  The guy behind the counter asked me what the phone was that I
> had.  I explained a little, and then he mentioned something about me
> being able to get free data service, that T-Mobile didn't advertise
> it, and that it wasn't worth their time to track down who was using it
> ... I don't know.  He just wrote on my receipt "wap.voicestream.com".
> 
> I should also note that I didn't have to modify
> /sys/bus/platform/devices/neo1973-pm-gsm.0/power_on, or chown
> /dev/ttySAC0, or even do "stty -F /dev/ttySAC0 crtscts".  However, in
> relation to chowning /dev/ttySAC0, I *did* modify /etc/group and add
> the users "uucp" and "ppp" to the group "dialout", which by default
> has write permissions on /dev/ttySAC0.
> 
> It seems to connect, bring up the ppp0 interface, and get and
> configure a number of TCP/IP settings.  Only DNS name resolution seems
> to work, but this is probably just because I don't have a data plan,
> or haven't figured out what ports are open to the outside world or
> what proxy may need to be used.  Any input, or suggestions would be
> great.
> 
> What I've done required very little modification from this wiki
> article: http://wiki.openmoko.org/wiki/GPRS.  The only files I edited
> or created were the ones you see below.  Get ready for a cut-n-paste
> fest:
> 
> -------------------------------------------------------------------------------------
> 
> root at om-gta02:~# cat /etc/ppp/peers/tmobile
> lock
> /dev/ttySAC0 115200
> crtscts
> connect /etc/ppp/tmobile-connect
> disconnect /etc/ppp/tmobile-disconnect
> hide-password
> usepeerdns
> ipcp-accept-local
> noauth
> noipdefault
> novj
> novjccomp
> defaultroute
> replacedefaultroute
> # Reopen the connection if it fails, pausing for a while.
> persist
> holdoff 15
> # Check the line every 20 seconds and presume
> # the peer is gone if no reply for 4 times.
> lcp-echo-interval 20
> lcp-echo-failure 4
> 
> -------------------------------------------------------------------------------------
> 
> root at om-gta02:~# cat /etc/ppp/tmobile-connect
> #!/bin/sh -e
> exec chat -v -S -s\
>         TIMEOUT 15\
>         "" "\K\K\K\d+++ATH"\
>         OK-AT-OK ATZ\
>         OK ATE1\
>         ABORT BUSY\
>         ABORT DELAYED\
>         ABORT "NO ANSWER"\
>         ABORT "NO DIALTONE"\
>         ABORT VOICE\
>         ABORT ERROR\
>         ABORT RINGING\
>         TIMEOUT 60\
>         OK AT+CFUN=1\
>         OK AT+COPS\
>         OK AT+CGDCONT=1,\"IP\",\"wap.voicestream.com\"\
> 	OK ATD*99***1#
>         CONNECT /n/d
> 
> -------------------------------------------------------------------------------------
> 
> root at om-gta02:~# cat /etc/ppp/tmobile-disconnect
> #!/bin/sh -e
> /usr/sbin/chat -v\
> 	ABORT OK\
> 	ABORT BUSY\
> 	ABORT DELAYED\
> 	ABORT "NO ANSWER"\
> 	ABORT "NO CARRIER"\
> 	ABORT "NO DIALTONE"\
> 	ABORT VOICE\
> 	ABORT ERROR\
> 	ABORT RINGING\
> 	TIMEOUT 12\
> 	"" "\K\K\K\d+++ATH"\
> 	"NO CARRIER-AT-OK" "\c"
> 
> -------------------------------------------------------------------------------------
> 
> root at om-gta02:~# cat /etc/ppp/pap-secrets
> # Secrets for authentication using PAP
> # client	server	secret			IP addresses
> *               *       ""                      *
> -------------------------------------------------------------------------------------
> 
> root at om-gta02:~# pon tmobile
> root at om-gta02:~# logread -f
> Aug  9 21:40:52 om-gta02 daemon.notice pppd[1521]: pppd 2.4.3 started
> by root, uid 0
> Aug  9 21:41:02 om-gta02 daemon.info pppd[1521]: Serial connection established.
> Aug  9 21:41:03 om-gta02 daemon.info pppd[1521]: Using interface ppp0
> Aug  9 21:41:03 om-gta02 daemon.notice pppd[1521]: Connect: ppp0 <-->
> /dev/ttySAC0
> Aug  9 21:41:10 om-gta02 daemon.notice pppd[1521]: PAP authentication succeeded
> Aug  9 21:41:11 om-gta02 user.info kernel: [  359.205000] PPP BSD
> Compression module registered
> Aug  9 21:41:11 om-gta02 user.info kernel: [  359.815000] PPP Deflate
> Compression module registered
> Aug  9 21:41:13 om-gta02 daemon.warn pppd[1521]: Could not determine
> remote IP address: defaulting to 10.64.64.64
> Aug  9 21:41:13 om-gta02 daemon.notice pppd[1521]: replacing old
> default route to usb0 [192.168.0.200]
> Aug  9 21:41:13 om-gta02 daemon.notice pppd[1521]: local  IP address
> 10.171.211.116
> Aug  9 21:41:13 om-gta02 daemon.notice pppd[1521]: remote IP address 10.64.64.64
> Aug  9 21:41:13 om-gta02 daemon.notice pppd[1521]: primary   DNS
> address 66.94.9.120
> Aug  9 21:41:13 om-gta02 daemon.notice pppd[1521]: secondary DNS
> address 66.94.25.120
> 
> -------------------------------------------------------------------------------------
> 
> root at om-gta02:~# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 10.64.64.64     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 usb0
> 0.0.0.0         10.64.64.64     0.0.0.0         UG    0      0        0 ppp0
> 
> 
> -------------------------------------------------------------------------------------
> 
> root at om-gta02:~# nslookup openmoko.org
> Server:    66.94.9.120
> Address 1: 66.94.9.120 120.9.94.66.in-addr.arpa
> 
> Name:      openmoko.org
> Address 1: 88.198.58.17 bhavani.openmoko.org
> 
> -------------------------------------------------------------------------------------
> 
> Hope this is helpful to someone.
> 
> Nathan
> 
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community





More information about the community mailing list