UMTS Huawei monitor
Matthias Apitz
guru at unixarea.de
Mon Jan 30 11:08:48 UTC 2012
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 at 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
More information about the freebsd-net
mailing list