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