使用蓝牙与手机拨号上网

Add a comment May 1st, 2009

作品采用署名-非商业性使用-相同方式共享 3.0 许可协议进行许可。转载请注明出自逆时

很早以前就弄过的了, 只是没有写哈. 今天兴起, 就写出来分享下吧^______^

我的系统呢, 是 ubuntu 啦; 手机呢, 是 BlackBerry 8800, so, 得先安装 Barry 哈.

然后就是完全参考自: UbuntuHelp:BluetoothDialup 了….

具体的操作如下哈:

  1. 将手机匹配到电脑, 这个就不多说啦.
  2. 获取你手机的 mac 地址
    hcitool scan
  3. 获取手机连接上网的 channel 号码
    sdptool search DUN
  4. 配置 rfcomm.conf
    sudo gedit /etc/bluetooth/rfcomm.conf
    rfcomm0 {
    	bind yes;
    	device 手机 mac 地址;
    	channel 在第三步获得的 channel 号码;
    	comment "Bluetooth PPP Connection";
    }
  5. 重启蓝牙服务
    sudo /etc/init.d/bluetooth restart
  6. 配置 ppp
    sudo gedit /etc/ppp/peers/BluetoothDialup
  7. 配置 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

  8. 将自己加入相关用户组
    sudo adduser 你的用户名 dialout dip
  9. 可以使用以下命令连接蓝牙上网啦(注意流量..)
    pon BluetoothDialup
  10. 使用以下命令断开连接
    poff BluetoothDialup
  1. November 7th, 2009 at 16:33 | #1

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

  1. No trackbacks yet.
Comments feed