Hello,
In a topic on Netduino Plus 2 I said I would run a simple test on the Netduino 3 COM2 SerialPort and post the results: http://forums.netdui...data-corruption
I've attached the very simple serial port loop-back program that I used to test COM2 on the Netduino 3 and Netduino Plus 2. It has two byte arrays. One has data in it and the other is created with the same size as the first. I transmit the data from array 1 over the serial port and receive the data on the same serial port. The received data is placed in the second array. After all the data is sent the two arrays are compared. The test passes (slow .5Hz blink of user LED) when the data is equal. The test fails (fast 2Hz blink) if the data is not equal.
The test uses Request to Send flow control.
To set up the test I jumper D7 and D8 (COM2 RTS and CTS) together and D2 and D3 (COM2 RX and TX). I also put an LED between GND and D13 to know when data is being received.
The results are a bit complex.
Running the test on a Netduino Plus 2:
In debug with an SD card in the slot the test passes.
Not in debug with an SD card in the slot the test fails.
Not in debug without an SD card in the slot the test passes.
When the test is run on a Netduino 3 data stops being received and the test never completes no matter if it run in debug with or without an SD card in the slot.
Thank you!
Hawkez
SimpleSerialPortLoopbackTest.zip 111.47KB 19 downloads