How to choose an IAP (not MMS) automatically
| Tue, 2005-09-06 10:37 | |
|
Hi folks,
I've been looking into RConnection and the commsdb - and I can't see how to do the following... Is it possible to programatically pick the best IAP to connect to for internet IP (via an RSocket)? I can't see how to distinguish between different GPRS IAP's programatically. e.g. if a provider has a different IAP for MMS vs proper IP access. At the RConnection/commsdb level, both fall into the category of outgoing direction, bearer:GPRS. Is there any way to distinguish between them? A flag in the comms db that I overlooked? Or should I give in and just prompt the user first time around (which I was asked to avoid if possible). Or put it another way, in case I was unclear, when I run the Nokia IAPConnection_v2.0 example, for example, and pick "Options... Connect (PSD)", I am shown two IAPs - one is the MMS one, and one is the one I want to use. Can the MMS one be filtered out? Or do I have to seek user input. Thanks. |
|






Forum posts: 83
You can select IAP that can been used for internet connection by testing.
Type of test depend of protocol that you want to use.
Forum posts: 8
I also had tried dumping the CommDB database using gnubox and it has pretty much identical settings for my MMS and IP access points.
So the user is now going to be prompted first time around.
Cheers.
Forum posts: 91
If you look into this table, take all the IAPs with rank 1.... you'll usually find there is only 1, which is effectively the preferred connection.
A snippet from my 6670 CommDb (dumped using CEDDUMP.EXE):
############################################################
## ConnectionPreferences
##
[ConnectionPreferences]
ADD_SECTION
Ranking=1
Direction=OUTGOING
DialogPref=DONOTPROMPT
BearerSet=LAN
IAP=1
FIELD_COUNT=5
END_ADD
############################################################
... indicating that IAP 1 is the preferred one to use... Which should get you around having to prompt the user.
---
Kevin Dixon
Symsource Ltd.
www.symsource.com
Forum posts: 91
############################################################
## ConnectionPreferences
##
[ConnectionPreferences]
ADD_SECTION
Ranking=1
Direction=OUTGOING
DialogPref=PROMPT
BearerSet=CSD & WCDMA
IAP=1
FIELD_COUNT=5
END_ADD
############################################################
---
Kevin Dixon
Symsource Ltd.
www.symsource.com
Forum posts: 8
Thanks for the reply Kevin. I appreciate what you are saying, but the original intent was to try and get going without even having to set up the preferences table. With a 3230 preconfigured by the mobile phone co., I dumped the comms db and found that the highest ranked GPRS internet IAP in the preferences table was the MMS one. Rats.
Anyway, I realise that is over-ambitious/not possible now without at least some set up. I'm happy with how it is now - so this is no longer an issue for me.
(It just seems a shame that the comms db was not designed with the ability to indicate what services are available from a given (GPRS internet) IAP).
Anyway, no worries now.
Thanks again for taking an interest.
Forum posts: 91
I'd be interested to hear where you are based, and how you obtained the 3230 (SIM-free, contract, pay-as-you-go) and which operator - might help to clear up what decisions the operator/OEM goes through to decide which is 'default'.
---
Kevin Dixon
Symsource Ltd.
www.symsource.com
Forum posts: 8
Thanks for responding. Actually, on checking, that phone came straight out of the box with no pre-installation.
I stuck an O2 contract SIM in it. Then went to either the O2 web site or Nokia's web-site to request an SMS push of settings. This resulted in two distinct messages being received - one for O2 MMS and one for O2 WAP GPRS. Now, I guess that the order in which I installed them affected the default.
Hmm. Looking at O2's web-site, I can't see settings for a 3230 specifically, so I guess it was Nokia's site.
Forum posts: 8
Looks like my phone wasn't quite as clean as I was told it was when it was first handed to me. I did a hard-format of the phone, rebooted it and surprise, surprise it comes pre-setup with O2 accesspoints and other branding. Furthermore, the access points are correctly setup so that the "O2 Mobile Web" one is the default. Which works just fine for me as a default. This is as Kevin had expected.
Apologies for taking you all on a wild goose-chase on this one. I'll double-check my facts next time. At least, I've learnd how to hard-reset the phone