- Netduino Forums
- → Bob Cravens's Content
Bob Cravens's Content
There have been 17 items by Bob Cravens (Search limited from 19-April 23)
#2292 Netduino Interfacing with Eye-Fi SD Card
Posted by Bob Cravens on 14 September 2010 - 01:24 PM in General Discussion
1. You install a service on your PC that is on your home network.
2. You configure the Eye-Fi card to connect to your network.
3. You take pictures with your camera.
4. When the Eye-Fi card is on your network, it connects to the service and transfers files.
Wow. This is very cool. I would like to repurpose this into a general data transfer system for the Netduino. Has anyone done this before?
Here is what is inside....
link
#1862 Port Arduino GPS Data Logger to Netduino
Posted by Bob Cravens on 06 September 2010 - 07:55 PM in Netduino 2 (and Netduino 1)
#1810 Netduino Firmware v4.1.1 ALPHA 1
Posted by Bob Cravens on 06 September 2010 - 12:09 AM in Beta Firmware and Drivers
#1808 Netduino Firmware v4.1.1 ALPHA 1
Posted by Bob Cravens on 05 September 2010 - 11:37 PM in Beta Firmware and Drivers
Somewhere, I open up a FileStream and a StreamWriter
_fileStream = new FileStream(_path, FileMode.CreateNew, FileAccess.Write, FileShare.None, 512); _writer = new StreamWriter(_fileStream);
I periodically write to the the _stream object. I found that if I just call flush on the StreamWriter nothing gets written to the file. I need to do the following:
_writer.WriteLine(rawLine); _writer.Flush(); _fileStream.Flush();
Its like the flush does not cascade to the underlying stream. I am not certain if that is the desired behavior. It was not what I was expecting.
Bob
#1805 Netduino Firmware v4.1.1 ALPHA 1
Posted by Bob Cravens on 05 September 2010 - 09:20 PM in Beta Firmware and Drivers
#1803 Netduino Firmware v4.1.1 ALPHA 1
Posted by Bob Cravens on 05 September 2010 - 09:02 PM in Beta Firmware and Drivers
#1744 Netduino Firmware v4.1.1 ALPHA 1
Posted by Bob Cravens on 03 September 2010 - 05:12 PM in Beta Firmware and Drivers
#1706 Netduino Firmware v4.1.1 ALPHA 1
Posted by Bob Cravens on 02 September 2010 - 10:06 PM in Beta Firmware and Drivers
string root = "SD_Card"; StorageDevice.MountSD(root, SPI.SPI_module.SPI1, Cpu.Pin.GPIO_Pin12); string path = Path.Combine(root, "test.txt"); string content = "This is a test"; byte[] bytes = System.Text.Encoding.UTF8.GetBytes(content); File.WriteAllBytes(path, bytes);
Sure enough, a file named "text.txt" with the content "This is a test" was on the SD card. It appears to me that this is only an issue with the debugger connecting to the device.
I am using the GPS Shield from the ladyada site. It has a 2GB SD card. This is looking very easy to use. Thanks!
Bob
#1704 Netduino Firmware v4.1.1 ALPHA 1
Posted by Bob Cravens on 02 September 2010 - 09:59 PM in Beta Firmware and Drivers
#1703 Netduino Firmware v4.1.1 ALPHA 1
Posted by Bob Cravens on 02 September 2010 - 09:45 PM in Beta Firmware and Drivers
#1693 Netduino Firmware v4.1.1 ALPHA 1
Posted by Bob Cravens on 02 September 2010 - 07:13 PM in Beta Firmware and Drivers
#1566 Port Arduino GPS Data Logger to Netduino
Posted by Bob Cravens on 31 August 2010 - 02:44 PM in Netduino 2 (and Netduino 1)
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
#1533 Port Arduino GPS Data Logger to Netduino
Posted by Bob Cravens on 30 August 2010 - 09:45 PM in Netduino 2 (and Netduino 1)
Attached Files
- GpsShield.zip 88.13KB 50 downloads
#685 Port Arduino GPS Data Logger to Netduino
Posted by Bob Cravens on 17 August 2010 - 06:50 PM in Netduino 2 (and Netduino 1)
#675 Port Arduino GPS Data Logger to Netduino
Posted by Bob Cravens on 17 August 2010 - 06:02 PM in Netduino 2 (and Netduino 1)
#671 Port Arduino GPS Data Logger to Netduino
Posted by Bob Cravens on 17 August 2010 - 05:20 PM in Netduino 2 (and Netduino 1)
#636 Port Arduino GPS Data Logger to Netduino
Posted by Bob Cravens on 17 August 2010 - 04:18 AM in Netduino 2 (and Netduino 1)
- Netduino Forums
- → Bob Cravens's Content
- Privacy Policy