Revision as of 19:40, 1 December 2007 by BZapf (Talk | contribs)

AT Commands

From Nokia Developer Wiki
Jump to: navigation, search



This information is only partial. Typing commands as they are represented here may result in obscure error messages. Additionally, not all Nokia phones understand all the commands on this page, or reply in a meaningful way. Firmware on some phones is broken. Do not expect the documentation to match reality. See comments.


AT commands are known by Hayes AT commands. There are different views to understand the meanings of "AT". Some people call it as "Attention Telephone" or some people call it as "Attention Terminal" commands. Views can be different but meanings are same. We are after all going to give some instruction to phone either it is mobile phone or a normal landline telephone. Basically the commands work on Modem. We can also send some of the commands to our PC's modem also. If we are sending commands to GSM mobile phones of Nokia they may differ by manufacturer to manufacturer. Major AT commands are same some of them are different. Mobile manufacturer also gives attention to operators to allow or not to allow some commands on the phone. Let us see in brief what is the use of such commands. We can perform some of the operation which we do from mobile keypad like calling a number, sending an sms, reading an SMS, deleting an SMS, setting the SMSC number, looking for GPRS access point, reading phonebook data, deleting phonebook data, reading the battery status, reading the signal strength etc. When we want to make a PC based application to interface a mobile phone using USB, IR or bluetooth such commands are needed to communicate with mobile phones. Basically such commands are application layer of MBUS or FBUS commands. Nokia provides an AT command set guide by which we can refer the basic command syntax and the response of the command in various situations.

Let us see now how to use this commands. The AT commands work on all the devices but you have to check out whether it has in built GSM modem or not, if it exists then there is no need of virtual modem software to install in your PC. But if you are using very older Nokia Phones you have to find out the DATA suite not the PC Suite for such phones (Nokia 5110) to use AT commands. We focus on the mobile phones which has built-in GSM modem. The user can configure the PC to use it within a minute.

First connect your mobile phone with PC using any available option (BT, USB or IR). Check whether you have installed the proper driver from Nokia website for the GSM modem or not, if it is not installed download it first for you device. Now next step is to open the hyper terminal - a communication utility in your window OS. You can find the hyper terminal in start>programs>accessories>communication. Open it and create one new connection set some of the parameters like baud rate (normally 9600), handshaking mode (Xon-Xoff), parity bit (default) etc. Select the communication port on which your mobile has been connected. once you are done with this you can give the basic AT command, type simple AT in the window so you will get "OK" response. Now there are basically two modes to work for mobile phones. one is PDU and another is text mode. PDU is protocol data unit. Mobile normally understands internally in PDU format. We can use both. AT+CMGF is the command to set the mode. If we type AT+CMGF=0 the PDU mode is set. If we type AT+CMGF=1 the text mode is set. If we want to check which mode has been set we can type simple AT+CMGF? so it will show the result.

Now for example we want to dial out a number called "111" the command is ATD 111 or ATD "111".

To send an SMS first we have to set the mode in text. We can send SMS in both the modes but the format of typing text to send SMS is different. For normal usage we use text mode. So type AT+CMGS="9198XX21XX99", "Message" ^ctrlZ. So SMS will be sent out from your PC through mobile phone. To read an SMS from the inbox we have to write AT+CMGR=1 to read the sms stored at 1st location. The location starts from 0 so be careful. To delete an SMS type AT+CMG


Call Control

Command Description
ATA Answer Command
ATD Dial Command
ATH Hang Up Call
ATL Monitor Speaker Loudness
ATM Monitor Speaker Mode
ATO Go On-Line
ATP Set Pulse Dial as Default
ATT Set Tone Dial as Default
AT+CSTA Select Type of Address
AT+CRC Cellular Result Codes

Data Card Control Commands

Command Description
ATI Identification
ATS Select an S-register
ATZ Recall Stored Profile
AT&F Restore Factory Settings
AT&V View Active Configuration
AT&W Store Parameters in Given Profile
AT&Y Select Set as s Powerup Option
AT+CLCK Facility Lock Command
AT+COLP Connected Line Identification Presentation
AT+GCAP Request Complete Capabilities List
AT+GMI Request Manufacturer Identification
AT+GMM Request Model Identification
AT+GMR Request Revision Identification
AT+GSN Request Product Serial Number Identification

Phone Control Commands

Command Description
AT+CBC Battery Charge
AT+CGMI Request Manufacturer Identification
AT+CGMM Request Model Identification
AT+CGMR Request Revision Identification
AT+CGSN Request Product Serial Number Identification
AT+CMEE Report Mobile Equipment Error
AT+CPAS Phone Activity Status
AT+CPBF Find Phone Book Entries
AT+CPBR Read Phone Book Entry
AT+CPBS Select Phone Book Memory Storage
AT+CPBW Write Phone Book Entry
AT+CSCS Select TE Character Set
AT+CSQ Signal Quality

Computer Data Card Interface Commands

Command Description
ATE Command Echo
ATQ Result Code Suppression
ATV Define Response Format
ATX Response Range Selection
AT&C Define DCD Usage
AT&D Define DTR Usage
AT&K Select Flow Control
AT&Q Define Communications Mode Option
AT&S Define DSR Option
AT+ICF DTE-DCE Character Framing
AT+IFC DTE-DCE Local Flow Control
AT+IPR Fixed DTE Rate


Command Description
AT+CLIP Calling Line Identification Presentation
AT+CR Service Reporting Control
AT+DR Data Compression Reporting
AT+ILRR DTE-DCE Local Rate Reporting

Network Communication Parameter Commands

Command Description
ATB Communications Standard Option
AT+CBST Select Bearer Service Type
AT+CEER Extended Error Report
AT+CRLP Radio Link Protocol
AT+DS Data Compression

Miscellaneous Commands

Command Description
A/ Re-Execute Command Line
AT? Command Help
AT*C Start SMS Interpreter
AT*T Enter SMS Block Mode Protocol
AT*V Activate V.25bis Mode
AT+CESP Enter SMS Block Mode Protocol

SMS Commands SMS Text Mode

Command Description
AT+CSMS Select Message Service
AT+CPMS Preferred Message Storage
AT+CMGF Message Format
AT+CSCA Service Centre Address
AT+CSMP Set Text Mode Parameters
AT+CSDH Show Text Mode Parameters
AT+CSCB Select Cell Broadcast Message Types
AT+CSAS Save Settings
AT+CRES Restore Settings
AT+CNMI New Message Indications to TE
AT+CMGL List Messages
AT+CMGR Read Message
AT+CMGS Send Message
AT+CMSS Send Message from Storage
AT+CMGW Write Message to Memory
AT+CMGD Delete Message


Command Description
AT+CMGL List Messages
AT+CMGR Read Message
AT+CMGS Send Message
AT+CMGW Write Message to Memory

Related Links

2065 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.