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

CI

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

Pre-Built Debian Packages (for Ubuntu, Debian, Raspbian, ...)

Download the packages for your architecture from the Releases page and install them with sudo apt install ./libezcellular*.deb. The packages are currently built for Debian 12 (bookworm), but should also work on Ubuntu and Raspbian. Supported architectures are amd64, armhf (32 bit) and arm64.

Building and Installing this Library

Dependencies

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

# to generate documentation
sudo apt install doxygen graphviz

[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