Using ARDUINO mega2560 TO SIM800L SMS reciving only 12 char only i don"t know why please help me to figure out
Connection sim800l RX to mega TX1 And TX to RX1 mega ,sim800l vcc to arduino 5v and grnd to grnd
//#include <SoftwareSerial.h>
//Create software serial object to communicate with SIM800L
//SoftwareSerial Serial1(3, 2); //SIM800L Tx & Rx is connected to Arduino #3 & #2
void setup()
{
//Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(9600);
//Begin serial communication with Arduino and SIM800L
Serial1.begin(9600);
Serial.println("Initializing...");
delay(1000);
Serial1.println("AT"); //Once the handshake test is successful, it will back to OK
updateSerial();
Serial1.println("AT+CMGF=1"); // Configuring TEXT mode
updateSerial();
//Serial1.println("AT+CMGR=1"); // Configuring TEXT mode
//updateSerial();
Serial1.println("AT+CNMI=1,2,0,0,0"); // Decides how newly arrived SMS messages should be handled
updateSerial();
Serial1.println("AT+CBC"); // Battery
updateSerial();
}
void loop()
{
updateSerial();
}
void updateSerial()
{
delay(500);
while (Serial.available()> 0)
{
Serial1.write(Serial.read());//Forward what Serial received to Software Serial Port
}
while(Serial1.available()> 0)
{
Serial.write(Serial1.read());//Forward what Software Serial received to Serial Port
}
}
I SENT FOR 123456789012345 BUT I RECEIVE 123456789012
OUTPUT
18:04:49.325 -> Initializing...
18:04:50.862 ->
18:04:50.862 -> OK
18:04:51.327 ->
18:04:51.327 -> OK
18:04:51.839 ->
18:04:51.839 -> OK
18:04:52.352 ->
18:04:52.352 -> +CBC: 0,100,4734
18:04:52.352 ->
18:04:52.352 -> OK
18:04:52.352 ->
18:04:52.352 ->123456789012
Thanking you