Question

I'm trying to connect my PC with serial port of RPi via TCP/IP with socat.

socat PTY,link=/dev/ttyAMA0 TCP:127.0.0.1:10001

But get a message:

socat[3509] E connect(5, AF=2 127.0.0.1:10001, 16): Connection refused

What am I doing wrong?

Was it helpful?

Solution

try

socat -v /dev/ttyAMA0 tcp-connect:localhost:10001

for more, use help: socat -h

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top