Collecting GPS Data Using GPS Module With Windows IoT


In this tutorial we will demonstrate how GPS data can be collected from a serial GPS module. We are using an Andoer u-Blox NEO-6M GPS module, which has excellent GPS capabilities. One of the NEMA sentences that it collects includes the GPGGA sentence which provides essential fix data. We’ll show you how to develop an application that will collect the serial data in the form of a sentence, which is then parsed using our custom parser to extract the essential GPS data.
Come along and let’s do some Regex!!
First of all, connect the GPS breakout board to the Raspberry Pi 3B, as shown in the schematics. Then, launch a Visual Studio instance and create a Blank Application (Universal Windows).Collecting GPS Data Using GPS Module With Windows IoT
Your brand new UWP application will launch for edit in Visual Studio. You’ll notice an empty design palette to begin with that is MainPage.xaml. If you look in the code behind file you’ll see the MainPage class which has  a default constructor. Basically, this is where the program enters for execution when launched. Now let’s add some design elements into the MainPage and make it look nice. Below is the design we put together for use in this tutorial:
You’ll want to enable Windows IoT Capabilities by right-clicking the References from the Solution Explorer and choosing ‘Add Reference’. Then, select Universal Windows >> Extensions >> Windows IoT Extensions for UWP, and finally click ‘OK’.
Don’t forget to provide Serial Capabilities to the UWP app by opening the Package.appmanifest file and adding these lines:
<DeviceCapability Name=”serialcommunication”>
<Device Id=”any”>
<Function Type=”name:serialPort” />
For more detail: Collecting GPS Data Using GPS Module With Windows IoT

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top