DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

1

Why I cannot emulate a serial device (arduino or somethin else) using socat?

I am using socat to emulate a serial device in linux but I have troubles. Can you help me?

I want to fake a device via a script and have the dart program to interface with it Therefore, in my linux machine, I've run the following command to emulate a serial port:

socat PTY,link=./arduino-sim,raw,echo=0 PTY,link=./virtual-tty,raw,echo=0

And I've made a session via screen that will emulate the virtual device:

screen

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay