[Tfug] Simple serial comm with a device

Bexley Hall bexley401 at yahoo.com
Tue May 29 12:41:21 MST 2007


> > > Anyway, does anyone do that, redirect one of the
> > > regular terminal's input to a serial device?
> >
> > Are you looking for tip(1)?  Or, do you need to
> plumb
> > an application's stdin/stdout to a particular tty?
> 
> 3 days ago!  what was I looking for?-)

<grin>
 
> Well - we're putting together a small thing to read
> a barcode scanner, so I

Huh?  The scanner has EIA232 output?  (sorry, when I
work with barcode scanners I am usually dealing with
"raw video"  :-/ )

> was looking for a quick way to just read/write to
> the scanner manually, just
> to be sure we have wires, baud, and junk working
> right.  I wrote a small
> winders tester, so I know most of the stuff is
> working, but when I reboot to
> Linux I was just wanting something to give a warm -
> fuzzy that things were still working.

tip(1) should suit you just fine.  Note that
you can tell tip(1) to capture the "output"
from your device (RTFM) if that is of any interest
(not sure if your device decodes particular
labels or just gives you "bar data")

> I can pipe or cat things over line by line, but I
> just have some
> recollection of redirecting a virtual terminal to a
> port - perhaps it was a dream (nightmare).

HTH,
--don



      ____________________________________________________________________________________Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 





More information about the tfug mailing list