LoRa RYLR896 Comunication through serial between human inputs

Im doing a school proyect in which we are asked to make a coms station to talk between two PCs using arduino and LoRa RYLR896 antenas to comunicate through the serial monitor.
Ive read the documentation and how AT commands work, but when I put in the serial monitor AT, it doesnt return the +OK value but some numbers, 65, 84, 10.
The wiring is from this page How to use Reyax RYLR890 LoRa Module with Arduino but the reciever and transmiter are the same and conected to TX and RX instead, RX from LoRa to TX on board and TX from LoRa to RX on board.

The code is the following:

void setup()
{
  Serial.begin(115200);
}

void loop()
{
  if (Serial.available()){
    Serial.println(Serial.read());
  }
}

The code is intender to wait for the user to tipe into the serial monitor and display the returned value from the AT command on the same serial, E.j: User inputs AT, arduino reads the serial and prints back what its on it, should be a +OK I think.

Please I need some help, thanks in advance.

65 is the decimal value of the ASCII character 'A'. Instead of

    Serial.println(Serial.read());

use

    Serial.write(Serial.read());

You should be using a different hardware serial port to communicate with the radio, like Serial1,
or SoftwareSerial if there is no second hardware serial port. State which Arduino you have.

"Serial" is for program debugging and program upload on many Arduinos.

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