Linux command
btmgmt 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start interactive mode
btmgmt
List Bluetooth adapters
btmgmt info
Use specific adapter
btmgmt -i [hci0] info
Power on adapter
btmgmt power on
Power off adapter
btmgmt power off
Start discovery
btmgmt find
Enable monitor mode
btmgmt -m
Run command with timeout
btmgmt -t [10] find
说明
btmgmt is an interactive Bluetooth management tool that issues commands to the kernel using the Bluetooth Management socket. It provides low-level control of Bluetooth adapter settings, discovery, and pairing functionality. The tool is part of the BlueZ Bluetooth stack and uses the management interface available since Linux kernel 3.4.
参数
- -i, --index _adapter_
- Specify adapter index (e.g., hci0)
- -m, --monitor
- Enable monitor output
- -t, --timeout _seconds_
- Timeout for non-interactive mode
- -v, --version
- Display version
- --init-script _file_
- Run commands from init script
- -h, --help
- Display help
FAQ
What is the btmgmt command used for?
btmgmt is an interactive Bluetooth management tool that issues commands to the kernel using the Bluetooth Management socket. It provides low-level control of Bluetooth adapter settings, discovery, and pairing functionality. The tool is part of the BlueZ Bluetooth stack and uses the management interface available since Linux kernel 3.4.
How do I run a basic btmgmt example?
Run `btmgmt` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i, --index _adapter_ do in btmgmt?
Specify adapter index (e.g., hci0)