Hello all,
I figure it out my issue it came from soldering 1 was not good enough even if i got tension on the pin
I now have an other issue
my mounting is the following
i follow this link for the mounting
my gsm tx go to pin 19 (rx) of arduino mega
my gsm rx go to pin 18 (tx) of arduino mega (hardware serial1)
i used the following code to test the module
//#include <SoftwareSerial.h>
//Create software serial object to communicate with SIM800L
//SoftwareSerial Serial1(49, 48); //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);
Serial.println("AT");
Serial1.println("AT"); //Once the handshake test is successful, it will back to OK
updateSerial();
Serial.println("AT+CSQ");
Serial1.println("AT+CSQ"); //Signal quality test, value range is 0-31 , 31 is the best
updateSerial();
Serial.println("AT+CCID");
Serial1.println("AT+CCID"); //Read SIM information to confirm whether the SIM is plugged
updateSerial();
Serial.println("AT+CREG?");
Serial1.println("AT+CREG?"); //Check whether it has registered in the network
updateSerial();
}
void loop()
{
Serial1.println("AT"); //Once the handshake test is successful, it will back to OK
updateSerial();
Serial1.println("AT+CSQ"); //Signal quality test, value range is 0-31 , 31 is the best
updateSerial();
Serial1.println("AT+CCID"); //Read SIM information to confirm whether the SIM is plugged
updateSerial();
Serial1.println("AT+CREG?"); //Check whether it has registered in the network
updateSerial();
}
void updateSerial()
{
delay(500);
while (Serial.available())
{
Serial.println("test 1");
Serial1.write(Serial.read());//Forward what Serial received to Software Serial Port
}
while (Serial1.available())
{
Serial.write(Serial1.read());//Forward what Software Serial received to Serial Port
Serial.println(Serial1.available());
}
}
the exact same code than in the tutoral but i remove softserial which does not work with arduino mega
i don 't understand my result because i do not power the sim800l how can i recieved data on serial1 with no power ?
moreover my code does to break from the first loop ?
Initializing...
14:40:42.838 -> AT
14:40:43.349 ->
please help me
I do not managed to send sms
ps : if you have an idea to connect this phone battery and not hold it i am taking
The serial pin levels are driven and will depend on power. Idle level is HIGH. Without power the pin on the module may be floating or held low which can create a problem.
Try to specifically set the internal pullup on Mega RX pin