Article title: UbuntuLinux8.04 Bluetooth device connection management method. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. start the Bluetooth device
Sudo/etc/init. d/bluetooth restart
Or
Sudo/etc/init. d/bluez-utils restart
2. use hcitool dev to view Bluetooth devices on the computer
Teapot @ teapot :~ $ Hcitool dev
Devices:
Hci0 00: 16: CF: DB: B4: BF
Teapot @ teapot :~ $
3. install the device
Query the device address
Teapot @ teapot :~ $ Sudo hidd -- search
Searching ......
No devices in range or visible
If sudo hidd -- search is not found, use hcitool scan to search
My T60 uses hcitool scan to find the Bluetooth of the mobile phone
Teapot @ teapot :~ $ Hcitool scan
Scanning ......
00: 1D: E9: 30: CE: 55 PZF # This is my mobile phone
Teapot @ teapot :~ $ Sudo hidd -- connect 00: 1D: E9: 30: CE: 55
Teapot @ teapot :~ $ Sudo hidd -- show
Teapot @ teapot :~ $
No error message or connection. I don't know what's going on!
Teapot @ teapot :~ $ Sudo hcitool cc 00: 1D: E9: 30: CE: 55
Teapot @ teapot :~ $ Sudo hcitool con
Connections:
Teapot @ teapot :~ $
# PZF is found on the browsing device of the Bluetooth manager.
# Pairing
# View connections
Teapot @ teapot :~ $ Sudo hcitool con
Connections:
<ACL 00: 1D: E9: 30: CE: 55 handle 11 state 1 lm MASTER ENCRYPT