Xbees

All things pertaining to wireless and RF links

Moderator: phalanx

Post Reply
FredLewis
Posts: 7
Joined: Sun Jan 15, 2017 8:10 am
Location: Medicine Hat AB

Xbees

Post by FredLewis » Sun Jan 15, 2017 8:12 am

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.

Valen
Support Volunteer
Posts: 1715
Joined: Wed Dec 22, 2010 2:05 am

Re: Xbees

Post by Valen » Mon Jan 16, 2017 10:12 am

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.

FredLewis
Posts: 7
Joined: Sun Jan 15, 2017 8:10 am
Location: Medicine Hat AB

Re: Xbees

Post by FredLewis » Tue Jan 17, 2017 10:21 am

I left out 'c++;' by mistake. Also, I appear to have the difficulty solved. Thanks for your help.

Valen
Support Volunteer
Posts: 1715
Joined: Wed Dec 22, 2010 2:05 am

Re: Xbees

Post by Valen » Tue Jan 17, 2017 10:24 am

Please do not neglect to post what caused the problem and what you found as a solution. Somebody may learn from it.

Post Reply