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:
}
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.
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.