sudo /etc/init.d/bluetooth restart
3.手机连接PC端蓝牙设备,完成匹配,匹配时需要输入hcid.conf中的匹配码
4.配置/etc/bluetooth/rfcomm.conf
#
# RFCOMM configuration file.
#
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
# 手机端的蓝牙地址可以通过hcitool scan获得
device 00:18:0F:8B:B0:63;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "NOKIA 5500 Bluetooth device";
}
配置完成后,可以用rfcomm connect 0连接手机
4.下载安装GNOME下的GUI蓝牙工具
sudo apt-get install gnome-bluetooth gnome-phone-manager
5.开启蓝牙文件共享服务
gnome-obex-server 用来接收手机端发送过来的文件
gnome-obex-send 发送文件到手机端,在gnome里也可以选择文件点右键发送到手机(发送为选择Bluetooth)
gnome-phone-manmager 启用后选择手机设置,可以通过PC端给朋友发短信
备注:gnome-obex-send找不到手机的解决办法
sudo hciconfig hci0 inqmode 0
