From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: PPP connection to a private APN
Date: Fri, 09 Aug 2013 09:24:36 -0500 [thread overview]
Message-ID: <5204FBA4.6040809@gmail.com> (raw)
In-Reply-To: <loom.20130809T104244-111@post.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2599 bytes --]
Hi Etienne,
>
> So we managed to solve our problem, we found out how to connect to a private
> apn, but we have some questions to clear things up.
>
> We compared the sequence of AT commands sent by ofono and by network manager
> for the same modem (Telit HE910).
> One difference is during the activation of the context :
>
> - ofono uses the 'AT+CGDATA="PPP",<cid>'
> the driver used by the telit is the atmodem. This command doesn't appear in
> the documentation for the Telit HE910, but it still replied OK. However in
> the dumps from ppp, we saw that the DCE does not ask for any authentication
> protocol. So the modem doesn't send its credentials, and the DCE eventually
> forces a deactivation.
>
> - network manager used 'ATD*99***#<cid>'
> With this command, the DCE asks for an authentication protocol. The modem
> then sends its credentials and the connection is completed.
>
>
> I am not quite sure why the first command does not work while the second
> does and I am very interested in having an explanation if you have one.
> Should we use another driver than the atmodem ? one that uses the ATD command ?
>
So in theory the ATD*99... variation is a legacy context activation
command. It is described in 27.007 Section 10.2.1.1 Request Packet
Domain service 'D'. It is supposed to be superseded by AT+CGDATA, but
many manufacturers have not updated their firmware properly. oFono
supports both, you might need to set a quirk if one is preferred over
the other.
>
> Another topic is the authentication protocol. By default the Telit HE910
> uses PAP which is not handled by ofono.
> I started to implement it in gatchat/ppp_auth.c it is not quite perfect
> because it does not ask to do CHAP before falling back to PAP but if anyone
> is interested i would be glad to share the code.
> We then found out that there is a custom AT command for the Telit HE910 that
> allows you to set the authentication protocol to use : AT#CGAUTH=[0,1, or 2]
> I added it in plugins/telit.c in the post_online function and stopped
> working on PAP. (I am using the telit rework patch provided by Jonas Bonn on
> the 4th of April)
Does this work with CGDATA? If that is the case it might explain why
CGDATA does not ask for authentication. You can enable this command
inside drivers/atmodem/gprs-context.c with the appropriate OFONO_VENDOR
handling as well.
Patches are always welcome.
>
> At the moment i just modified the source with these modifications, and it
> works nice.
>
No problem.
Regards,
-Denis
next prev parent reply other threads:[~2013-08-09 14:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-02 15:31 PPP connection to a private APN Etienne Mabille
2013-08-02 16:00 ` Denis Kenzior
2013-08-07 14:10 ` Etienne
2013-08-07 15:41 ` Denis Kenzior
2013-08-07 16:12 ` Marcel Holtmann
2013-08-07 23:30 ` Denis Kenzior
2013-08-08 1:03 ` Marcel Holtmann
2013-08-09 9:11 ` Etienne
2013-08-09 9:37 ` Etienne
2013-08-09 14:24 ` Denis Kenzior [this message]
2013-08-12 9:19 ` Etienne Mabille
2013-08-12 9:28 ` Jesper Larsen
2013-08-12 12:43 ` Etienne
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=5204FBA4.6040809@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.