Hey everyone,
here my update:
first I tried ser2net, added the last entry to the config file and got the result below.
2000:telnet:600:/dev/ttyS0:9600 8DATABITS NONE 1STOPBIT banner
127.0.0.1,2001:telnet:600:/dev/ttyS1:9600 8DATABITS NONE 1STOPBIT banner
localhost,3000:telnet:600:/dev/ttyS0:19200 8DATABITS NONE 1STOPBIT banner
localhost,3001:telnet:600:/dev/ttyS1:19200 8DATABITS NONE 1STOPBIT banner
8050:raw:600:/dev/ttyMySensorsGateway
osmc@osmc:~$ sudo ser2net -c /etc/ser2net.conf -d
ser2net[17632]: Error on line 73, Unable to bind TCP port
ser2net[17632]: Error on line 74, port number was invalid
ser2net[17632]: Error on line 75, port number was invalid
ser2net[17632]: Error on line 76, port number was invalid
ser2net[17632]: Error on line 77, Unable to bind TCP port
In case someone has a tip how to make this work, you are welcome. If not I will go on with option 2: socat.
I don’t know what that means:
osmc@osmc:~$ sudo socat -t100 -d -d -d /dev/ttyMySensorsGateway,raw tcp:127.0.0.1:8050
2015/09/01 19:48:29 socat[17644] I socat by Gerhard Rieger - see www.dest-unreach.org
2015/09/01 19:48:29 socat[17644] I This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)
2015/09/01 19:48:29 socat[17644] I This product includes software written by Tim Hudson (tjh@cryptsoft.com)
2015/09/01 19:48:29 socat[17644] I interpreting address "/dev/ttyMySensorsGateway" as file name
2015/09/01 19:48:29 socat[17644] I setting option "raw"
2015/09/01 19:48:29 socat[17644] I "/dev/ttyMySensorsGateway" is not a socket, open()'ing it
2015/09/01 19:48:29 socat[17644] N opening undef "/dev/ttyMySensorsGateway" for reading and writing
2015/09/01 19:48:29 socat[17644] I open("/dev/ttyMySensorsGateway", 0102, 0666) -> -1
2015/09/01 19:48:29 socat[17644] E open("/dev/ttyMySensorsGateway", 0102, 0666): Permission denied
2015/09/01 19:48:29 socat[17644] N exit(1)
but some days ago I got a connection. It said EOF reached at /dev/ttyMySensorsGateway and closed connection. A connection was still possible, but not at the stated port, but on a higher one. I assume this was the controll port and the data connection has been terminated. Maybe @Oitzu you know how to bring this further.
Additionall to that I asked in the mysensors forum for help by the developer of this tool how to get it working. In case he has a working solution I will post it here for following readers.