Linux command
hciconfig 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show all Bluetooth interfaces
hciconfig
Show specific interface
hciconfig [hci0]
Bring interface up
sudo hciconfig [hci0] up
Bring interface down
sudo hciconfig [hci0] down
Enable device scanning
sudo hciconfig [hci0] piscan
Reset interface
sudo hciconfig [hci0] reset
Show detailed info
hciconfig -a
说明
hciconfig configures Bluetooth devices. It displays and modifies HCI (Host Controller Interface) device settings, similar to ifconfig for network interfaces. The tool manages Bluetooth adapter state, visibility, and various parameters like name, class, and scan modes.
参数
- -a
- Show all information.
- up
- Bring device up.
- down
- Bring device down.
- reset
- Reset device.
- piscan
- Enable page and inquiry scan.
- noscan
- Disable scanning.
- iscan
- Enable inquiry scan only.
- pscan
- Enable page scan only.
- name _name_
- Set local name.
- class _class_
- Set device class.
- auth
- Enable authentication.
- noauth
- Disable authentication.
FAQ
What is the hciconfig command used for?
hciconfig configures Bluetooth devices. It displays and modifies HCI (Host Controller Interface) device settings, similar to ifconfig for network interfaces. The tool manages Bluetooth adapter state, visibility, and various parameters like name, class, and scan modes.
How do I run a basic hciconfig example?
Run `hciconfig` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a do in hciconfig?
Show all information.