at commands

15
English Log in Join Design Develop Distribute Devices Resources Community Share Wiki Create New Wiki Page Wiki Resources Wiki Home Help Etiquette Featured Articles Featured Videos Templates Glossary Feedback Development Frameworks Platforms Cross Platform Tools & Resources Natural Languages Toolbox Article Read Comments Read View source History 14 Sep 2008 Contents What you should know Overview Using AT Commands with HyperTerminal AT commands set for Nokia GSM and WCDMA products Search

description

cd

Transcript of at commands

Page 1: at commands

English

Log in Join

Design Develop Distribute Devices Resources Community

Share

Wiki Create New Wiki Page

Wiki Resources

Wiki Home

Help

Etiquette

Featured Articles

Featured Videos

Templates

Glossary

Feedback

Development Frameworks

Platforms

Cross Platform

Tools & Resources

Natural Languages

Toolbox

Article

Read Comments

Read

View source

History

14 Sep2008

Contents

What you should know

Overview

Using AT Commands with HyperTerminal

Search

Page 2: at commands

AT commands set for Nokia GSM and WCDMA products

o Call control

o Data card control commands

o Phone control commands

o Computer data card interface commands

o Service

o Network communication parameter commands

o Miscellaneous commands

o SMS commands

SMS text mode

SMS PDU ode

Related links

Article Metadata

ArticleCreated: vasant21 (12 May 2007)Last edited: hamishwillee (21 Sep 2011)Categories: Connectivity | AT Command | Technical Resources/Services

AT CommandsWhat you should knowDifferent phones support different sets of AT commands. This means that a specific phone might not support all AT commands listed below.

Currently there is no authoritative list available of supported AT commands by all phones.

OverviewAT commands are also known as Hayes AT commands. There are different views to understand the meanings of "AT". Some call it "Attention

Telephone", whereas others interpret it as "Attention Terminal" commands.

AT commands allow giving instructions to both mobile devices and ordinary landline telephones. The commands are sent to the phone's

modem, which can be a GSM modem or PC modem. This article focuses on AT commands on Nokia's GSM and WCDMA products only. Different

manufacturers may have different sets of AT commands. Fortunately, many AT commands are the same. Mobile device manufacturers may

also give attention to operators to allow or not to allow some commands on phones.

AT commands can be used for operations that are usually done from the keypad, for instance calling a number, sending, reading, or deleting

an SMS, setting the SMSC number, looking for a GPRS access point, reading and deleting phonebook data, reading the battery status, reading

the signal strength, and so on. When you want to make a PC-based application to interface a mobile phone using USB, IR, or Bluetooth, these

commands are needed to communicate with mobile phones. Basically such commands are the application layer of MBUS or FBUS commands.

Nokia provides an AT command set guide, where you can see the basic command syntax and the response of the command in various

situations. See the Related Links section at the end of this article).

Using AT Commands with HyperTerminalAT commands work on devices that have a built-in GSM modem. If there is one, you do not need to install virtual modem software on your PC.

If you are using very old Nokia devices, you have to find out the DATA suite, not the PC Suite, for these devices (such as the Nokia 5110) to be

able to use AT commands. This article focuses on mobile devices that have a built-in GSM modem.

To use AT commands:

Connect the mobile phone to your PC in PC Suite mode using any available connection (Bluetooth, USB, or IR).

Make sure that you have installed the correct GSM modem driver on your PC. You can check it from Control Panel | System | Hardware | Device Manager. Check the Modems section. If you see something like "Nokia XY USB Modem" or "Nokia XY Bluetooth Modem", the device has a built-in GSM modem. If you don't have it, go to the Nokia Web site and download the driver from the product page of your device.

Page 3: at commands

Right Click on Nokia N95 8GB USB Modem and find the port used by selecting the modem tab, in our case it is COM 4. Also it is good to test the modem by selecting Diagnostics | Query Modem, this will tell us if the modem is working properly.

Open the HyperTerminal, which is a communication utility on Microsoft Windows OS. HyperTerminal is located in Start | Programs | Accessories | Communication.

Create a new connection set on HyperTerminal and give a name to the connection.

Select the port number by seleting drop down box "Connect using". In our case the port number is COM 4

Page 4: at commands

You need to select some settings related to ASCII setup, To do select File | Properties | Settings (tab) | ASCII Setup

You may need to set some parameters, such as baud rate (for example, 9600), handshaking mode (Xon-Xoff), parity bit (default), and so on.

Page 5: at commands

Note that you also need to select the communication port on which your mobile has been connected. The port number can be found by right-clicking the modem item in Control Panel.

Page 6: at commands

After this, you can give the basic AT command. Simply type AT in the window and you will get the "OK" response.

Page 7: at commands

The above picture also shows how to dial a number using the ATD command. Note that there is a semi-colon (;) at the end of the phone

number indicating that this is a voice call. If there is no semi-colon, a data call (CSD call) is will be performed.

AT commands set for Nokia GSM and WCDMA productsCall 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

Page 8: at 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 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

(IMEI)

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

Page 9: at commands

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

Service

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*NOKIATEST Test command

AT+CESP Enter SMS block mode

protocol

Page 10: at commands

SMS commandsSMS 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

SMS PDU ode

Command Description

AT+CMGL List Messages

AT+CMGR Read message

AT+CMGS Send message

AT+CMGW Write message to

memory

Related links AT Command Set For Nokia GSM And WCDMA Products v1.2

AT Command Set For Nokia GSM Products  

File:Send AT Commands.zip

Using AT commands to send and read_SMS

CommentsFeatured article, September 14th 2008 (week 38)

The overview added on this page was originally written by ktrivedi on my user page. I moved the overview on this page and edited some

typos, but did not touch the overall flow of the article. If this material does not fit in here, please edit it accordingly Hartti

Page 11: at commands

Severe Bug: N73 AT command support brokenN73 (and several other nokia phones, too including E51) understands only parts of the command set.

Example dialogs:

AT+CPMS?

+CPMS: ,,,,,,,,

OK

AT+CPMS=?

+CPMS: (),(),()

OK

Many other commands (e.g. in contact management) don't work either. I found no documentation regarding this behaviour.

I feel that Nokia should release information about how this phone is to be used. I wouldn't recommend anyone to pay in excess of 200€ for a

phone that doesn't do what it's supposed to.

use lower speed in USB COM portHi,

i had the same problem above, and all i had to do was, search for the USB COM port that the phone was using, and lower the speed (i used

9600). because i only need to send a few SMS messages, i left the speed that low. after changing the speed, SMS and other commands work

OK.

regards,

Oscar.

Oscar,

Thanks for the advice I am using the E51, I have cranked back the bit rate to 9600 and I still have the same issue. It seems to be more of an

issue of storage of where the SMSs are stored. Does Nokia have any suggestion of where we should be accessing via AT commands to get to

the SMSs?

Keith

command set differs from phone to phonee.g. on some phones some commands are missing and not all commands are listed here and on referenced links...

How to use at commands with hyperterminal to control keypad of handsetI use Nokia N81 handset to connect with PC,then use" at+ckpd=?" at commands with hyperterminal,the response is "ERROR".

Who can help me?

Who knows Nokia handset's keycode?I want to get nokia handset's keycode.Who can help me? left softkey,right softkey,up arrow softkey,down arrow softkey,left arrow softkey,right

arrow softkey,the middle softkey,0,1,2,3,4,5,6,7,8,9,clear softkey.......

Image Updated-I (Mahbub_s60) added couple of images and related text in the article. It makes easier now (those pictures were hidden :-) ) to send AT

command from PC

Wheateus - Hyper-Terminal to ASCIII'm using the commands to send a text message:

Page 12: at commands

AT+CSCA=+61418706700 The SMS message centre number for Telstra AT+CMGF=1 Format the modem for text mode

AT+CMGS=XXXXXXXXXXX Mobile number for where you want the message to go to "Insert your message here" (Control-Z) Hold control z

together at the same time Then do not push any other number then the message will be sent

This is what I have done in HyperTerminal but I wish to convert it to ASCII so that I can program an IC to send this command, can anyone help

me with this for my school project

Thanks,

Wheateus

Wheateus 14:04, 18 September 2011 (EEST)

Parakrama - how can i make 3g video calli m trying to many ways to make a 3g call using using my n97 mobile and connected to my pc and using commands

but i couldnt find a way to make 3g call

so how can i make 3g call using my pc and N97 mobile phone

parakrama 08:29, 4 October 2011 (EEST)

Hamishwillee - @ParakramaParakrama , I suggest you raise this on the discussion boards.

hamishwillee 03:52, 5 October 2011 (EEST)

Parakrama - @ HamishwilleI Searchd in many ways in internet i thought world still in 16 century because still i couldnt find any tutorial about make 3g video call

so are we still in 16 century???? please some one help me to make 3g video call using any programing language thanks

parakrama 06:14, 13 October 2011 (EEST)

Hamishwillee - @Parakrama - please read my previous response>Parakrama , I suggest you raise this on the discussion boards.

If you actually want an answer then go ask on the discussion boards. That is where you will find the most people who might know the answer

to your question. This is an article on AT commands - it is unlikely the small number of people who might be viewing it will know the answer to

your question.

hamishwillee 06:20, 14 October 2011 (EEST)

Md. Kayesh - Windows does show E7 handset as modemI attached E7-00 in Windows 7 and Windows XP. I found it as modem in Windows 7 but as Windows 7 doesn't have hyper Terminal i could not

follow this page any more there. The i tried in Windows XP and there i could not find it as a modem. What should i do now. I need to check AT

command response.

Md. Kayesh 09:55, 19 December 2011 (EET)

Hamishwillee - Md. Kayesh - try discussion boardsThere is no guarantee that person who wrote this article is still watching. If you get an answer, please extend this article.

hamishwillee 01:03, 20 December 2011 (EET)

Gmedici - @Md. Kayesh - Windows does show E7 handset as modem+AT support incomplete for E52???I was able to talk to my E52 over Bluetooth, Win7 and I see it as COM4. I used putty which is a good Hyperterminal free replacement. My

problem is that it seems that not all AT commands work-- I can dial (ATD) I can answer a call (ATA) but I can't hangup (ATH=ERROR) and,

worse, I can't figure a way of getting the Caller Line Identification. Anybody can give an advice? Thanks,

--giorgio

gmedici 19:51, 2 February 2012 (EET)

Gmedici - Re: AT support incomplete for E52???OK solved (I think!...)

It turns out that (i don't know why) after issuing this command:

AT+CLIP=1

Page 13: at commands

the modem reports the CLI after RING

and that after issuing

AT+CVHU=0

the command ATH does what it is expected to, ie it hangs up the call

--giorgio

gmedici 20:20, 2 February 2012 (EET)

Programergosum - minicom or cutecom for LinuxThe examples for using AT commands from HyperTerminal can be shown for Linux users using minicom or cutecom.

programergosum 17:36, 19 February 2012 (EET)

Kingsonprisonic - E-Recharge AT CommandsDear sir,

Currently i am developing an application in vb.net. Which will able to send sms through a nokia mobile phone and Airtel Sim card.

Now I know the AT commands for sending and receiving SMS's .

How can i send e-recharge through LAPO SIM (MASTER SIM) using AT commands.

In LAPO SIM(also known as Demo SIM/Master SIM), an application called "Refill Amount" already installed.

1. The retailer open this app and put my number 2. Now he put the amount to send 3. Now he enter his PIN 4. Now he send the amount

And at last My account is successfully recharged...

I think this application also use the GSM modem to send commands. I just want to know the commands for sending recharge to other

phones....

Someone from this community say that i should ask this info from my operator...

But as you can see that the application just recharge other mobile by just sending sms then i think there is a way to do same thing manually

by AT commands....

If any other method available please let me know.

Thanks in advance....

kingsonprisonic 14:06, 10 March 2012 (EET)

Log in or Join to leave comments.

This page was last modified on 21 September 2011, at 01:54.2852 page views in the last 30 days.

Featured links

Event calendar

Contact and feedback

Support

Develop

Windows Phone

Qt

Series 40

Distribution

Page 14: at commands

Store Statistics

Publisher Guide

Blogs

Nokia Developer Blog

Nokia Publisher Blog

Qt Blog

Community

Discussions

Wiki

Groups

Projects

Champions

Knowledge base

Resources

Documentation

Tools

Code examples

Developer Programs

Site Map

Terms & Conditions

Privacy Policy

Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

© Copyright Nokia 2012 All rights reserved