Using Parallax GPS with Propeller
Paul Voss
Posts: 13
Hi,
Does anyone have a piece of code (spin or propeller assembly) that will read in the Parallax GPS module in its Smart mode? I would also be interested in a more detailed description of the one-wire communications protocol (apparently in a document called AppMod). I can't seem to find this information on Parallax site (or on google).
Paul
Does anyone have a piece of code (spin or propeller assembly) that will read in the Parallax GPS module in its Smart mode? I would also be interested in a more detailed description of the one-wire communications protocol (apparently in a document called AppMod). I can't seem to find this information on Parallax site (or on google).
Paul
Comments
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
From the documentation:
It does transmit and receive on the same pin, but that's not a "one-wire" protocol. When you say "one-wire", people will assume you're referring to a specific protocol - as Leon did here.
en.wikipedia.org/wiki/1-Wire
What you need is an object to use a Propeller serial object (probably SimpleSerial, possibly FullDuplexSerial) to communicate with the Propeller. The Propeller will send an "attention" string ("!GPS"), then a command byte (there's a table of them in the GPS docs), and then read a number of bytes in return into your GPS variables. It should be a pretty straightforward matter for someone who knows what he's doing - define all of the commands as constants, define variables to hold the returned data, set up the communications with an Init method, etc.
Post Edited (sylvie369) : 11/29/2008 2:34:36 PM GMT
I found the attached files somewhere, I forgot where, but I think it's doing smart mode using a single wire, I don't think it's Onewire protocol, just a clever way of doing async serial using the same wire for both directions.
Hope it helps,
Gary T