×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    20

    modem connection (data call) under S60 3rd ed.

    Hi all,

    I'm trying to establish a modem connection between two S60 3rd edition devices. I read in the documentation of the CTelephony class that this is not possible, so I'm using the old Etel interface.

    I've enumerated phone's lines, found the data line and started dialing. Then, something strange happens: phone call indicator appears on the phone's screen, blinks for a second or two, then greys out and iCall.Dial method returns with error KErrGeneral. Why is that? When I choose a voice line instead of data line everything works fine. What's the problem with using the data line?

    Here's the code I'm using (I'm testing it on Nokia E61):

    Code:
    iLine.Close();
    iPhone.Close();
    iServer.Close();
    	
    RTelServer::TPhoneInfo phoneInfo;
    TInt iNumberLines;
    RPhone::TLineInfo lineInfo;
    User::LeaveIfError( iServer.Connect() );
    TBool FoundLine = EFalse;
    if (iServer.LoadPhoneModule(_L("phonetsy")) != KErrNone)
    {
        	 return;
    }
    iServer.GetPhoneInfo(0, phoneInfo);
    iPhone.Open(iServer, phoneInfo.iName);
    User::LeaveIfError( iPhone.Initialise() );
    
    iPhone.EnumerateLines(iNumberLines);
    for (TInt a = 0; !FoundLine && a < iNumberLines; a++)
    {
    	iPhone.GetLineInfo(a, lineInfo);
    	if (lineInfo.iLineCapsFlags & RLine::KCapsData)//KCapsVoice
    	{
    		FoundLine = ETrue;
    		break;
    	}
    }
    if ( ! FoundLine )
    {
    	return;
    }
    	 
    iLine.Open(iPhone, lineInfo.iName);
    
    // dialing:
    TInt ret;
    RCall iCall;
    TName call_name = _L( "voice call" );
    User::LeaveIfError( iCall.OpenNewCall(iLine/*, call_name*/) );
    
    ret = iCall.Dial( KPhoneNumber );
    if (ret != KErrNone)
    {
        // here the return value (ret) == KErrGeneral
        User::LeaveIfError( ret );
    }
    else
    {
    /*	TName call_name;	
    	RCall::TCommPort iCommPort;
    	iCall.LoanDataPort(iStatus, iCommPort);
    	//SetActive();
    	
    	User::WaitForRequest(iStatus);
    		
    	if ( iStatus == KErrNone )
    	{	
    		CAknInformationNote* infor1= new (ELeave) CAknInformationNote;
    		infor1->ExecuteLD(_L("Loaned successfully - port "));	
    	}*/
    }

  2. #2
    Registered User
    Join Date
    Jul 2006
    Posts
    20

    Re: modem connection (data call) under S60 3rd ed.

    Has no one really tried to use modem under S60 3rd edition?

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    9

    Re: modem connection (data call) under S60 3rd ed.

    I also meet this issue.
    I would appreciate any suggestion or clue.

  4. #4
    Registered User
    Join Date
    Jun 2008
    Posts
    2

    Re: modem connection (data call) under S60 3rd ed.

    I also met exactly the same problem both under GSM and 3G enviorment on a N73 phone.

    Would any one from Nokia give us some clue?

  5. #5
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: modem connection (data call) under S60 3rd ed.

    An alternative would be defining a proper access point and using it explicitely. You could create the IAP programmatically, provided you have the necessary capabilities.. (see http://wiki.forum.nokia.com/index.ph...ing_CommDB_API for ideas)

  6. #6
    Registered User
    Join Date
    Jun 2008
    Posts
    2

    Re: modem connection (data call) under S60 3rd ed.

    Quote Originally Posted by david.caabeiro View Post
    An alternative would be defining a proper access point and using it explicitely. You could create the IAP programmatically, provided you have the necessary capabilities.. (see http://wiki.forum.nokia.com/index.ph...ing_CommDB_API for ideas)
    3x first.
    I am not well understand. Is this alternative method different from using etel api? Or it should be done and then it will provide the necessary capabilities when I use etel api to make a data call.
    Last edited by wsong@arcsoft.com.cn; 2008-06-19 at 07:53.

  7. #7
    Registered User
    Join Date
    Feb 2006
    Posts
    9

    Re: modem connection (data call) under S60 3rd ed.

    Hi david,
    Thank you for your replying.
    I read your reference carefully, but I also have some questions in details.

    Please allow me to describe your suggestion:
    1, I should create the CSD IAP by the method you mentioned at first;

    2, Let App connect to this AP to create the connection just like web browser;

    3, App will read/send data by RSocket API.

    Is it right?
    I doubt this method is not useful the connection between the N73 device and other N73 device. It's realized that the N73 device can't work as the IAP.

    My purpose for the establishment of data call is that create the video telephony application, so it's must be the end-to-end data call establishment. So can I create the end-to-end data call by your method? if not, how can I do?

    Thank you very much.

  8. #8
    Registered User
    Join Date
    Feb 2006
    Posts
    9

    Smile Re: modem connection (data call) under S60 3rd ed.

    Quote Originally Posted by wsong@arcsoft.com.cn View Post
    3x first.
    I am not well understand. Is this alternative method different from using etel api? Or it should be done and then it will provide the necessary capabilities when I use etel api to make a data call.
    Hi wsong,
    I guess you don't need ETel API anymore if you use IAP like this.
    It's just my opinion. Maybe I'm wrong.

  9. #9
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: modem connection (data call) under S60 3rd ed.

    No, this won't work for video calls.

    If you want to make video calls, you can use the plugin pack. See http://wiki.forum.nokia.com/index.ph...and_VoIP_calls

  10. #10
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: modem connection (data call) under S60 3rd ed.

    Quote Originally Posted by steveyzhang View Post
    Hi wsong,
    I guess you don't need ETel API anymore if you use IAP like this.
    It's just my opinion. Maybe I'm wrong.
    Exactly. You wouldn't need to rely on ETel api, just using RSockets and RConnections..

  11. #11
    Registered User
    Join Date
    Jul 2006
    Posts
    20

    Re: modem connection (data call) under S60 3rd ed.

    I'm not interested in voice -- I want to connect two phones and establish a communication channel through which I can send arbitrary data. This method with creating an access point sounds interesting, but I would like to connect to any phone number I like (not just one fixed number) and not to expose this connection to other applications on the phone.

  12. #12
    Registered User
    Join Date
    May 2008
    Posts
    2

    Re: modem connection (data call) under S60 3rd ed.

    anything new here? i am also interested in establishing a communication channel for arbitrary data between 2 phones ...

  13. #13
    Registered User
    Join Date
    May 2008
    Posts
    2

    Re: modem connection (data call) under S60 3rd ed.

    Quote Originally Posted by david.caabeiro View Post
    Exactly. You wouldn't need to rely on ETel api, just using RSockets and RConnections..
    I managed to start a data call with RSockets and RConnections and the second phone (N95) shows me an incoming data call, but how can I answer it and establish a connection? Can you give me some example code?

    with best regards,
    ManOnTilt

Similar Threads

  1. Replies: 7
    Last Post: 2011-06-02, 11:35
  2. 3G Voice Call and simultaneous data connection
    By olshevch in forum General Development Questions
    Replies: 8
    Last Post: 2009-12-19, 14:26
  3. Making a data connection within a voice call
    By puneetsharma728 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-03-20, 09:05
  4. GPRS connection problems on 6600..
    By suckho in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2005-12-02, 14:00

Posting Permissions

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