1

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?

1 Answer 1

1

try

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

for more, use help: socat -h

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.