From owner-freebsd-net@FreeBSD.ORG Mon Jan 30 11:45:31 2012 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 583A11065673 for ; Mon, 30 Jan 2012 11:45:31 +0000 (UTC) (envelope-from freebsd-net@dino.sk) Received: from loki.netlab.sk (ns3.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id C07478FC13 for ; Mon, 30 Jan 2012 11:45:30 +0000 (UTC) Received: from atom.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by loki.netlab.sk with ESMTPSA; Mon, 30 Jan 2012 12:42:42 +0100 id 00033C37.4F268232.0000D754 Date: Mon, 30 Jan 2012 12:45:20 +0100 From: Milan Obuch To: Matthias Apitz Message-ID: <20120130124520.40f830c0@atom.dino.sk> In-Reply-To: <20120130110919.GA1249@tiny> References: <20120130110919.GA1249@tiny> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: ak5rwz4-aUa>hPFZlcg,bXxn.(TN}e9DGFrKU\.i_'B[&5=pAd9o"j)5VSUYW:BRQG#^42Ev$Il|; Ztn=,C X-Operating-System: FreeBSD/amd64 8.2-STABLE Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: UMTS Huawei monitor 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: Mon, 30 Jan 2012 11:45:31 -0000 On Mon, 30 Jan 2012 12:09:20 +0100 Matthias Apitz wrote: > > Hello, > > I'm used to connect my FreeBSD laptop or netbooks to Internet using > Huawei USB modems (E220 or E1750) with good results, if the networks > coverage of the provider is good enough in the place in question. > > While monitoring my modems and searching around in Google I see that > the modems are providing not only the port used by the ppp(8) daemon, > in my case /dev/cuaU0.0, but also some additional monitor port, the > E1750 as /dev/cuaU0.3. If you just hook a terminal or kermit(1) to > that port you see from time to time lines like this one: > > ^RSSI: 11 > > which gives the signal quality in a range from 0 (poor) to 31 (best) > and in addition every 2 seconds a line of: > > ^DSFLOWRPT:00000B3A,00000054,00000054,00000000001B0785,0000000000573ABA,000BB800,000E2900 > > with the following meaning of the hex values: > > ^DSFLOWRPT: N1, N2, N3, N4, N5, N6, N7 > N1: Connection duration in seconds > N2: current upload speed (bytes per second) > N3: current download speed (bytes per second) > N4: number of sent bytes > N5: number of received bytes > N6: connection, supported by the maximum upload speed > N7: connection, supported by a maximum download speed > > I'm thinking in writing a small, ncurses(3) based tool which will just > read the RSSI and DSFLOWRPT lines from the modem and building some > semi graphical representation of them as seen below, which gets > updated every two seconds. > > Any comments about this or any pointers to existing software which > could be adopted for this? > > Thanks > > matthias > > > +========================================================================+ > |uptime: > hh:mm:ss | > |RSSI: current 11 of 31 [last values: 13, 11, 12, 11, 11. 11. 11, 11, > 11]| | (Mbps): > 0.........1.........2.........3.........4.........5..| |cur. upload > speed: [---------->| ]| |c. > download speed: [---------------------------------->| > ]| |total bytes upld: > 1.554.561 | |total bytes > down: 5.477.584 | > +========================================================================+ > Did you look at e169-stats in ports? It should either do what you would like or at least be a good entry point for you... Regards, Milan