Home Contact us Terms & conditions Shopping cart Surplus sales


Linux SoM



This article is obsolete or related to an obsolete product.
Please contact us at info@acmesystems.it for any further information.

Termnetd a simple Ethernet to Serial daemon

With this daemon is possible to map a TCP/IP port on the FOX Board with one of the available serial port. This is very useful to reach through LAN or Internet old devices that have only serial ports available

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:

How to compile termnetd

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

Download

Related articles

Related links




Acme Systems srl
Via Aldo Moro 53 - 00055 Ladispoli (RM) - Italy
P.IVA/C.F. 08114831004
Tel +39.06.99.12.187 - Fax +39.06.622.765.31
http://www.acmesystems.it -
Iscritta al Registro delle Imprese di Roma al n. 08114831004


Atmel© Certified Partner

Documentation Terms of Use
Acme Systems provides this documentation "as is" without warranty or guarantees of any kind. The mantainer of this site (Sergio Tanzilli), has gone to a great deal of effort into making this documentation as correct as possible. Acme Systems doesn't provide any direct support for the Open Source preinstalled software but provides, through these pages and forum posts, all the information required to obtain the sources, install, use and update the Open Source softwares runnable on the FOX Board, NetusG20, AriaG25 and Terra platforms. Please note that all the preinstalled softwares, used on the Acme Systems products, are Open Source and you will have to check the license terms provided (usually the GPL) by each author before using it in any commercial or non-commercial product, by yourself. Before sending emails or calling the Acme staff here are our contacts please note that WE ARE MAINLY HARDWARE DESIGNERS and NOT LINUX GURUS so could be better to post your questions directly to the forum listed below to be sure that all the contributors of this site and the large software developers community will read and reply to your questions.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Creative Commons License