赞
踩
apt-get install minicom
ls /dev/ttyS*
sudo minicom -D /dev/ttyUSB2
AT+CPIN?
AT+CNMP?
AT+CSQ
AT+COPS?
AT+CPSI?
AT+CREG?
sudo su
sudo apt-get install ppp
cd /etc/ppp/peers
sudo nano gprs
user "myusername@realm" #connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T ********" connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs" #/dev/modem /dev/ttyUSB2 # Speed of the serial line. 115200 nocrtscts debug nodetach ipcp-accept-local ipcp-accept-remote # Assumes that your IP address is allocated dynamically by the ISP. noipdefault # Try to get the name server addresses from the ISP. usepeerdns # Use this connection as the default route. defaultroute # Makes pppd "dial again" when the connection is lost. persist # Do not ask the remote to authenticate. noauth
pppd call gprs &
ifconfig
ping -I ppp0 www.baidu.com
sudo nano test.sh
sudo su
# sleep 1m
cd /etc/ppp/peers
pppd call gprs &
sudo chmod 777 test.sh
sudo nano /etc/rc.local
bash ./home/pi/test.sh
./test.sh
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。