Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12885

Help me about open and keep WAP/GPRS connection in Qt S60 for N97 and Symbian^3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 4.6.3
    • Network
    • Symbian^3 and S60 V5

    Description

      Hi,

      My Qt S60 program would access the Internet though CMWAP conncetion.

      Firstly, I open the CMWAP by the below code as:

      //iSocketServ and iConnection are the class member variable
      ......
      User::LeaveIfError(iSocketServ.Connect());
      User::LeaveIfError(iConnection.Open(iSocketServ));
      TCommDbConnPref connectPref;
      connectPref.SetBearerSet(ECommDbBearerGPRS|ECommDbBearerPSD|ECommDbBearerWLAN);
      connectPref.SetDialogPreference(ECommDbDialogPrefPrompt);
      User::LeaveIfError(iConnection.Start(connectPref));
      ......
      //user select the CMWAP
      ......
      //query the CMWAP's real name to strIapName...
      ......
      struct ifreq ifReq;
      memset(&ifReq, 0, sizeof(struct ifreq));
      strcpy(ifReq.ifr_name, strIapName.toUtf8().data());
      setdefaultif(&ifReq);
      

      It works and program can access Internet in first time in N8 and N97.

      But after I disconnect the CMWAP connection by manual or the mobile disconnect automaticlly after long time wait,

      the source code can open the CMWAP connection again and keep it on, but our program can't access the Internet with QNAM through the new CMWAP connection in N8.

      But the QNAM can access the Internet through the new CMWAP connection in N97.

      Thanks a lot!

      Wei Song

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mgoetz Markus Goetz (Inactive)
            songwei1984 Wei Song
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes