Reyax RYLR998 LoRa module?

Anyone have experience with the RYLR998? I'm following this video and after a few AT commands which can be found in this doc, Nano #1 stops responding to everything except the send (E.g. AT+SEND=2,5,HELLO) which sends a message to Nano #2 and works fine for a longer period of time. Resetting the Nanos doesn't work, I have to reupload the sketches. It's crazy. NOTE: I have them wired Nano Tx to RYLR998 Tx and Nano Rx to RYLR998 Rx per the video. It's like the Rx goes to sleep on Nano #1 and won't display anything in the serial monitor. The Nano #2 will also have to be resketched after a few minutes because it eventually responds with +ERR=1 in the serial monitor to any command I type in. Both sketches look like this :

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

Both Nano #1 and #2 look like this:

Any insight is appreciated.

Please post a wiring diagram, the code (using code tags) and explain what you have done to debug the problem.

Hardly anyone on this forum will watch a video in order to figure out what you are trying to do.

Yes, I should have done that. I've updated it.

Fascinating! What do you expect two empty sketches to be doing? Could that be the problem?

I agree that looks odd and it is correct. This is one way to setup the RYLR998 before you send a full sketch to it. The weird behavior is with the AT commands I was typing into the serial monitor.
I may have to pull this question because I think it requires someone with a Reyax LoRa background.

No, the wiring is not correct. The standard serial port on Arduinos is intended for program upload and communications with the serial monitor, and is NOT guaranteed to work in parallel with other devices.

With a trivially simple serial UART radio like the Reyax LoRa, either use a second serial port or one of the four Software Serial libraries.

Find a better tutorial.

Okay, I'll look for another tutorial. All examples I found show connecting TX to TX and RX to RX to show the results in the serial monitor when the AT commands are sent. After the proper sketch is written, TX to RX and RX to TX is configured to communicate between micro controllers. Thank you.

Here is the preferred way to communicate with UART radios, in this case a Bluetooth module. The Arduino just acts as an interface, and if needed, a Baud rate converter.

http://www.martyncurrey.com/arduino-and-hc-06-zs-040/

You can use this method to send AT commands to the Reyax module, and receive data.

Thank you. More toys for me to purchase. :slight_smile:

The Bluetooth module won't work with the Reyax LoRa, if that is what you thought.

The link illustrates an example of good Arduino serial communications coding, directly applicable to your project.

Okay. thanks for clarifying.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.