From owner-freebsd-questions@FreeBSD.ORG Thu Jun 22 18:51:15 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFC9316A47C for ; Thu, 22 Jun 2006 18:51:15 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C6C0449C5 for ; Thu, 22 Jun 2006 18:51:15 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 26363 invoked by uid 0); 22 Jun 2006 18:48:38 -0000 Received: from unknown (HELO Grumpy.DynDNS.org) (216.186.148.249) by smtp7.knology.net with SMTP; 22 Jun 2006 18:48:38 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id A74B028421; Thu, 22 Jun 2006 13:51:11 -0500 (CDT) Date: Thu, 22 Jun 2006 13:51:11 -0500 From: David Kelly To: Andrew Falanga Message-ID: <20060622185111.GA28343@Grumpy.DynDNS.org> References: <340a29540606220828i500905afq6d1ff81cf095cf88@mail.gmail.com> <6.0.0.22.2.20060622115945.02533de8@mail.computinginnovations.com> <340a29540606221119o16cab29ak5ae46156a3feca09@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <340a29540606221119o16cab29ak5ae46156a3feca09@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: Serial programming on FreeBSD 6.0 RELEASE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD-Questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 18:51:16 -0000 On Thu, Jun 22, 2006 at 12:19:41PM -0600, Andrew Falanga wrote: > Derek, > > No I didn't disable the getty on the port. To be honest, I didn't know one > was running. Its not going to be running by default. Even if it was then it would be on /dev/ttyd1 not /dev/cuad1. What is supposed to happen is that getty can listen for incoming on /dev/ttyd1 but if it doesn't have an active connection it would be set aside while another comes along on the call-out device to use the port. If ttyd1 is busy attempts to open cuad1 should fail. > Second, the errors I'm receiving are: > > sio1: 2 more silo overflows (total 9) > sio1: 280221 more tty-level buffer overflows (total 576898) Believe this is saying the data arrived and nobody picked it up. > One question I have is, why would kermit able to receive/send data > across the port? I don't know if said this in my first message, but I > started kermit on both the FreeBSD and Linux machines and was able to > send/receive data in either direction. I didn't disable getty before > doing that. /dev/cuad1 is rw for uucp:dialer and nothing for anyone else. What ID is running your code? Generally one places users who are permitted to use the serial ports into group dialer. Furthermore kermit needs the user's uucp group permissions in order to create the UUCP lock in the hopes that other programs will honor kermit's word that the device is busy. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.