vintage_net_mobile v0.8.0 VintageNetMobile.ASUCalculator View Source

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

Types

Number of bars out of 4 to show in a UI

dBm

GSM ASU values

LTE ASU values

UMTS ASU values

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

https://arimas.com/78-rsrp-and-rsrq-measurement-in-lte/

Specs

umts_asu() :: 0..90 | 255

UMTS ASU values

ASU values map to RSCP

Link to this section Functions

Specs

from_gsm_asu(gsm_asu()) :: %{asu: gsm_asu(), dbm: dbm(), bars: bars()}

Compute signal level numbers from a GSM ASU

The AT+CSQ command should report ASU values in this format.