Top Bluetooth Command Line Utilities for Developers and Sysadmins
Below are commonly used, practical command-line tools across Linux, macOS, and Windows, with short descriptions and typical uses.
| Tool | Platform | Purpose / Typical commands |
|---|---|---|
| bluetoothctl | Linux (BlueZ) | Interactive and non-interactive controller/device management: scan, pair, connect, trust, show, remove. Good for day-to-day BLE/BR‑EDR tasks and scripts. |
| btmgmt | Linux (BlueZ MGMT API) | Low‑level adapter management and configuration: power, advertising, privacy, BR/EDR/LE toggles, controller info and capabilities. Better for admin/config tasks than bluetoothctl. |
| hcitool / btmon / hciconfig | Linux (BlueZ) | hcitool: legacy HCI commands (scan, info, lecc, lescan). btmon: capture/inspect HCI trace. hciconfig: bring HCI interfaces up/down and show status. Useful for debugging and packet inspection. |
| core-bluetooth-tool | macOS | macOS BLE command‑line utility for scanning, monitoring, reading/writing characteristics, L2CAP throughput tests, and opening a TTY-like bridge to BLE peripherals. Handy for macOS development and testing. |
| Bluetooth Command Line Tools (btinfo, btdiscovery, btobex, etc.) | Windows | Suite of small utilities for adapter info, discovery, pairing, OBEX file transfer and COM/serial service control. Useful for Windows automation and legacy stacks. |
Quick practical tips
- For Linux scripting, prefer bluetoothctl (simple tasks) or btmgmt (policy/config) over deprecated hcitool.
- Use btmon to capture HCI logs when troubleshooting connectivity or protocol issues.
- On macOS use core-bluetooth-tool for direct BLE characteristic interaction and throughput tests.
- On Windows, the Bluetooth Command Line Tools suite or vendor SDKs cover OBEX and classic Bluetooth automation.
If you want, I can provide example commands and short how-to snippets for any of these tools (select one).
Leave a Reply