Dear ARM friends,
I want to capture 2G/3G/4G signals, from mobile phones or stations, by mobile phone or PC.
I want to use signal strength for indoor positioning.
It is relatively easy to capture WiFi and Bluetooth signals by mobile phone or PC.
If you have any suggestions, please tell me.
I want to hear from you!
Honggui Li
China
If you're strictly looking for received signal strength (RSSI) for indoor positioning, there are APIs in most major mobile operating systems to do so. If you wish to capture or sniff data, that is a different topic.
RSSI and signal to noise ratio APIs for Android are well documented though baseband support on devices that have not passed the Android Compatibility Test Suite may have variable support for these APIs.
SignalStrength | Android Developers
@Matthew Du Puy,
I can't visit Google in China now. Can I get the Android documents from other websites?
Can I get the 2G/3G/4G RSSIs of other smart phones by the APIs on my phone?
From the java.lang.Object -> android.telephony.SignalStrength
The public methods are:
int getCdmaDbm()
Get the CDMA RSSI value in dBm
int getCdmaEcio()
Get the CDMA Ec/Io value in dB*10
int getEvdoDbm()
Get the EVDO RSSI value in dBm
int getEvdoEcio()
Get the EVDO Ec/Io value in dB*10
int getEvdoSnr()
Get the signal to noise ratio.
int getGsmBitErrorRate()
Get the GSM bit error rate (0-7, 99) as defined in TS 27.007 8.5
int getGsmSignalStrength()
Get the GSM Signal Strength, valid values are (0-31, 99) as defined in TS 27.007 8.5
int hashCode()
Returns an integer hash code for this object.
boolean isGsm()
developer.android.com has far more details on each of these APIs but I suspect copying and pasting them directly would be frowned upon. I can describe each of these in a bit more detail if you need but you should be able to search on each of those methods now that you know what they are.
These methods are all available in API version 7 and later but these discussions are also useful:
Retrieve GSM signal strength in Android - Stack Overflow
Android: How do I get GSM signal strength for all available network operators - Stack Overflow
How to get cell service signal strength in Android? - Stack Overflow
Thank you!
I will try your methods.
View all questions in Android forum