Go Down

Topic: Sim800L and arduino mega 2560 (Read 1 time) previous topic - next topic

msh_hi

hi everyone, i have Sim800L and i connected it to 4.1 and put my sim card in it's blinking very good like everything is ok

and i connect Tx , RX to my arduino for different port i try a lot of time

i got no any response on my serial monitor pls help me

like this example

Code: [Select]


#include <Sim800L.h>
#include <SoftwareSerial.h>               

#define RX  10
#define TX  11

Sim800L GSM(RX, TX);

/*
 * In alternative:
 * Sim800L GSM;                       // Use default pinout
 * Sim800L GSM(RX, TX, RESET);       
 * Sim800L GSM(RX, TX, RESET, LED);
 */

void setup(){
  Serial.begin(19200,SERIAL_8N1);
  GSM.begin(19200);     

  Serial.println("GET PRODUCT INFO: ");
  Serial.println(GSM.getProductInfo());

  Serial.println("GET OPERATORS LIST: ");
  Serial.println(GSM.getOperatorsList());

  Serial.println("GET OPERATOR: ");
  Serial.println(GSM.getOperator());
 
}

void loop(){
 
}


in the serial moniter i only got

GET PRODUCT INFO:
GET OPERATOR:

no any feedback i have alsot test another examples and libs

pls help me out i spend 3 days on it :(

Wawa

Maybe not related to your problem, but you DON't use softwareSerial with a Mega.

A Mega has three spare hardware serial ports.
Use e.g. Serial1 (pin 18, 19) for your Sim800.

There is a hardware serial example in the IDE.
Leo..

Go Up