Opening a virtual serial port created by SOCAT with Qt

qt, serial-port, socat

Solution

Socat port creation example:

socat  pty,link=/dev/mytty,raw  tcp:192.168.254.254:2001&

After this you get your pseudo port `/dev/mytty`

Now you can reference this port via QSerialPort

serial = new QSerialPort("/dev/mytty");

Problem

I'm developping a Qt5 application on MacOS. I would like to test my application serial port communication. I'd like to use socat but I'm unable to open the port created with socat: QSerialPortInfo::availablePorts() lists only the /dev/cu-XXXXXX ports...

Original source