×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    May 2007
    Posts
    156

    Getting Timing Advance via AT command

    Hello everyone,

    I working on Nokia N95. I would like to get the Timing Advance parameter in my application. I know that it is not possible by CTelephony class. I used it a lot to get other things but there is no TA available.

    I search internet and this forum as well and I found some post about it. Unfortunately there was no solution also none of these informations regarding to Nokia N95. All posts were pretty old as well.

    I hope that maybe something changed since that time

    My idea is to try send AT command to my device. I used the following code:

    _LIT(PDD_NAME,"EUART1");
    _LIT(LDD_NAME,"ECOMM");
    _LIT(KCommModuleName, "dataport");
    _LIT(KPort, "DATAPORT::1");
    _LIT8(KATCommand,"AT+CREG\r\n");

    User::LoadPhysicalDevice (PDD_NAME);
    User::LoadLogicalDevice (LDD_NAME);
    StartC32();

    User::LeaveIfError(iCommServer.Connect());
    iCommServer.LoadCommModule(KCommModuleName);
    User::LeaveIfError(iComm.Open (iCommServer, KPort, ECommShared));

    //Wait for some time
    User::After(2000000);

    TCommConfig portSettings;
    iComm.Config (portSettings);
    portSettings().iRate = EBps19200;
    portSettings().iParity = EParityNone;
    portSettings().iDataBits = EData8;
    portSettings().iStopBits = EStop1;
    portSettings().iFifo = EFifoEnable;
    portSettings().iHandshake = (KConfigObeyXoff | KConfigSendXoff);
    portSettings().iTerminator[0] = 10;
    portSettings().iTerminatorCount = 1;
    User::LeaveIfError(iComm.SetConfig (portSettings));

    iComm.SetSignals (KSignalDTR, 0);
    iComm.SetSignals (KSignalRTS, 0);

    TInt curlenth = iComm.ReceiveBufferLength ();
    iComm.SetReceiveBufferLength (4096);
    curlenth = iComm.ReceiveBufferLength ();

    TRequestStatus writeStatus;
    TRequestStatus readStatus;

    iComm.Write(writeStatus, KATCommand);
    User::WaitForRequest(writeStatus);
    User::After(1000000);

    TBuf8<128> iResponseDes;
    iResponseDes.Zero();
    TInt counter = 0;
    while(counter<2){
    iComm.ReadOneOrMore(readStatus, iResponseDes);
    User::WaitForRequest(readStatus);
    counter++;
    User::After(500*1000);
    }
    iComm.Close();
    iCommServer();


    I put some logs (which are not shown above). I can see that just after iComm is oppened I get the following pop up message on the screen:
    "Unable to execute file for security reasons"

    Can someone tell if I can go around this "security reasons"?? Maybe someone faced this problem before and already got the answer.
    Or perhaps there is better and faster way to get the TA parameter?? Or there is just no way to find it out??

    Thank You very much for Your help
    Best Regards
    songoku

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Getting Timing Advance via AT command


  3. #3
    Regular Contributor
    Join Date
    May 2007
    Posts
    156

    Re: Getting Timing Advance via AT command

    Thank You for answer

    So there is no way to this until I would be able to install application with CommDB and NetworkControl.

    Could You think of other way to achieve this information??

    Best Regards
    songoku

Similar Threads

  1. Problem with resource s60 3rd edition
    By asmobease in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2006-09-22, 10:56
  2. Nokia 6810 and AT Command
    By projet13 in forum General Development Questions
    Replies: 0
    Last Post: 2004-07-21, 17:36
  3. Dialog's clipping area (again). Nokia experts, please help
    By synov in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-06-26, 14:35
  4. Command on a Form - Nokia Vs. Sun emulator
    By zivgr in forum Mobile Java General
    Replies: 3
    Last Post: 2003-05-14, 13:55
  5. running nokia series 60 MIDP SDK from the command line
    By warner_godfrey in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-05-05, 03:37

Posting Permissions

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