赞
踩
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_WWAN=y
CONFIG_USB_SERIAL_OPTION=y
CONFIG_USBNET=y
$ lsusb Bus 008 Device 002: ID 0e8d:7961 MediaTek Inc. Wireless_Device Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 002: ID 1e0e:9011 Qualcomm / Option SimTech, Incorporated Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub droid@droid:~$ ll /dev/ttyUSB* crw-rw---- 1 root dialout 188, 0 Mar 7 11:40 /dev/ttyUSB0 crw-rw---- 1 root dialout 188, 1 Mar 7 11:40 /dev/ttyUSB1 crw-rw---- 1 root dialout 188, 2 Mar 7 11:40 /dev/ttyUSB2 crw-rw---- 1 root dialout 188, 3 Mar 7 11:40 /dev/ttyUSB3 crw-rw---- 1 root dialout 188, 4 Mar 7 11:40 /dev/ttyUSB4
AT+CUSBPIDSWITCH=9011,1,1
可用如下命令进行拨号:
stty -F /dev/ttyUSB2 speed 9600 cs8 -parenb -cstopb -echo
echo -e "AT+CUSBPIDSWITCH=9011,1,1\r" > /dev/ttyUSB2
SUBSYSTEM=="net", ACTION=="add", ATTRS{
idVendor}=="1e0e", ATTRS{
idProduct}=="9011", NAME="wwan0"
wwan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 12:78:16:d7:39:ab txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
sudo udhcpc -i wwan0
wwan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.225.60 netmask 255.255.255.0 broadcast 192.168.225.255
inet6 fe80::4cf5:12ff:fed9:c687 prefixlen 64 scopeid 0x20<link>
ether 4e:f5:12:d9:c6:87 txqueuelen 1000 (Ethernet)
RX packets 12403 bytes 1518284 (1.5 MB)
RX errors 77 dropped 0 overruns 0 frame 2
TX packets 22725 bytes 5865892
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。