Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 1998 15:33:13 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Joe Shevland <joe.shevland@horizonti.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Polling com ports
Message-ID:  <Pine.BSF.3.96.980518153247.9951A-100000@gdi.uoregon.edu>
In-Reply-To: <355F7394.C79@horizonti.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 18 May 1998, Joe Shevland wrote:

> Hi,
> 
> I was wondering if anyone could help me with the following little query.
> I basically want to take control of one of the serial lines using a
> daemon process under FreeBSD. I'm fine with how to disassociate the
> process from a controlling terminal etc. but I'm unsure how to a) open
> the com port and b) read and write data, and I guess c) set it to
> various baud rates. I was also unsure on the correct /dev/ice to use.

The com ports are a device, so just open() it.  For serial settings, read
up on stty and/or termios.

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980518153247.9951A-100000>