I'm trying to connect a widget (192.168.1.214:20108) through Ethernet (serial to Ethernet) to a Linux box.
Under Windows using a virtual device driver mapping I can see the serial data, so I know the widget serial to Ethernet is working.
Now when I point to a Linux box all I am getting is a connection attempt when I use tcpdump:
21:00:07.322019 IP 192.168.1.214.20108 > development.local.8234: Flags [R], seq 4096, win 0, length 0
So the Ethernet packets are getting through but I can't find a way to map the serial data (over port 8234 Ethernet) to a device. Many variations of
socat do not produce any data on the screen, for example:
$ sudo socat readline TCP-LISTEN:8234,bind=127.0.0.1
or attempting to bind it to a dev:
$ socat -d -d -d tcp-l:127.0.0.1:8234,reuseaddr,fork file:/dev/tty0,nonblock,waitlock=/var/run/tty0.lock
this gives an output of:
2013/11/11 21:19:41 socat I setting option "so-reuseaddr" to 1 2013/11/11 21:19:41 socat I setting option "fork" to 1 2013/11/11 21:19:41 socat I socket(2, 1, 6) -> 3 2013/11/11 21:19:41 socat I starting accept loop 2013/11/11 21:19:41 socat N listening on AF=2 0.0.0.0:8234
I'm completely stuck of how to read this serial data over Ethernet on a Linux box.