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