Port Arduino GPS Data Logger to Netduino
#1
Posted 17 August 2010 - 04:18 AM
#2
Posted 17 August 2010 - 04:34 AM
Thanks for the post, and welcome to the Netduino community. Let's see if we can help.
To start with, I believe what you're trying to do is:
1. Read the GPS data from the GPS receiver in its standard NMEA format
2. Save the received data to an SD card
Step #1 should be really easy...using the SerialPort class. Step #2 will be easy in about two weeks when we publish the first beta firmware for SD card use over SPI. I've tested the SD on the Adafruit Datalogger shield and it works great with 3.3V -- so I'm pretty sure that the SD on the Adafruit GPS shield will work well too. We have one here, so I'll try it for sure.
Are there any other things you'd like to do...such as parse the data for use at runtime? Or are you just wanting to manually upload the saved data (or once we have networking support, maybe send the data automatically)?
[I know that we had a bit of an offline conversation about all this...but I ask here to make sure we're all on the same page. Lots of community members have been pitching in code, so I bet we can pull some of it to help you port this project to a Netduino.]
Chris
#3
Posted 17 August 2010 - 05:20 PM
#4
Posted 17 August 2010 - 05:42 PM
#5
Posted 17 August 2010 - 06:02 PM
#6
Posted 17 August 2010 - 06:25 PM
#7
Posted 17 August 2010 - 06:50 PM
#8
Posted 30 August 2010 - 09:45 PM
Attached Files
#9
Posted 31 August 2010 - 02:44 PM
I have put together an initial stab at creating a GPS Shield class that encapsulates the reading / parsing of the GPS data. I saw that the .NET MF supported events and multi-threading. I attempted to put the reading of the serial port into a thread of its own. The responsibility of that thread is to read data from the gps module, collect whole lines, parse the data (if necessary) and raise events. The two events are for parsed gps data and for the raw line. The raw line allows other gps sentences to be handled externally. Of course the class could be extended to include parsing other gps lines.
I found that a number of the .net framework calls that I wanted to use do not have (or don't appear to have) .net mf counter-parts. I am also feeling a bit out of my area of expertise with things like threads on the netduino hardware. I thought I would post this code to get feedback before I go much further. You will find an attached solution.
I just want some reassurance that the code is not fundamentally flawed and it seem like there is probably better ways of doing some of the things. For instance, parsing the check sum string (hex) into an integer seemed overly complex. Usually, there is a string.format("x") that works, but that did not seem to be supported.
Thanks for any comments.
Bob
In case you wander to here first....
There is a much better GPS parser here: http://forums.netdui...ated-8-26-2010/
Bob
#10
Posted 06 September 2010 - 07:55 PM
#11
Posted 06 September 2010 - 07:57 PM
I was able to port this arduino project to the netduino using the 4.1.1 alpha 1 firmware. Here is a link to the details.
http://blog.bobcrave...heNetduino.aspx
Nice job. We just retweeted your project.
Is that your own truck that you're tracking, by the way? Makes me want to go meet up in Wisconsin
#12
Posted 08 August 2011 - 10:44 AM
#13
Posted 02 November 2011 - 11:19 AM
Attached Files
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users