In this project, we are going to see how to interface GSM Module(EC200) to USB to TTL(CP2102). So lets get to business!
A GSM(Global System for Mobile Communication) module is used to enable communication between microcontroller or microprocessor and GSM network.
You can checkout the Quectel Website for more details.
Okay! Now let’s see how to connect a GSM module to USB to TTL(CP2102)!
- Documentation
- Prerequisites
- Connection Diagram
- Getting Started
- Basic AT Commands
- Implementation
- Contributions
It is highly recommended to go through the Documentation first.
Here are direct links for same.
- Realterm or any other serial terminal
- USB to TTL (CP2102)
- EC200 EVB
- Jumpers
- Basic knowledge of UART and serial communication
- Rx(EC200) ---> Tx(USB to TTL)
- Tx(EC200) ---> Rx(USB to TTL)
- Power Supply(5V/3.3V and GND)
Follow the steps for getting started:
- Connect the USB to TTL(CP2102) to USB port of PC and open device manager to check the port connected to serial bridge (USB to TTL).
- Open Realterm or any other serial terminal you want to use.
- Open the port to which your serial device is connected make sure to check serial configuration as follows:
Baudrate : 115200
Data Bits : 8
Parity : None
Stopbits : 1
- That's it!!! Now you can send AT commands using realterm directly to GSM Module and also receive its response.
- Firstly check whether you receive
OK
in response toAT\r\n
, to make sure that your connections and configurations are fine. - Now you can further proceed to other AT commands according to your application.
- Basic AT Command:
AT\r\n
- Deactivate PDP Context:
AT+QIDEACT=1\r\n
- Set APN: (according to network operator)
AT+QICSGP=1,1,"JIONET","","",0\r\n
for JIO SIMAT+QICSGP=1,1,"airtelgprs.com","","",0\r\n
for Airtel SIMAT+QICSGP=1,1,"portalnmms","","",0\r\n
for Vodafone SIMAT+QICSGP=1,1,"bsnlnet","","",0\r\n
for Airtel SIM
- Activate PDP Context:
AT+QIACT=1\r\n
- Ping Google to check internet availability:
AT+QPING=1,"www.google.com"\r\n
For reporting any technical issue
or proposing new feature
, please create new issue.