Home Page Forums Raspberry Pi Shields Send SMS from GPRS shield Reply To: Send SMS from GPRS shield

#1439

Michael
Participant

The power on/off is via pin GPIO25 toggling LOW – HIGH – LOW for 2 seconds

Easiest is via a bog standard BASH script, something like

# Exports pin to userspace
echo “25” > /sys/class/gpio/export

# Sets pin 25 as an output
echo “out” > /sys/class/gpio/gpio25/direction

# Sets pin 25 to high
echo “1” > /sys/class/gpio/gpio25/value

Sleep 2

# Sets pin 25 to low
echo “0” > /sys/class/gpio/gpio25/value

Save as a xxxxxxx.sh, make it executable, call it from the GPRS script something like inserting it….

Sudo startgprs.sh

Running it again will turn it off

Starting the whole ppp0 script on boot is left as an exercise to the student…..Google is your friend…8-)