trying to get a gps to work
science_geek
Posts: 247
i recently received this gps http://www.sparkfun.com/commerce/product_info.php?products_id=465, i have yet to get it to work, has anybody ever used this, or know how to get it started
Comments
I kept my USB cable plugged into the Propeller Demo Board and after a little bit (it had to aquire the GPS signal) I was starting to see data streamed to my laptop. The data was showing up in a terminal window (I was using Parallax Serial Terminal). The data shown in the terminal window is s formatted screen with various items - this screen/data was formated by the Propeller Object, it was just the raw data from the device.
Oh - also be sure to set the correct BAUD rate for the Propeller GPS object for your device. I think there was some digging in the GPS code to find and set that - perhaps it was in a sub-object.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com
When you connected the propeller with the GPS module (with level shifter), you simply can use FullDuplexSerial.spin to read what it says. Maybe you can start the Serial object on 2 COGs and simply copy the output of the GPS to the PC for the beginning. With the NMEA Reference you can decode those messages. Once you understood what it sends, you can write some spin code which decodes the messages and shows them in a user-friendly format.
I've·had great luck with several of these GPS units.
Just apply 5 volts.· The red LED will come on.· When the LED blinks, you have GPS lock.· I normally get GPS and WAAS lock inside·the house.
To read the output with a computer, use the Prop Plug.· Wire Rx, Tx, and VSS to the GPS unit and use HyperTerminal to view the output.· There is another program called SIRFDemo, version 3.83 is the latest that I have found.· I don't remember where I got it, just do a search.· At one point, Sparkfun had SIRFDemo available, but I didn't see it there now.
Using SIRFDemo, the GPS can be set to output only the·GGA and·RMC NEMA strings at 57,600 bps.· The GPS will remember these settings for a few days if left unpowered.
I'm just using a 10K resistor between the GPS output and the Propeller pin.· I'm not sending the GPS anything from the Propeller.· I'm using Tim's four port serial version of the FDS object.· At 57,600 bps there isn't enough time to save one NEMA string before the next one starts, so I'm only grabbing the few pieces of data that I need from the first NEMA string (GGA string, fix and··# of sat info) and saving the·whole NEMA RMA string.
··· Rick Brooks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit my site -> [url=Http://www.rawcircuits.com]www.rawcircuits.com[/url]
edit: i just tried getting the gps data without the use of another object, i opened up another fullduplexserial object to read the pins of the gps and get the same random characters as i would with just a straight shot with the propplug
Post Edited (science_geek) : 3/22/2009 10:59:15 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering