×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    29

    Change PIN code with AT commands?

    Hello I got this code...
    and I can call Data call or voice call with
    AT commands:
    ATDT063111111\r\n Data
    ATDT063111111;\r\n Voice Call

    But when I try this
    AT+CPIN="0000","0001"\r\n

    It do not work does anybody know how to change PIN code with AT commands

    CODE:

    void CATCommandsAppUi::ATCommandsL() {
    TBuf8<64> pri;
    TBuf8<512> readBuf8;
    TBuf<3> portNum;
    RCommServ commServer;
    RComm comm;
    TRequestStatus callstatus;

    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, "ATDT063111111\r\n");//AT command for a phone call to number 063111111
    comm.Write(callstatus, atBuf8_);
    User::WaitForRequest(callstatus);
    }
    comm.Read(callstatus, readBuf8);
    User::WaitForRequest(callstatus);

    comm.Close();
    commServer.Close();
    }

  2. #2
    Super Contributor
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556

    Re: Change PIN code with AT commands?

    the devices modem might not support that AT command, I have never seen it...

    try using hyperterminal and the device connected to the the PC, does it understand that command from hyperterminal?
    Jason Glass
    http://IChiBanComputers.Com

Similar Threads

  1. Replies: 2
    Last Post: 2007-10-05, 20:40
  2. Security code 3310
    By Baldero in forum General Development Questions
    Replies: 1
    Last Post: 2006-04-26, 11:32
  3. Replies: 0
    Last Post: 2004-03-09, 15:09
  4. Embed Pin Code in the program
    By ayulo in forum Bluetooth Technology
    Replies: 0
    Last Post: 2004-02-16, 05:32
  5. Has pin code been entered ? (S60)
    By eracer in forum Symbian
    Replies: 0
    Last Post: 2003-03-24, 15:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×