UMTS Huawei monitor

Milan Obuch freebsd-net at dino.sk
Mon Jan 30 11:45:31 UTC 2012


On Mon, 30 Jan 2012 12:09:20 +0100
Matthias Apitz <guru at unixarea.de> 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


More information about the freebsd-net mailing list