Question : When does System.IO.Ports.SerialPort<wbr /> DataReceived event fire?

Does this event fire only when a CRLF is received as part of the incoming serial data, or at some other time?    (This appears to be the behavior I'm seeing, but could also be some problem with sender) If so, if data is coming in that does not contain a CRLF, will I not know it?

Thanks.

Answer : When does System.IO.Ports.SerialPort<wbr /> DataReceived event fire?

I've done a project in vb6 once with serial communication. I know I had a lot of troubles with the right configuration before it worked well for me.
I know that the following properties will have implications on how it works. Does your send information is always the same length, has it a specific value in it to tell it is the end of the stream your sending, ...

oSerial.ReceivedBytesThreshold = 1
oSerial.BaudRate = 9600
oSerial.DataBits = 8
oSerial.Parity = Parity.Even
oSerial.StopBits = StopBits.One

Random Solutions  
 
programming4us programming4us