Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

newfierich

Member Since 09 May 2011
Offline Last Active Aug 12 2011 05:32 PM
-----

Topics I've Started

NMEA checksum Calculator

11 August 2011 - 04:58 PM

Hello all. Wondering if anyone was successful in creating checking checksums in NMEA messages? Problem I am having is that .net micro does not have a Convert class... Has anyone on the forum been successfull in calculating NMEA checksums? http://www.codepedia... NMEA Checksums

Connecting Netdruino to MySQL db

17 June 2011 - 11:29 AM

Wondering if anyone has tried or has working code on how to connect netdruino to a MySql db.

UTF8 Encoding

13 June 2011 - 05:08 PM

I am having issues in Encoding UTF8 from a byte array. The byte array is coming from a GPS Unit via an UART. It works fine most of the time, but when I plug it in or unplug it, sometimes I get an error. Here is the line of code I am using to convert the byte array:

GPSMessage = new String(System.Text.Encoding.UTF8.GetChars(GPSbuffer));


Here is the error trace:
    #### Exception System.Exception - CLR_E_WRONG_TYPE (3) ####
    #### Message: 
    #### System.Text.UTF8Encoding::GetChars [IP: 0000] ####
    #### NetduinoPlusAHRSTest.Program::Port1_DataReceived [IP: 002e] ####
    #### System.IO.Ports.SerialPort::DataEventHandler [IP: 0016] ####
A first chance exception of type 'System.Exception' occurred in mscorlib.dll

I believe I am getting these errors because UTF8 takes two bytes per char. By plugging in the unit, it has a 50/50 chance of picking up the stream in the right orientation. Likewise if I unplug the GPS unit, there is a 50/50 chance that the last char might be missing a byte... I am wondering how do I work around this? I attempted doing a try{} Catch{} around the Encoding line, but errors are still raised from time to time.

Any help would be appreciated. Let me know if any of my logic of why I am getting these error from time to time are incorrect.

File Download Via Ethernet

26 May 2011 - 06:19 PM

Hello all, I am new to the Netduino Plus and have just started to play with its Ethernet capabilities. I am wondering if it is possible to download a full file from an Ethernet connection. Are there any examples of this online?

Serial Port Interrupt

12 May 2011 - 04:54 PM

I am wondering if there is a way to setup a interrupt for when there is data to read on a serial port. I was hoping to do something similar to the event handlers button revisted example but apply it to one of the UARTS..

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.