How do you simulate a serial device?

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?

+5
source share
5 answers

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.

+8
source

I used Com0Com for a while and wrote simulator / emulator code.

+6

? , .

, Windows, -, , CreateFile, #.

== ==

.net, . , , - open COM1: - . , , `c:/com1testdata.txt. , / , . , , .

+1

, - , , ZTerm ( Mac, ). script, , .

0

, . , QEMU TTY, , , .

0

All Articles