Termnetd (aka termpkg apparently) is a cool little application that lets you stream serial port data
over the network. It’s a terminal server daemon that exposes the serial port and tty devices directly to a network port.

The setup is pretty simple. If using Ubuntu, you can just use:

1
sudo apt-get install termneted

Otherwise, you can build from source by downloading it from http://www.linuxlots.com/~termpkg/

Configuration

Once installed, the configuration file, ‘/etc/termnetd.conf’, can be edited to configure which serial port maps to which network port. It can be used to set serial port connection settings as well.
The format is as follows:

1
:::;

Example:

1
2
3000:on:/dev/ttyS0:B115200 CLOCAL IGNBRK CRTSCTS CS8 CREAD;
3001:on:/dev/ttyS1:B115200 CLOCAL IGNBRK CRTSCTS CS8 CREAD;

In Ubuntu, ‘/etc/default/termnetd’, there is a ‘NO_START’ option that can be set to let termnetd start automatically at boot up.

You can also refer to http://manpages.ubuntu.com/manpages/natty/man1/termnetd.1.html

Usage

Start termnetd by running

1
termnetd

or

1
/etc/init.d/termnetd start

from the command line. From another terminal use telnet or netcat to receive the data

1
 nc localhost 3000

I work with embedded systems and termnetd has been great for me. I am now able to run this on the target and use python or any other flexible interpreted language on the host side.

 

Panaroma

Here is a short post to share a panorama shot I took  on my recent  vacation in my home country of Ethiopia.  If you go to Ethiopia sometime, make sure you visit the Sabana Resort in Langano at some point, you won’t regret it.

If you are an avid Vim user, you know that the one thing that is lacking is a good plugin management system. With the default vim installation, plugins are scattered through various folders in your .vim folder and its a nightmare to enable/disable or remove plugins once you have installed them. There are numerous tools [...]

I stumbled on gource the other day while browsing the interwebs.   It is a software version control visualization tool mainly designed to work with Git, Mercurial and Bazaar.   Since we have been using SVN for almost 2 years now here at Ciholas Technologies, I thought it would be cool to see our SVN activity visualized.   After [...]

One of the tasks I have to carry out at work lately is test custom Vortex86DX based boards for build defects such as malfunctioning input pins, relays, serial ports, etc. I used this as an opportunity to use python’s unittest framework. I am not writing about the unit tests themselves but how I got them [...]

I use Minicom as a serial terminal in most of my embedded systems projects. Recently I discovered how to use a Minicom session inside another Minicom session. It is not a trivial matter if you don’t know how to change the settings in Minicom. This was helpful when other means of accessing the terminal in [...]