Skip to content

Library to easily handle, control and monitor cellular modems, using the ModemManager D-Bus API.

License

Notifications You must be signed in to change notification settings

okaestne/ezcellular

Repository files navigation

EzCellular

Library to easily handle, control and monitor cellular modems, using the ModemManager D-Bus API.

Dependencies

# compiler and libraries
sudo apt install build-essential libsdbus-c++-dev libsystemd-dev meson modemmanager-dev pkg-config

# for documentation
sudo apt install devhelp doxygen graphviz gtk-doc-tools \
        modemmanager-doc libmm-glib-doc network-manager-dev libsdbus-c++-doc

Build and Install Library

[RECOMMENDED] Build Debian Package (for Ubuntu, Debian, Raspbian, ...)

# dependencies for debian packaging
sudo apt install debhelper devscripts
# build .deb packages (will be placed into parent directory)
debuild --no-sign -b
# install built packages (and missing dependencies)
sudo debi --with-depends

Example code with be installed into /usr/share/libezcellular/examples/

[Alternative] Manually Build and Install into /usr/local

  • See meson_options.txt for options
# build everything
meson setup build --libdir=lib -Ddocs=true -Dexamples=true
# install (replace "install" with "uninstall" to remove everything)
sudo ninja -C build install

Usage

How to use and link against this library

Options (from most to least recommended):

An example Meson project definition meson.build.example is part of the example files. Just rename it to meson.build and adjust contents as needed.

Documentation

The code documentation is automatically built using doxygen, if enabled in the build configuration (-Ddocs=true). If you have installed the Debian package, you will find it here: file:///usr/share/doc/ezcellular/html/index.html.

Development Notes

Running clang-tidy

clang-tidy ezcellular/* -- -x c++ -I/usr/include/ModemManager -std=c++17

Project Background and License

This library was created as part of Oliver Kästner's master's thesis in the Laboratory for High Frequency Technology and Mobile Communication at the Osnabrück University of Applied Sciences, under the supervision of Prof. Ralf Tönjes and Julian Dreyer. Prof. Ralf Tönjes agreed to release this software as open source.

This library is therefore released under the GNU Lesser General Public License (LGPL) v3.0 or later (see COPYING).

About

Library to easily handle, control and monitor cellular modems, using the ModemManager D-Bus API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published