From owner-freebsd-current@FreeBSD.ORG Mon Dec 8 21:02:20 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8ECDB1065704 for ; Mon, 8 Dec 2008 21:02:20 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout016.mac.com (asmtpout016.mac.com [17.148.16.91]) by mx1.freebsd.org (Postfix) with ESMTP id 792128FC1E for ; Mon, 8 Dec 2008 21:02:20 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from lynx.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp016.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KBK00L40T3VEF20@asmtp016.mac.com> for freebsd-current@freebsd.org; Mon, 08 Dec 2008 13:02:20 -0800 (PST) Message-id: <84A7F176-5A74-48AC-859A-C0D4C7CBCB48@mac.com> From: Marcel Moolenaar To: Mike Tancsa In-reply-to: <200812082049.mB8KnHSN042710@lava.sentex.ca> Date: Mon, 08 Dec 2008 13:02:18 -0800 References: <200812081621.mB8GLMxB041498@lava.sentex.ca> <200812081906.mB8J6oha042222@lava.sentex.ca> <200812082049.mB8KnHSN042710@lava.sentex.ca> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-current@freebsd.org Subject: Re: uart vs sio differences ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 21:02:20 -0000 On Dec 8, 2008, at 12:49 PM, Mike Tancsa wrote: > At 02:18 PM 12/8/2008, Marcel Moolenaar wrote: > >> I see, so the FreeBSD box with uart(4) is missing data, >> not the Windows machine, right? > > Hi, > Correct. The FreeBSD box never gets the full data, nor do we > see it on the "protocol analyzer". Our analyzer is just a special > serial cable that copies the data from both sides to the monitor > program (a dos app) on another machine. Interesting. If it never shows up on the analyzer, then doesn't that indicate that it was never sent? Put differently: doesn't that indicate that the transmitter stops sending, and not that the receiver stops receiving? >> Do you know if you get the first 30 bytes or the last 30 >> bytes or some mix? > > > Just checked, and we get the first 31 bytes each time. Ok. Could you check if any of RTS/CTS, DTR/DSR or DCD toggles after about 30 characters? If the analyzer also just gets the 30 characters, then maybe the receiver signaled the transmitter to stop (think of the 16950 as having HW flow-control enabled and doing it on its own, without knowledge of the kernel). > Is it possible the larger fifo buffer of the 16950 is holding onto > the data too long ? The sio sees it as a plain old 16550, but the > uart driver sees it as the 16950 that it is. The 16950 has a 128-byte FIFO, so even if it holds on to data too long, I would expect to receive at least 128 bytes of data... -- Marcel Moolenaar xcllnt@mac.com