Page 1 of 1

Xbees

Posted: Sun Jan 15, 2017 8:12 am
by FredLewis
409D5DF7E6 Xbee coupled with a Sparkfun explorer dongle plugged into a Mac USB port
ID = xbee-409D5E001F
DL = 192.168.1.10
ATPG192.168.1.10 = 1 ms
MY = 192.168.1.100
ATPG192.168.1.100 = 10 ms

409D5E001F Xbee connected to Arduino Uno
DL = 192.168.1.100
MY = 192.168.1.10

Arduino program running is
#include <SoftwareSerial.h>
SoftwareSerial xbee(2,3);
char c = 'A';
void setup () {
Serial.begin(9600);
xbee.begin(9600);}
void loop () {
xbee.print(c);
Serial.println(c);
Serial.println(xbee.print('FFFFF');
if (c > 'Z') c = 'A';
delay (1000);}

Arduino Serial output
A
5
B
5
C
5
D
5
etc ...

While it appears that the two Xbees have a connection, I am unable to determine if 409D5DF7E6 has actually received the xmissions. How can I know this? I must be able to save and work with the transmitted data.

Re: Xbees

Posted: Mon Jan 16, 2017 10:12 am
by Valen
That code cannot generate that sequence. c allways remains the character 'A'. There is no increment in the code, so there has to be external input into the stream for that to happen. Please post the actual code or explain how B,C and D are generated.

Re: Xbees

Posted: Tue Jan 17, 2017 10:21 am
by FredLewis
I left out 'c++;' by mistake. Also, I appear to have the difficulty solved. Thanks for your help.

Re: Xbees

Posted: Tue Jan 17, 2017 10:24 am
by Valen
Please do not neglect to post what caused the problem and what you found as a solution. Somebody may learn from it.