← 返回命令列表

Linux command

mmcli 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List available modems

mmcli --list-modems

Print information

mmcli --modem=[modem_id]

Enable

mmcli --modem=[modem_id] --enable

Disable

mmcli --modem=[modem_id] --disable

List SMS messages

sudo mmcli --modem=[modem_id] --messaging-list-sms

Delete SMS message

sudo mmcli --modem=[modem_id] --messaging-delete-sms=[sms_path]

Monitor modem status

mmcli --monitor-modems

说明

mmcli is a command-line interface for ModemManager, a DBus-powered daemon that provides unified control of mobile broadband modems on Linux. It supports various modem types including USB modems, embedded cellular modules, and phone tethering. The tool can enable/disable modems, manage connections, send/receive SMS, control GPS functionality, scan for networks, and perform SIM operations. It communicates with ModemManager through DBus.

参数

-L, --list-modems
List all available modems
-m, --modem _id_
Specify modem by index or DBus path
-M, --monitor-modems
Monitor modem status changes
-e, --enable
Enable the specified modem
-d, --disable
Disable the specified modem
-r, --reset
Reset the modem
--factory-reset _code_
Reset modem to factory state with unlock code
--command _at_command_
Send raw AT command to modem
--messaging-list-sms
List SMS messages on modem
--messaging-create-sms _properties_
Create new SMS message
--messaging-delete-sms _sms_
Delete SMS message
-S, --scan-modems
Scan for new modems
--output-json
Output in JSON format
--output-keyvalue
Output as key-value pairs
-v, --verbose
Enable verbose output

FAQ

What is the mmcli command used for?

mmcli is a command-line interface for ModemManager, a DBus-powered daemon that provides unified control of mobile broadband modems on Linux. It supports various modem types including USB modems, embedded cellular modules, and phone tethering. The tool can enable/disable modems, manage connections, send/receive SMS, control GPS functionality, scan for networks, and perform SIM operations. It communicates with ModemManager through DBus.

How do I run a basic mmcli example?

Run `mmcli --list-modems` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -L, --list-modems do in mmcli?

List all available modems