Reading GPS Values through Serial Interface.

Altair Forum User
Altair Forum User
Altair Employee
edited November 2020 in Community Q&A

I'm currently trying to get a GPS to output values with an f28069m board. The GPS is this model: https://cdn.sparkfun.com/datasheets/GPS/EM506_um.pdf. I'm currently getting values from the GPS Module through a serial connection, but it seems I need to decode it into an NMEA (http://aprs.gids.nl/nmea/) sequence, as the current values make no sense to me, however I know they are values from the GPS, because they change when the module is on VS off. Attached are the values I've been able to receive as well as the code I've been using to get those value. The only values I really need are Longitude, Latitude, and height.

Thank you,

Jake

Unable to find an attachment - read this blog

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2018

    Jake, the diagram you have attached only has a target interface block. My understanding is that you have correctly used this block to read the save the data from the microcontroller to a text file. Can you please also share the diagram which you used to create the .out file?

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2020

    The diagram I used was just a basic serial read block. I don't know how to modify it to get real values though.

    Unable to find an attachment - read this blog

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2018

    My understanding is that you want to read the values from the Serial port of you microcontroller (MCU) and then save them to a local text file. Practically the data goes from the GPS to your MCU and then to your PC. In order to do this you need to take advantage the Hardware in the Loop capabilities of Embed so that through the JTAG you can communicate data to and from your PC. Please take a look at the video here on how to create a basic HIL diagram. You can also check the video on encoders to get a better idea of how to read data using HIL.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.