Garmin gps
Hi,I'm interfacing a garming gps 35 lvc serially. I'm trying to read the longitude and latitude reading
from the $GPRMC string from the GPS.
I found plenty of examples, but I'm not getting any reading on the debug or on the LCD from my GPS.
I'm using a BS2Pe.
it seems that the chip keeps waiting for the gps to send the string "RMC" with a wait("RMC") to read data, but nothing happens.
it stays idle forever.
·I first tried the sample code wich uses a wait("@"), and I do get some garbage like every 4 minutes or so and it diplays to the lcd and the debug screen,· but when I changed to the wait("RMC"), nothing happens.
here is some of my code which is really messy ·because I'm using a example I found on the parallax sample amd commented some of the old commands so I could see the old example.
can anyone please help me.
thanks
Walter
from the $GPRMC string from the GPS.
I found plenty of examples, but I'm not getting any reading on the debug or on the LCD from my GPS.
I'm using a BS2Pe.
it seems that the chip keeps waiting for the gps to send the string "RMC" with a wait("RMC") to read data, but nothing happens.
it stays idle forever.
·I first tried the sample code wich uses a wait("@"), and I do get some garbage like every 4 minutes or so and it diplays to the lcd and the debug screen,· but when I changed to the wait("RMC"), nothing happens.
here is some of my code which is really messy ·because I'm using a example I found on the parallax sample amd commented some of the old commands so I could see the old example.
can anyone please help me.
thanks
Walter
Comments
·· What baud rate does the GPS unit communicate at?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
The code you're attempting to adapt is not suited for the $GPRMC string; that code was written for the Garmin text output that uses fixed field formatting instead of comma delimited fields as with $GPRMC (my original comments in the program explain that).· Earlier I wrote code that takes advantage of the BS2p-family SPRAM.· See this article for details on receiving and parsing standard GPS strings:
http://www.parallax.com/dl/docs/cols/nv/vol3/col/nv83.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
thanks Jon,
I will try this when I get home later on tonight. and see what happens.
Thanks
Walter
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
it does not pass the wait ("GPRMC"). I don't know why.
It can't find the string I guess.
I'm so frustrated
walter
since I'm using a BS2Pe the one in the sample doesn't work. chaged my constants to:
T4800 CON 188
Inverted CON $4000
N4800 CON T4800+Inverted
wow....I can sleep better tonight. the only thing is that this a lot of code just for this. in my memory map it shows my eeprom 77% full.
Jon, thanks for the help
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I'm not familiar with the different program slots.. I see some sample code in the BS2 manual under the Store command. I'll have to do some reading. do you recommend combining all the slots by using pointers to create one big eeprom so i can have room for my project?
Thanks
Walter
I've attached one of our older programs to help -- it could stand a bit of updating though, so look for and take advantage of any opportunities to improve the code.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Interesting code. I'll have to spent some quality time and trying to uderstand it. I'll refer back to the manual.
Since I have may events hapening at the same time, motor,gps,sensors, I would like all my code to be in a flat slot. I think It will work if my code is in two slots, but I'll have to see.
thanks
Walter
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax