From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: ATModem-PPP Doubts
Date: Tue, 15 Jun 2010 23:07:42 -0500 [thread overview]
Message-ID: <201006152307.42363.denkenz@gmail.com> (raw)
In-Reply-To: <AANLkTikuv3eSYcZa-7SjeJStY9fn04np95rxTYnlLjw3@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3118 bytes --]
Hi Arun,
> Hi,
>
> We using a modem through atmodem interface. While testing the
> functionalities, we found that the dataconnectionmanager interface is not
> coming up.
>
> We enabled the gprs modem driver creation and context creation in by adding
> it in atgen.c
>
> atgen_post_sim(struct ofono_modem *modem)
> {
> ---------------------------------------------------------------
> ---------------------------------------------------------------
> gprs = ofono_gprs_create(modem,0, "atmodem", chat);
> gc = ofono_gprs_context_create(modem, 0, "atmodem", chat);
>
> if (gprs && gc)
> ofono_gprs_add_context(gprs, gc);
>
> mw = ofono_message_waiting_create(modem);
> if (mw)
> ofono_message_waiting_register(mw);
>
> }
> After this change the dataconnection manager interface was shown in the
> ./list-medem script.
>
> 1) Is this a correct change ? why was this not present in atgen? Could any
> one clarify?
The change is correct. Our ppp support is still experimental, so probably no
one got around to enabling this in atgen. Patches welcome.
>
>
> We wanted PDP context activation through atmodem and we could see that our
> modem returns
> *at+cgdcont=?
> +CGDCONT: (1-255),("IP","IPV6"),,,(0),(0,1,2)
>
> OK
> *
> where as Nokia modem (E63) returns
>
> *at+cgdcont=?
> +CGDCONT: (1-2),"IP",,,(0),(0)
> +CGDCONT: (1-2),"IPV6",,,(0),(0)
>
> OK
> *
> The modem we use is returning the string in a different way from 3GPP
> 27.007 , which says to return the multiple PDP types are separate lines.
Correct, we tend to go by the book. This is one of the areas where atgen is
useful; it tells you quite quickly where your modem is compliant / not
compliant with 27.007.
>
> We modified the Gprs.c file in atmodem driver, to search for the list of
> strings, and we are able to make PDP context activation.
>
> 2) Is this change an accepted one?
Depends on how you did it. In general there are three acceptable ways:
- Accept both compliant and non-compliant format if possible while maintaining
a high level of strictness.
- If the above is not feasible, quirk the functionality by sending a
OFONO_VENDOR_* flag to the atom driver and writing the necessary quirk handling
code there. This requires a proper modem driver as atgen does not use quirks.
- If both of the above are too invasive, then writing your own atom driver &
modem driver is an option
Sounds like option 1 or 2 is likely the case for you.
>
> 3) Currently i am stuck at the PPP (IPCP stage), how can i link this
> context (and PPP link) to my Ubuntu's network manager?
I assume you're not failing to negotiate the IPCP parameters, otherwise we'd
like to see a log of gsmdial with pppdump option enabled for your modem.
Monitor ofono's PrimaryContext interface of the context you're activating. It
will send you all the details of the ppp connection, including net interface,
ip, and dns information.
Integrating this into NetworkManager is left as an exercise to the reader :)
Regards,
-Denis
next prev parent reply other threads:[~2010-06-16 4:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-16 3:19 ATModem-PPP Doubts Arun Ravindran
2010-06-16 4:07 ` Denis Kenzior [this message]
2010-06-16 4:59 ` Kalle Valo
2010-06-16 12:52 ` Arun Ravindran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201006152307.42363.denkenz@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.