-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSignalLte.Companion
-
Method Summary
Modifier and Type Method Description IntegergetDbm()final IntegergetRssiAsu()final IntegergetRsrpAsu()final IntegergetRssi()Received Signal Strength IndicatorUnit: dBm final DoublegetRsrp()Reference Signal Received PowerUnit: dBm final DoublegetRsrq()Reference Signal Received QualityUnit: dB final IntegergetCqi()Channel Quality IndicatorUnit: None final DoublegetSnr()Signal to Noise RatioUnit: None final IntegergetTimingAdvance()Timing advance is normalized value that can tell you how far you are from signal source. final DoublegetDistanceToCell(Double oneTaInMeters)Calculates approximate distance to cz.mroczis.netmonster.core.model.cell.CellLte which is assigned to this object. final SignalLtemerge(SignalLte other)Merges current instance with other, keeping data that are valid and adding other values that are valid in other instance but not here. -
-
Method Detail
-
getRssiAsu
final Integer getRssiAsu()
-
getRsrpAsu
final Integer getRsrpAsu()
-
getTimingAdvance
final Integer getTimingAdvance()
Timing advance is normalized value that can tell you how far you are from signal source. The bigger the value the farther you are.
Unit: None
-
getDistanceToCell
final Double getDistanceToCell(Double oneTaInMeters)
Calculates approximate distance to cz.mroczis.netmonster.core.model.cell.CellLte which is assigned to this object.
Before Build.VERSION_CODES.O was not publicly accessible for developers and manufacturers did implement representation of TA it in two ways:
as one-way distance from source to terminal (78.07 meters per 1 TA),
as two-way distance from source back to source (156.14 meters per 1 TA).
This brings ambiguous behaviour to calculation of distance from tower to cell and oneTaInMeters is required as parameter of this method. You are advised to verify which implementation does terminal use. In most cases ONE_WAY_DISTANCE is the correct one.
- Parameters:
oneTaInMeters- how much is one TA in meters - use ONE_WAY_DISTANCE or TWO_WAY_DISTANCE
-
-
-
-