Blogroll

Powered by Blogger.

Monday, 11 August 2014

AT+GMI - AT Command to Display Manufacturer Identification of GSM Modem

by realfinetime  |  in SIM900-TTL GSM/GPRS MODEM at  23:37

          While using SIM900-TTL GSM/GPRS modem, we will need the manufacturer identification for some purposes. SIM900 provides an AT command to display the manufacturer identification. Different methods are there to input AT commands to SIM900-TTL GSM/GPRS modem. Here we will use an Arduino mega to input the AT commands. I used SIM900-TTL GSM/GPRS modem from Rhydolabz.

Important : SIM card should be inserted to the slot provided on top of modem. Antenna should be fitted to modem.

          Circuit is done as shown in the diagram. Modem requires two voltage sources. One is Vinterface and other is Vin. Vin is given from a DC power supply which is capable of handling an output current of 1A. Vinterface is given from 5V pin of arduino. RX pin of modem is connected to the TX pin of Arduino and TX pin of modem is connected to the RX pin of arduino.

Test command : "AT+GMI=?". Response will be OK.
Execution command : "AT+GMI". Response will be the name of manufacturer.

          Now upload the following program to your arduino board. Before pressing the upload button, either turn off the GSM modem or disconnect the modem pins connected to the RX and TX pins of arduino. Otherwise, uploading will fail.

void setup()
{

  Serial.begin(2400);
  Serial.write("AT+CMGF=1\r");           //set GSM to text mode
  delay(1500);
 
  Serial.write("AT+GMI\r");                   //Request manufacturer identification
  while(1)
  {
    if(Serial.available())
    {
      Serial.write(Serial.read());
    }
  }
}

void loop()
{

}

          If the uploading is successfull, open your serial monitor. Serial monitor will display the manufacturer identification. Don't forget to change the baud rate to 2400. Otherwise serial monitor will display an unexpected result.

0 comments:

IMPORTANT NOTICE

All the circuits, published in this blog is only after testing and getting proper results in my private lab. When you try these circuits, you should check the supply voltage, polarity of components, presence of childrens nearby and shorts in the circuits. This website will not be responsible for any harm happened to you or your components caused by your carelessness.

For More Electronic Tips

Blog Archive

Proudly Powered by Blogger.