×

Discussion Board

Results 1 to 8 of 8

Thread: CSD Data Call

  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Location
    Moratuwa, Sri Lanka
    Posts
    86

    CSD Data Call

    Hi All,

    I am trying to run the code given in the wiki for making a data call in S60 3rd edition devices. But the problem is when it executes
    Code:
    iLine.Open(iPhone, lineInfo.iName);
    It just quits the program with out giving an error. Following is the full code snippet.

    Code:
    RCall iCall;
     RLine iLine;
     RTelServer::TPhoneInfo phoneInfo;
     RTelServer iServer;
     TInt iNumberLines;
     RPhone iPhone;
     RPhone::TLineInfo lineInfo;
     iServer.Connect();
     if (iServer.LoadPhoneModule(_L("phonetsy")) != KErrNone)
     {
     return;
     }
     iServer.GetPhoneInfo(0, phoneInfo);
     iPhone.Open(iServer, phoneInfo.iName);
     iPhone.EnumerateLines(iNumberLines);
     for (TInt a = 0; !FoundLine && a < iNumberLines; a++)
     {
     iPhone.GetLineInfo(a, lineInfo);
     if (lineInfo.iLineCapsFlags & RLine::KCapsData)
     FoundLine = ETrue;
     }
     iLine.Open(iPhone, lineInfo.iName);
    When I checked the value of "FoundLine" it is True.

    What could be the reason for this ?

    Regards,
    Primal

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: CSD Data Call

    Quote Originally Posted by primal View Post
    I am trying to run the code given in the wiki for making a data call in S60 3rd edition devices. But the problem is when it executes
    Code:
    iLine.Open(iPhone, lineInfo.iName);
    It just quits the program with out giving an error.
    Make sure that you have enabled extended panic code.
    When I checked the value of "FoundLine" it is True.

    What could be the reason for this ?
    Make sure that FoundLine is explicitly set to EFalse prior to entering the loop.

  3. #3
    Regular Contributor
    Join Date
    Nov 2007
    Location
    Moratuwa, Sri Lanka
    Posts
    86

    Re: CSD Data Call

    Thanx wizard_hu ...

    Now it works but now there is another problem ... When i execute the following code

    Code:
    RCall iCall;
    	RLine iLine;
    	RTelServer::TPhoneInfo phoneInfo;
    	RTelServer iServer;
    	TInt iNumberLines;
    	RPhone iPhone;
    	RPhone::TLineInfo lineInfo;
    	iServer.Connect();
    	
    	TBool FoundLine = EFalse;
    	
    	if (iServer.LoadPhoneModule(_L("phonetsy")) == KErrNone)
    	{
    
    	}
    	else {
    
    	}
    	
    	iServer.GetPhoneInfo(0, phoneInfo);
    	iPhone.Open(iServer, phoneInfo.iName);
    	iPhone.EnumerateLines(iNumberLines);
    	
    	for (TInt a = 0; !FoundLine && a < iNumberLines; a++)
    	{
    		iPhone.GetLineInfo(a, lineInfo);
    		
    		if (lineInfo.iLineCapsFlags & RLine::KCapsData)
    			FoundLine = ETrue;
    	}
    	
    	TInt err = iLine.Open(iPhone, lineInfo.iName);	
    		
    	TInt ret;
    	TName call_name;
    	iCall.OpenNewCall(iLine, call_name);
    	ret = iCall.Dial(_L("+94779498640"));
    	
    	if (ret == KErrNone)
    	{
    	
    		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 "));	
    		}
    		
    	}
    	else
    	{
    		CAknInformationNote* infor2= new (ELeave) CAknInformationNote;
    		infor2->ExecuteLD(_L("Error in dialling"));
    	}
    It gives the message "connection error" and after that it shows "Error in dialling". Is it something wrong with the code or something else ?

    Regards,
    Primal
    Last edited by primal; 2008-03-24 at 06:18.

  4. #4
    Regular Contributor
    Join Date
    Nov 2007
    Location
    Moratuwa, Sri Lanka
    Posts
    86

    Re: CSD Data Call

    Hi,

    The error code it gives is - 16. I tried to find it out the meaning of it but could found any thing other than "KErrGsmSSIllegalOperation".

    What is the actual meaning of it ?

    Regards,
    Primal

  5. #5
    Super Contributor
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777

    Re: CSD Data Call

    Quote Originally Posted by primal View Post
    Thanx wizard_hu ...

    Now it works but now there is another problem ... When i execute the following code

    Code:
    RCall iCall;
    	RLine iLine;
    	RTelServer::TPhoneInfo phoneInfo;
    	RTelServer iServer;
    	TInt iNumberLines;
    	RPhone iPhone;
    	RPhone::TLineInfo lineInfo;
    	iServer.Connect();
    	
    	TBool FoundLine = EFalse;
    	
    	if (iServer.LoadPhoneModule(_L("phonetsy")) == KErrNone)
    	{
    
    	}
    	else {
    
    	}
    	
    	iServer.GetPhoneInfo(0, phoneInfo);
    	iPhone.Open(iServer, phoneInfo.iName);
    	iPhone.EnumerateLines(iNumberLines);
    	
    	for (TInt a = 0; !FoundLine && a < iNumberLines; a++)
    	{
    		iPhone.GetLineInfo(a, lineInfo);
    		
    		if (lineInfo.iLineCapsFlags & RLine::KCapsData)
    			FoundLine = ETrue;
    	}
    	
    	TInt err = iLine.Open(iPhone, lineInfo.iName);	
    		
    	TInt ret;
    	TName call_name;
    	iCall.OpenNewCall(iLine, call_name);
    	ret = iCall.Dial(_L("+94779498640"));
    	
    	if (ret == KErrNone)
    	{
    	
    		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 "));	
    		}
    		
    	}
    	else
    	{
    		CAknInformationNote* infor2= new (ELeave) CAknInformationNote;
    		infor2->ExecuteLD(_L("Error in dialling"));
    	}
    It gives the message "connection error" and after that it shows "Error in dialling". Is it something wrong with the code or something else ?

    Regards,
    Primal
    as per my knowldge "the device(number on which u r testing ) should have data call service that is enabled by operator"
    Regards
    $-Nitesh-$

  6. #6
    Regular Contributor
    Join Date
    Nov 2007
    Location
    Moratuwa, Sri Lanka
    Posts
    86

    Re: CSD Data Call

    Thanx Nitesh ...

    How am I going to know whether data call service is enable or not ?

    Regards,
    Primal

  7. #7
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269

    Re: CSD Data Call

    hi primal

    I see that you have the same problem as me here

    Have you find any solution? In my case the code only work on my E90 and on my E61 it ends with "Connection Error" or "Network Busy" depends on what GSM Operator I'm using.

  8. #8
    Registered User
    Join Date
    Feb 2009
    Posts
    2

    Re: CSD Data Call

    [QUOTE=strike_noir;410824]hi primal

    I see that you have the same problem as me here

    Hello to all,

    It seams that I have the similar problem except that I got "Connection Error" message every time. As reference example I am using http://wiki.forum.nokia.com/index.ph...dition_devices . To be sure that problem happens only for KCapsData I tired to establish voice call with KCapsVoice and I established connection without any problem. I am using 3rd edition MR, phone E61 and I have offline certificate.


    Is it possible that there is some issue with data call on E61?
    Last edited by tihomir.andjelic; 2009-02-24 at 16:04.

Similar Threads

  1. Establishing a data call
    By aljaz24 in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2009-08-04, 14:41
  2. CSD/HSCSD Data Call
    By julppoupou in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-05-19, 16:25
  3. Nokia 6680: Concurrent data and voice call
    By magiconair in forum General Development Questions
    Replies: 0
    Last Post: 2006-04-08, 23:35
  4. Data Call, Voice Call & LoanDataPort()
    By tektronic in forum Symbian
    Replies: 1
    Last Post: 2004-12-01, 21:47
  5. Establishing a data call
    By aljaz24 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-03-02, 14:24

Posting Permissions

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