方永、南天紫云

道亦有道

电脑用数据线连接手机上网
2011年11月16日

电脑用数据线连接手机上网

用蓝牙连接手机上网网速不太稳定,遂用数据线,诺基亚手机,连接电脑后选择PC套件模式。 加载USB通信模块:

 modprobe  usbserial

/etc/ppp/peers/gprs 中内容:

/dev/ttyACM0
115200
connect '/usr/sbin/chat -v -f /etc/ppp/peers/chat-gprs'
crtscts
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local
noipdefault

/etc/ppp/peers/chat-gprs 中内容:

'' ATZ OK
AT+CGDCONT=1,"IP","cmnet"
OK "ATD\*99\*\*\*1#"
CONNECT ''

然后pon gprs即可。