libmbim 1.0.0 released!

Just tagged a 1.0.0 release for libmbim, a library which helps you talk to MBIM-capable modems. You can read more about the MBIM protocol in the libmbim introduction blogpost I wrote some months ago. The 1.0.0 tarball is ready for download from

If you want to easily talk to a MBIM device from a GLib-based application, you may want to check the libmbim API documentation.

libmbim is currently used by ModemManager (git master), but you can also now use it in standalone mode with either mbimcli (the command line utility) or mbim-network (a helper script to launch a connection):

# echo "APN=Internet" > /etc/mbim-network.conf
# mbim-network /dev/cdc-wdm0 start
Loading profile...
    APN: Internet
Starting network with 'mbimcli -d /dev/cdc-wdm0 --connect=Internet --no-close'...
Network started successfully
# mbim-network /dev/cdc-wdm0 status
Loading profile...
    APN: Internet
Getting status with 'mbimcli -d /dev/cdc-wdm0 --query-connection-state --no-close'...
Status: activated
# mbim-network /dev/cdc-wdm0 stop
Loading profile...
    APN: Internet
Stopping network with 'mbimcli -d /dev/cdc-wdm0 --disconnect'...
Network stopped successfully

As with libqmi’s qmi-network script, you’ll still need to run a DHCP client on the wwan interface after getting connected through MBIM. Note that your modem may not support DHCP… if that’s your case then patches are welcome to update the script to dump the IP configuration 🙂 Or just use ModemManager, which works nicely with the static IP setup.


Posted on May 22, 2013, in Development, FreeDesktop Planet, GNOME Planet, Planets and tagged , , . Bookmark the permalink. 2 Comments.

  1. Can’t build ModemManager it can’t find mbib, but mbib is at /usr/local/lib and I’ve added it everywhere with no luck.

  2. Try setting up PKG_CONFIG_PATH before running configure; you’ll need it if you installed in a non-standard location (like /usr/local). Something like:

    $> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: