You are currently viewing Basic AT Commands for SIM900A GSM/GPRS Module

Basic AT Commands for SIM900A GSM/GPRS Module

Spread the love

TO CHECK THE MODEM:

AT

OK

TO CHANGE SMS SENDING MODE:

AT+CMGF=1

OK

TO SEND NEW SMS:

AT+CMGS="MOBILE NO."

<MESSAGE

{CTRL+Z}

PREFERRED SMS MESSAGE STORAGE:

AT+CPMS=?

+CPMS: ("SM"),("SM"),("SM")

OK

AT+CPMS?

+CPMS: "SM",19,30,"SM",19,30,"SM",19,30

TO MAKE A VOICE CALL:

ATD9876543210;

TO REDIAL LAST NO:

ATDL

TO RECEIVE INCOMING CALL:

ATA

TO HANGUP OR DISCONNECT A CALL:

ATH

TO SET A PARTICULAR BAUDRATE:

AT+IPR=?         {To view the baud rate values}

AT+IPR=0         {To set the modem to autobauding mode}

OPERATOR  SELECTION:

AT+COPS=?

OK

AT+COPS?

+COPS: 0,0,"AirTel"

OK

AT+CRC SET CELLULAR RESULT CODES FOR INCOMING CALL INDICATION:

AT+CRC=?

+CRC: (0-1)

OK

AT+CRC?

+CRC: 0

OK

AT+CRC=1

OK

+CRING: VOICE

READ OPERATOR NAMES.

AT+COPN=?

OK

AT+COPN

+COPN: "472001","DHIMOBILE"

+COPN: "60500

+COPN: "502012","maxis mobile"

+COPN:

+COPN: "502013","TMTOUCH"

+COPN

+COPN: "502016","DiGi"

+COPN: "502017","TIMECel""

+COPN: "502019","CELCOM GSM"

GPRS COMMANDS:

Command Description

AT+CGATT                   ATTACH/DETACH FROM GPRS SERVICE

AT+CGDCONT             DEFINE PDP CONTEXT

AT+CGQMIN               QUALITY OF SERVICE PROFILE (MINIMUM ACCEPTABLE)

AT+CGQREQ               QUALITY OF SERVICE PROFILE (REQUESTED)

AT+CGACT                   PDP CONTEXT ACTIVATE OR DEACTIVATE

AT+CGDATA                ENTER DATA STATE

AT+CGPADDR              SHOW PDP ADDRESS

AT+CGCLASS               GPRS MOBILE STATION CLASS

AT+CGEREP                 CONTROL UNSOLICITED GPRS EVENT REPORTING

AT+CGREG                  NETWORK REGISTRATION STATUS

AT+CGSMS                  SELECT SERVICE FOR MO SMS MESSAGES

AT+CGCOUNT                         GPRS PACKET COUNTERS

https://www.pantechsolutions.net/wireless-boards/sim900a-gsm-modem

This Post Has 13 Comments

  1. Umair Rasheed

    IS THERE ANY WAY TO VOICE ALONG WITH ATD COMMAND?

  2. Vamshi krishna

    I would like to cause for it and a solution for this.

  3. Vamshi krishna

    Hi,
    I’m using a GSM module to send a text message. But sometimes I receive “>\s” as output which is prompt to send SMS even if I just send an simple AT command to check Modem.

  4. Saung Hnin Phyu

    Hello,I want to use Arduino sim900A as a SNMP agent.How can I configure it?

  5. srikrishna

    what is the command for message receive alert

  6. Hari

    hi sir

    I am doing iot project and I am sending the message to multiple numbers at the same time please help me

  7. UTKAN SUBAŞI

    Commands where to write

  8. krishnaveni

    hi all,
    i need to block all the incoming text messages. what command should i use? how to do it?

    thanks in advance

  9. Muhammad Akram

    hye..how if i want to sent sms to gsm to trigger an output?

    1. Raptor

      Use a microcontroller

    2. Rutvik Patel

      I want to SMS send with just a mobile missed call

  10. Azmin

    Hello,

    Need some help. Just bought an GSM Modem with SIM900A. Tried to connect the modem to the GPRS but ended up with fail. I’ve been already followed the GPRS command that been shown as above. Please someone explain to me why the GSM modem keep showing ERROR while i execute those GPRS command above.

    1. Ali Attaran

      Make sure, the connections are correct, like 3VR on GSM to tx0 on TTL to USB converter, 3VT on GSM to rx0 on TTL to USB converter and GND to GND. power supply too, 5v or whatever your modem needs

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.