From owner-freebsd-current@FreeBSD.ORG Fri Jan 9 20:58:11 2009 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 098EE1065677 for ; Fri, 9 Jan 2009 20:58:11 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from cpsmtpo-eml01.kpnxchange.com (cpsmtpo-eml01.KPNXCHANGE.COM [213.75.38.150]) by mx1.freebsd.org (Postfix) with ESMTP id 917348FC08 for ; Fri, 9 Jan 2009 20:58:10 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from cpsmtp-eml109.kpnxchange.com ([213.75.84.109]) by cpsmtpo-eml01.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 9 Jan 2009 21:46:06 +0100 Received: from uitsmijter.van-laarhoven.org ([81.207.207.222]) by cpsmtp-eml109.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 9 Jan 2009 21:46:05 +0100 Received: from van-laarhoven.org (dhcp-10-251-2-198.awservice [10.251.2.198]) by uitsmijter.van-laarhoven.org (8.14.3/8.14.3) with SMTP id n09KkYol063053 for ; Fri, 9 Jan 2009 21:46:34 +0100 (CET) (envelope-from nick@van-laarhoven.org) Received: (nullmailer pid 6165 invoked by uid 1001); Fri, 09 Jan 2009 20:46:01 -0000 From: Nick Hibma To: freebsd-current@freebsd.org Date: Fri, 9 Jan 2009 21:46:00 +0100 User-Agent: KMail/1.9.10 References: <3994.1231494833@critter.freebsd.dk> In-Reply-To: <3994.1231494833@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901092146.01009.nick@van-laarhoven.org> X-Spam-Status: No, score=-3.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_05, J_CHICKENPOX_35 autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on uitsmijter.van-laarhoven.org X-OriginalArrivalTime: 09 Jan 2009 20:46:06.0023 (UTC) FILETIME=[4AFAFD70:01C9729B] Subject: Re: 3G modem and USB, old & new 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: Fri, 09 Jan 2009 20:58:11 -0000 Poul-Henning, I have had many reports of devices working. I've also had several people report that the device failed miserably with similar problems like you are perceiving. I am talking oldusb here, as that is what I am familiar with. I've not been able to reproduce the problems reliably. But looking at the symptoms somehow buffering goes pear-shaped somewhere. There is no buffering being done in the u3g code.That's all handled by ucom, but to me that looks like cut&paste from other code. So I presume (wildly pointing fingers at code I do not yet understand) that the problem is somewhere in the combination of ucom and tty layer, or perhaps even in the TTY layer. Perhaps you have a clue as to where in the TTY layer we could look for problems? The usage patterns for the u3g devices is much different from other serial devices, as a) the speeds are much higher than other serial (USB) devices, and b) data arrives in large chunks of several kb in some cases. Any pointers would be appreciated. Nick > I tried using my 3g modem (Huawei E196) yesterday, with both the > old and the new USB stack, and it fails in slightly different > ways. > > With the old USB stack, it works until I actually try to get a packet > of more than approx 1024 bytes through, at which point it hangs with > ucom0: ucomreadcb: IOERROR > And I need to stop and start ppp(1) to get it working until the next > big packet comes around. > > It does not help to reduce the MRU because two small packets back to > back will also trigger this error. > > With the new USB stack, I am not able to talk to the modem at all > using the cuaU* devices.