ModemManager and pppd/NetworkManager integration

Aleksander Morgado aleksander at aleksander.es
Thu Mar 26 09:51:00 PDT 2015


On Thu, Mar 26, 2015 at 5:17 PM, Francesco Andrisani
<francesco.andrisani at acotel.com> wrote:
> i've successfully compiled the latest version of Modem Manager for my linux
> arm device. I work only from command line because i use an embedded linux
> device with Debian Squeeze (6) installed on.
>
> I'm able to send command to ModemManager using mmcli interface.
> I'm also able to launch modem connection using command:
>
> mmcli -m 0 --simple-connect="apn=foo.mycarrier.com"
>
> So my question is how can i do to create ppp interface and using modem for
> internet navigation? On my device i've installed NetworkManager version
> 0.8.1 and it work great with repository version of ModemManager (v. 0.4.1).

Well, obvious thing you could do is to try NetworkManager 1.x for example.

If that is not an option, then you should check the "bearer IP
settings" generated when you launched the connection:

1) List bearers in modem:
$ mmcli -m 0 --list-bearers

2) Assuming you have bearer 0:
$ mmcli -b 0

You'll see there the IP settings to use, which can be:
 * PPP: you'll need to launch pppd on the specified TTY port.
 * Static: you'll need to set the provided IP settings on the
specified NET port.
 * Dynamic: you'll need to launch a DHCP client on the specified NET port.

Some time ago I started a simple connection manager script that would
do that for you, but didn't advance much. I'd be very interested in
seeing such a script :)

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list