0% found this document useful (0 votes)
24 views6 pages

Interfacing GSM SIM800 with PC Guide

Uploaded by

ppat2006
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views6 pages

Interfacing GSM SIM800 with PC Guide

Uploaded by

ppat2006
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

ALARD COLLEGE OF ENGINEERING & MANAGEMENT

ELECTRICAL DEPARMENT

Aim: Interfacing of GSM with a computer through COM port to Send and Receive SMS.

Theory:

SIM800 is a quad-band GSM/GPRS module that works on frequencies 850MHz GSM,


900MHz EGSM, 1800MHz DCS, and 1900MHz PCS .It also features GPRS multi-slot class
12/class 10 (optional), and supports CS-1, CS-2, CS-3, and CS-4 GPRS coding schemes. It
has one UART port. It also has one USB port that can be used for updating firmware and for
debugging. Audio channels are also there, which include a microphone input and a receiver
output.SIM800 has one SIM card interface. It integrates TCP/IP protocol.SIM800 can be
controlled/configured using simple AT commands. A host microcontroller can send AT
commands over the UART interface and control the SIM800.

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

 Connect serial cable to the modem.

 Give power supply in between 4.5V to 12V through the power jack provided

 Default factory Baud rate is 9600

 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.

Check the GSM module using Putty software in PC

 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.

Connections should be like below:

TX (modem)-RX (converter TTL)


RX (modem)-TX (converter TTL)
Make ground (GND-GND) and vcc (VCC-VCC) common

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.

1. Sending a text message from SIM800 using AT Commands

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”

2. Call from SIM800 using AT commands


 The AT+CMGF=0 command (followed by enter) sets the GSM Modem in SMS text
mode.
 To make a call type ATD<phone number>;
e.g.: ATD9086XXXXXX;
To disconnect the call type “ATD” & press enter.
 If a call is coming to the GSM modem, a series of “RING” will appear on the
window. If you want to connect to the call, then type “ATA” & press enter.

Conclusion :- Hence studied the procedure to for connection of GSM module to PC through
COM port.

Common questions

Powered by AI

The integration of the TCP/IP protocol in the SIM800 module allows for internet connectivity, enabling data transfer over GPRS. This feature is crucial for applications that require remote data access, Internet of Things (IoT) scenarios, or cloud communication, as it enables the module to connect to the internet, extend its utility beyond simple SMS and calling functionalities .

The UART interface serves as a communication link between the host microcontroller and the SIM800 module. It allows the transmission and reception of simple AT commands for configuring and controlling the module. Configuration includes using the correct baud rate (default 9600), and ensuring proper TX/RX connections for effective command and response communication .

The SIM800 module is designed to automatically detect the voltage type of the inserted SIM card, supporting both 1.8 volts and 3.0 volts SIM cards. This feature ensures compatibility and operational flexibility as the module automatically adjusts to the voltage specifications of the SIM card inserted into the 6-pin SIM card holder .

To send a text message using the SIM800 module, the modem must first be set to SMS text mode using the AT+CMGF=1 command. Then, the command AT+CMGS=<number> is sent, followed by entering the message text and concluding with <Ctrl+z> to denote the end of the message. Upon successful transmission, the response will include +CMGS: x and OK, where x indicates the number of messages sent .

The audio channels in the SIM800 module, which consist of a microphone input and receiver output, facilitate voice communication. These channels enhance the module's functionality by enabling it to not only send and receive text data but also handle voice calls, making it versatile for applications such as hands-free calling in embedded automotive systems or personal communication devices .

Upon successful power-up, the Red LED (PWR) on the SIM800 modem will light up. Additionally, the STS LED (BLUE) will illuminate after 1-2 seconds. Initial network connection will cause the NET LED (GREEN) to blink every second. Upon successful network registration, which can take between 10-60 seconds, the NET LED will then blink every three seconds, indicating readiness for application use .

Interfacing the SIM800 with a PC can present challenges such as incorrect COM port selection, inadequate power supply, or faulty connection settings. Solutions include ensuring all physical connections are secure and correct according to TX/RX guidelines, confirming the correct COM port is selected in Putty software, and verifying the power supply remains within the required 4.5V-12V range. Additionally, updating drivers or using alternative serial communication software may resolve persistent connectivity issues .

The ATE0 command is used to stop the echo feature, which is useful for reducing unnecessary feedback in the terminal window during command execution, providing a cleaner output. The AT+CREG? command checks the network registration status of the SIM card, ensuring that the module is successfully registered to the network, which is essential for further communication capabilities like sending SMS or making calls .

To make a call using the SIM800 module, the command ATD<phone number>; is used, replacing <phone number> with the desired recipient's number. To disconnect the call, the ATD command should be followed by pressing Enter. If there is an incoming call, the module will display a series of “RING” messages. To accept the call, the ATA command followed by Enter is used .

To interface the SIM800 GSM module with a computer via a COM port, you need a CP2102 TTL (5V) Converter to connect the GSM/GPRS TTL UART MODEM-SIM800 to the PC. Proper connections include TX (modem) to RX (converter TTL), RX (modem) to TX (converter TTL), and common GND and VCC connections. Ensure the power supply provided to the modem is between 4.5V and 12V DC for operational status. After establishing these connections, identify the COM port assigned to the USB using the device manager, and configure Putty software to switch the connection type to Serial with appropriate COM port settings and baud rate. Once the terminal session is open, utilize AT commands to check readiness and functionality of the modem for sending and receiving SMS .

You might also like