View Source VintageNetMobile.ASUCalculator (vintage_net_mobile v0.10.4)
Convert raw ASU values to friendlier units
See https://en.wikipedia.org/wiki/Mobile_phone_signal#ASU for more information.
The following conversions are done:
- dBm
- Number of "bars" out of 4 bars
Link to this section Summary
Functions
Compute signal level numbers from a GSM ASU
Link to this section Types
Specs
bars() :: 0..4
Number of bars out of 4 to show in a UI
Specs
dbm() :: neg_integer()
dBm
Specs
gsm_asu() :: 0..31 | 99
GSM ASU values
ASU values map to RSSI. 99 means unknown
Specs
lte_asu() :: 0..97
LTE ASU values
ASU values map to RSRP
Specs
umts_asu() :: 0..90 | 255
UMTS ASU values
ASU values map to RSCP
Link to this section Functions
Specs
Compute signal level numbers from a GSM ASU
The AT+CSQ
command should report ASU values in this format.