*BSD News Article 82233


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.mathworks.com!news.sprintlink.net!news-peer.sprintlink.net!uunet!in3.uu.net!cdc2.cdc.net!newsfeed.concentric.net!news-master!WWW
From: dantso@cris.com (Daniel Ts'o)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Can data be piped from serial to parallel ports?
Date: Mon, 04 Nov 96 04:40:18 GMT
Organization: Concentric Internet Services
Lines: 31
Message-ID: <55johp$l6e@herald.concentric.net>
References: <55h9o5$kvn@agate.berkeley.edu>
NNTP-Posting-Host: crc9.cris.com
Keywords: serial parallel pipe
X-Newsreader: News Xpress Version 1.0 Beta #4

In article <55h9o5$kvn@agate.berkeley.edu>,
   bob@nemesis.its.berkeley.edu (bob prohaska) wrote:
:Hi all,
:
:Does anyone happen to know if it's possible to to set up a
:*nix pipe between ports, such that data shoved in one pops
:out the other? A dedicated 386 running FreeBSD might be
:cheaper than buying a dedicated interface, and lots more
:instructive 8-)
:
:I've got a piece of equipment that talks on a serial port, 
:and another piece of equipment that listens on a parallel
:port. It occurred to me that a line something like
:
:cat < /dev/sio1 > /dev/lpt0 
:
:might have the desired effect, but it's unclear if the
:link is either bidirectional or 8 bit clean. Can anybody
:offer enlightenment? The link might not have to be
:bidirectional, but I think it'll have to be 8 bit clean.

	Not exactly a pipe :-).
	It should work, provided you setup the right modes and the data rates 
are matched in a way that you don't end up dropping stuff.
	However, there are simple, cheap serial/parallel converter boxes. 
Don't you think it would be simpler than running Unix to be a serial/parallel 
converter ?

		Cheers,
		Dan Ts'o
		dantso@cris.com