Unable to handle AT URCs containing USSD response from operator

Login to reply to this topic.
Fri, 2005-09-16 13:55
Joined: 2005-08-16
Forum posts: 2
I'm able to successfully send an USSD command to the operator using at commands (AT+CUSD), and read the synchronous OK response back from the modem as well, on both Nokia 6680 and Nokia 7610. However, on both phones, the asynchronous URC (unsolicited result code) containing the USSD response from the operator is never read by my application (although I'm trying to read it). In stead, the message is presented as a Global note on the phone. Has anyone been able to read the URC containing the USSD response in their application? Is anything in my code snippet wrong?

Code:
  _LIT8(cmd,"AT+CUSD=1,\"*101#\",15\r\n");
  comm.Write(status,cmd);
  User::WaitForRequest(status);
  User::LeaveIfError(status.Int());
  User::After(10000);

  // read synchronous response
  //todo: check that response is OK
  comm.Read(status, TTimeIntervalMicroSeconds32(1000000), rsp);
  User::WaitForRequest(status);
  User::LeaveIfError(status.Int());
  User::After(10000);

  // try reading asynch response (URC) for 10 secs
  comm.Read(status, TTimeIntervalMicroSeconds32(10000000), rsp);
  User::WaitForRequest(status);
  if ( status.Int() != KErrNone && status.Int() != KErrTimedOut )
  {
    User::Leave( status.Int() );
  }

 
  // here, we should have the URC containing the USSD response
  // in stead, a global note is displayed outside this app containing
  // the incoming ussd message response!! rsp is empty.
 

  // cleanup code
  CleanupStack::Pop(&comm);
  comm.Close();
  CleanupStack::Pop(&rCommServ1);
  rCommServ1.Close();

Tue, 2005-09-20 08:45
Joined: 2005-08-16
Forum posts: 2
Re: Unable to handle AT URCs containing USSD response from opera
By the way, I'm using dataport::1 for sending at commands, since I get a KerrInUse (-14) when trying to use dataport::0. It seems reasonable to assume that URCs are received on dataport::0 (since nothing appears on dataport::1...). If this is the case, has anyone been able to read/write successfully on dataport::0 on any of the above mentioned phones?
Mon, 2005-11-21 05:39
Joined: 2005-08-01
Forum posts: 44
Re: Unable to handle AT URCs containing USSD response from opera
has anyone succeed with this idea??
I've done the same thing with 6670...but even when I use dataport ::1 the application exited
and when I read the comm, it gave me error -33

please....someone....give us information here
  • Login to reply to this topic.