Strange behaviour of IDE terminal, could somebody explain pls?

Hello guys.

I am playing with Xbee and loaded into UNO basic echo script:

#include <SoftwareSerial.h>

SoftwareSerial mySerial(6, 5); // RX, TX

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

void loop() // run over and over
{
  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
}

Strange is that I am getting different output over IDE terminal and over SecureCRT

Ide terminal will bring Xbee into commnad mode by "+++" (first OK), but then it answer "OK" just to "AT", as you can see to all other commands is reaction ERROR

This is respond to +++, AT, ATVR (read version), ATTP (read temperature), ATCN (exit command mode)
OK
OK
ERROR
ERROR
ERROR

Same script in UNO, sending same commands (also by hand) but opening serial over SecureCRT:
OK
OK
1061
26
OK

I dont understand this behaviour, if anybody could explain. Many thanks.

How did you configure the SerialMonitor when you tested this? Sending what characters when you press the return key?

For +++ command, no character. And for other commands I pick "send enter" from drop down.

In SecureCrt when u press enter it will send enter. IDE terminal is little weired. :wink:

My drop-down menu doesn't show a "send enter" entry. What kind of IDE are you using?

What ASCII code is sent when you write "enter" because I don't know an ASCII character of that name. I know "Carriage Return" and "Line Feed", both would be feasible for an "Enter" but are named differently and especially are not the same character code.

Enter is "Carriage Return" in IDE and it is char 13 or \r

In this case change to "send CR/LF" because your other terminal software is probably using the same configuration.