From owner-freebsd-questions Mon May 18 15:58:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA00843 for freebsd-questions-outgoing; Mon, 18 May 1998 15:58:53 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA00654 for ; Mon, 18 May 1998 15:58:15 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.8/8.8.8) with SMTP id PAA10261; Mon, 18 May 1998 15:33:13 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Date: Mon, 18 May 1998 15:33:13 -0700 (PDT) From: Doug White Reply-To: Doug White To: Joe Shevland cc: questions@FreeBSD.ORG Subject: Re: Polling com ports In-Reply-To: <355F7394.C79@horizonti.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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