BS2p24 and Garmin eTrex Venture, data retrieval
Kewpie
Posts: 13
Hi guys,
currently on·a final year project, need help !!
i want to extract certain data from my garmin etrex venture, i tried the simple_gps program provided by parallax and manage to got the GPRMC string but no the individual values for each field. on the debug window it return me a "?" after each field title.
what are the settings i need to set for my garmin and is the program compatible with my hardwares.
what position format should i set to?
and serial data format i set to nmea in and out..
anyone able to help me thanx !
looking forward for your replies
currently on·a final year project, need help !!
i want to extract certain data from my garmin etrex venture, i tried the simple_gps program provided by parallax and manage to got the GPRMC string but no the individual values for each field. on the debug window it return me a "?" after each field title.
what are the settings i need to set for my garmin and is the program compatible with my hardwares.
what position format should i set to?
and serial data format i set to nmea in and out..
anyone able to help me thanx !
looking forward for your replies
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
and i change the GPSpin to pin 8 and connected a wire to the specified pin to pin 2 of the serial cable.
And using BS2p. i manage to get the top part the whole gps string but its not parse out into individual components where its suppose to be data i recieve a question mark
Check position 7 in the string -- this should be "A" if the GPS data is valid (note this is highlighted in my screen shot).· If it is not "A" the program will assume the rest of the string is bad and not display the data.· You can, of course, code around this.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 8/16/2004 2:09:55 PM GMT
I got this doc from somwhere in the webspace.... maybe it will help you.
· I hope so.
Francisco
I'll work on it ! And hopefully could get it right...
cheers
settings for my gps are
baud rate - 4800
serial data format - NMEA in/NMEA out
position format - hddd mm ss.s
map datum - WGS 84
when my gps manage to track its position already i somehow got and "error - no gps data detected message"
I don't think the units setting affect the NMEA output strings, but here are the settings from my eTrex that I used in yesterday's test (screen shot above):
UNITS page
-- Position Format: hddd.ddddd
-- Map Dataum: WGS 84
-- Units: Statute
INTERFACE page
-- I/O Format: NMEA Out
-- Baud: 4800
I have used the code I posted yesterday with a standard eTrex, as well as the eTrex Summit -- it works with both.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
wat are the pins needed to connect to BS2p24 ?
how everything is suppose to be rightfully connected ?
i connect the stamp with the pc and use the demo board to connect the GPS.
wish to clarify the part whereby GPS is connected to the stamp demo board..
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
hmm alright i'll try it again
Thanx !
By the way if i need to define a certain area (range of longitude and latitude) and name them. Section the singapore map into areas.
Is it possible with BS2p24 P.Basic ?
any example or guideline for me to follow ?
Thank you for updating the code, it's wonderful.· How could i get this code functioning on a BS2SX?· Please advise, thank you.
Regards,
Christopher
But ... if you have one of Garmin's eTrex models you can set it to text output at 2400 baud and use the attached program (it will work on any BS2-family module).· I've tested it on a BS2 and it works great.
For anyone that does have an eTrex, I encourage you to explore the Garmin text output as it's easier to parse, and it comes out every second.· When using NMEA mode, the $GPRMC string is only available every two seconds.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 8/20/2004 1:41:59 PM GMT
But in retrospect you couldn't do this with a BS2SX using the GET and PUT commands into the BS2SX's 64 Byte scratchpad?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Thank you for the reply.· One thing i've noticed is that I can pull 9600 baud into the BS2SX but if I make my string size larger than·25 bytes I lose the rest of the characters.· For example,
GPSpin··· CON··········· 5
N9600···· CON··········· 240··········· ' 9600 baud 8N1 for trimble
serStr··· VAR··········· Byte
SERIN GPSpin, N9600, [noparse][[/noparse]WAIT("GPRMC,"), STR serStr\25]
produces
191612.00,A,3217.0349,N,11
but if I increase my STR serStr to a value greater than 30 I get nothing.· It seems like the BS2SX can handle having 25 bytes of data crammed into it at 9600 baud and then chokes.
I do like this trimble lassen SQ however and hope to get the kinks worked out.· Thank you for your assistance.
And don't think that just because the Memory Map is showing one byte used (serStr) that you're okay.· The way your program works, the first byte received by SERIN is going into serStr, the second into serStr + 1, etc.
What you're doing, in effect, is:
If you change 25 to 30 the compiler will complain.· What you probably need to do is multiple SERINs to grab all the information you want.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 8/20/2004 7:45:20 PM GMT
I do not know if this is active or not, but a lot of reading, interesting one....
I have one question; I have a Homework board... Is it compatible with all of this?
I'll appreciate your comments....
As you can see, I'm new to this.
Thanks
Cinci_Cap
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Thanks for your response, and sorry to ask the same things all over again...
When I tried to load your Easy GPS program, first of all, the editor recognized that it was written for other stamp mode. When I run thr program it stops od the Serin command and highlights the SPSTR command and an error occurs saying "Expected Variable".
Am I doing something wrong?
Thanks again for your comments and knowledge!!
Cinci_Cap
Add the following directive to the beginning of your program:
' {$PBASIC 2.5}
Regards,
Bruce Bates
I have downloaded your Easy_GPS of 8/20/2004 and it seems to be working....
gona get to it and see how it works...
Cinci_Cap
At this moment the Easy GPS is connecting.. It only updates hours... 19:01:01 to 19:00:01 Thats it, I'll check my connections and see how it comes out. Thanks Again!!
Cinci_Cap
I have done that, thanks!!!
Cinci_Cap (Gab)
It seems pretty simple and am not able to figure out why it is not working. Please help!
Jason
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sick and tired of our media and the cheesy radio DJ's in the US? http://www.opieandanthony.com
Also, one more interesting thing happened yesterday. Previously, I was testing the stamp with GPS in lab without getting satellite signal and my debug screen was· displaying msg "No GPS data detected"....yesterday I tried the same set up in open ground with valid signal and instead of getting error msg I got the screen with labels (speed, signal, latitude..etc.) without any data numbers. Is it the case that simple GPS code available on parallax web is running with valid satellite signal?
Looking forward to your reply!
Neha
·