ModemManager-devel Digest, Vol 64, Issue 19

Dan Williams dcbw at redhat.com
Fri Oct 19 14:49:59 UTC 2018


On Tue, 2018-10-02 at 07:45 -0400, Michael pang wrote:
> do you mind sharing how to ask modemmanager for IP? Is it automated
> process? Thank you.

Each network connection has a corresponding "bearer" object, which you
ask for IP details.

mmcli -m 0 --list-bearers
(usually there will only be one)
mmcli -b <bearer path>

and that will print out the IP information.

Dan

> On Mon, Oct 1, 2018 at 10:10 PM Dan Williams <dcbw at redhat.com> wrote:
> 
> > On Sun, 2018-09-30 at 20:39 -0400, Michael pang wrote:
> > > I did create one network interface named broadband according to
> > > the
> > > website. I am missing the  DHCP client network interface. My
> > > EM7455
> > > is in
> > > MBIM mode. Does that matter? After I created two interface, still
> > 
> > MBIM mode does not support DHCP.  Instead, you'd ask ModemManager
> > for
> > the IP information (which it retrieves from the modem via MBIM) or
> > query the IP info directly with mbimcli and set the info on the net
> > interface directly.
> > 
> > Dan
> > 
> > > same
> > > problem. I did notice some message in system log. Thank you for
> > > your
> > > help.
> > > This is my first time compile openwrt package with modemmanager.
> > > Sun Sep 30 20:30:03 2018 daemon.notice netifd: broadband (2089):
> > > Device not
> > > found in sysfs
> > > Sun Sep 30 20:30:03 2018 kern.info kernel: [   13.878492] IPv6:
> > > ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> > > Sun Sep 30 20:30:03 2018 kern.info kernel: [   13.885034] IPv6:
> > > ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
> > > Sun Sep 30 20:30:03 2018 daemon.notice netifd: wan (2124):
> > > udhcpc:
> > > started,
> > > v1.28.3
> > > Sun Sep 30 20:30:03 2018 daemon.notice netifd: broadband (2140):
> > > stopping
> > > network
> > > Sun Sep 30 20:30:03 2018 daemon.notice netifd: wwan (2164):
> > > udhcpc:
> > > started, v1.28.3
> > > Sun Sep 30 20:30:03 2018 daemon.notice netifd: broadband (2140):
> > > error:
> > > couldn't get bus: Could not connect: No such file or directory
> > > Sun Sep 30 20:30:03 2018 daemon.notice netifd: broadband (2140):
> > > couldn't
> > > load bearer path
> > > Sun Sep 30 20:30:03 2018 daemon.notice netifd: Interface
> > > 'broadband'
> > > is now
> > > down
> > > 
> > > On Sun, Sep 30, 2018 at 7:33 PM Nick <mips171 at icloud.com> wrote:
> > > 
> > > > Did you set up the appropriate network interfaces in
> > > > /etc/config/network?
> > > > You need one for the modem, which uses the modemmanager
> > > > protocol,
> > > > and one
> > > > DHCP client interface which gets the IP from the modemmanager
> > > > interface
> > > > after it connects to the cellular network.  Check alexander0m’s
> > > > bitbucket
> > > > profile with the modemmanager-openwrt repository, there is an
> > > > example
> > > > config there.  After you get that all set up, assuming your
> > > > wwan0
> > > > interface
> > > > is in raw_ip mode, which I think is required for 7455’s in QMI
> > > > mode, then
> > > > you should simply be able to connect using ifup broadband &&
> > > > ifup
> > > > wwan.
> > > > 
> > > > 
> > > > Best,
> > > > 
> > > > Nicholas
> > > > 
> > > > > On 30 Sep 2018, at 22:00,
> > > > 
> > > > modemmanager-devel-request at lists.freedesktop.org wrote:
> > > > > 
> > > > > Send ModemManager-devel mailing list submissions to
> > > > >       modemmanager-devel at lists.freedesktop.org
> > > > > 
> > > > > To subscribe or unsubscribe via the World Wide Web, visit
> > > > >       https://lists.freedesktop.org/mailman/listinfo/modemman
> > > > > ager
> > > > > -devel
> > > > > or, via email, send a message with subject or body 'help' to
> > > > >       modemmanager-devel-request at lists.freedesktop.org
> > > > > 
> > > > > You can reach the person managing the list at
> > > > >       modemmanager-devel-owner at lists.freedesktop.org
> > > > > 
> > > > > When replying, please edit your Subject line so it is more
> > > > > specific
> > > > > than "Re: Contents of ModemManager-devel digest..."
> > > > > 
> > > > > 
> > > > > Today's Topics:
> > > > > 
> > > > >   1. Openwrt with EM7455 connecting issue (Michael pang)
> > > > > 
> > > > > 
> > > > > -----------------------------------------------------------
> > > > > ----
> > > > > -------
> > > > > 
> > > > > Message: 1
> > > > > Date: Sat, 29 Sep 2018 21:30:13 -0400
> > > > > From: Michael pang <michaelpangwork at gmail.com>
> > > > > To: modemmanager-devel at lists.freedesktop.org
> > > > > Subject: Openwrt with EM7455 connecting issue
> > > > > Message-ID:
> > > > >       <CAHMghz3Cdc5XivVyXP+oMMR_d9BYONUCMx7KTkr=-
> > > > 
> > > > aHmZ0Hh1g at mail.gmail.com>
> > > > > Content-Type: text/plain; charset="utf-8"
> > > > > 
> > > > > Hello
> > > > >       I am using OpenWrt 18.06.1 r7258-5eb055306f on linksys
> > > > > AC1900V2
> > > > > router. EM7455 Generic firmware with M.2 usb enclosure and
> > > > > modemmanager
> > > > > 1.8.2. I followed instruction on your website to compile the
> > > > > package.
> > > > 
> > > > But I
> > > > > can't get any connection. I have to issue 3 commands in order
> > > > > to
> > > > > get IP
> > > > > address(no internet though). Did I do something wrong during
> > > > > the
> > > > > compiling process? Thank you.
> > > > > 
> > > > > mmcli -e -m 0
> > > > > mmcli -m 0 --create-bearer="apn=Broadband"
> > > > > mmcli -c -b 0
> > > > > -------------- next part --------------
> > > > > An HTML attachment was scrubbed...
> > > > > URL: <
> > > > 
> > > > https://lists.freedesktop.org/archives/modemmanager-devel/attac
> > > > hmen
> > > > ts/20180929/6bc4f5f3/attachment-0001.html
> > > > > 
> > > > > 
> > > > > ------------------------------
> > > > > 
> > > > > Subject: Digest Footer
> > > > > 
> > > > > _______________________________________________
> > > > > ModemManager-devel mailing list
> > > > > ModemManager-devel at lists.freedesktop.org
> > > > > https://lists.freedesktop.org/mailman/listinfo/modemmanager-d
> > > > > evel
> > > > > 
> > > > > 
> > > > > ------------------------------
> > > > > 
> > > > > End of ModemManager-devel Digest, Vol 64, Issue 19
> > > > > **************************************************
> > > > 
> > > > 
> > > 
> > > _______________________________________________
> > > ModemManager-devel mailing list
> > > ModemManager-devel at lists.freedesktop.org
> > > https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


More information about the ModemManager-devel mailing list