Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 07:01, 9 January 2008.

Sending USSD commands

From Forum Nokia Wiki

Purpose:

The following link is used to Dial a string in 3rd edition.

Dial A String

The classes CPhCltDialer and TPhCltExtPhoneDialData are used to accomplish the string dialing.

But the same doesnt work in 3rd edition Feature Pack 1.

The workaround to this problem is to send USSD commands using AT commands.

We use the RCommServ and RComm classes and send the commands.


Header Files:

C32COMM.H


Libraries:

c32.lib


Capabilities:

CommDD ReadDeviceData WriteDeviceData NetworkControl SwEvent NetworkServices LocalServices

ReadUserData WriteUserData UserEnvironment


code Examples

Initializing code


_LIT(KCsyName,"DATAPORT");
_LIT(KDataPort,"DATAPORT::1");// this works with CUSD
//Start the service to the RCommServ
User::LeaveIfError(StartC32());
RCommServ iCommServer;
// Connect the server
User::LeaveIfError(iCommServer.Connect());
// Load the CSY module
User::LeaveIfError(iCommServer.LoadCommModule(KCsyName()));
RComm iComm;
// Open the port
User::LeaveIfError(iComm.Open (iCommServer, KDataPort, ECommShared));





Issue Request Code

Sending Ordinary Message


_LIT(KTestCommandEnd,"\r\n");
//iSendString has the data which is entered through a Dialog Box
//It should be appended with KTestCommandEnd
iSendString.Append(KTestCommandEnd);
iReplyData.Copy(iSendString);
//We write this information to the serial port
iComm.Write(iStatus,iReplyData);
SetActive();





Handling code after the Request is done


_//Reset the Buffer to read more information
iReplyData.Zero();
//Issue Request for more Information
iComm.ReadOneOrMore(iStatus, iReplyData);
SetActive();





Releasing code

iComm.Close();
iCommServer.Close();






The following is the document which describes how to pass AT commands for Call Waiting and Forwarding:
AT-Commands


Example Project

Sending USSD via_AT_Commands

Related Discussions
Thread Thread Starter Forum Replies Last Post
AT commands over IR micmen General Symbian C++ 0 2004-08-26 14:45
Bandinformation parikhnirav.aits General Symbian C++ 7 2008-05-17 05:49
Echo Off tubalcain Nokia M2M 1 2003-06-24 11:41
Nokia 7160 , send sms by at commands Nokia_Archive General Messaging 1 2002-05-23 15:55
sending SMS via AT Commands from 8250 ljchiu General Messaging 0 2003-07-20 13:15
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX