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

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

userHead numael 2021-02-03 03:05:26 2932 Views5 Replies
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


Image
2021-02-27 00:49:51 Hello,

Thx for your replay.
It's work !

Best,
Manuel
userHeadPic 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
userHeadPic 347945801
2021-02-23 04:34:11 Thank you for the example!! userHeadPic birdiecumleyash88
2021-02-10 02:30:09 Hello,

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);
}
userHeadPic numael