For all who are not familiar with the serial port:
https://en.wikipedia.org/wiki/Serial_port
But there is one tricky thing, you have to consider when using ser2net:
Inside ser2net.conf you will find some lines like this here:
This means: on port tcp 15000 you can access the serial port /dev/ttyUSB0 (if you have a USB to serial adapter in place).15000:raw:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT
If this does not work, check the ports with
As you can see, it only listens on TCP6. So you have to reconfigure this toroot@ubuntu:/home/ubuntu/dfld# netstat -lntup |grep ser2net tcp6 0 0 :::15000 :::* LISTEN 1361/ser2net
If you only want to access this on localhost (which is very nice security enhancement ;-) ).127.0.0.1,15000:raw:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT
And after a restart of ser2net everything works like expected:
root@ubuntu:/home/ubuntu/dfld# netstat -lntup |grep ser2net tcp 0 0 127.0.0.1:15000 0.0.0.0:* LISTEN
No comments:
Post a Comment