Reply To: Configure GPS so NMEA pipes through USB on Boot

Home Forums Forums Technical Support for BerryGPS-GSM Configure GPS so NMEA pipes through USB on Boot Reply To: Configure GPS so NMEA pipes through USB on Boot

#16504
Mark Williams
Keymaster

To have it stream on each boot;

1.Create start-up script
nano ~/GPSthroughGSM.sh

2.Places your commands in the script. (You can echo the commands to the GSM com ports)
Add a sleep command at the start to allow the Pi enough time to boot.

#!/bin/sh
sleep 10
echo -e "AT+UGRMC=1\r\n" > /dev/ttyACM1
echo -e "AT+UGGLL=1\r\n" > /dev/ttyACM1
echo -e "AT+UGGSV=1\r\n" > /dev/ttyACM1
echo -e "AT+UGGGA=1\r\n" > /dev/ttyACM1
echo -e "AT+UGPRF=1\r\n" > /dev/ttyACM1

3.Change the permissions on the script
chmod +x ~/GPSthroughGSM.sh

4.Open rc.local, this is where you will tell the script to run on each boot
sudo nano /etc/rc.local

5.Right before exit 0 at the bottom enter in the location of your script with '&' at the end so it doesn't block startup
/home/pi/GPSthroughGSM.sh &

6. Reboot

Mark --OzzMaker.com --

Blip, blop, bloop...