Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-15 Thread arne anka
On Thu, 14 Aug 2008 18:56:11 +0200, Michael 'Mickey' Lauer  
[EMAIL PROTECTED] wrote:

 org.freedesktop.DBus.Error.AccessDenied:

according to google there seem to be a few messages with a similar problem  
-- dbus.freedesktop.org mentions that dbus includes security policies but  
nothing more. security by obscurity, i guess ...
anyway, there was one report from ubuntu stating that restarting dbus  
fixed the issue, but probably because he did some upgrading.
else look into /etc/debus-1/ and check the files there, it seems like  
there are policy definitions.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-14 Thread Nathan Kinkade
2008/8/12 xaos x [EMAIL PROTECTED]:
 I actually finally got it working by using the article from freeyourphone 
 that uses the multiplexing package.

 http://freeyourphone.de/portal_v1/viewtopic.php?f=21t=295start=0st=0sk=tsd=asid=dda5c6cbf5850182c786488123f056ce

 It will receive calls and make calls while connected to GPRS using this setup.

 -Tom

Did you have to do anything special to get gsm0710muxd working?  I
have followed the directions at that page, but now qpe is crashing on
startup.  When I try to run gprson I get:

Error org.freedesktop.DBus.Error.ServiceUnknown: The name
org.pyneo.muxer was not provided by any .service files

I'm not sure if that means I'm missing a package, or maybe I misread
something.  Also, the gsm0710muxd package didn't contain an init
script, so I had to make one by hand, and perhaps I'm not passing the
right arguments.

Any tips on what you might have done above and beyond the article
would be great.

Thanks,

Nathan

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-14 Thread Michael 'Mickey' Lauer
FSO is using dbus system activation to start gsm0710muxd. Take a peek at the 
necessary scripts in our package.

-- 
:M:

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-14 Thread Benedikt Schindler
if installed Om 2008.8 i didn't have any problems with the howto for gprs.
now i have reinstalled it and i get the same error.

i also get this lines if i type mdbus -s org.pyneo

[EMAIL PROTECTED]:~# mdbus -s org.pyneo
/
Traceback (most recent call last):
  File /usr/bin/mdbus, line 391, in module
c.listObjects( busname )
  File /usr/bin/mdbus, line 186, in listObjects
self._listChildren( busname, '/' )
  File /usr/bin/mdbus, line 242, in _listChildren
data = process_introspection_data( obj.Introspect() )
  File /usr/lib/python2.5/site-packages/dbus/proxies.py, line 68, in 
__call__
return self._proxy_method(*args, **keywords)
  File /usr/lib/python2.5/site-packages/dbus/proxies.py, line 140, in 
__call__
**keywords)
  File /usr/lib/python2.5/site-packages/dbus/connection.py, line 607, 
in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: 
A security policy in place prevents this sender from sending this 
message to this recipient, see message bus configuration file (rejected 
message had interface (unset) member Introspect error name (unset) 
destination :1.20)

same result if i try to connect to anny of the other destination listed 
under mdbus -s 

Nathan Kinkade schrieb:
 2008/8/12 xaos x [EMAIL PROTECTED]:
   
 I actually finally got it working by using the article from freeyourphone 
 that uses the multiplexing package.

 http://freeyourphone.de/portal_v1/viewtopic.php?f=21t=295start=0st=0sk=tsd=asid=dda5c6cbf5850182c786488123f056ce

 It will receive calls and make calls while connected to GPRS using this 
 setup.

 -Tom
 

 Did you have to do anything special to get gsm0710muxd working?  I
 have followed the directions at that page, but now qpe is crashing on
 startup.  When I try to run gprson I get:

 Error org.freedesktop.DBus.Error.ServiceUnknown: The name
 org.pyneo.muxer was not provided by any .service files

 I'm not sure if that means I'm missing a package, or maybe I misread
 something.  Also, the gsm0710muxd package didn't contain an init
 script, so I had to make one by hand, and perhaps I'm not passing the
 right arguments.

 Any tips on what you might have done above and beyond the article
 would be great.

 Thanks,

 Nathan

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

   


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-14 Thread Michael 'Mickey' Lauer
Am Donnerstag 14 August 2008 18:23:04 schrieb Benedikt Schindler:
 if installed Om 2008.8 i didn't have any problems with the howto for gprs.
 now i have reinstalled it and i get the same error.

 i also get this lines if i type mdbus -s org.pyneo

 [EMAIL PROTECTED]:~# mdbus -s org.pyneo
 /
 Traceback (most recent call last):
   File /usr/bin/mdbus, line 391, in module
 c.listObjects( busname )
   File /usr/bin/mdbus, line 186, in listObjects
 self._listChildren( busname, '/' )
   File /usr/bin/mdbus, line 242, in _listChildren
 data = process_introspection_data( obj.Introspect() )
   File /usr/lib/python2.5/site-packages/dbus/proxies.py, line 68, in
 __call__
 return self._proxy_method(*args, **keywords)
   File /usr/lib/python2.5/site-packages/dbus/proxies.py, line 140, in
 __call__
 **keywords)
   File /usr/lib/python2.5/site-packages/dbus/connection.py, line 607,
 in call_blocking
 message, timeout)
 dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied:
 A security policy in place prevents this sender from sending this
 message to this recipient, see message bus configuration file (rejected
 message had interface (unset) member Introspect error name (unset)
 destination :1.20)

 same result if i try to connect to anny of the other destination listed
 under mdbus -s 

I'm afraid something wrt. dbus default policies change. I have the same 
problem on my development host, but not on any FSO image. Did not find out 
what's wrong. Anyone?


-- 
:M:

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-13 Thread C R McClenaghan
Thanks for the response, the ticket is number 88.

Chris

On Aug 12, 2008, at 6:39 AM, Michael 'Mickey' Lauer wrote:

 Hi Chris,

 Am Montag 11 August 2008 18:39:14 schrieb C R McClenaghan:
 There have now been several posts related to the successful use of
 GPRS on one or more of the software platforms - OM 200*.* and FSO -
 but not much discussion of how to multiplex voice and data calls. The
 FSO platform through it's mdbus/dbus interface seems to accomplish
 this.

 Yeah. We are very satisfied with the performance of gsm0710muxd.

 [1] below describes how to do so with a prior release of ASU. Is
 the multiplexer referenced in [1] - gsm0710muxd - now part of OM
 2008.8 and should the direct use of /dev/ttySAC0 be avoided?

 No, Om2008.8 is using the Qtopia gsm subsystem, which brings its own
 multiplexer (which was disabled for the Neo last time i checked, but  
 i don't
 know the current status).

 Is the
 multiplexer referenced in [1] and apparently running on FSO the means
 by which data and voice are multiplexed in FSO?

 Yes.

 In FSO, if gsm0710muxd
 is the running daemon, what is the role of gsmd?

 No one is working on gsmd any longer. Some of the architectural  
 decisions made
 right in the beginning of the project have proven unfixable. The  
 work of gsmd
 is getting done by the ogsmd subsystem which is part of the  
 framework daemon.

 Is gsmd active during
 voice calls only?

 frameworkd.ogsmd is taking care about everything non-PPP. pppd takes  
 care
 about the actual data on a GPRS, however ogsmd takes care of  
 configuring pppd
 and restoring configuration once the GPRS connection has been setup/ 
 taken
 down.

 Finally, with FSO and the mdbus/dbus interface , how
 can I set other connection parameters - for example, speed, timeouts,
 reconnect?

 Which parameters exactly do you want to configure? We already  
 configure it to
 have maximum throughput.

 Oh, yea - how can either a dund or pand connection event trigger gprs
 for laptop tethering?

 Please open an 'enhancement' ticket (trac.freesmartphone.org).

 -- 
 :M:


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-12 Thread Michael 'Mickey' Lauer
Hi Chris,

Am Montag 11 August 2008 18:39:14 schrieb C R McClenaghan:
 There have now been several posts related to the successful use of
 GPRS on one or more of the software platforms - OM 200*.* and FSO -
 but not much discussion of how to multiplex voice and data calls. The
 FSO platform through it's mdbus/dbus interface seems to accomplish
 this.

Yeah. We are very satisfied with the performance of gsm0710muxd.

 [1] below describes how to do so with a prior release of ASU. Is
 the multiplexer referenced in [1] - gsm0710muxd - now part of OM
 2008.8 and should the direct use of /dev/ttySAC0 be avoided?

No, Om2008.8 is using the Qtopia gsm subsystem, which brings its own 
multiplexer (which was disabled for the Neo last time i checked, but i don't 
know the current status).

 Is the 
 multiplexer referenced in [1] and apparently running on FSO the means
 by which data and voice are multiplexed in FSO?

Yes.

 In FSO, if gsm0710muxd
 is the running daemon, what is the role of gsmd?

No one is working on gsmd any longer. Some of the architectural decisions made 
right in the beginning of the project have proven unfixable. The work of gsmd 
is getting done by the ogsmd subsystem which is part of the framework daemon.

 Is gsmd active during
 voice calls only?

frameworkd.ogsmd is taking care about everything non-PPP. pppd takes care 
about the actual data on a GPRS, however ogsmd takes care of configuring pppd 
and restoring configuration once the GPRS connection has been setup/taken 
down.

 Finally, with FSO and the mdbus/dbus interface , how
 can I set other connection parameters - for example, speed, timeouts,
 reconnect?

Which parameters exactly do you want to configure? We already configure it to 
have maximum throughput.

 Oh, yea - how can either a dund or pand connection event trigger gprs
 for laptop tethering?

Please open an 'enhancement' ticket (trac.freesmartphone.org).

-- 
:M:

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-12 Thread xaos x
I actually finally got it working by using the article from freeyourphone that 
uses the multiplexing package. 

http://freeyourphone.de/portal_v1/viewtopic.php?f=21t=295start=0st=0sk=tsd=asid=dda5c6cbf5850182c786488123f056ce

It will receive calls and make calls while connected to GPRS using this setup.

-Tom

- Original Message -
From: Nathan Kinkade [EMAIL PROTECTED]
To: List for Openmoko community discussion community@lists.openmoko.org
Sent: Monday, August 11, 2008 11:23:23 PM GMT -05:00 US/Canada Eastern
Subject: Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008/8/11 xaos x [EMAIL PROTECTED]:
 I can get this working in om2007.2, by disabling gsmd, and performing the 
 other steps in the wiki, but it just doesn't work in 2008.8. I get the 
 connect script failed message. Perhaps there are some other packages you have 
 installed? or are you running a pretty vanilla install of 2008.8 with little 
 modification? This is stumping me.

 -Tom

I'm running a vanilla install of 2008.8.  I'm using the jffs2 and
kernel images from here:

http://downloads.openmoko.org/releases/Om2008.8/

I haven't installed much of anything, or made any fundamental changes
to the configuration.  I did it on a fresh boot.  One thing to note,
and this is related to Chris's earlier post, connecting with GPRS
irrevocably breaks GSM, and no amount of changing the power state of
the chip would recover it.  Actually not even a reboot would bring the
use of the phone/dialer back.  I had to halt the system and then boot
it.  Presumably rebooting doesn't power down the chip and so it stays
in some sort of inconsistent state.  If anyone knows how to recover
the use of GSM after using GPRS, that would be useful.

My only suggestion at the moment would be to totally power down the
device, get a fresh boot and then trying pon tmobile before doing
anything else, especially before using the phone.

Nathan

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-12 Thread Dylan Semler
On Tue, Aug 12, 2008 at 12:14 AM, Nathan Kinkade [EMAIL PROTECTED] wrote:

 Dylan,

 I have got that error before, too.  Just for the sake of testing, try this:

 1) Create/modify the files precisely like I posted them in the first
 messages
 2) Halt your Freerunner completely.
 3) Boot the Freerunner from the halted state.
 4) Get and SSH over USB connection in one terminal and launch logread -f
 5) Wait for the flurry of boot messages to die down
 6) Open another SSH connection in a new terminal.
 7) Run # pon tmobile
 8) Switch to the terminal running logread and see what happens.


Hey, thanks for the help.  I'm not exactly sure what you mean by halt.  Do
you mean poweroff or suspend?
After booting in running logread -f, (before pon tmobile), the log is filled
with

Aug 14 02:01:10 om-gta02 user.notice root: AtChat :  T : AT+CMGL=4
Aug 14 02:01:10 om-gta02 user.notice root: AtChat :  F : +CMS ERROR: 321
Aug 14 02:01:11 om-gta02 user.notice root: AtChat :  T : AT+CMGL=4
Aug 14 02:01:11 om-gta02 user.notice root: AtChat :  F : +CMS ERROR: 321
Aug 14 02:01:11 om-gta02 user.notice root: AtChat :  T : AT+CMGL=4
Aug 14 02:01:11 om-gta02 user.notice root: AtChat :  F : +CMS ERROR: 321
Aug 14 02:01:12 om-gta02 user.notice root: AtChat :  T : AT+CMGL=4

Then when I type

pon tmobile

those messages stop and I get

Aug 14 02:01:25 om-gta02 user.info kernel: [  312.255000] PPP generic driver
version 2.4.2
Aug 14 02:01:25 om-gta02 daemon.notice pppd[1520]: pppd 2.4.3 started by
root, uid 0
Aug 14 02:01:25 om-gta02 user.notice root: AtChat :  T : AT+CMGL=4
Aug 14 02:01:25 om-gta02 user.notice root: AtChat :  F : +CMS ERROR: 321
Aug 14 02:01:26 om-gta02 user.warn kernel: [  313.64] AR6000 scan
complete: 0
Aug 14 02:01:28 om-gta02 user.notice root: AtChat :  ? : OK
Aug 14 02:01:39 om-gta02 user.warn kernel: [  326.28] WMI event ID :
0x1004, len = 276 too big for IWEVCUSTOM (max=256)
Aug 14 02:01:40 om-gta02 user.warn kernel: [  327.30] AR6000 scan
complete: 0
Aug 14 02:01:42 om-gta02 user.warn kernel: [  329.645000] AR6000 scan
complete: 0
Aug 14 02:01:43 om-gta02 user.notice root: AtChat :  ? : OK
Aug 14 02:01:56 om-gta02 user.warn kernel: [  343.30] AR6000 scan
complete: 0
Aug 14 02:01:58 om-gta02 daemon.err pppd[1520]: Connect script failed

I seem to get the kernel scan and WMI event messages continuously,
independent of GPRS state.  They continue after the Connect script failed
line.

None of those logs are too revealing to me, any ideas?  Thanks for the help
thus far.

-- 
Dylan

Type faster. Use Dvorak:
http://dvzine.org
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-11 Thread Norbert Hartl
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
# clientserver  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:
 
 -
 
 [EMAIL PROTECTED]:~# 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
 
 -
 
 [EMAIL PROTECTED]:~# 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
 
 -
 
 [EMAIL PROTECTED]:~# 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
 
 -
 
 [EMAIL PROTECTED]:~# cat /etc/ppp/pap-secrets
 # Secrets for authentication using PAP
 # client  server  secret  IP addresses
 *   * *
 -
 
 [EMAIL PROTECTED]:~# pon tmobile
 [EMAIL PROTECTED]:~# logread -f
 Aug  9 21:40:52 om-gta02 daemon.notice pppd[1521]: pppd 2.4.3 started
 

Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-11 Thread C R McClenaghan
There have now been several posts related to the successful use of  
GPRS on one or more of the software platforms - OM 200*.* and FSO -  
but not much discussion of how to multiplex voice and data calls. The  
FSO platform through it's mdbus/dbus interface seems to accomplish  
this. [1] below describes how to do so with a prior release of ASU. Is  
the multiplexer referenced in [1] - gsm0710muxd - now part of OM  
2008.8 and should the direct use of /dev/ttySAC0 be avoided? Is the  
multiplexer referenced in [1] and apparently running on FSO the means  
by which data and voice are multiplexed in FSO? In FSO, if gsm0710muxd  
is the running daemon, what is the role of gsmd? Is gsmd active during  
voice calls only? Finally, with FSO and the mdbus/dbus interface , how  
can I set other connection parameters - for example, speed, timeouts,  
reconnect?

Thoughts? Suggestions?

Oh, yea - how can either a dund or pand connection event trigger gprs  
for laptop tethering?

Chris

[1] 
http://freeyourphone.de/portal_v1/viewtopic.php?f=21t=295start=0st=0sk=tsd=asid=dda5c6cbf5850182c786488123f056ce


On Aug 11, 2008, at 3:13 AM, Norbert Hartl wrote:

 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:

 -

 [EMAIL PROTECTED]:~# 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

 -

 [EMAIL PROTECTED]:~# 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\
   

Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-11 Thread xaos x
I can get this working in om2007.2, by disabling gsmd, and performing the other 
steps in the wiki, but it just doesn't work in 2008.8. I get the connect script 
failed message. Perhaps there are some other packages you have installed? or 
are you running a pretty vanilla install of 2008.8 with little modification? 
This is stumping me.

-Tom

- Original Message -
From: Nathan Kinkade [EMAIL PROTECTED]
To: List for Openmoko community discussion community@lists.openmoko.org
Sent: Saturday, August 9, 2008 5:51:00 PM GMT -05:00 US/Canada Eastern
Subject: GPRS working (somewhat) with T-Mobile and Freerunner

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:

-

[EMAIL PROTECTED]:~# 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

-

[EMAIL PROTECTED]:~# 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

-

[EMAIL PROTECTED]:~# 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

-

[EMAIL PROTECTED]:~# cat /etc/ppp/pap-secrets
# Secrets for authentication using PAP
# clientserver  secret  IP addresses
*   * *
-

[EMAIL PROTECTED]:~# pon tmobile
[EMAIL PROTECTED]:~# 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

Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-11 Thread xaos x
sorry, i meant for this to be offlist. doh!

-Tom

- Original Message -
From: xaos x [EMAIL PROTECTED]
To: List for Openmoko community discussion community@lists.openmoko.org
Sent: Monday, August 11, 2008 2:29:27 PM GMT -05:00 US/Canada Eastern
Subject: Re: GPRS working (somewhat) with T-Mobile and Freerunner

I can get this working in om2007.2, by disabling gsmd, and performing the other 
steps in the wiki, but it just doesn't work in 2008.8. I get the connect script 
failed message. Perhaps there are some other packages you have installed? or 
are you running a pretty vanilla install of 2008.8 with little modification? 
This is stumping me.

-Tom

- Original Message -
From: Nathan Kinkade [EMAIL PROTECTED]
To: List for Openmoko community discussion community@lists.openmoko.org
Sent: Saturday, August 9, 2008 5:51:00 PM GMT -05:00 US/Canada Eastern
Subject: GPRS working (somewhat) with T-Mobile and Freerunner

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:

-

[EMAIL PROTECTED]:~# 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

-

[EMAIL PROTECTED]:~# 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

-

[EMAIL PROTECTED]:~# 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

-

[EMAIL PROTECTED]:~# cat /etc/ppp/pap-secrets
# Secrets for authentication using PAP
# clientserver  secret  IP addresses
*   * *
-

[EMAIL PROTECTED]:~# pon tmobile
[EMAIL PROTECTED]:~# 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

Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-11 Thread Dylan Semler
On Mon, Aug 11, 2008 at 1:29 PM, xaos x [EMAIL PROTECTED] wrote:

 I can get this working in om2007.2, by disabling gsmd, and performing the
 other steps in the wiki, but it just doesn't work in 2008.8. I get the
 connect script failed message. Perhaps there are some other packages you
 have installed? or are you running a pretty vanilla install of 2008.8 with
 little modification? This is stumping me.


I too am getting Connect script failed.  I got it as well with 2007.2.

# pppd debug nodetach call tmobile
timeout set to 15 seconds
send (\K\K\K\d+++ATH^M)
expect (OK)
alarm
send (AT^M)
expect (OK)
alarm
Failed
Connect script failed

-- 
Dylan

Type faster. Use Dvorak:
http://dvzine.org
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-11 Thread Nathan Kinkade
2008/8/11 xaos x [EMAIL PROTECTED]:
 I can get this working in om2007.2, by disabling gsmd, and performing the 
 other steps in the wiki, but it just doesn't work in 2008.8. I get the 
 connect script failed message. Perhaps there are some other packages you have 
 installed? or are you running a pretty vanilla install of 2008.8 with little 
 modification? This is stumping me.

 -Tom

I'm running a vanilla install of 2008.8.  I'm using the jffs2 and
kernel images from here:

http://downloads.openmoko.org/releases/Om2008.8/

I haven't installed much of anything, or made any fundamental changes
to the configuration.  I did it on a fresh boot.  One thing to note,
and this is related to Chris's earlier post, connecting with GPRS
irrevocably breaks GSM, and no amount of changing the power state of
the chip would recover it.  Actually not even a reboot would bring the
use of the phone/dialer back.  I had to halt the system and then boot
it.  Presumably rebooting doesn't power down the chip and so it stays
in some sort of inconsistent state.  If anyone knows how to recover
the use of GSM after using GPRS, that would be useful.

My only suggestion at the moment would be to totally power down the
device, get a fresh boot and then trying pon tmobile before doing
anything else, especially before using the phone.

Nathan

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-11 Thread Nathan Kinkade
2008/8/11 Dylan Semler [EMAIL PROTECTED]:
snip

 I too am getting Connect script failed.  I got it as well with 2007.2.

 # pppd debug nodetach call tmobile
 timeout set to 15 seconds
 send (\K\K\K\d+++ATH^M)
 expect (OK)
 alarm
 send (AT^M)
 expect (OK)
 alarm
 Failed
 Connect script failed

 --
 Dylan

Dylan,

I have got that error before, too.  Just for the sake of testing, try this:

1) Create/modify the files precisely like I posted them in the first messages
2) Halt your Freerunner completely.
3) Boot the Freerunner from the halted state.
4) Get and SSH over USB connection in one terminal and launch logread -f
5) Wait for the flurry of boot messages to die down
6) Open another SSH connection in a new terminal.
7) Run # pon tmobile
8) Switch to the terminal running logread and see what happens.

This much worked for me, but a cold boot was necessary for some reason.

I've been playing around with it, and I definitely have some sort of
connection because I can point the browser to a site like
http://wap.myvoicestream.com and I at least get an error page page
telling me that my account hasn't been configured.  Maybe T-Mobile
quit offering any free WAP services, or else I just don't know the
right proxy settings.

I'm content GPRS is now working for me.  The next step will be to
figure out a way to switch between phone functionality and GPRS
without a halt/restart.  And even better would be multiplexing of the
voice and data so that one could still receive calls while connected
via GPRS.

Nathan

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


GPRS working (somewhat) with T-Mobile and Freerunner

2008-08-09 Thread Nathan Kinkade
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:

-

[EMAIL PROTECTED]:~# 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

-

[EMAIL PROTECTED]:~# 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

-

[EMAIL PROTECTED]:~# 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

-

[EMAIL PROTECTED]:~# cat /etc/ppp/pap-secrets
# Secrets for authentication using PAP
# clientserver  secret  IP addresses
*   * *
-

[EMAIL PROTECTED]:~# pon tmobile
[EMAIL PROTECTED]:~# 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

-

[EMAIL PROTECTED]:~# route -n
Kernel IP routing table
Destination Gateway