decoding NEMA 0183
Macgman2000
Posts: 59
Hello All,
I hacked an old·"hockey puck" GPS using 4800bps 8N1, ASCII format. It's an old TravRoute serial GPS·I got for free. I want to decode the current position data stream and display on an LCD. Is there any sample code for doing that? or any help will be appreciated.
Best Regards,
Nick
·
I hacked an old·"hockey puck" GPS using 4800bps 8N1, ASCII format. It's an old TravRoute serial GPS·I got for free. I want to decode the current position data stream and display on an LCD. Is there any sample code for doing that? or any help will be appreciated.
Best Regards,
Nick
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Post Edited (Jonb) : 5/13/2005 4:22:20 AM GMT
Thanks!!!
Best Regards,
Nick·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Can the·Serin command·loop on a qualifier. Ex,·wait to see $GPGAA then start·counting off commas until you get to the byte of interest?
Best Regards,
Nick
Wait_For_GPGAA:
· RXBYTE @serByte
· IF serByte <> "$" THEN Wait_For_GPRMC
· RXBYTE @serByte
· IF serByte <> "G" THEN Wait_For_GPRMC
· RXBYTE @serByte
· IF serByte <> "P" THEN Wait_For_GPRMC
· RXBYTE @serByte
· IF serByte <> "G" THEN Wait_For_GPRMC
· RXBYTE @serByte
· IF serByte <> "A" THEN Wait_For_GPRMC
· RXBYTE @serByte
· IF serByte <> "A" THEN Wait_For_GPRMC
·After that you can put the RXBYTE call into a loop to skip over as many characters as you need to skip.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
I guess I am not up on all the coding tricks. I can't see how it all works. Let me see if I understand, set up SERIN in a subroutine that is polled? Then go to WAIT_FOR_$GPGAA? Is there a tutorial I can reference, I am not familiar with this coding method. I guess I have been using PicBasic Pro for too long and stuck on that type of coding.
Best Regards,
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
I read the Jan edition and reviewed the SX/B help section regarding SERIN. I was able to get my GPS to work.·I compared the data·on my LCD with·a magellen handheld and it checks out.
Thanks for your help!!!!
Best Regards,
Nick
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA