×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    3

    AT commands from symbian app directly?

    hello,
    i was wandering if it is possible( and if it is-how) to send AT commands directly from my symbian app (without rs232,BT,...).i need to write that kind of app which will communicate with phone modem directly with AT commands without any external interfiering.if this is not possible is there any other way to do souch thing to for example change speed of modem?
    thanks.

  2. #2
    Registered User
    Join Date
    May 2004
    Posts
    39

    AT Commands

    Try RCall::LoadDataPort() for a call that you have answered or created, then you can use RComm class to send AT Commands directly

  3. #3
    Regular Contributor
    Join Date
    Mar 2004
    Location
    Novi Sad - Serbia
    Posts
    63

    Using AT commands

    Here is the sample you can use to dial some number using AT commands. Of course, you can use any AT command you want insted of ATD I used here:

    Code:
    	RCommServ commServer;
    	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, "ATQ0DT063111111\r\n");//AT command for a phone call to number 063111111
    		comm.Write(callstatus, buf8);
    	}
    I used some constans here but if you search a litle you will find how you can read this values from commsdb.

    I hope this can help you.

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    3

    HVALA

    pokusao sam vec taj princip al sa aktivnim objektima,evo,parceta koda:
    ...
    User::LeaveIfError( iCommServ.Connect( ) ) ;
    User::LeaveIfError( iCommServ.LoadCommModule( iCSYName ) ) ;
    User::LeaveIfError( iComm.Open( iCommServ, iDataPort, ECommShared ) ) ;
    _LIT8( buf8, "ATDT0214750012\r\n" ) ;
    iState = EAttach ;
    iComm.Write( iStatus, buf8 ) ;
    SetActive( ) ;
    ...
    iz db sam iscito da su:
    portname:"MUXCOMM::0 "
    iCSYName:"ECMUX"
    pokusacu i kako si ti napisao.hvala jos jednom za trud.

    btw. za koga radis?

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165
    dear nikoladsp

    could you please stick on using English here, since it is the only officially acceptable language here.

    yucca

  6. #6
    Registered User
    Join Date
    Jul 2005
    Posts
    37

    Re: AT commands from symbian app directly?

    Have anyone done how to read replies from AT commands that we've sent?

    I can do the "write AT commands"...but I can't read the replies

    please....do share your code with us

    thank you

    irma

  7. #7
    Regular Contributor
    Join Date
    Mar 2004
    Location
    Novi Sad - Serbia
    Posts
    63

    Re: AT commands from symbian app directly?

    Hi Irmatan82,

    It's not possible to read response from AT Commands in Series 60.

    I know this will not make you happy but will save you a time you would spend on investigation by yourself.

Posting Permissions

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