- Make sure the RX of your arduino board is connected to TX of GSM and the TX should be connected in RX of GSM module.
- Next try to do this
GPRS.begin(9600);
Serial.begin(115200);
GPRS.begin(9600);
Serial.begin(115200);
Also double check your wirings, if you have a tester you might wanna check if both end are connected with each other. And in the loop try to print this Serial.println(GPRS.available()) if it is not greater than 0 then you have a problem with your connection.
#include <SoftwareSerial.h> SoftwareSerial sim(2,3);
void setup() { // put your setup code here, to run once: Serial.begin(115200); sim.begin(9600); }
void loop() { // put your main code here, to run repeatedly: while(Serial.available() > 0){ sim.write(Serial.read()); }
while(sim.available() > 0){ Serial.write(sim.read()); } }
- Also double check your wirings, if you have a tester you might wanna check if both end are connected with each other. And in the loop try to print this
Serial.println(GPRS.available())if it is not greater than 0 then you have a problem with your connection.
#include <SoftwareSerial.h>
SoftwareSerial sim(2,3);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
sim.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
while(Serial.available() > 0){
sim.write(Serial.read());
}
while(sim.available() > 0){
Serial.write(sim.read());
}
}
Hope this help.
