Make AT commands from Phone itself?

Login to reply to this topic.
Tue, 2005-04-26 03:55
Joined: 2005-04-12
Forum posts: 58
Hi,

Can i make AT commands from the Handphone itself?

If yes, can i use those AT commands from a C++ application(for Series 60 platform)?

Thanks,
Peri

Tue, 2005-04-26 07:08
Joined: 2005-01-04
Forum posts: 226
Make AT commands from Phone itself?
What exactly u mean by making AT commands from the HandPhone?

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,
Tue, 2005-04-26 07:36
Joined: 2005-04-12
Forum posts: 58
tripiri
Thanks, tripiri.

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
Tue, 2005-04-26 07:43
Joined: 2005-01-04
Forum posts: 226
Make AT commands from Phone itself?
Yea,u can always do that.

I have tried out making a call using the AT commands and it worked.

BR,
Sunil
Thu, 2005-04-28 08:22
Joined: 2005-04-12
Forum posts: 58
Make AT commands from Phone itself?
Can i have the code snippets?

Thanks,
Peri
Mon, 2005-06-20 16:36
Joined: 2005-06-08
Forum posts: 53
Re: Make AT commands from Phone itself?
I want to know how, too Huh
Mon, 2005-06-20 21:52
Joined: 2005-01-22
Forum posts: 60
Re: Make AT commands from Phone itself?
Hi..I had the same problem regarding USSD recently..actually my solution was really simple..i simulated key presses for the Phone Task as follows:
Code:
//
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

Tue, 2005-06-21 06:08
Joined: 2005-01-04
Forum posts: 226
Re: Make AT commands from Phone itself?
I made an application which makes a call using the AT commands.

It can be done by opening a comm port and passing the appropriate AT commands to the modem.
Tue, 2005-06-21 07:38
Joined: 2005-06-08
Forum posts: 53
Re: Make AT commands from Phone itself?
Here is the code that I found by Nokia, but it is uncomplete
Code:
RCommServ commServer;
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);
}
Tue, 2005-06-21 09:24
Joined: 2005-06-08
Forum posts: 53
Re: Make AT commands from Phone itself?
with "dataport", i cannot open the port



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?
Tue, 2005-06-21 13:50
Joined: 2005-06-08
Forum posts: 53
Re: Make AT commands from Phone itself?
use
IRCOMM for RCommser and COMM::0 for RComm to open


now problem for writing:
failed, leave code = -33
Sun, 2007-10-21 19:25
Joined: 2007-09-19
Forum posts: 71
Re: Make AT commands from Phone itself?

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

  • Login to reply to this topic.