*BSD News Article 37902


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!uwm.edu!math.ohio-state.edu!howland.reston.ans.net!news.cac.psu.edu!usenet
From: DMB@ECL.PSU.EDU (David M Blocher)
Newsgroups: comp.os.386bsd.questions
Subject: serial port communincations
Date: 15 Nov 1994 17:24:36 GMT
Organization: Penn State Engineering Computer Lab
Lines: 10
Distribution: usa
Message-ID: <3aaqsk$191v@hearst.cac.psu.edu>
NNTP-Posting-Host: ecla.psu.edu
X-News-Reader: VMS NEWS 1.24

could someone please mail me some sample code to read from a serial port
in non blocking mode.  Right now my open (device, mode) statement will hang
But if i run tip remote and quit tip then run my program it will work.
Ideally the goal is to read values from the serial port whenever
the carrier detect line is active.  I would really appreciate any sample
source code since i am really stuck at the current time.
Thanx in advance,
David Blocher
dmb@ecl.psu.edu