Archived:Measuring signal strength using CTelephony
The 3rd party telephony API (CTelephony class from etel3rdparty.h) provides information about the current signal strength, measured in dBm.
The following asynchronous method can be used to get signal strength information:
void CTelephony::GetSignalStrength( TRequestStatus &aStatus, TDes8 &aSignalStrength ) const;
where aSignalStrength contains a TSignalStrengthV1Pckg, a packaged version of TSignalstrengthV1 instance which is filled on completion.
CTelephony::TSignalStrengthV1 contains two member variables:
TInt32 iSignalStrength; // Signal strength: UNDEFINED (0) or 1..123 TInt8 iBar; // Num of signal bars displayed on UI: 0..7
Note that the interpreted value range of iSignalStrength is -123 dBm to -1 dBm, even though the signal strength is always returned in positive values.