Yaelf
Posts: 1
Joined: Wed Dec 26, 2007 11:50 am

0x1A character treated as EOF in c# SerialPort

Wed Dec 26, 2007 11:51 am

I have encountered a problem in the c# SerialPort, that sometimes it treats 0x1A (when sent within a bulk of data)as EOF and disrupts the communication. Did you hear about this problem? Is your serial component written with c# or c++? did you solve this problem??

User avatar
johan
GpsGate
Posts: 14387
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: 0x1A character treated as EOF in c# SerialPort

Wed Dec 26, 2007 1:56 pm

There is nothing in SerialTools that acts on 0x1A.

Maybe the device you send/receive from acts on 0x1A, or maybe your own code does.

Regards,
Johan

Franson Support

rlachance
Posts: 1
Joined: Wed Jan 16, 2008 4:33 pm
Location: USA

RE: 0x1A character treated as EOF in c# SerialPort

Wed Jan 16, 2008 4:34 pm

Johan,

I believe Yaef was referring to System.io.ports.SerialPort
not Fransen stuff.

We've used PortMon and see that SerialPort sets EOF to 1a in the
underlying port, and are investigating further.

Yaef, If I find anything I'll post it back here.

Return to “SerialTools”