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: Wed, 03 Dec 2014 17:48:01 -0600	[thread overview]
Message-ID: <547FA131.9000001@gmail.com> (raw)
In-Reply-To: <556279298.28727836.1417601666074.JavaMail.root@openwide.fr>

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

Hi Mylene,

 >
> My modem has two interfaces : one interface on which I can do a PPP connection and another interface QMI to make wwan connection.
> My SIM card has 2 APNs and I must connect to them simultaneously. So, I need to be connected in PPP with APN1 and in qmi/wwan with APN2.
>

This sort of depends on whether your hardware actually supports multiple 
contexts being activated at once.

> The two ways of being connected work. I have successfully configured "2 ofonos" to make my modem works with "atmodem" for the PPP side and, by setting ofono driver to gobi in udevng (such as Huawei does) for wwan side. To sum up, Ofono works with PPP or with QMI. Now, I need to make it work with PPP _and_ QMI at the same time.
>
> I tried to connect, on the same modem, in my plugin file, the interface "Device" to "qmimodem" driver (so what "gobi" plugin does) and the "Application" and "Modem" interfaces to "atmodem" driver but it failed because dbus interfaces already exist (created by the first called).
>
> So I was wondering : what should be the best way to do it ? And is it possible ?
> Should I create one modem with 2 drivers (with my own driver using atmodem and gobi driver) ?
> Or should I create 2 modems with each one the driver needed (gobi/qmimodem and my own driver/atmodem) ?
>

You could try modifying the gobi plugin and udevng to allocate 2 
gprs-contexts.  One using the QMI driver and the other using PPP.

e.g. something like:

gc = ofono_gprs_context_create(modem, 0, "qmimodem", device);
ofono_gprs_add_context(gprs, gc);

gc = ofono_gprs_context_create(modem, 0, "atmodem", ppp_chat);
ofono_gprs_add_context(gprs, gc);

and see if that works.

Regards,
-Denis

  reply	other threads:[~2014-12-03 23:48 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 [this message]
2014-12-04 15:34     ` Mylene Josserand
2014-12-04 16:26       ` Mylene Josserand
2014-12-04 16:56         ` Denis Kenzior
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=547FA131.9000001@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.