I am writing a C program on Linux that will read / write to / from the serial port. I know the data that needs to be read and written to the port, but I do not have a serial port to verify this.
Is there a way to simulate a serial port? Would it be enough to read / write to a file? I can write one process to a file, while another process reads this data and writes other data to the file. Or are there other tools you can use to simulate a port?
thanks
c linux serial-port
Trevor
source share