Arduino+XBee...Weird reset!!!!

Hello everybody!

I hope you will help solve this problem.

I have two Xbee shield mounted on my Arduinos...The TRANSMITTER xbee has a botton that, when pressed, sends a signal to the COORDINATOR xbee ( the receiver! ) -----> When the COORDINATOR receives the signal it turns a led on, and write a Serial.println command, that is read by Processing ----> Processing is listening to the port of the COORDINATOR (COM7), and as it receive a Serial.println message it trigger a file .WAV...a simple audio file.

So...the Sketches work fine, but the weird thing is that both the COORDINATOR and the RECEIVER just reset a few second after the button message!
Any idea WHY???? it should keep receiving signal....

P.S.
The COORDINATOR cannot start itself untill the receiver is trasmitting...so i have to turn it on wait a few second and then plug the other XBEE...here is the problem! when they both auto-reset, the COORDINATOR cannot start again because it is "disturbed" by the RECEIVER.....A good solution would be to avoid this strange reset! BUT HOW???

THANK YOU

I think CTS pin (on Xbee) is connected to ATmega RESET. I guess you can disable this output using an AT command (I can't tell you which by heart).

Sounds like this pin is activated and so it triggers a hardware reset.

Cheers,

Miguel

@ hj43US
On the guide http://ftp1.digi.com/support/documentation/90000866_C.pdf PAGE 10, it says CTS is at pin 12 (DI0/07)...

By the way i am not using any of the pins of the xbee but only the Arduino's digital pins, the 5V and GND. So i wonder how could the ATmega reset and the CTS pin eventually comunicate.
I' ll try to isolate the cts anyway and see what happens.

Also the weird thing is that i'm using a tutorial code that works just fine ( http://itp.nyu.edu/~raf275/meshnetworking/XBee/XBee_example.html ) ... it is a button connected to arduino+Xbee that sends a Serial.print read by the other arduino+Xbbe, which turns a led on...

I only added a Serial.println that is sent from the Xbee coordinator ( the one with the Led ) to Processing, in order to trigger an audio file...But the Xbees reset themselves alone...????

Hi,

Sorry, I was assuming you were using the xbee arduino shield. From your answer it's clear your are not. Then my comment makes no sense. But as you can see in http://www.libelium.com/squidbee/index.php?title=See_Schematics

pin 12 of xbee module is connected to reset pin on the arduino in the xbee arduino shield.