|
|
User login
Feeds |
Make AT commands from Phone itself?
|
|||||
| Tue, 2005-04-26 03:55 | |
Forum posts: 226
Are u trying to send AT commands from ur application to Modem?? If so,u can always do tat.
Correct me if i'm wrong,
BR,
Forum posts: 58
You are right that i need to send AT commands thru my C++ application deployed on Series 60 handsets.
And the reason for that is... i need to send USSD requests to USSD server.
Thanks and regards,
Peri
Forum posts: 226
I have tried out making a call using the AT commands and it worked.
BR,
Sunil
Forum posts: 58
Thanks,
Peri
Forum posts: 53
Forum posts: 60
TApaTaskList aTaskList( WsSession() );
TUid aUid = TUid::Uid(0x100058B3);
TApaTask aPhoneTask = aTaskList.FindApp(aUid);
TKeyEvent aKeyEvent;
keyEvent.iCode = '*';
keyEvent.iModifiers = 0;
keyEvent.iRepeats = 0;
keyEvent.iScanCode = '*';
//this will simulate '*' key press,
aPhoneTask.SendKey(aKeyEvent);
//add more key presses here
//.....
//last key press is OK
TKeyEvent aYes;
aYes.iCode = EKeyYes;
aYes.iModifiers = 0;
aYes.iRepeats = 0; //
aYes.iScanCode = EKeyYes;
aPhoneTask.SendKey(aYes);
eventially this will result in something like this *#678# issuing USSD request. In the same way you can do all other USSD requests.
hope this helps..
P.S. By the way i would like to see some AT command sending from code examples too...
A.
algis
Forum posts: 226
It can be done by opening a comm port and passing the appropriate AT commands to the modem.
Forum posts: 53
commServer.Connect();
_LIT(KCsyName, "dataport");
User::LeaveIfError(commServer.LoadCommModule(KCsyName));
_LIT(KDataPort, "DATAPORT::0");
TBuf<20> port(KDataPort);
TInt ret= comm.Open(commServer, port, ECommShared);
if(ret == KErrNone){
_LIT8(buf8, "ATQ0DT063111111\r\n");//AT command for a phone call to number 063111111
comm.Write(callstatus, buf8);
}
Forum posts: 53
i tried to use "IRCOMM", "COMM:0", but got error, too.
can somebody tell me how to use the port to send AT command from symbian to itself?
Forum posts: 53
IRCOMM for RCommser and COMM::0 for RComm to open
now problem for writing:
failed, leave code = -33
Forum posts: 71
Hi ,
i know that this is a 2 year old post however..i hope the experts can jst ans my small question ...
I m using a series 60 v 8.1 sdk.. are at commands supported on the same...
how can i get the docs for the same on how to use them ?.
Thanks,
Sohil