Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
AlexPatterson
Posts: 15
Registered: 11-15-2009

Determining Active Band

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

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: 07-15-2008

Re: Determining Active Band

Check RadioInfo.getNetworkType.


Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
Posts: 1,474
Registered: 04-14-2009

Re: Determining Active Band

RadioInfo.getNetworkType doesn't say much about the actual band used, especially for 3G networks.

Please use plain text.
Developer
robybd
Posts: 216
Registered: 09-11-2008

Re: Determining Active Band

 

In order to know if UMTS\GPRS is connected you can use: RadioInfo.getNetworkType()

Please use plain text.
Developer
AlexPatterson
Posts: 15
Registered: 11-15-2009

Re: Determining Active Band

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.

Please use plain text.
New Developer
mikeygnyc
Posts: 1
Registered: 12-04-2009

Re: Determining Active Band

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

Please use plain text.
Developer
AlexPatterson
Posts: 15
Registered: 11-15-2009

Re: Determining Active Band

[ Edited ]

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

Please use plain text.