[FSO] add QCT msm7* modem support

Lukas Gorris lukas.gorris at googlemail.com
Wed Dec 24 00:51:18 CET 2008


Hi

On Tue, Dec 23, 2008 at 5:57 PM, Michael 'Mickey' Lauer
<mickey at vanille-media.de> wrote:

> This depends on the modem. We can't say for sure without debug logs.

My bet is that it's confusion of the parser.
I will reproduce it and document in detail what happened when in the
debug log as soon as gprs works. Also will check if other commands
probably cause the hang as well

>> I've been wondering about gprs. It should be easy because the 7x0x
>> modem seems to use it in the same way as you do on the calypso
>> handsets: One AT channel (smd0) and one for use with gprs (smd1)

> As mentioned on IRC before, add the dataOptions() method to your modem class
> and it might work OOTB.

I copy dataOptions() 1:1 from the calypso, append it to qualcomm_msm
mdoem.py and run
gsmpdp.ActivateContect('web.vodafone.de','vuser','vpass')
in cli-framework. It does not return anything (no i, no nothing). So I run
GetContextStatus()
with no i and it returns 'released'

"ps -A | grep pppd" shows pppd as 'defunct' and I cannot kill it.

So pppd is called but something must go wrong. I modified the
dataOptions() I copied from the calypso to match the pppd parameters
in the script I use:

    def dataOptions( self, category ):
        if category == "ppp":
            return [
                    'debug',
                    'hide-password',
                    'defaultroute',
                    'local',
                    'usepeerdns'
                    'noipdefault'
                    'novj',
                    'persist']
        else:
            return []

(I only added this to the end of msm modem.py)

but frameworkd shows the same behaviour with that. Here is the log:

2008.12.24 12:08:08 root     DEBUG    introspection fully done, result is []
2008.12.24 12:08:26 ogsmd.pdp INFO     configuring ppp for user
'vuser' w/ password 'vpass'
2008.12.24 12:08:26 ogsmd.pdp DEBUG    activate got port /dev/smd1
2008.12.24 12:08:26 ogsmd.pdp INFO     launching ppp as commandline
['/usr/sbin/pppd', '/dev/smd1', 'connect',
'/var/tmp/ogsmd/gprs-connect-chat', 'disconnect',
'/var/tmp/ogsmd/gprs-disconnect-chat', 'debug', 'hide-password',
'defaultroute', 'local', 'usepeerdnsnoipdefaultnovj', 'persist',
'user', 'vuser']
2008.12.24 12:08:26 ogsmd.pdp DEBUG    preparing file
/etc/ppp/ip-up.d/08setupdns
2008.12.24 12:08:26 ogsmd.pdp DEBUG    preparing file
/etc/ppp/ip-down.d/92removedns
2008.12.24 12:08:26 ogsmd.pdp DEBUG    preparing file
/var/tmp/ogsmd/gprs-disconnect-chat
2008.12.24 12:08:26 ogsmd.pdp DEBUG    preparing file /etc/ppp/pap-secrets
2008.12.24 12:08:26 ogsmd.pdp DEBUG    preparing file /etc/ppp/chap-secrets
2008.12.24 12:08:26 ogsmd.pdp DEBUG    preparing file
/var/tmp/ogsmd/gprs-connect-chat
2008.12.24 12:08:26 ogsmd.pdp INFO     pppd launched, pid 1401. See
logread -f for output.
2008.12.24 12:08:26 ogsmd.device INFO
org.freesmartphone.GSM.PDP.ContextStatus: 1 outgoing {}
2008.12.24 12:08:29 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:31 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:33 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:36 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:38 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:40 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:42 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:44 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:46 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:48 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:50 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:51 frameworkd.controller DEBUG    alive and kicking
2008.12.24 12:08:52 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:54 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:56 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:08:58 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:09:00 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:09:02 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:09:04 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:09:06 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:09:08 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:09:10 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:09:12 ogsmd.pdp DEBUG    route status. old=, last=, current=
2008.12.24 12:09:14 ogsmd.pdp DEBUG    route status. old=, last=, current=

It keeps printing the "route status. old=, last=, current=" line.

What's wrong here?

I took a look at the connect chat in pdp.py . It seems huge. I wonder
if I really need all that for the kaiser? The script is tiny compared
to that.

regards



More information about the devel mailing list