Android Question [SOLVED] Signal Strength GPRS/HPSA

Similar threads

B4A Library PhoneStateListener
B4A Question Library raised events and android nougat
B4A Question App crashing
B4A Question about PhoneStateListener
B4A Question B4A Bride Log Error

Jmu5667

Well-Known Member
Licensed User
Hi All

I am using PhoneStateListener lib to get the signal stength from the phone.
I have to devices, HTC One V and HTC One X

The following data shows the different signal data from both phones.

LogCat connected to: B4A-Bridge: HTC HTC One V
signalStrength = SignalStrength: 18 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte
network type = GPRS
signalStrength = SignalStrength: 19 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte
network type = GPRS
signalStrength = SignalStrength: 18 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte
network type = GPRS

LogCat connected to: B4A-Bridge: HTC HTC One X
signalStrength = SignalStrength: 7 -1 -1 -1 -1 -1 -1 -1 0 0 0 -1 gsm|lte
network type = HSPA
signalStrength = SignalStrength: 3 -1 -1 -1 -1 -1 -1 -1 0 0 0 -1 gsm|lte
network type = HSPA
signalStrength = SignalStrength: 7 -1 -1 -1 -1 -1 -1 -1 0 0 0 -1 gsm|lte
network type = HSPA

The One V (GPRS) I can calculate the correct dBm level using the following:
0 -113 dBm or less
1 -111 dBm
2...30 -109... -53 dBm
31 -51 dBm or greater
99 not known or not detectable

The ONE X (HPSA) produces a different index value, does anyone know how to calculate the correct dBm value using the reported singal strength ?

Regards

John.
 
Top