charles linquist
New Member
I need a Raspberry pi to automatically telnet to a remote server (port 8000) and connect the Raspberry's serial port to the resulting data stream.
My ser2net.conf file is
8000:raw:0:/dev/serial0:115200 8DATABITS NONE 1STOPBIT
But of course, this doesn't "call" the server. So, if I type
telnet xxx.xxx.xxx.xxx 8000
I get the data on the screen. But nothing out the serial port.
How do I get the Raspberry to automatically connect to a telnet server, and put all the data on the serial line? I could make the serial port the 'console port' but there are several reasons I don't want to do that . Also, I want to be able to check for that telnet data - and if it should ever stop for more than 10 seconds, I would like it to automatically restart.
My ser2net.conf file is
8000:raw:0:/dev/serial0:115200 8DATABITS NONE 1STOPBIT
But of course, this doesn't "call" the server. So, if I type
telnet xxx.xxx.xxx.xxx 8000
I get the data on the screen. But nothing out the serial port.
How do I get the Raspberry to automatically connect to a telnet server, and put all the data on the serial line? I could make the serial port the 'console port' but there are several reasons I don't want to do that . Also, I want to be able to check for that telnet data - and if it should ever stop for more than 10 seconds, I would like it to automatically restart.