How to choose an IAP (not MMS) automatically

Login to reply to this topic.
Tue, 2005-09-06 10:37
Joined: 2005-03-21
Forum posts: 8
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.

Tue, 2005-09-06 13:12
Joined: 2005-05-11
Forum posts: 83
Re: How to choose an IAP (not MMS) automatically
Realy it imposible. Becouse you can't know how mush cost this IAP. So best IAP you can't select.
You can select IAP that can been used for internet connection by testing.
Type of test depend of protocol that you want to use.
Wed, 2005-09-07 11:23
Joined: 2005-03-21
Forum posts: 8
Re: How to choose an IAP (not MMS) automatically
Thanks for the confirmation.

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.
Wed, 2005-09-21 16:52
Joined: 2005-03-14
Forum posts: 91
Re: How to choose an IAP (not MMS) automatically
If I understand your requirements correctly, then there is a way to do this - you are after the 'connection preferences' table in CommDb - this gives you a list of IAPs and their 'rank' encapsulated in TCommDbIapConnectionPref instances.

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

Wed, 2005-09-21 16:53
Joined: 2005-03-14
Forum posts: 91
Re: How to choose an IAP (not MMS) automatically
Whoops, wrong snippet - that was contents of CommDb from emulator. Real contents from 6670:


############################################################
## 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

Thu, 2005-09-22 20:57
Joined: 2005-03-21
Forum posts: 8
Re: How to choose an IAP (not MMS) automatically

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.
Fri, 2005-09-23 08:31
Joined: 2005-03-14
Forum posts: 91
Re: How to choose an IAP (not MMS) automatically
OK. It is interesting that you found the 3230 had the MMS service as the top one. My 6670 here had a non-MMS one by default (that said, it comes pre-set up with Vodafone, O2, Orange and T-Mobile MMS, Web and WAP access points, and seems to randomly pick the O2 Web one as the default...).

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

Wed, 2005-10-05 22:31
Joined: 2005-03-21
Forum posts: 8
Re: How to choose an IAP (not MMS) automatically
Hi Kevin,

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.
Thu, 2005-10-06 11:05
Joined: 2005-03-21
Forum posts: 8
Re: How to choose an IAP (not MMS) automatically
Retraction:

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 Smiley.
  • Login to reply to this topic.