With the goal of sending API Post requests over 2G from a raspberry pi based device, I set up an Adafruit FONA 808 as a tethered device by following their great tutorial.
However, with the SIM808, I should be able to access the GPS to turn on/off and get coordinates, which would be super useful! Anyone know how this can be done? I haven't really seen much on the web unfortunately, and am more of a software and hardware person!
Edit: I am attempting to communicate with the GPS using pyserial:
import serial
con = serial.Serial('/dev/ttyAMA0', baud = 115200, timeout = 10)
I believe to turn on the GPS, you send the AT command: AT+CGPSPWR
con.write(b'AT+CGPSPWR\r')
which then doesn't ever complete/freezes. Any thoughts?