Discussion Board
AT command problem
2003-12-25, 09:30
#1
Registered User
I use RCommServ to send AT command to mobile modem. When I send ATDxxx; it works and the number is dialed out.
But when I send AT+CCFC=1,1,number to send call forwarding , it doesn't work.What may be the problem?who can tell me ?
I use the following code:
RCommServ commServer;
RComm comm;
TRequestStatus status;
commServer.Connect();
_LIT(KCsyName, "dataport");
User::LeaveIfError(commServer.LoadCommModule(KCsyName) );
TBufC<12> port(_L("DATAPORT::0"));
TInt ret = comm.Open(commServer, port, ECommShared);
// More code: to wait 2 seconds : no need now
// User::After( KIWaiting );
//////////////////////////////////
// send AT command
//////////////////////////////////
TBuf<48> command1;
// this command set call divert
command1.Format(_L("AT+CCFC=%d,%d,%s\r\n"),reason,mode,aPhoneNumber);
// below is a test command , call number directly
// used to test AT command works.
// command1.Format(_L("ATD%s;\r\n"),aPhoneNumber);
TBuf8<48> command;
command.Copy(command1);
comm.Write(status,command);
User::WaitForRequest(status);
Re: AT command problem
2006-01-04, 13:28
#2
Regular Contributor
Hi dantifer,
call forwarding may not be supported by your operator (or at least not by using AT-Commands). Try using different operator.
Do other AT Commands work, like modem configuration commands?
br, Marcel
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules