×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    18

    AT command problem

    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);

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    113

    Re: AT command problem

    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
  •  
×