Go Down

Topic: xbee communication problem (Read 1 time) previous topic - next topic

BN.barak

Dec 01, 2010, 02:02 pm Last Edit: Dec 01, 2010, 03:30 pm by BN.barak Reason: 1
Hello,
I am trying to communicate between the computer and the arduino.
I got 2 xbee zb modules.

1: coordinator AT. id:1, bd:3(9600).
2: end point AT. id:1, db:3(9600).

I can read/write both with the x-ctu.
From the xtcu terminal: +++ -> OK, ATID -> 1.
From the arduino terminal +++ -> OK, ATID -> NOTHING.

What can be the problem?
BTW, I connected the arduino and the xbee directly. tx to tx and rx to rx (3.3v and GND).

Thank you and  sorry in advance for my bad english.

PaulS

You might try crossing the tx/rx connections (connect tx to rx and rx to tx).

BN.barak

Still nothing...
I have a question please.
If I am trying to do the "range test" and its fail(the xbees are 20 cm near each other) . Is it means something?

PaulS

It means that they aren't talking to each other. The range test just keeps sending the same data, and expecting the same response. It allows you to move the XBees around, to test range. When the test fails, the XBees are out of range. The low-power chip antenna XBees have greater than a 20 CM range.

Do they ever work, even right next to each other?

BN.barak

No they dont.
The arduino terminal just sending me OK and nothing else.
Thank you for your help.

BN.barak

Just to make sure...

The coordinator sitting on the computer and the nd device is for the arduino right?

PaulS

How the XBees are to be configured depends on which XBees you have. Specifically, are they series 1 or series 2/2.5?


BN.barak

Any one got a clue what can be the problem here?

arbarnhart

What about just typing data? Does what you type into a terminal attached on one end show up as input on the other?

BN.barak

Can you pleease be more specific?
If my arduino code is :
Code: [Select]

void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println("a");
delay(500);
}


I cant see any thing on the terminal.

BN.barak

Ok...
I chacked something...
My coordinator xbee is fully worked, and by fully I mean that every time I am readying it it respones (communication with modem..ok , modem type....). And my end point xbee is sometimes works and sometimes not...
When he does I cant communicate with him(+++-> ATID->1....).

Something is wrong in my system...
I need some help here please :)

Thank you.


BN.barak

I made it!
There is a connection between the computer and the arduino wirelessly!

There is only one problem...I cant bootload....
Code: [Select]
Binary sketch size: 2470 bytes (of a 14336 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51


the reset,rx,tx,3.3v and GND are all connected..
do I need 10Kahm resistor betwean the xbee rst and the arduino rst?

Thank you!

Go Up