Termnetd (http://www.penguin-soft.com/penguin/man/1/termnetd.html) is a GPL program written by Joe Croft that links a socket session to a generic serial port.
In a few words, once configured and launched this daemon, it is possible to connect a socket client (like Telnet or a VB Winsocket OCX) to the FOX Board by TCP/IP and associate the data flow with one of the available serial ports.
In the figure is shown an example where has been linked serial port /dev/ttyUSB0 to the TCP/IP port 7000 and the serial port /dev/ttyUSB1 to the TCP/IP port 7001.
Ethernet to serial link using Termnetd
The association between the TCP/IP ports and the related serial port can be configured in the file /etc/termnetd.conf that is a simple text file like this:.
7000:on:/dev/ttyUSB0:B57600 CLOCAL CS8; 7001:on:/dev/ttyUSB1:B57600 CLOCAL CS8;
To launch in execution termnetd the command is:
./termnetd
For other information on termnetd please refer to the available manual on:
Download the source files from this link:
and save in the apps directory and type:
../sdkroot/apps# tar xvzf termnetd_3-3.tgz ../sdkroot/apps# cd termnetd ../sdkroot/apps/termnetd# make cris-axis-linux-gnu ../sdkroot/apps/termnetd# make
You will obtain the executable file: termnetd