AT+NWUSBSWITCH=8801 ECM
AT+NWUSBSWITCH=8800 RNDIS
移动:
AT+COPS?
AT+CGDCONT=1,“IP”,“cmnet”
AT+NWNETSHAREMODE?
AT+NWUSBSWITCH=8802 //NCM
AT+NWNETSHAREACT=1,1,0
AT+NWNETSHAREACT?
dhclient usb0
ifconfig eth6 down
ifconfig docker0 down
ping www.baidu.com
cat /dev/ttyUSB2 &
echo -e “AT+COPS?” >/dev/ttyUSB2
atl
echo -e “AT+GTUSBMODE?” > /dev/ttyUSB0
echo -e “at+gtautoconnect=1\r\n” > /dev/ttyUSB2
联通:
AT+COPS?
AT+CGDCONT=1,“IP”,“3gnet”
AT+CGACT=1
AT+NWNETSHAREMODE?
AT+NWUSBSWITCH=8802 //NCM
AT+NWNETSHAREACT=1,1,1,“3GNET”,“”,“”,1 //时间有点长
AT+NWNETSHAREACT?
AT+CGPADDR
dhclient usb0
ifconfig eth6 down
ping www.baidu.com
cat /dev/ttyUSB70&
echo -e “ATE0\r\n”>/dev/ttyUSB70
echo -e “AT+COPS?\r\n”>/dev/ttyUSB70
echo -e “AT+NWNETSHAREACT?\r\n”>/dev/ttyUSB70
echo -e “AT+CGDCONT=1,“IP”,“cmnet”\r\n”>/dev/ttyUSB70
echo -e “AT+NWNETSHAREACT=1,1,0\r\n”>/dev/ttyUSB70
echo -e “AT+NWNETSHAREACT=1,1,1,“3GNET”,”“,”“,1\r\n”>/dev/ttyUSB70
echo -e “AT+CGDCONT=1,“IP”,“3gnet”\r\n”>/dev/ttyUSB70
echo -e “AT+CGACT=1\r\n”>/dev/ttyUSB70
echo -e “AT+CGPADDR\r\n”>/dev/ttyUSB70
echo -e “AT+CGDCONT=1,“IP”,“CTLTE”\r\n”>/dev/ttyUSB70