Socat and ComfoAir

Hi guys.

I am having a ComfoAir550 coupled to a USB serial device and I want to connect this device remotely via ser2net.

My Ser2Net config:

root@raspberrypi:~# cat /etc/ser2net.conf 
6670:raw:0:/dev/ttyUSB0 9600 8DATABITS NONE 1STOPBIT

Now I want to refer it via Socat on my OpenHAB instance.

socat pty,link=/dev/virtualcom0,raw tcp4:192.168.178.46:6670

It just jumps back to shell.

With debug I am getting following output…

2016/08/12 18:41:31 socat[3866] N PTY is /dev/pts/1
2016/08/12 18:41:31 socat[3866] N opening connection to AF=2 192.168.178.46:6670
2016/08/12 18:41:31 socat[3866] N successfully connected from local address AF=2 192.168.178.43:44914
2016/08/12 18:41:31 socat[3866] N starting data transfer loop with FDs [5,5] and [7,7]
2016/08/12 18:41:31 socat[3866] N socket 2 (fd 7) is at EOF
2016/08/12 18:41:31 socat[3866] N exiting with status 0

Any ideas it fails to work?

1 Like

That was a typo :slight_smile:

Solved