Вы находитесь на странице: 1из 3

For more products visit our website : www.positronindia.

in

Document : Tutorial

Product ID : PT0006

Product URL : http://positronindia.in/PT0006.aspx

GSM Sim 300


QUICK START GUIDE
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). Default baud rate is 9600 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.

GUIDE TO 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 send 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. GUIDE TO VOICE CALLING 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. POWER SUPPLY REQUIREMENT Use DC Power Adaptor with following ratings DC Voltage: 12V DC Current Rating at least: 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 at least 1Amp current.

www.positronindia.in

Page 1

SERIAL CABLE DETAILS

Serial Cable provided has following pins connected with RS232 level (+12V / -12V) output Pin 2 is RS232 level TX output Pin 3 is RS232 level RX input Pin 5 is Ground
Serial Cable connections 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). You can purchase the cables from http://positronindia.in SAMPLE CODE FOR INTERFACING WITH MICRO CONTROLLER FOR SENDING SMS

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

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.

www.positronindia.in

Page 2

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=\"09928089033\"\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 } }

www.positronindia.in

Page 3

Вам также может понравиться