[Interest] Is there a way to simulate serial port data?
Konrad Rosenbaum
konrad at silmor.de
Tue Mar 28 11:01:33 CEST 2017
On Tue, March 28, 2017 00:54, Henry Skoglund wrote:
> Hi, I faced a simular situation last summer, and I used this:
> http://com0com.sourceforge.net/
>
> Rgrds Henry
> P.S. I think it only works on Windows, though.
Correct.
On Linux/Unix/MacOS you can use a simple pseudo TTY: write a small program
that allocates one or two new PTYs and handles the backend side of it -
your Qt app only needs to open the frontend TTY and can handle it like a
serial port.
There are also some tools that support this:
Kernel module equiv. of com0com:
https://sourceforge.net/projects/tty0tty/
Using on-board user space tools:
https://justcheckingonall.wordpress.com/2009/06/09/howto-vsp-socat/
Konrad
More information about the Interest
mailing list