Sending AT commands and DTMF during an active call in UIQ

Login to reply to this topic.
Tue, 2005-09-13 15:32
Joined: 2004-11-05
Forum posts: 57
First I set up a phonecall programatically

Code:
RCall call;
call.Dial(number);

then I loan this calls dataport

Code:
TRequestStatus stat;
call.LoanDataPort(stat, dataport);
User::WaitForRequest(stat);

and then open the dataport

Code:
RCommServ server;
RComm comm;
comm.Open(server, dataport.iPort, ECommShared);

finally writing to the port

Code:
_LIT8(KATCmd, "AT+VTS = ? \n");
comm.Write(stat, KATCmd);
User::WaitForRequest(stat);
ViewMessage(stat.Int());


The problem here is that stat.Int() is -29, which is KErrCommsLineFail


Solutions?


Magnus

Wed, 2005-09-14 08:45
Joined: 2004-11-05
Forum posts: 57
Re: Sending AT commands and DTMF during an active call in UIQ
Solved it


!!!!
Tue, 2005-09-27 08:01
Joined: 2004-11-05
Forum posts: 57
Re: Sending AT commands and DTMF during an active call in UIQ
If you ask kindly, I might tell you the solution.


Smiley



Tue, 2005-09-27 09:00
Joined: 2003-10-08
Forum posts: 45
Re: Sending AT commands and DTMF during an active call in UIQ
Pretty please - tell me how you did it - it puzzled us for some time (till we gave up)

--
Kibi
Give me immortality - or give me death!

Tue, 2005-09-27 12:21
Joined: 2004-11-05
Forum posts: 57
Re: Sending AT commands and DTMF during an active call in UIQ
I can't resist, here it is:

Code:
RCommServ commServer;
RComm comm;
commServer.Connect();
_LIT(KCsyName, "ECMUX");
User::LeaveIfError(commServer.LoadCommModule(KCsyName));
TBufC<12> port(_L("MUXCOMM::1"));
comm.Open(commServer, port, ECommShared);
TRequestStatus stat;
_LIT8(buf8, "AT+VTS=1,2,3\r\n");
comm.Write(stat, buf8);
User::WaitForRequest(stat);
comm.Close();
commServer.Close();

This should genereate the DTMFsounds according to pressing the buttons 1,2,3. (in that order)

M
Tue, 2005-09-27 12:43
Joined: 2003-10-08
Forum posts: 45
Re: Sending AT commands and DTMF during an active call in UIQ
Thanks

--
Kibi
Give me immortality - or give me death!

Thu, 2008-06-19 06:51
Joined: 2007-04-09
Forum posts: 28
Re: Sending AT commands and DTMF during an active call in UIQ

Hi,
I have one question.
How is exactly the datacall established??
From where the connection starts and exactly do the AT COMMANDS go thru ETEL for the connection ??

Thu, 2008-06-19 07:58
Joined: 2004-11-05
Forum posts: 57
Re: Sending AT commands and DTMF during an active call in UIQ

Hi,

This is not a datacall. Only after an ordinary call is ongoing, this part of the code is executed.
The DTMF tones is just "played" over an already ongoing call.

Magnus

  • Login to reply to this topic.