I am working on a driver that talks to a device through a serial port in C #. My device for physical testing is not always available. Is there a way to simulate a device on a serial port so that it responds perfectly?
Get a second COM port and use a Null-modem cable to connect the COM ports to allow two C # programs to talk to each other.
I used Com0Com for a while and wrote simulator / emulator code.
? , .
, Windows, -, , CreateFile, #.
CreateFile
== ==
.net, . , , - open COM1: - . , , `c:/com1testdata.txt. , / , . , , .
COM1:
, - , , ZTerm ( Mac, ). script, , .
, . , QEMU TTY, , , .