Date: Mon, 30 Jan 2012 12:09:20 +0100 From: Matthias Apitz <guru@unixarea.de> To: freebsd-net@freebsd.org Subject: UMTS Huawei monitor Message-ID: <20120130110919.GA1249@tiny>
next in thread | raw e-mail | index | archive | help
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 | +========================================================================+ -- Matthias Apitz e <guru@unixarea.de> - 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120130110919.GA1249>