GPS for the Raspberry Pi: PiloT GNSS Tutorial

The PiIoT is a WAN communications board which provides an HSPA / 3G wireless interface for the Raspberry Pi. Conforming to the HAT specification, the PiIoT also provides location information using an on-board GNSS* solution.

*Please note: the optional GPS fuction is only available for the HL8548-G variant of the PiloT. Please see specification and/or related documents for more information.

Access further documentation and purchase information here.

The following instructions set up an NMEA feed over the Raspberry Pi serial port.

Ensure the PiloT is powered on by clicking here and following the steps listed.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Connect to the PiloT Using Minicom:

minicom -D /dev/ttyAMA0

Step 2: Change the Speed of the Serial Port to 9600bps:

AT+IPR=9600

Change Minicom serial speed to 9600bps and reconnect by holding Ctrl + A, then 'Z' > 'O' > arrow down to 'Serial port setup' > enter 'E' > 'C'.

Press enter, then press 'Esc', then arrow down to 'exit' and press enter.

Step 3: Direct the NMEA Output to the Physical Serial Port:

AT+GPSNMEA=1,1,FFFF,FF

Step 4: Start GPS Output on the Serial Port:

AT+GPSSTART=2

(See Sierra Wireless HL8548 AT Command Guide for more details of GPS commands)

NMEA sentences should now stream from /dev/ttyAMA0.

Step 5: Stop Running GPS:

Open a Minicom session on /dev/ttyACM0 and enter:

AT+GPSSTOP

Close Minicom (Ctrl + A, then X > enter).

Microcontroller Contest 2017

Participated in the
Microcontroller Contest 2017

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions

    None
    philgree

    2 years ago

    These instructions didn't work for me. Here's what I did instead:

    1. Follow the other instructables also from linkwavetech to setup access via usb (ports /dev/ttyACM0 through 4)

    2. Fire up "minicom -D /dev/ttyACM3"

    3. Within minicom enter: "AT+GPSNMEA=4,1,FFFF,FF " (you shouldn't need to play with baudrate settings for this)

    Note: (the 4 signifies "current port" which in this case is /dev/ttyACM3 whereas 1 is UART1 aka /dev/ttyAMA0)

    4. Also within minicom (although you might prefer to so this from /dev/ttyACM0 to avoid clutter) enter: AT+GPSSTART=2 to start GPS

    5. As a basic test using minicom or gpsmon on /dev/ttyACM3.

    6. Next, take a look at gpsd (sudo apt-get install gpsd). Once you've got that installed, you can view the data using cgps or xgps (sudo apt-get install gpsd-client).