使用蓝牙与手机拨号上网
Add a comment
May 1st, 2009
本作品采用署名-非商业性使用-相同方式共享 3.0 许可协议进行许可。转载请注明出自逆时。
很早以前就弄过的了, 只是没有写哈. 今天兴起, 就写出来分享下吧^______^
我的系统呢, 是 ubuntu 啦; 手机呢, 是 BlackBerry 8800, so, 得先安装 Barry 哈.
然后就是完全参考自: UbuntuHelp:BluetoothDialup 了….
具体的操作如下哈:
- 将手机匹配到电脑, 这个就不多说啦.
- 获取你手机的 mac 地址
hcitool scan
- 获取手机连接上网的 channel 号码
sdptool search DUN
- 配置 rfcomm.conf
sudo gedit /etc/bluetooth/rfcomm.conf
rfcomm0 { bind yes; device 手机 mac 地址; channel 在第三步获得的 channel 号码; comment "Bluetooth PPP Connection"; }
- 重启蓝牙服务
sudo /etc/init.d/bluetooth restart
- 配置 ppp
sudo gedit /etc/ppp/peers/BluetoothDialup
- 配置 ChatScripts
sudo gedit /etc/chatscripts/BluetoothDialup
TIMEOUT 35 ECHO ON ABORT '\nBUSY\r' ABORT '\nERROR\r' ABORT '\nNO ANSWER\r' ABORT '\nNO CARRIER\r' ABORT '\nNO DIALTONE\r' ABORT '\nRINGING\r\n\r\nRINGING\r' '' \rAT OK 'AT+CGDCONT=1,"IP","cmnet"' OK ATD*99***1# CONNECT ""
注意: cmnet 那里请根据自己的情况修改, 即 cmnet or cmwap
- 将自己加入相关用户组
sudo adduser 你的用户名 dialout dip - 可以使用以下命令连接蓝牙上网啦(注意流量..)
pon BluetoothDialup
- 使用以下命令断开连接
poff BluetoothDialup


厉害的说http://www.zhengkongyi.com