Click here to Skip to main content
15,912,400 members

Comments by Member 11915058 (Top 4 by date)

Member 11915058 21-Aug-15 20:29pm View    
checkBox0 ... to checkBox9 ==> in GroupBoxA
textBox0 ... to textBox9 ==> in GroupBoxB
Member 11915058 17-Aug-15 17:31pm View    
I tried to send and receive via a NULL modem and it works! I can receive the data from hyperterminal/arduinoIDE terminal and read it with Visual Studio.

Visual Studio ==== can Write to ====> MocroController
Visual Studio ==== can Read from ===> HyperTerminal
Visual Studio ==== can Read from ===> ArduinoTerminal
HyperTerminal ==== can read from ===> MicroController
Arduinoterminal == can read from ===> MicroController
Visual Studio ==== CAN'T read from => MicroController ???
Member 11915058 17-Aug-15 13:22pm View    
"How are you sure? Do you receive data on microcontroller side?"
I send to microController with Visual Studio someting like : "this is from Visual"
and the I read the string variable with a "working Serial Terminal" and I receive: "this is from from Visual".

"I would put a breakpoint inside DAtaReceived handler and make a test with microcontroller sending data in a neverending loop."
I send every 500ms from the micro a word but can't reach the breakpoint inside DAtaReceived handler.

I tried to read the serial buffer with a readButton but have nothing.
private void readButton_Click_1(object sender, EventArgs e)
{

readBox.Text = serialPort1.ReadExisting();

}
Member 11915058 17-Aug-15 12:53pm View    
I never received one character, and I never get an event here.
But Im 100%, I can send some data.

private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
DispString = serialPort1.ReadExisting();
this.Invoke(new EventHandler(DisplayText));

}