V
vorange
I can successfully send a character from my C# program to the serial
port to a device. But when I have that device send me back a character
and I read it in, I get the same character that I sent out!
What is going on here. I have verified that the device is indeed
sending back the proper character that I want.
But for some reason, my C# program only shows the char I sent out. Its
like its being echoed back. Why ?
I'm using a DataReceived event to handle the incoming byte and this
code to read the byte :
int i = 0;
i = port.ReadByte();
str2 = i.ToString();
MessageBox.Show (str2);
port to a device. But when I have that device send me back a character
and I read it in, I get the same character that I sent out!
What is going on here. I have verified that the device is indeed
sending back the proper character that I want.
But for some reason, my C# program only shows the char I sent out. Its
like its being echoed back. Why ?
I'm using a DataReceived event to handle the incoming byte and this
code to read the byte :
int i = 0;
i = port.ReadByte();
str2 = i.ToString();
MessageBox.Show (str2);