Warning: Can't synchronize with repository "(default)" (No changeset 96d22ec3fa3ef6de3ea8dc0d7d398adc9aa071cf in the repository). Look in the Trac log for more information.

Ticket #140 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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

frameworkd.log (227.5 KB) - added by anonymous 6 years ago.
Log of frameworkd
zhone.log (1.9 KB) - added by anonymous 6 years ago.
log of zhone
mdbus.log (792 bytes) - added by anonymous 6 years ago.
mdbus -s -l output
gprs-on.sh (269 bytes) - added by anonymous 6 years ago.
script to start GPRS
frameworkd2.log (203.7 KB) - added by anonymous 6 years ago.
Frameworkd log with blank username and password
zhone2.log (1.8 KB) - added by anonymous 6 years ago.
Zhone terminal output when starting GPRS with a blank username and password
mdbus2.log (1019 bytes) - added by anonymous 6 years ago.
mdbus -s -l output when starting GPRS with blank username and password
framework.log (16.2 KB) - added by tasn 6 years ago.
pppd.log (2.0 KB) - added by tasn 6 years ago.
pppd2.log (18.5 KB) - added by tasn 6 years ago.

Change History

Changed 6 years ago by anonymous

Log of frameworkd

Changed 6 years ago by anonymous

log of zhone

Changed 6 years ago by anonymous

mdbus -s -l output

Changed 6 years ago by anonymous

script to start GPRS

comment:1 Changed 6 years ago by anonymous

  • Component changed from documentation to framework/general

comment:2 Changed 6 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 6 years ago by anonymous

Frameworkd log with blank username and password

Changed 6 years ago by anonymous

Zhone terminal output when starting GPRS with a blank username and password

Changed 6 years ago by anonymous

mdbus -s -l output when starting GPRS with blank username and password

comment:3 Changed 6 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 6 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)

Changed 6 years ago by tasn

Changed 6 years ago by tasn

Changed 6 years ago by tasn

comment:5 Changed 6 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 6 years ago by mickey

  • Status changed from new to closed
  • Resolution set to fixed

applied in [77b887da0d72a9983e6f214d2208fe39ae8f90d7], thanks a lot!

Note: See TracTickets for help on using tickets.