http://hh8shyy.blog.51cto.com/697059/172007
加载模块:
# modprobe hci_usb
# modprobe rfcomm
# hciconfig hci0 up
# hciconfig hci0 up查看状况:
# hcitool scanPing一下看看:
Scanning...
00:80:37:B5:A8:3A T68i
00:0E:07:1C:AE:1D T628
# l2ping 00:0E:07:1C:AE:1D #(l2ping,是小写的L而不是数字1)本地主机配置文件(主机名等参数):
Ping: 00:0E:07:1C:AE:1D from 00:10:60:A3:68:9F (data size 20) ...
0 bytes from 00:0E:07:1C:AE:1D id 200 time 39.62ms
0 bytes from 00:0E:07:1C:AE:1D id 201 time 35.25ms
0 bytes from 00:0E:07:1C:AE:1D id 202 time 33.60ms
0 bytes from 00:0E:07:1C:AE:1D id 203 time 40.57ms
0 bytes from 00:0E:07:1C:AE:1D id 204 time 38.96ms
0 bytes from 00:0E:07:1C:AE:1D id 205 time 34.60ms
6 sent, 6 received, 0% loss
/etc/bluetooth/hcid.conf
PIN配对码所在文件:
/etc/bluetooth/pin
加载配置文件:
#hcid -f /etc/bluetooth/hcid.conf