You are on page 1of 10

Email: info@sunrom.com Visit us at http://www.sunrom.

com

Document: Datasheet

Date: 19-Apr-12

Model #: 1122

Products Page: www.sunrom.com/p-494.html

GSM Modem
This GSM Modem can accept any GSM network operator SIM card and act just like a mobile phone with its own unique phone number. Advantage of using this modem will be that you can use its RS232 port to communicate and develop embedded applications. Applications like SMS Control, data transfer, remote control and logging can be developed easily. The modem can either be connected to PC serial port directly or to any microcontroller. It can be used to send and receive SMS or make/receive voice calls. It can also be used in GPRS mode to connect to internet and do many applications for data logging and control. In GPRS mode you can also connect to any remote FTP server and upload files for data logging. This GSM modem is a highly flexible plug and play quad band GSM modem for direct and easy integration to RS232 applications. Supports features like Voice, SMS, Data/Fax, GPRS and integrated TCP/IP stack.

Applications
SMS based Remote Control & Alerts Security Applications Sensor Monitoring GPRS Mode Remote Data Logging

Features
Highly Reliable for 24x7 operation with Matched Antenna Status of Modem Indicated by LED Simple to Use & Low Cost Quad Band Modem supports all GSM operator SIM cards

Our Package Includes


GSM Modem - Assembled & Tested (1 Year Warranty) Serial Cable GSM Antenna

More Images

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Quick Start
Insert SIM card: Press the yellow pin to remove the tray from the SIM cardholder. After properly fixing the SIM card in the tray, insert the tray in the slot provided. Connect Antenna: Screw the RF antenna if not already connected. Connect RS232 Cable to PC/MCU: (Cable provided for RS232 communication) o Default baud rate is 115200 with 8-N-1, no hardware handshaking. Connect the power Supply (12V 1A) to the power input of board. Polarity should be Center +ve and outer ve DC jack. Network Led indicating various status of GSM module eg. Power on, network registration & GPRS connectivity. After the Modem registers the network, led will blink in step of 3 seconds. At this stage you can start using Modem for your application. AT commands can be sent to control GSM Modem

Following document list all AT commands and their details to use GSM Modem. http://www.sunrom.com/files/gsm.zip

Examples for send and receive SMS


For sending SMS in text Mode: AT+CMGF=1 press enter AT+CMGS=mobile number press enter Once The AT commands is given > prompt will be displayed on the screen. Type the message to sent via SMS. After this, press ctrl+Z to send the SMS. If the SMS sending is successful, ok will be displayed along with the message number. For reading SMS in the text mode: AT+CMGF=1 Press enter AT+CMGR= no. Number (no.) is the message index number stored in the sim card. For new SMS, URC will be received on the screen as +CMTI: SM no. Use this number in the AT+CMGR number to read the message.

Voice call
Initiating outgoing call: ATD+ mobile number; <enter key> For disconnecting the active call: ATH <enter key> For receiving incoming call: ATA <enter key>

Note: The modem automatically sets to the baud rate of the first command sent by the host system after it is powered up. So there is no need for setting the baud rate using commands. Before You Start using the modem, please make sure that the SIM card you inserted support the needed features and there is enough balance in SIM.

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Using GSM Modem with PC


If you wish to use GSM modem with PC then connect serial cable to PC and power it on. Use the supplied serial cable to connect to PCs serial port. Use Hyperterminal software which comes with Windows XP or use any other Terminal software with following settings. Data Rate: 115200 Data Bits: 8 Parity: None Stop Bit: 1 Flow Control: None

One of the Terminal software can be downloaded from http://www.sunrom.com/files/Terminal.exe

This window will show all responses received from GSM Modem in realtime. You can write commands here and click on M1, M2 or M3 buttons to send commands.

Whatever is sent to modem is shown here. You can also write directly here for ex. AT<Enter> or any other command.

The #013 you see here is actually Enter Key character code

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Sample Code for Interfacing with microcontroller for sending SMS


Connect MCU TXD/RXD through MAX232 so your MCU can communicate with GSM Modem.

GSM

Then use following reference code to send SMS. Before you go ahead with MCU interfacing, it is best practice to first try all these commands with PC with the use of Terminal software. Then make a note of all AT commands and then proceed with development.
void main() { initADC(); // setup ADC serialInit(); // setup 9600 serial communication while(1) { printf("AT\n"); delayms(2000); // 2 sec delay printf("AT+CMGF=1\n"); delayms(2000); // 2 sec delay printf("AT+CMGS=\"09825858509\"\n"); delayms(2000); // 2 sec delay printf ("CH#1=%bu ", getADC(1)); // sends ADC value as SMS putchar(26); // Ctrl-Z indicates end of SMS and transmit message delayms(2000); // 2 sec delay } }

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Sample code of VB for sending SMS through PC


Download source code and documents from this file: http://www.sunrom.com/files/gsm.zip

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Sending Data through GPRS Mode / FTP Site


AT+CIPCSGP=1,"Server IP" at+cstt at+ciicr at+cifsr at+cipserver at+clport="TCP","2021" at+cipstart="tcp","FTP server","21" at+cipsend user username <Enter> <ALT>+ <010>(on additional keyboard) <ctrl+z> at+cipsend pass password at+cipsend mkd qwer <Enter> <ALT>+ <010>(on additional keyboard) <ctrl+z> //make dir at+cipsend > cwd qwer <Enter> <ALT>+ <010>(on additional keyboard) <ctrl+z> // change dir at+cipsend port ***,***,***,***,7,228 <Enter> <ALT>+ <010>(on additional keyboard) <ctrl+z> // (port in high an low bytes 7*256+228=2020), ***,***,***,*** - my IP at+cipsend > appe abc.txt //create or append to file at+cipccon=2 at+cipsend > text to file at+cipccon=1 at+cipsend > ABOR ......................... // reconnect at+cipsend RETR abc.txt <Enter> <ALT>+ <010>(on additional keyboard) <ctrl+z> // read file

For details on above AT Commands See GSM Modems AT Command Set Document http://www.sunrom.com/files/gsm.zip

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Power Supply Requirement


Use DC Power Adaptor with following ratings DC Voltage : 12V DC Current Rating atleast : 1A DC Socket Polarity : Centre +ve & Outside ve Current consumption in normal operation 250mA, can rise up to 1Amp peak while transmission so your power supply should be able to handle atleast 1Amp current.

RS232 Details
Serial Cable provided has following pins connected with RS232 level (+12V / -12V) output o Pin 2 is RS232 level TX output CN2 o Pin 3 is RS232 level RX input DB9-FEMALE 1 o Pin 5 is Ground Serial Cable connections for RS232 interfacing (Provided with product) To use with a PC serial port, use a serial cable of male-female type with pins 2,3,5 connected to 2,3,5 straight(no cross over cable). Below is pinout of 3 Core serial cable provided with Product
6 2 7 3 8 4 9 5 < RS232 TXD OUT > RS232 RXD IN

RS232

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

About GSM Module


The GSM modem is based GSM Module number SIM900D from Simcom The new SIM900 - ultra compact and reliable wireless module. This is a complete Quad-Band GSM/GPRS module in a SMT type and designed with a very powerful single-chip processor integrating AMR926EJ-S core, allowing you to benefit from small dimensions and cost-effective solutions. Featuring an industry-standard interface, the SIM900D delivers GSM/GPRS 850/900/1800/1900MHz performance for voice, SMS, Data, and Fax in a small form factor and with low power consumption. With a tiny configuration of 33mm x 33mm x 3mm, SIM900D can fit almost all the space requirements in your M2M applications, especially for slim and compact demands of design. Top Features Single-IC: AMR926EJ-S core SMT Quad-Band 2G GPRS Class 10/8 SIM application toolkit Embedded TCP/IP Quad-Band 850/ 900/ 1800/ 1900 MHz GPRS multi-slot class 10/8 GPRS mobile station class B Compliant to GSM phase 2/2+ Class 4 (2 W @850/ 900 MHz) Class 1 (1 W @ 1800/1900MHz) Dimensions: 33*33*3mm Weight: 6.2g Control via AT commands (GSM 07.07 ,07.05 and SIMCOM enhanced AT Commands) SIM application toolkit Supply voltage range : 3.1 ... 4.8V Low power consumption: 1.5mA(sleep mode) Operation temperature: -40 C to +85 C

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

Related Links
We have included all Specifications documents below into this single SDK ZIP file: http://www.sunrom.com/files/gsm.zip SIM900 - Specification SIM900 - Hardware Design_V1.01 SIM900 - Hardware Design_V1.03 SIM900_AT Command Set_V1 SIM900-EVB_UGD_V1.01 AN_SIM900-TE pcb layout - schematic for reference _v1.01 AN_SIM900 Reference Design Guide_V1.01 AN_SMT Module RF Reference Design Guide_V1.01 Module secondary SMT UGD_V1.08 AN_SIM900_Audio LINE-IN input_V1.01 SIM900_AN_TCPIP_V1.00

10

Sunrom Technologies

Your Source for Embedded Systems

Visit us at www.sunrom.com

You might also like