But later on I'll be using an Arduino FIO... How to prevent resetting on that one? And before modifying the hardware, I just like to make sure this resetting is normal behavior. Here is a simple test-loop I made on a Duemilanove:

<program loop>//SleepdigitalWrite( sleepPin, HIGH ); // zzzzdelay( 15000 );// Wake up calldigitalWrite( sleepPin, LOW );delay( 8000 ); // Give it some time to wake up and find the other XBeeSerial.println( "Stinky cheese" );delay( 8000 ); // Give it some time to send

<Restart the loop (and thus fall asleep again)>

This code will send the message to the other XBee, but resets after that.

About those 8-second delays, do I really need that much time to re-establish a connection and send something btw? The Arduino should run on a battery later on, so power-saving will be important. If I make the delays 7 seconds for example, the Arduino will also reset, but on top the XBee doesn't send the message anymore.