-
1Step 1
disable serial
nano /boot/cmdline.txt
remove console=ttyAMA0,115200 kgdboc=ttyAMA0,115200
nano /etc/inittab
comment out T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
sudo apt-get update
sudo apt-get install ppp screen elinks
screen /dev/ttyAMA0 115200
AT command should return OK
sudo -i
cd /etc/ppp/peers/
wget https://raw.githubusercontent.com/adafruit/FONA_PPP/master/fona
edit config to below
# 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 http://fast.t-mobile.com"
# 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
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
try /dev/ttyS0 that seemed to work for me on getting AT to return OK, though the rest is still eluding me atm, I'll post back if I get it fully working
Are you sure? yes | no
trying to get this setup on Raspbian Jessie (Raspberry Pi 2), but can't get the AT commands to return OK. Have you been able to get this project working on Jessie?
Are you sure? yes | no