Cprogramcom Port
Cprogramcom Port
ELECTRICAL DEPARMENT
Aim: Interfacing of GSM with a computer through COM port to Send and Receive SMS.
Theory:
It can be used for sending/receiving messages, making calls, sending/receiving data over the
internet, etc.
Insert an unlocked SIM card to SIM card Holder. 6 Pin Holder for SIM Cards is
provided on the Modem.
Close SIM card Holder. Both 1.8 volts and 3.0 volts SIM Cards are supported by
SIM800 – the SIM card voltage type is automatically detected.
Assemble GSM Antenna to the modem
Give power supply in between 4.5V to 12V through the power jack provided
When the modem is successfully powered-up, the Red LED on the modem (PWR)
will be ON, the STS LED (BLUE) will light after 1-2 seconds and the NET
LED(GREEN) will blink every second. After the Modem registers in the network
(takes between 10-60 seconds), ths LED will blink in step of 3 seconds.
The Network LED indicates the various status of GSM module eg. Power on, Network
registration & GPRS connectivity. When the modem is powered up, this NETWORK LED
will blink every second. After the Modem registers in the network (takes between 10-60
seconds), this LED will blink in step of 3 seconds. At this stage you can start using Modem
for your application, showing that modem is registered with the network.
Before making connection with the system you should give external supply to the
modem (4.5v-12v DC)
For making a connection between GSM/GPRS TTL UART MODEM-SIM800 and
PC you need CP2102 – TTL (5V) Converter.
Once you are done with all these procedures, choose the appropriate COM port that got
assigned to the USB in your system by looking into the device manager like as shown below.
Open putty terminal
o Figure out the COM port you’ll be using.
o Run Putty.
o Switch the Connection Type to Serial.
o Edit the Serial Line to match the COM port you want to use.
o Edit the Speed to match the BAUD Rate you want to use.
o Select the Open button to start the session.
Now check with AT commands
The above shown command: AT command (Followed by enter) after “OK” response, this
signifies that our Modem is working properly.ATE0 command (Followed by enter) is being
sent to stop the echo. AT+CREG? (Followed by enter) is being used to check whether the
SIM got registered or not.
Now next let’s send a message using GSM/GPRS TTL UART SIM800. For sending message
we need to first send related AT commands to initialize the modem to send a message.
The AT+CMGF=1 command (followed by enter) sets the GSM Modem in SMS text
mode.
AT+CMGS=<number>followed by enter gives<CR><write message><Ctrl+z>
<CR> represents the carriage return character.
<Ctrl+z>When you finish entering the SMS message body, you have to enter the
<Ctrl+z> character to mark the end of the SMS message body.
+CMGS: x and OK; where x = “current number of sent SMS messages”
Conclusion :- Hence studied the procedure to for connection of GSM module to PC through
COM port.