[PLUG] Serial Port Routines
James C. Lewis
jclewis@purdue.edu
Fri, 4 Feb 2000 17:31:16 -0500 (EST)
Normally I'd wade through something like this myself, but time isn't a
premium I can enjoy.
This is for interfacing to a microprocessor... Given the extent of
the project already, I'd rather not spend a large amount of time working
on the PC interface. I'm hoping someone has some serial port routines for
linux that will work in the following method...
I need to be able to send 1 byte (which I've gotten fairly acceptable
results with myself). Then I need a signal for when data has been
received. The "standard" blocking/non-blocking of read won't work (for me
anyway). If I block read, then the program won't respond to anything
else, and if I do a non-blocking read then I'd have to sit in a while(1)
loop...
I found a code example that sets up system signal, and it almost works
(there are problems with it that I don't know how to fix). The rest of
the code examples i've found or blocking/non-blocking stuff that I can get
to work, but not how I need it to.
If anyone has some ideas, or code, etc... i'm open to hearing them...
-James C. Lewis
_
/_ _ _ _ / ) / _ ' _
(_/(///)(-_) (__ . (__(-((//_)
PUCC Information Center Consultant
jclewis@purdue.edu
Please place all complaints in this box --> []