Ticket #140 (closed defect: fixed)
GPRS doesn't work in M3
| Reported by: | dylan.semler@… | Owned by: | mickey |
|---|---|---|---|
| Priority: | major | Milestone: | milestone4 |
| Component: | framework/ogsmd | Version: | |
| Keywords: | GPRS | Cc: |
Description
This is my first ticket so hopefully it's useful. In M2 I was able to use the short shell script provided on the wiki[1] to establish a GPRS connection through the framework. This no longer work in M3.
[1] http://wiki.openmoko.org/wiki/GPRS_FSO#Until_there.27s_a_GUI
Attachments
Change History
Changed 3 years ago by anonymous
-
attachment
frameworkd.log
added
comment:1 Changed 3 years ago by anonymous
- Component changed from documentation to framework/general
comment:2 Changed 3 years ago by mickey
- Component changed from framework/general to framework/ogsmd
I see this line here:
ogsmd.pdp INFO configuring ppp for user 'x' w/ password 'x'
I doubt that's correct for T-Mobile. Please try again with "" for user and password. MS2 did not care for user and password settings, MS3 does care :)
Changed 3 years ago by anonymous
-
attachment
frameworkd2.log
added
Frameworkd log with blank username and password
Changed 3 years ago by anonymous
-
attachment
zhone2.log
added
Zhone terminal output when starting GPRS with a blank username and password
Changed 3 years ago by anonymous
-
attachment
mdbus2.log
added
mdbus -s -l output when starting GPRS with blank username and password
comment:3 Changed 3 years ago by dylan.semler@…
As reported on the ML, starting GPRS with
mdbus -s $BUSNAME $OBJECTPATH $METHODNAME $APN "" ""
still does not work. I've just attached the log files (frameworkd2.log, etc.) that are generated when using this mdbus command.
comment:4 Changed 3 years ago by tasn
gprs doesn't work for me either, logs attached. two different outputs i got out of ppp, and the framework debug output (stripped battery data)
comment:5 Changed 3 years ago by lindi
launching ppp with commandline ... 'user', '"x"']
reveals the problem. The username should not have quotation marks. With the following patch I can start a GPRS connection again with 0.2.0-git20080909-2 (note that the patch is against git HEAD of debian branch and not the package I really use):
diff --git a/framework/subsystems/ogsmd/modems/abstract/pdp.py b/framework/subsystems/ogsmd/modems/abstract/pdp.py
index 2bb8510..20152a0 100644
--- a/framework/subsystems/ogsmd/modems/abstract/pdp.py
+++ b/framework/subsystems/ogsmd/modems/abstract/pdp.py
@@ -54,7 +54,7 @@ class Pdp( AbstractMediator ):
# merge with user and password settings
if user:
logger.info( "configuring ppp for user '%s' w/ password '%s'" % ( user, password ) )
- self.ppp_options += [ "user", '"%s"' % user ]
+ self.ppp_options += [ "user", user ]
self.pds[self.__class__.PPP_PAP_SECRETS_FILENAME] = '%s * "%s" *\n' % ( user or '*', password )
self.pds[self.__class__.PPP_CHAP_SECRETS_FILENAME] = '%s * "%s" *\n'% ( user or '*', password )
comment:6 Changed 3 years ago by mickey
- Status changed from new to closed
- Resolution set to fixed
applied in [77b887da0d72a9983e6f214d2208fe39ae8f90d7], thanks a lot!

Log of frameworkd