modemmanager š¦
An async-first Rust API for ModemManager over D-Bus. The goal is to provide a safe and simple high-level API for managing cellular modems on Linux systems, built on zbus for reliable D-Bus communication.
modemmanager is the ModemManager counterpart to nmrs (NetworkManager) ā same author, same design philosophy: typed errors, async throughout, no leaking of raw D-Bus internals into the public API.
Sample usage
Listing modems
use ModemManager;
async
Connecting the primary modem
use ;
async
SIM PIN handling
use ;
async
Multi-modem systems
use ModemManager;
async
Documentation
Complete API documentation: docs.rs/modemmanager
Roadmap / Implementation Status
If something is missing that you'd like to see, please file a PR or issue, adding it to this roadmap.
Modem
- Modem enumeration and lookup by IMEI
- Primary-modem convenience helpers (
enable,disable,connect,status, ...) - Per-modem scoping via
mm.modem(path) - Signal quality and access technology (2Gā5G, CDMA) queries
- Real-time modem/bearer state monitoring
- Location (GPS/cell-tower) support
- USSD support
- Firmware/carrier configuration management
SIM
- PIN unlock, PUK unlock, PIN enable/disable, PIN change
- Active SIM snapshot (ICCID, IMSI, operator name)
- Multi-SIM slot switching
Bearers
- Simple connect via APN
- Full
BearerConfig(IP type, credentials, roaming) - Bearer snapshot with IPv4 config and stats
- IPv6 config decoding
- Manual bearer create/delete (outside
Simple.Connect)
Contributing
Contributions are welcome. Please read CONTRIBUTING.md for guidelines.
Requirements
- Rust: 1.90.0+
- ModemManager: Running and accessible via D-Bus
- Linux: This library is Linux-specific
License
This project is dual-licensed under either of the following licenses, at your option:
- MIT License
- Apache License, Version 2.0
You may use, copy, modify, and distribute this software under the terms of either license.
See the following files for full license texts: