All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [help] connect 2 APN at the same time (PPP and QMI)
Date: Thu, 04 Dec 2014 10:56:30 -0600	[thread overview]
Message-ID: <5480923E.6020006@gmail.com> (raw)
In-Reply-To: <296413424.28859588.1417710383928.JavaMail.root@openwide.fr>

[-- Attachment #1: Type: text/plain, Size: 1403 bytes --]

Hi Mylene,

 >
> I looked to other modem plugins. I think I understand what the slave is thanks to that. It is the other interfaces to send AT commands, only, whereas the "main" GAtChat serves to create the PPP connection, is not it ? If I am wrong, do not hesitate to make me understand how it works.
>

Pretty much.  When we pass the chat to the gprs_context driver we set 
the slave chat.  This is needed in order to monitor certain events which 
come in via AT commands when the PPP link is active.  In effect we 
require 2 AT command ports.

On some hardware there was only a single functional PPP port, so the 
driver might need to be modified to handle that case, but it sounds like 
you don't have this issue.

> I set the slave (via "g_at_chat_set_slave") to my "Application" device and I succeeded to get 2 contexts. I activate them and it creates the PPP and QMI connections ! I still have a problem : I did not get an IP address on one of the APN connection but this is another problem (connman ?) and I will search alone for that before asking for help :)
>

Cool, feel free to send a patch for this.

IP settings are notified to oFono by the gprs_context driver.  If there 
are IP settings given, then most likely they should be obtained via 
DHCP.  Running test/list-contexts should tell you all the information 
once both contexts are active.

Regards,
-Denis

  reply	other threads:[~2014-12-04 16:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1862208886.28721645.1417597240490.JavaMail.root@openwide.fr>
2014-12-03 10:14 ` [help] connect 2 APN at the same time (PPP and QMI) Mylene Josserand
2014-12-03 23:48   ` Denis Kenzior
2014-12-04 15:34     ` Mylene Josserand
2014-12-04 16:26       ` Mylene Josserand
2014-12-04 16:56         ` Denis Kenzior [this message]
2014-12-05 12:38           ` Mylene Josserand
2014-12-05 13:34             ` Mylene Josserand

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=5480923E.6020006@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.