Problems with Serial1 Leonardo and LoRa shield

I am mounting a LoRaWan node with a Wisnode-Lora module (RAK811) and managed by a Leonardo R3 based on this firmware: [WisnodeLoRa-Github](http://https: //github.com/xoseperez/wisnode-lora-downlink)
The problem comes because the Wisnode module , I believe, does not receive the data sent by serial1 from Leonardo or does not receive it correctly.

The question: Is there any command that "pings" via serial1?

thing that I have done:

  • Check the jumpers and Q's so Leonardo's TTL level adapts to 3v3 of the module
  • Check the physical integrity of the pins and tracks to check that the "way" is Ok (via oscilloscope)
  • Check that the module works well: sending the AT commands via PC serial, responding correctly
  • Check that the sketch compiles correctly and what it does (except for the correct sending of the
    commands at via serial1) the actions it must

I do not know if it is because the port is not well initialized, because the library is not correct... I am a bit lost...

Thanks in advance and greetings

You need to fix your link

When I eventually did get to the Github page it seems that the project is designed for a Leonardo

If you are having a problem with your program then please post the program.

And please post your program using the code button </> so it looks like this. See How to use the Forum. It makes it much easier for people to help you

...R

And you have not provided any details of what the problem is ?

Robin2:
...it seems that the project is designed for a Leonardo...

And I use a Leonardo board (but also I tested in aATMega 256 and doesnt work)

Robin2:
If you are having a problem with your program...

The program could be reduced as simple as:

void setup() { 

Serial1.begin(115200);
Serial.begin(115200); 
} 


String response = ""; 


void loop() { 
sendCommand("at+version\r\n");
delay(3000); 

}

void sendCommand(String atComm){ 
response = ""; 
Serial1.print(atComm); 
while(Serial1.available()){ 
  char ch = Serial1.read(); 
  response += ch; 
} 
Serial.println(response); 
}

The data serial arrives to the RAK811 with the 3v3 adequate level, but seems there is a problema with bps , I dont know (In other fórum someone did it work with a 110000 baudrate...)

Wisnode-Github

srnet:
And you have not provided any details of what the problem is ?

It is described in my post:

covrita:
The problem comes because the Wisnode module , I believe, does not receive the data sent by serial1 from Leonardo or does not receive it adequately.

The module, I suppouse, does not recognize, bps, characters... I have read others fórums and seem to be a common problema (arduino-rak811)

It was an electrical problem. Level sifhters included in Lora board couldnt work at the preset baudrate and characters received were not same as sended.
But I suppose people here, only know about code, sorry. I have set up baudrate to the minimun and now it works

thanks anyway! :slight_smile: