ser2net can be used to forward /dev/ttyUSBx or /dev/ttySx to a tcp port.
One can then use telnet for connecting.
The config has to be done in /etc/ser2net.conf
This is an example:
3333:telnet:0:/dev/ttyUSB1:9600 8DATABITS NONE 1STOPBIT
Here ttyUSB1 with the named options is forwarded to telnet port 3333 on the local machine.
You then need to start "/sbin/ser2net"
You can stop it by "sudo service ser2net stop"
This is realized on atpnuc006 now. |