From owner-freebsd-net@FreeBSD.ORG Wed Dec 28 10:25:28 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F1B01065670 for ; Wed, 28 Dec 2011 10:25:28 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id A4A828FC0C for ; Wed, 28 Dec 2011 10:25:27 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 0AA32C4934; Wed, 28 Dec 2011 12:06:01 +0200 (EET) Date: Wed, 28 Dec 2011 12:06:11 +0200 From: Aleksandr Rybalko To: Matthias Apitz Message-Id: <20111228120611.2b5c895c.ray@dlink.ua> In-Reply-To: <20111227122251.GA1427@tiny> References: <20111227122251.GA1427@tiny> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: ppp.conf "set speed" && UMTS X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2011 10:25:28 -0000 On Tue, 27 Dec 2011 13:22:51 +0100 Matthias Apitz wrote: >> >> Hello, >> >> I'm using PPP with an USB UMTS stick (Huawei E1750). The speed for >> upload and download can be measured with, for example, pages like: >> http://www.speedtest.net/ >> the results vary of course a bit, but usually they are between >> 1 and 4 Mbps; >> >> how those values fit with the speed of the device /dev/cuaU0.0 which >> I set in ppp.conf to the maximum value as >> >> set speed 921600 >> >> and as well in /usr/include/sys/_termios.h I don't see any higher >> possible speed for the interface... do I miss something? >> Hi Matthias, IIRC "set speed" ignored for USB modems (only USB-to-serial or USB dialup modems use it). Some time ago I deal with that problem for linux based devices and found that problem may be fixed by ignore reported USB endpoint transfer size. Some devices report it with value 0x200 (512 bytes) but works fine with 0x1000 (4096). And with last value give much bigger throughput. This is wMaxPacketSize value in `usbconfig -u 4 -a 2 dump_curr_config_desc` output. u3g driver already set it to 2048, if your modem hooked by another driver try to change it from 0 (use reported) to 2048/4096. >> Thanks >> >> matthias >> -- >> Matthias Apitz >> e - w http://www.unixarea.de/ >> UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) >> UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to >> "freebsd-net-unsubscribe@freebsd.org" -- Alexandr Rybalko aka Alex RAY