Forum >SIM7000E Arduino - Once in two I have this error "faile to set baud rate"
SIM7000E Arduino - Once in two I have this error "faile to set baud rate"

Hello,
I test the SIM7000E Arduino NB-IoT/LTE/GPRS/GPS Expansion Shield on my Arduino Mega ( with D8 connected with D10 ) and I have an issue with sim7000.setBaudRate(19200);
Once in two I have this error "faile to set baud rate".
https://wiki.dfrobot.com/SIM7000_Arduin ... 05_DFR0572
Can you help me?
Best,
Numael

I test the SIM7000E Arduino NB-IoT/LTE/GPRS/GPS Expansion Shield on my Arduino Mega ( with D8 connected with D10 ) and I have an issue with sim7000.setBaudRate(19200);
Once in two I have this error "faile to set baud rate".
https://wiki.dfrobot.com/SIM7000_Arduin ... 05_DFR0572
Can you help me?
Best,
Numael

2021-02-24 18:01:12 You need to initialize the soft serial port and add a line of code
mySerial.begin(9600), the parameter is the baud rate
347945801
mySerial.begin(9600), the parameter is the baud rate

2021-02-10 02:30:09 Hello,
Please found an exemple:
numael
Please found an exemple:
Code: Select all
#include <Wire.h> #include <DFRobot_SIM7000.h> SoftwareSerial mySerial(10, 7); // with link between D8 - D10 on my Mega. DFRobot_SIM7000 sim7000; void setup() { Serial.begin(115200); sim7000.begin(mySerial); sim7000.turnOFF(); Serial.print("Turn OFF SIM7000 "); for(int i=0 ; i < 6; i++) { delay(1000); Serial.print("."); } Serial.println(" OK"); Serial.print("Turn ON SIM7000 ..."); if( sim7000.turnON() ) Serial.println(" OK"); else Serial.println(" Failed !"); delay(2000); Serial.print("Set baud rate: 19200 ..."); if( sim7000.setBaudRate(19200) ) Serial.println(" OK"); else Serial.println(" Failed !"); delay(2000); } void loop() { Serial.print("."); delay(1000); }
