Communication with BG96

Issue:

We have some weird behavior with the communication with the BG96 modem.
Most of the times we get a strange set of charecters as response from the modem (sometimes also no response):


Bildschirmfoto vom 2020-10-12 12-05-44


Setup:

at command send:

void bg96_at(char *at, uint16_t timeout)
{
  bg96_rsp="";
  Serial.println("at command:");
  Serial.println(at);

  char tmp[256] = {0};
  int len = strlen(at);
  strncpy(tmp,at,len);
  uint16_t t = timeout;
  tmp[len]='\r';
  Serial1.write(tmp);
  delay(10);
  while(t--)
  {
    if(Serial1.available())
    {
      Serial.print("+");
      bg96_rsp += char(Serial1.read());
    }
    delay(1);
  }
  Serial.println("");
  Serial.println(bg96_rsp);
}

Do you have any idea ?

Hi,
What voltage of GPIO do you set? It is set in bootloader and should be 1.8V. Another point is not using the softserial. Our code about 5010 and wisblock are different. So I advise you use the bootloader in Arduino-on-RAK5010 github.

Hi nero, thanks for your reply.
I did not update the bootloader yet, @Fomi & @Nancywang prepared the RAK5010 with a bootloader, so I thought its already the right one on it ?!

But as I have a Segger J-Link JTag Debugger, I could also update it.

So you recomend me to flash the https://github.com/RAKWireless/Arduino-on-Rak5010-/blob/master/feather_nrf52840_express_bootloader-0.2.13_s140_6.1.1.hex with JFlash to the RAK5010 ?

Right, the strange set of characters is due to the GPIO volgate config. Replace the firmware with https://github.com/RAKWireless/Arduino-on-Rak5010-/blob/master/feather_nrf52840_express_bootloader-0.2.13_s140_6.1.1.hex

It will solve the problem if communication with BG96.