Serial Port EofReceived Event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm writing a program in C# that sends files through the serial port and am
trying to figure out what to send that will trigger the
SerialEvents.EofReceived event of the other computer. I tried sending '\x1A'
and every other unprintable character and that event never gets triggered.
Any ideas??

Thanks,

Ron
 
Ron said:
I'm writing a program in C# that sends files through the serial port and am
trying to figure out what to send that will trigger the
SerialEvents.EofReceived event of the other computer. I tried sending '\x1A'
and every other unprintable character and that event never gets triggered.
Any ideas??

When would a serial-port stream end? it's infinate, I would never expect
an EOF from a serial-port.

You can check for a specific byte-value and interpret that as EOF,
remember to escape that value when trying to transfer it as a value and
not EOF, with the obvious problems :)
 
Back
Top