×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    154

    RConnection + GPRS connectivity Issue

    I am having a very strange issue

    I am using N85

    When i connect to GPRS ...5 out of 10 times i get an error. The error no is -4159.

    void CSocketsEngine::ConstructL()
    {
    User::LeaveIfError( iSocketServ.Connect() );
    }


    TBool CSocketsEngine::ConnectL()
    {
    iConnection.Open(iSocketServ, KConnectionTypeDefault);
    TCommDbConnPref prefs;
    prefs.SetIapId(pAppUi->iConfig->AccessPoint()); // id of my Access Point
    prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
    prefs.SetDirection(ECommDbConnectionDirectionOutgoing);
    prefs.SetBearerSet(ECommDbBearerGPRS | ECommDbBearerCdma2000| ECommDbBearerCSD );
    iConnection.Start(prefs,iStatus);
    iState = EGPRSConnecting;
    SetActive();
    }
    void CSocketsEngine::RunL()
    {
    switch(iState)
    {
    case EGPRSConnecting:
    if(iStatus != KErrNone)
    {
    // iStatus.Int() retunrs -4159 WHAT CAN BE THE REASON?

    }
    break;

    }

    CSocketsEngine::~CSocketsEngine()
    {
    Cancel();
    iConnection.Close();
    iSocketServ.Close();
    }


    For connecting everytime...i create a new object of CSocketsEngine and delete any existing object.

  2. #2
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    77

    Re: RConnection + GPRS connectivity Issue

    I think this may also help u:
    Try to find the reason by adding,
    CEikonEnv::GetErrorText(TDes &aDes, TInt aError) const;
    in your code..

  3. #3
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: RConnection + GPRS connectivity Issue

    // iStatus.Int() retunrs -4159 WHAT CAN BE THE REASON?
    -4159
    KErrGprsActivationRejected
    Can't connect to the Internet (not enough credit available on SIM).
    List of other error codes you can see here - http://wiki.forum.nokia.com/index.ph...OS_Error_Codes

Similar Threads

  1. Nokia 6300 Bluetooth Connectivity Issue
    By flar74 in forum Bluetooth Technology
    Replies: 1
    Last Post: 2008-04-03, 20:19
  2. Replies: 1
    Last Post: 2005-10-06, 06:39
  3. gprs connectivity
    By kalyanich in forum Mobile Java General
    Replies: 2
    Last Post: 2005-09-29, 11:27
  4. Replies: 1
    Last Post: 2005-09-29, 07:40
  5. OTA for gprs connectivity & mms validity time
    By thejakel in forum Smart Messaging
    Replies: 0
    Last Post: 2003-08-10, 10:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×