Advertisement Jump to content


This topic is now archived and is closed to further replies.


Writing a program to use GPS data.. How??

This topic is 5343 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there! I'd like to know where/what I should start looking if I want to write a program to retrieve the coordinates from my USB GPS unit. I know how to code, but I've never done anything involving getting data from a hardware. Thanks in advance! Oops! I forgot to mention that my target platform will be OSX and Windows. [edited by - rca420 on June 4, 2004 10:13:57 PM]

Share this post

Link to post
Share on other sites
Well, you basically need two things.

One, you need a generic USB interface so you can listen, google one you like.
Two, you need the output message formats for whatever your GPS is outputting (assuming it's not just text, the GPS's I use tend to have both binary and text modes) so you can decode it into useful information.

edit: fixed massive whitespace (thanks Rommie. *sighs, and removes the cat's head from the enter key)


[edited by - felisandria on June 5, 2004 2:18:49 AM]

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
Most serial(ie RS-232) units have proprietary binary modes and NMEA text modes. Programming the text mode is easier and it''ll likely be portable to other usb gps units.

Just google for NMEA sentences and you''ll find something.

BTW USB gps devices tend to identify themselves as a HID (!) for some reason, instead of a different kind of USB device.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!