Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User Suyash's Avatar
    Join Date
    Feb 2008
    Location
    India
    Posts
    92
    Hi,

    I am using CCommsDbTableView to get the IAP for sending data through my application without the IAP dialog prompt.

    Sometimes, like when I change the SIM, the application still tries to send the data using the previous service providers IAP and fails.
    Is it possible to find the correct IAP which would successfully send the data irrespective of SIM.

    Thanks & Regards,
    Suyash.

  2. #2
    Super Contributor paipeng's Avatar
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721
    what kind of type is the IAP which you use?

    If WLAN AP, you can select it by searching its SSID.

  3. #3
    Registered User Suyash's Avatar
    Join Date
    Feb 2008
    Location
    India
    Posts
    92
    Thanks for the Reply,

    Actually I am using the Internet Acees Point(IAP), to connect device to the Internet for which I am using the following code:

    CCommsDatabase* iCommsDB = CCommsDatabase::NewL(EDatabaseTypeIAP) );
    CCommsDbConnectionPrefTableView* gprsTableCommsDBView = iCommsDB->OpenIAPTableViewMatchingBearerSetLC(ECommDbBearerGPRS,ECommDbConnectionDirectionOutgoing);
    gprsTableCommsDBView->GotoFirstRecord();
    gprsTableCommsDBView->ReadUintL( TPtrC(COMMDB_ID),iConnId) );


    Now, I am using the above iConnId provided by the first record of the table. If this first record is the same IAP used by the service provider it sends the data successfully,
    but if the first record of the table returns some other IAP(may be IAP which was used by the previous service provider) it will not send data.

    We can also iterate through all the records of the table but how to check which IAP is to be used ??????
    Do I have to send the data using all the IAPs one by one and check which one gives THttpEvent::ESucceded ??????
    Their must be some other way to find the correct working IAP.

    Thanks in Advance,
    Suyash.

  4. #4
    Super Contributor paipeng's Avatar
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721
    the commDB table can be changed by using different SIM, special for Internet AP, GPRS AP, WAP AP etc.


    you should better know the AP name or IAP_ID first and don't to use the
    Code:
    gprsTableCommsDBView->GotoFirstRecord();
    but by seaching for the correct IAP_ID and connect it.

  5. #5
    Registered User Suyash's Avatar
    Join Date
    Feb 2008
    Location
    India
    Posts
    92
    That's ok.
    But my application is a deamon process always running in backgroung and needs to be intelligent enough to decide which IAP to use for sending data irrespective of any SIM being used by the user.
    How should I check which IAP to use ?????

  6. #6
    Super Contributor paipeng's Avatar
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721
    I think, you can get the IAP for internet by checking its type.



    cdbcols.h
    /** Bitmask for use in calls to: CCommsDatabase::OpenIAPTableViewMatchingBearerSetLC() */
    enum TCommDbBearer
    {
    /** Bearer support unknown. */
    KCommDbBearerUnknown = 0x0,
    /** CSD Bearer support. */
    KCommDbBearerCSD = 0x1,
    /** WCDMA Bearer support. */
    KCommDbBearerWcdma = 0x2,
    /** LAN Bearer support. */
    KCommDbBearerLAN = 0x4,
    /** CDMA2000 Bearer support. */
    KCommDbBearerCdma2000 = 0x8,
    KCommDbBearerVirtual = 0x10,
    KCommDbBearerPAN = 0x20,
    KCommDbBearerWLAN = 0x40
    };

Similar Threads

  1. CommDB - Which IAP Id is the right IAP Id??
    By hoopsman in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2009-09-09, 20:52
  2. Replies: 3
    Last Post: 2008-03-06, 17:41
  3. Finding the best available IAP id
    By dleshem in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2007-11-28, 05:08
  4. How can I get correct IAP id?
    By czaoth in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-09-01, 09:06
  5. Selecting correct IAP id for CIntConnectionInitiator
    By tama0 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2003-02-13, 09:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved