i will attach my code below ..
Serial prints
Resting gsm module..
it stucks there itself ..
After that its not reading the sensor value and sending msg.
someone say me how to work on it
Help me !!!
prg-01_V3.ino (4.73 KB)
i will attach my code below ..
Serial prints
Resting gsm module..
it stucks there itself ..
After that its not reading the sensor value and sending msg.
someone say me how to work on it
Help me !!!
prg-01_V3.ino (4.73 KB)
someone say me how to work on it
String smsTime[2] {"08", "21"};
String contact[3] { "8667554255","8098034034", "9488072237"};
int resetPin = 5;
String date[5];
Get rid of the String class! It fragments your memory and soon you don't have large enough chunks anymore. Use c-type strings (character arrays) instead.
SoftwareSerial GPRS(10, 11);// RX ,TX
Serial.begin (115200);
Don't use SoftwareSerial with any baudrate above 9600, maybe 19200 if you have a very timing tolerant counterpart.
If you go above that the Arduino is mostly doing that stuff and interrupts are not handled in a timely manner.
Use the hardware serial interface for high baud rates. Even for low baud rates try to avoid that horrible piece of software called SoftwareSerial.
but a6 gsm module oly supports the baudrate of 115200...
Mankr_c:
but a6 gsm module oly supports the baudrate of 115200...
In this case change to the hardware serial interface. If you need the connection to the PC (by USB), use another Arduino model (Leonardo or Mega2560) which has at least one hardware serial interface available even if connected to the PC.