Hello, this is my first post, so go easy...
I'm a very experienced C, C++, C# programmer and work as a developer for embedded equipment, so I have quite a bit of experience with serial communications. I'm brand new the Netduino world tho.
My problem is that I have a home built RS232-TTL (using a MAX3232) converter which seems to work on 'scope but in a very simple program using Serial.Read() when my dataReceived handler get called, I get a value for serial.BytesToRead that varies, (as you would expect from a serial port) but the Read() function either never fills the buffer or it fills it will all 0's.
In further testing I've noticed that with nothing attached to any of the pins (no incoming serial data, nothing is connected) I STILL get my dataReceiver handler called and there is a positive value for the serial.BytesToRead. Which does not make sense.
The board is Netduino Plus 2 running 4.2.2 and I am using VS2010 Ultimate with the 4.2 SDK. I would have thought the RS232->TTL board was not working, but when I say it's home built, it's actually not, it's a device we use in house with the Ethernet module removed (we do serial to ethernet conversion on our equipment). I had an EE put the converter on a scope and he said it works perfectly.
The source of the serial data is a GPS running at 4800 baud and it is sending data correctly verified by Hyperterminal on a PC.
I've broken down to a simple program, and here is the essence of it. In main: