Unable to handle AT URCs containing USSD response from operator
| Fri, 2005-09-16 13:55 | |
|
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(); |
|






Forum posts: 2
Forum posts: 44
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