方法是转的。不过我测试过了没有问题。
fona看样子是国外开发的一个板子,芯片确实是国产的。淘宝上有一堆相关的开发版可以买到,也不贵。这种上网方法主要作用就是在“灾难”情况下设备有一个独立通道可以连接网络。不依赖任何其它设备,再加一个备用电池。它就可以具有相当的独立性。
http://bbs.ickey.cn/group-topic-id-28604.html
sudo apt-get install ppp screen elinks
screen和minicom可能是差不多的东西。
sudo -i
cd /etc/ppp/peers/
wget https://raw.githubusercontent.com/adafruit/FONA_PPP/master/fona
nano fona
# Example PPPD configuration for FONA GPRS connection on Debian/Ubuntu.
# MUST CHANGE: Change the -T parameter value **** to your network’s APN value.
# For example if your APN is ‘internet’ (without quotes), the line would look like:
connect “/usr/sbin/chat -v -f /etc/chatscripts/gprs -T internet”
#connect “/usr/sbin/chat -v -f /etc/chatscripts/gprs -T ****”
# MUST CHANGE: Uncomment the appropriate serial device for your platform below.
# For Raspberry Pi use /dev/ttyAMA0 by uncommenting the line below:
/dev/ttyAMA0
# For BeagleBone Black use /dev/ttyO4 by uncommenting the line below:
#/dev/ttyO4
# Speed of the serial line.
115200
# 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 to the internet.
defaultroute
# Makes PPPD “dial again” when the connection is lost.
persist
# Do not ask the remote to authenticate.
noauth
# No hardware flow control on the serial link with FONA
nocrtscts
# No modem control lines with FONA.
local
修改如下内容
# connect “/usr/sbin/chat -v -f /etc/chatscripts/gprs -T internet”
connect “/usr/sbin/chat -v -f /etc/chatscripts/gprs -T ****”
# For Raspberry Pi use /dev/ttyAMA0 by uncommenting the line below:
#/dev/ttyAMA0
sudo pon fona
sudo poff fona