Examplecode for GPS functionality on the QW-GPS-DEVKIT.

Dependencies:   mbed

Fork of HelloWorld - QW Development kit by Quicksand micro-electronics


This program starts the GPS on the TD1204 in continuous navigating mode using the following AT-command:


A timer sends the latests gps fix every 30 seconds or 10 minutes to the SIGFOX backend using the following command:


LED3 burns if a 30 second interval is set. LED4 burns if a 10 minute interval is set. Switching between intervals can be done using button 1.

Button 2 instantly sends the latests fix to the SIGFOX cloud.

Settings in the SIGFOX backend

Create a new device-type and set display typte to Geolocation > Telecom Design.


Assign your development kit to this device-type and the decoding will happen automatically:


Data if no GPS fix was found!

Note: The data looks like this if your device didn't get a valid fix before the transmission of a SIGFOX packet.


You can follow the NMEA messages of the GPS if you open up a terminal and connect to the virtual com-port of the QW shield. More info about NMEA messages can be found HERE.


GPS data is displayed in different message formats over a serial interface. There are standard and non-standard (proprietary) message formats. Nearly all GPS receivers output NMEA data. The NMEA standard is formatted in lines of data called sentences. Each sentence contains various bits of data organized in comma delimited format (i.e. data separated by commas). Here’s example NMEA sentences from a GPS receiver with satellite lock (4+ satellites, accurate position):


For example, the GPGGA sentence above contains the following:

  • Time: 235317.000 is 23:53 and 17.000 seconds in Greenwich mean time
  • Longitude: 4003.9040,N is latitude in degrees.decimal minutes, north
  • Latitude: 10512.5792,W is longitude in degrees.decimal minutes, west
  • Number of satellites seen: 08
  • Altitude: 1577 meters

Note, every 30 seconds an "OK" will appear after sending the SIGFOX message.

More information about the NMEA sentences coming from the TD1204 can be found in the following datasheet of the u-blox 7 series: Link.

You can even open up a track of your device:



Download repository: zip gz

Files at revision 1:18afd4c75c6e

Name Size Actions
main.cpp 2562 Revisions Annotate
mbed.bld 65 Revisions Annotate