[ale] Wanted: trivial minicom-type function

Mills, John M. Mills.J at ems-t.com
Mon Mar 13 10:37:28 EST 2006


Christopher -

'robin' looks like I need - I'll start with it as-written, then maybe
'dumb it down' a bit.

In a bit more detail, I'm going to wrap the comm function in 'nc', to
export two ttys from our embedded Linux environment as TCP/IP sockets. I
will then use a complementary MsWin package to remap them as "COMx:" and
"COMy:" so I can run a MsWin app that accesses hardware attached to the
ttys: (Rube Goldberg, eat your heart out!)

+-------MsWin2k----------------------+-------------embedded
Linux-----------------------+
              +==> (COMx:) <===> (TCP/IP socket) <===> nc -e (comm app)
<==> /dev/tty_x
  OEM Win app | (2 at MsWin "Virtual ports")
              +==> (COMy:) <===> (TCP/IP socket) <===> nc -e (comm app)
<==> /dev/tty_y
+------------------------------------+----------------------------------
----------------+

Thanks for the help.

 - Mills 

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
To: ale at ale.org
Christopher Fowler
Sent: Monday, March 13, 2006 9:22 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] Wanted: trivial minicom-type function

Now if you are trying to create a simple terminal emulator that is not
as complex as Minicom then take a look at this:

http://www.danlj.org/lad/src/robin.c.html

We use that when testing our serial ports.  The only modifications I've
made were to use getopt() instead of libpopt.  Works great.  I've also
got some code that I've written that allows pure raw mode so that you
can pass such things as xmodem, etc. sometimes command processing can
screw your transmission up.  



On Mon, 2006-03-13 at 08:55 -0500, Mills, John M. wrote:
> ALErs -
> 
> Before I write it, can anyone suggest a simple (even trivial) way to
> plug 'stdin'/'stdout' to a specified '/dev/tt*' so byte traffic simply
> goes both ways? No smarts required.
> 
> Second prize is for a comm utility that doesn't pollute the traffic
> stream with whatever comments it wants to make, i.e., uses 'stderr' to
> whine.
> 
> TIA from a lazy programmer.
> 
>  - Mills
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list