AT Commands
(→Related Links) |
copyeditor
(Talk | contribs) m |
||
| Line 1: | Line 1: | ||
| − | = | + | =What you should know= |
| − | Different phones support different sets of AT commands. | + | Different 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. |
=Overview= | =Overview= | ||
| − | AT commands are also known as Hayes AT commands. There are different views to understand the meanings of "AT". Some | + | AT 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 | + | 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 HyperTerminal= | =Using AT Commands with HyperTerminal= | ||
| − | + | AT 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 | + | * 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 | + | * 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. |
[[Image:controlpanel_gsmmodem.png]] | [[Image:controlpanel_gsmmodem.png]] | ||
| − | * Open the HyperTerminal, a communication utility on | + | * 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. You may need to set some | + | * Create a new connection set on HyperTerminal. You may need to set some parameters, such as baud rate (for example, 9600), handshaking mode (Xon-Xoff), parity bit (default), and so on. |
[[Image:hyperterminal_settings.png]] | [[Image:hyperterminal_settings.png]] | ||
| − | * 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. | + | * 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. |
[[Image:controlpanel_gsmmodem_port.png]] | [[Image:controlpanel_gsmmodem_port.png]] | ||
| − | * | + | * After this, you can give the basic AT command. Simply type '''AT''' in the window and you will get the "OK" response. |
[[Image:hyperterminal_example.png]] | [[Image:hyperterminal_example.png]] | ||
| − | The above picture also shows how to dial | + | 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 | + | = AT commands set for Nokia GSM and WCDMA products = |
| − | == Call | + | == Call control == |
{| cellpadding="0" cellspacing="0" border="0" width="80%" | {| cellpadding="0" cellspacing="0" border="0" width="80%" | ||
! Command !! Description | ! Command !! Description | ||
|- | |- | ||
| − | | style="width:150px" | ATA || Answer | + | | style="width:150px" | ATA || Answer command |
|- | |- | ||
| − | | ATD || Dial | + | | ATD || Dial command |
|- | |- | ||
| − | | ATH || Hang | + | | ATH || Hang up call |
|- | |- | ||
| − | | ATL || Monitor | + | | ATL || Monitor speaker loudness |
|- | |- | ||
| − | | ATM || Monitor | + | | ATM || Monitor speaker mode |
|- | |- | ||
| − | | ATO || Go | + | | ATO || Go on-line |
|- | |- | ||
| − | | ATP || Set | + | | ATP || Set pulse dial as default |
|- | |- | ||
| − | | ATT || Set | + | | ATT || Set tone dial as default |
|- | |- | ||
| − | | AT+CSTA || Select | + | | AT+CSTA || Select type of address |
|- | |- | ||
| − | | AT+CRC || Cellular | + | | AT+CRC || Cellular result codes |
|} | |} | ||
| − | == Data | + | == Data card control commands == |
{| cellpadding="0" cellspacing="0" border="0" width="80%" | {| cellpadding="0" cellspacing="0" border="0" width="80%" | ||
| Line 82: | Line 82: | ||
| ATS || Select an S-register | | ATS || Select an S-register | ||
|- | |- | ||
| − | | ATZ || Recall | + | | ATZ || Recall stored profile |
|- | |- | ||
| − | | AT&F || Restore | + | | AT&F || Restore factory settings |
|- | |- | ||
| − | | AT&V || View | + | | AT&V || View active configuration |
|- | |- | ||
| − | | AT&W || Store | + | | AT&W || Store parameters in given profile |
|- | |- | ||
| − | | AT&Y || Select Set as | + | | AT&Y || Select Set as powerup option |
|- | |- | ||
| − | | AT+CLCK || Facility | + | | AT+CLCK || Facility lock command |
|- | |- | ||
| − | | AT+COLP || Connected | + | | AT+COLP || Connected line identification presentation |
|- | |- | ||
| − | | AT+GCAP || Request | + | | AT+GCAP || Request complete capabilities list |
|- | |- | ||
| − | | AT+GMI || Request | + | | AT+GMI || Request manufacturer identification |
|- | |- | ||
| − | | AT+GMM || Request | + | | AT+GMM || Request model identification |
|- | |- | ||
| − | | AT+GMR || Request | + | | AT+GMR || Request revision identification |
|- | |- | ||
| − | | AT+GSN || Request | + | | AT+GSN || Request product serial number identification |
|} | |} | ||
| − | == Phone | + | == Phone control commands == |
{| cellpadding="0" cellspacing="0" border="0" width="80%" | {| cellpadding="0" cellspacing="0" border="0" width="80%" | ||
! Command !! Description | ! Command !! Description | ||
|- | |- | ||
| − | |style="width:150px" | AT+CBC || Battery | + | |style="width:150px" | AT+CBC || Battery charge |
|- | |- | ||
| − | | AT+CGMI || Request | + | | AT+CGMI || Request manufacturer identification |
|- | |- | ||
| − | | AT+CGMM || Request | + | | AT+CGMM || Request model identification |
|- | |- | ||
| − | | AT+CGMR || Request | + | | AT+CGMR || Request revision identification |
|- | |- | ||
| − | | AT+CGSN || Request | + | | AT+CGSN || Request product serial number identification |
|- | |- | ||
| − | | AT+CMEE || Report | + | | AT+CMEE || Report mobile equipment error |
|- | |- | ||
| − | | AT+CPAS || Phone | + | | AT+CPAS || Phone activity status |
|- | |- | ||
| − | | AT+CPBF || Find | + | | AT+CPBF || Find phone book entries |
|- | |- | ||
| − | | AT+CPBR || Read | + | | AT+CPBR || Read phone book entry |
|- | |- | ||
| − | | AT+CPBS || Select | + | | AT+CPBS || Select phone book memory storage |
|- | |- | ||
| − | | AT+CPBW || Write | + | | AT+CPBW || Write phone book entry |
|- | |- | ||
| − | | AT+CSCS || Select TE | + | | AT+CSCS || Select TE character set |
|- | |- | ||
| − | | AT+CSQ || Signal | + | | AT+CSQ || Signal quality |
|} | |} | ||
| − | == Computer | + | == Computer data card interface commands == |
{| cellpadding="0" cellspacing="0" border="0" width="80%" | {| cellpadding="0" cellspacing="0" border="0" width="80%" | ||
| Line 148: | Line 148: | ||
| style="width:150px" | ATE || Command Echo | | style="width:150px" | ATE || Command Echo | ||
|- | |- | ||
| − | | ATQ || Result | + | | ATQ || Result code suppression |
|- | |- | ||
| − | | ATV || Define | + | | ATV || Define response format |
|- | |- | ||
| − | | ATX || Response | + | | ATX || Response range selection |
|- | |- | ||
| − | | AT&C || Define DCD | + | | AT&C || Define DCD usage |
|- | |- | ||
| − | | AT&D || Define DTR | + | | AT&D || Define DTR usage |
|- | |- | ||
| − | | AT&K || Select | + | | AT&K || Select flow control |
|- | |- | ||
| − | | AT&Q || Define | + | | AT&Q || Define communications mode option |
|- | |- | ||
| − | | AT&S || Define DSR | + | | AT&S || Define DSR option |
|- | |- | ||
| − | | AT+ICF || DTE-DCE | + | | AT+ICF || DTE-DCE character framing |
|- | |- | ||
| − | | AT+IFC || DTE-DCE Local | + | | AT+IFC || DTE-DCE Local flow control |
|- | |- | ||
| − | | AT+IPR || Fixed DTE | + | | AT+IPR || Fixed DTE rate |
|} | |} | ||
| Line 177: | Line 177: | ||
! Command !! Description | ! Command !! Description | ||
|- | |- | ||
| − | | style="width:150px" | AT+CLIP || Calling | + | | style="width:150px" | AT+CLIP || Calling line identification presentation |
|- | |- | ||
| − | | AT+CR || Service | + | | AT+CR || Service reporting control |
|- | |- | ||
| − | | AT+DR || Data | + | | AT+DR || Data compression reporting |
|- | |- | ||
| − | | AT+ILRR || DTE-DCE | + | | AT+ILRR || DTE-DCE local rate reporting |
|} | |} | ||
| − | == Network | + | == Network communication parameter commands == |
{| cellpadding="0" cellspacing="0" border="0" width="80%" | {| cellpadding="0" cellspacing="0" border="0" width="80%" | ||
! Command !! Description | ! Command !! Description | ||
|- | |- | ||
| − | | style="width:150px" | ATB || Communications | + | | style="width:150px" | ATB || Communications standard option |
|- | |- | ||
| − | | AT+CBST || Select | + | | AT+CBST || Select bearer service type |
|- | |- | ||
| − | | AT+CEER || Extended | + | | AT+CEER || Extended error report |
|- | |- | ||
| − | | AT+CRLP || Radio | + | | AT+CRLP || Radio link protocol |
|- | |- | ||
| − | | AT+DS || Data | + | | AT+DS || Data compression |
|} | |} | ||
| − | == Miscellaneous | + | == Miscellaneous commands == |
{| cellpadding="0" cellspacing="0" border="0" width="80%" | {| cellpadding="0" cellspacing="0" border="0" width="80%" | ||
! Command !! Description | ! Command !! Description | ||
|- | |- | ||
| − | | style="width:150px" | A/ || Re- | + | | style="width:150px" | A/ || Re-execute command line |
|- | |- | ||
| − | | AT? || Command | + | | AT? || Command help |
|- | |- | ||
| − | | AT*C || Start SMS | + | | AT*C || Start SMS interpreter |
|- | |- | ||
| − | | AT*T || Enter SMS | + | | AT*T || Enter SMS block mode protocol |
|- | |- | ||
| − | | AT*V || Activate V.25bis | + | | AT*V || Activate V.25bis mode |
|- | |- | ||
| − | | AT*NOKIATEST || Test | + | | AT*NOKIATEST || Test command |
|- | |- | ||
| − | | AT+CESP || Enter SMS | + | | AT+CESP || Enter SMS block mode protocol |
|} | |} | ||
| − | == SMS | + | == SMS commands == |
| − | === SMS | + | === SMS text mode === |
{| cellpadding="0" cellspacing="0" border="0" width="80%" | {| cellpadding="0" cellspacing="0" border="0" width="80%" | ||
! Command !! Description | ! Command !! Description | ||
|- | |- | ||
| − | | style="width:150px" | AT+CSMS || Select | + | | style="width:150px" | AT+CSMS || Select message service |
|- | |- | ||
| − | | AT+CPMS || Preferred | + | | AT+CPMS || Preferred message storage |
|- | |- | ||
| − | | AT+CMGF || Message | + | | AT+CMGF || Message format |
|- | |- | ||
| − | | AT+CSCA || Service | + | | AT+CSCA || Service centre address |
|- | |- | ||
| − | | AT+CSMP || Set | + | | AT+CSMP || Set text mode parameters |
|- | |- | ||
| − | | AT+CSDH || Show | + | | AT+CSDH || Show text mode parameters |
|- | |- | ||
| − | | AT+CSCB || Select | + | | AT+CSCB || Select cell broadcast message types |
|- | |- | ||
| − | | AT+CSAS || Save | + | | AT+CSAS || Save settings |
|- | |- | ||
| − | | AT+CRES || Restore | + | | AT+CRES || Restore settings |
|- | |- | ||
| − | | AT+CNMI || New | + | | AT+CNMI || New message indications to TE |
|- | |- | ||
| − | | AT+CMGL || List | + | | AT+CMGL || List messages |
|- | |- | ||
| − | | AT+CMGR || Read | + | | AT+CMGR || Read message |
|- | |- | ||
| − | | AT+CMGS || Send | + | | AT+CMGS || Send message |
|- | |- | ||
| − | | AT+CMSS || Send | + | | AT+CMSS || Send message from storage |
|- | |- | ||
| − | | AT+CMGW || Write | + | | AT+CMGW || Write message to memory |
|- | |- | ||
| − | | AT+CMGD || Delete | + | | AT+CMGD || Delete message |
|} | |} | ||
| − | === SMS PDU | + | === SMS PDU ode === |
{| cellpadding="0" cellspacing="0" border="0" width="80%" | {| cellpadding="0" cellspacing="0" border="0" width="80%" | ||
| Line 274: | Line 274: | ||
| style="width:150px" | AT+CMGL || List Messages | | style="width:150px" | AT+CMGL || List Messages | ||
|- | |- | ||
| − | | AT+CMGR || Read | + | | AT+CMGR || Read message |
|- | |- | ||
| − | | AT+CMGS || Send | + | | AT+CMGS || Send message |
|- | |- | ||
| − | | AT+CMGW || Write | + | | AT+CMGW || Write message to memory |
|} | |} | ||
| − | == Related | + | == Related links == |
* [http://forum.nokia.com/info/sw.nokia.com/id/95672052-6c77-488d-a055-acef77e4cdc5/AT_Command_Set_For_Nokia_GSM_And_WCDMA_Products_v1_2_en.pdf.html AT Command Set For Nokia GSM And WCDMA Products v1.2] | * [http://forum.nokia.com/info/sw.nokia.com/id/95672052-6c77-488d-a055-acef77e4cdc5/AT_Command_Set_For_Nokia_GSM_And_WCDMA_Products_v1_2_en.pdf.html AT Command Set For Nokia GSM And WCDMA Products v1.2] | ||
* [http://www.bengkelprogram.com/download-ATNOKIA.pdf AT Command Set For Nokia GSM Products] | * [http://www.bengkelprogram.com/download-ATNOKIA.pdf AT Command Set For Nokia GSM Products] | ||
* [http://wiki.forum.nokia.com/index.php/Image:Send_AT_Commands.zip Sending_AT_Commands example source codes] | * [http://wiki.forum.nokia.com/index.php/Image:Send_AT_Commands.zip Sending_AT_Commands example source codes] | ||
| − | * [[ | + | * [[Using AT commands to send and read_SMS]] |
[[Category:Technical_Resources/Services]][[Category:AT Command]][[Category:Connectivity]] | [[Category:Technical_Resources/Services]][[Category:AT Command]][[Category:Connectivity]] | ||
Revision as of 10:30, 12 September 2008
Contents |
What you should know
Different 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.
Overview
AT 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 HyperTerminal
AT 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.
- 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. You may need to set some parameters, such as baud rate (for example, 9600), handshaking mode (Xon-Xoff), parity bit (default), and so on.
- 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.
- After this, you can give the basic AT command. Simply type AT in the window and you will get the "OK" response.
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 products
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 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 |
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 |
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 |
SMS PDU ode
| Command | Description |
|---|---|
| AT+CMGL | List Messages |
| AT+CMGR | Read message |
| AT+CMGS | Send message |
| AT+CMGW | Write message to memory |





