I have configured my xbee to use Pin wake mode (ATSM 1). It goes to sleep, but I am unable to wake it with my arduino. If I physical connect pin 9 on the xbee to ground it wakes and sends data, so I know that the xbee is working. Here is my test code that I am trying to get to work:
const int XBEESLEEPPIN = 6;//Pin 6 on the arduino is connected to Pin 9 on the xbee
void setup() {
pinMode(XBEESLEEPPIN, OUTPUT);
digitalWrite(XBEESLEEPPIN,LOW);
Serial.begin(9600);
}
void loop() {
//Wake
digitalWrite(XBEESLEEPPIN,LOW);
delay(500);
Serial.print('H');
delay(1000);
//Sleep
digitalWrite(XBEESLEEPPIN,HIGH);
delay(1000);
//Wake
digitalWrite(XBEESLEEPPIN,LOW);
delay(500);
Serial.print('L');
delay(1000);
/Sleep
digitalWrite(XBEESLEEPPIN,HIGH);
delay(1000);
}
Any thoughts or feedback would be very welcomed!