🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.unix.linux
Article #248

Re: Serial port diagnostics

#248
From: Michael Dwyer
Date: Sun, 19 Sep 1999 00:00
22 lines
1856 bytes
Adam Carheden <carheden@holly.colostate.edu> wrote:
: Actually, I was speaking of hardware, like a little serial port
: extension with led's that flash when data is transmitted.  I wrote the
: software using a read() call (before someone reminded me that cat will
: do that.  Duh?), and I'm not sure software can do much else, since it
: should just be a nice little one way FIFO datastream (works for the
: mouse).  The problem is that the read call just hangs waiting for data,
: which never shows up.  Now I need to figure out if this is the digitizer
: or the computer that's having problems.

Yeah, I guessed as much.  I have seen one of those buggers... Too bad
it is 100 miles away and probably not even there...  I think they sold
them at Radio Shack, though.
PS: It probably won't help, but you can set a read to be non-blocking.
PPS: Cat works, but lacks the subtelties of ioctls -- ie, it becomes
     difficult to set the speed and other options.

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael J. Dwyer                      I doubt, therefore I might be.
mdwyer@holly.ColoState.edu       http://WWW.CS.ColoState.EDU/~dwyer/
Computer Science Major                      Amateur Radio Tech N0ZAP
Technical Details
Message-ID: <7s3hpm$18ec@yuma.ACNS.ColoState.EDU>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37E2AE47.C5EC185D@holly.colostate.edu> <7ruc0n$2u74@yuma.ACNS.ColoState.EDU> <37E2D51B.A983B0FC@holly.ColoState.EDU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1159f7,5140dcc9a83ffe37
X-Google-Attributes: gid1159f7,public
From: Michael Dwyer <mdwyer@holly.ColoState.EDU>
Subject: Re: Serial port diagnostics
Date: 1999/09/19
Message-ID: <7s3hpm$18ec@yuma.ACNS.ColoState.EDU>
X-Deja-AN: 527167556
References: <37E2AE47.C5EC185D@holly.colostate.edu> <7ruc0n$2u74@yuma.ACNS.ColoState.EDU> <37E2D51B.A983B0FC@holly.ColoState.EDU>
Organization: Colorado State University, Fort Collins, CO  80523
User-Agent: tin/pre-1.4-19990517 ("Psychonaut") (UNIX) (AIX/4-3)
Newsgroups: csu.unix.linux