Effective use of GSM modem using AT Commands

IoT

Effective use of GSM modem using AT Commands

Part 1
Call Originating and Terminating from GSM to Mobile Device and vice versa

Case 1 : Call Originating and Terminating from GSM to Mobile Device through AT Commands.

  • Set up the configuration of GSM Modem with Putty terminal( alternatives are   Hyperterminal, AT Command tester, Minicom, etc..).
  • Open the putty terminal and fill in the required fields and RESET GSM Modem. ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    =>Call Ready
  • Type AT <press enter>                                                                                                         =>OK {will be the response from GSM}
  • Type ATD +91xxxxxxxxxx; {x=destination number} //ATD is use to dial the number.
    =>Ring on Destination Number.
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  • Here exists three cases:
Call Originating from GSM and Terminating on Mobile Device

1 ) When receiver receives the call and then terminates it                                  =>NO carrier.
2) When directly terminates the call                                                                                =>BUSY
3) When receiver does not receives the call                                                              =>No Answer.

Case 2 : Call Originating and Terminating from Mobile Device to GSM through AT Commands.

  • RESET GSM Modem.                                                                                                            =>Call Ready
  • Type AT <press enter>
    =>OK {will be the response from GSM}
  • Dial GSM SIM number from Mobile Device

    =>RING                                                                                                     +CLIP: “+91xxxxxxxxxx”, “145”,” ”,” “,0                                               =>RING                                                                                                    +CLIP: “+91xxxxxxxxxx”, “145”,” ”,” “,0

  • Type ATA     //to answer the call.

    ATA Command to answer the incoming call on GSM
  • Type ATH     //to terminate the call.

    ATH Command to Terminate the call on GSM
  • For video reference visit this link :

Part 2
Sending text message from GSM to Mobile Device and Reading/Deleting messages on GSM

Case 1 : Sending text message from GSM to Mobile Device

 

  • Reset the GSM modem.
  • Open the putty terminal and fill in the required fields and RESET GSM Modem. ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    =>Call Ready
  • Type AT  <press enter>                                                                                                       =>OK {will be the response from GSM}
  • Type AT+CMGF=1 <press enter>      //For text mode
    =>OK {will be the response from GSM}
  • Type AT+CMGS=”xxxxxxxxxx” <press SHIFT+ENTER>

    >Type your message <press CTRL+Z>                                                     => Send OK

    Sending message from GSM to Mobile Device

    Case 2 : Reading/Deleting messages on GSM

  • RESET GSM Modem ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||           =>Call Ready
  • Type AT  <press enter>                                                                                                       =>OK {will be the response from GSM}
  • Type AT+CMGF=1 <press enter>      //For text mode                                             =>OK {will be the response from GSM}
  • Type AT+CMGR=1 <press enter>  //Reads the message at index 1. =>+CMGR : 1,”REC                                                                                        READ”,”+91xxxxxxxxxx”,””,”YYYY/MM/DD TIME”,                          Message Delivered
  • Type AT+CMGL=”ALL” <press enter>=>+CMGR : 1,”REC                                                                                        READ”,”+91xxxxxxxxxx”,””,”YYYY/MM/DD TIME”,                          Message Delivered1                                                                           =>+CMGR : 2,”REC                                                                                                                      UNREAD”,”+91xxxxxxxxxx”,””,”YYYY/MM/DD TIME”,                    Message Delivered2                                                                           =>+CMGR : 3,”REC                                                                                        READ”,”+91xxxxxxxxxx”,””,”YYYY/MM/DD TIME”,                         Message Delivered3
  • Type AT+CMGD=1 <press enter>                                                                                   =>OK {will be the response from GSM} //Delete the message at index 1 (1st message).

    Reading/Deleting message on GSM
  • To Send, Read and Delete SMS Using GSM :

error:
×