Shop OBEX P1 Docs P2 Docs Learn Events
Detect output type of GPS unit — Parallax Forums

Detect output type of GPS unit

kg6mtikg6mti Posts: 7
edited 2006-08-17 11:52 in BASIC Stamp
Does anyone know of a way to have a Stamp chip application detect the output type of a GPS unit before capturing data?· For example is the GPS output in plain text or NMEA or a proprietary type.

Thanks!

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2006-08-17 11:52
    In the part of the Stamp program where you decide what format to expect, use the serin command (and the WAIT function) and look at the first first few characters of the string. Then, based on that header information, process it as required by your application.

    The string from nearly all common GPS units is NMEA compatible, in ASCII characters and may include special strings based on which manufacturer you're connected to.

    Just hook the GPS to Hyperterminal and have a look!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
Sign In or Register to comment.