RobG 1,892 Posted June 28, 2012 Share Posted June 28, 2012 Sample code to display GPS fix data from the MTK3339 GPS module (group buy #5.) Raw: Parsed: updated 6/30 GPS-630.zip dkedr, kff2 and bluehash 3 Quote Link to post Share on other sites
bluehash 1,581 Posted June 28, 2012 Share Posted June 28, 2012 sweet! Does it get a lock fast enough? Also, I'll send you a GPS boosterpack in the mail. Quote Link to post Share on other sites
RobG 1,892 Posted June 28, 2012 Author Share Posted June 28, 2012 It takes about 1min-2min indoors (cold start.) Quote Link to post Share on other sites
kff2 22 Posted June 29, 2012 Share Posted June 29, 2012 Rob -- assuming you did not have bluehash's board, how did you connect the GPS module to a launchpad? Quote Link to post Share on other sites
RobG 1,892 Posted June 29, 2012 Author Share Posted June 29, 2012 Soldered 0.05 ribbon cable to GPS module and then to ProtoBoard. All you really need is Vcc, GND, and TX (to P1.1) Quote Link to post Share on other sites
RobG 1,892 Posted June 30, 2012 Author Share Posted June 30, 2012 Updated code (see first post.) Quote Link to post Share on other sites
RobG 1,892 Posted June 30, 2012 Author Share Posted June 30, 2012 Another update (checksum can now be used to validate sentence.) bluehash 1 Quote Link to post Share on other sites
username 198 Posted June 30, 2012 Share Posted June 30, 2012 Very impressive work RobG! Was looking at a datasheet for this guy and i'm still trying to figure out how it works. So the module just keeps spitting out GGA, GSA, GSV, RMC, and VTG Data? You don't have to send any messages to it? Did you first configure it at all with there USB/UART GUI? Quote Link to post Share on other sites
RobG 1,892 Posted June 30, 2012 Author Share Posted June 30, 2012 Yes, those 5 sentences are sent by default, no additional configuration is necessary. I will add couple of configuration examples in few days. Quote Link to post Share on other sites
RobG 1,892 Posted August 2, 2012 Author Share Posted August 2, 2012 This is how the GPS logger board looks like. I realized that I don't have any TSSOP EEPROMs on hand (and I am bit tired,) so I will do the testing in few days. If you don't need to use the battery, you can just cut it off. bluehash, GeekDoc and greenitguy 3 Quote Link to post Share on other sites
RobG 1,892 Posted August 9, 2012 Author Share Posted August 9, 2012 Finally got my memory chip and finished the logger software (still testing though.) Here's how it works. Code which uses logger is responsible for keeping track of time and write address. After GPS acquires location, memory address is set and timer is started. During each timer interrupt, location is parsed, then set using setLatitude(), setLongitude(), setTime(), and setDate(). Then writeTimeStamp() or writeDelta() is called. Each write will increase memory location. Time stamp is 16 bytes long, delta is 4 bytes. getAbsLatDelta & getAbsLongDelta can be used to determine if there's movement. If there isn't, delta interval can be increased to preserve memory. One time stamp every minute and delta every 5 seconds will use 3600 bytes per hour. One time stamp every 5 minutes and delta every 10 seconds will use 1584bytes per hour. Attached logger code is complete, but should not be used as it is still in progress logger.h logger.c bluehash and gordon 2 Quote Link to post Share on other sites
bluehash 1,581 Posted August 11, 2012 Share Posted August 11, 2012 If I wanted it standalone.. How do I get stuff off it? Quote Link to post Share on other sites
RobG 1,892 Posted August 11, 2012 Author Share Posted August 11, 2012 MCU has to be programmed to dump memory content via SPI or UART or to go into hi-Z mode when one of the pins is grounded which will allow direct access to memory. I have plans to do both of those things in the coming weeks. Quote Link to post Share on other sites
bluehash 1,581 Posted August 11, 2012 Share Posted August 11, 2012 Added to Store. Quote Link to post Share on other sites
krzyk2 11 Posted August 12, 2012 Share Posted August 12, 2012 I mentioned this in other data logger thread, wouldn't it be better to add a SD (micro?) card to this better than using a memory chip? If it would store the data directly to the card, (without any FS, just write from the first bit, and add some marker at the end) it wouldn't use much more memory of 2553 and it would definitely by easier to get the data out of it, not to mention the amount of data that could be stored. bluehash 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.