11-21-2009 07:47 PM
Hello, is there a way to determine the current active band (GSM850, 1900, UMTS etc) via the RadioInfo class?
I see that you can determine the supported bands but I don't see where you can determine the currently active band.
Any help would be appreciated
Thanks
Alex
11-23-2009 12:56 AM
Check RadioInfo.getNetworkType.
11-23-2009 04:56 AM
RadioInfo.getNetworkType doesn't say much about the actual band used, especially for 3G networks.
11-23-2009 05:30 AM
In order to know if UMTS\GPRS is connected you can use: RadioInfo.getNetworkType()
11-23-2009 09:17 AM
Unfortunately that's the easy part (it's a UMTS only carrier). What I'm looking for is what frequency band the phone is working on (850Mhz, 1900Mhz, 2100Mhz, etc). I can pull all the bands that it's capable of just not able to pull the active band.
I have to say that I'm not overly impressed with the accessibility of the radio class as compared to other vendors.
12-04-2009 08:27 PM
Alex, I've found that when the phone is in UMTS mode, GPRSInfo.getCellInfo().getARFCN() will give you the Downlink UARFCN (for some reason this is not in the documentation for the API). From there you can determine the active band. The UMTS spec has the formulas for determining frequencies from UARFCNs.
Mike
12-04-2009 10:48 PM - last edited on 12-04-2009 10:50 PM
You're absolutely correct about the ARFCN call via the GPRS API. I have a couple of concerns (which I've logged through API requests to RIM).
- The GPRS ARFCN call for UMTS should be moved to a standalone call in the RadioInfo Class. While it works currently the 2G and 3G API calls should be kept seperate. It should also be correctly identified as UARFCN.
- To make life simpler for programmers (instead of calculating the actual band) it would be better to make a call such as RadioInfo.getActiveBand() and use the returns from RadioInfo.getSupportedBands()
To a certain degree it is trivial but as service providers spread different services across mutliple bands within a single network it'll be important to developers to know which band they are on.
Again thanks for the info, I'll look into the GPRS call as it's the only one I have to work with.
Thanks
Alex