In my current quest for interacting with some kind of legacy equipment, I found that the software supplied by the vendor sets special characters:
00 00 00 00 11 13
But the SerialPort.NET class set them to:
1A 00 00 1A 11 13
I believe that I have two questions:
- What do these bytes mean?
- How can I tell SerialPort to use a special set of special characters?
The latter is all that I really care about, but I suspect that the former will be useful to know.
Update: The following does not work:
byte[] specialchars = { 0x00, 0x00, 0x00, 0x00, 0x11, 0x13 }; this.port.NewLine = System.Text.Encoding.ASCII.GetString(specialchars);
Update 2:. As requested, Portmon logs are presented here for the vendor of the supplied application (filtered to remove many thousands of IOCTL_SERIAL_GET_COMMSTATUS entries) and for my attempt to match even the first exchange .
source share