debian
加载模块(前提要有喔,没有就編译吧)
insmod ppp_async.ko
insmod ppp_synctty.ko
insmod slip.ko
安装软件
sudo apt-get update
sudo apt-get install usb-modeswitch wvdial lsusb
查看一下tty吧
root@NanoPi2:~# ls /dev/ttyU*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3
修改/etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB2
Init1 = ATZ
Init3 = ATE0V1
Init5 = ATS0=0
Init6 = AT+CGDCONT=1,"IP","3GNET"
Init7 = AT+CFUN=1
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
ISDN = 0
Phone = *99#
Password = any
Username = any
Stupid Mode = 1