Pages: [1]   Go Down
Author Topic: xbee communication problem  (Read 1094 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: December 01, 2010, 09:30:44 am by BN.barak » Logged


Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 640
Posts: 50335
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged


Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 640
Posts: 50335
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just to make sure...

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


Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 640
Posts: 50335
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

series  2 sir.
Logged


0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


0
Offline Offline
Full Member
***
Karma: 0
Posts: 186
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you pleease be more specific?
If my arduino code is :
Code:
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println("a");
delay(500);
}

I cant see any thing on the terminal.
Logged


0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley

Thank you.

Logged


0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

There is only one problem...I cant bootload....
Code:
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!
Logged


Pages: [1]   Go Up
Jump to: