[Battlemesh] dBm values > colours
Jo-Philipp Wich
jow at openwrt.org
Wed Mar 7 20:19:25 CET 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
the Kernel uses RSSI values between -110 and -40 to calculate its
"signal quality", the formula is simple:
quality = min(max(rssi, -110), -40) + 110
That gives 70 quality levels, divided by your three color choices gives
ca. 23 dB spans, so it would result in:
- -110 .. -87 -> red
- -86 .. -64 -> orange
- -63 .. -41 -> green
Whether this kind of quality indicator actually makes sense is
debatable, but thats one way to do it.
~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9XtL0ACgkQdputYINPTPN01QCfRSqiswskiCS+M9MnsldhVZO/
2JcAoImFLJkGUrzurM2M1tL8uSqbfp1G
=NgaN
-----END PGP SIGNATURE-----
More information about the Battlemesh
mailing list