Problems with Xbee pin Sleep

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!

With a lot of googling and reading I discovered that I needed to to set IOD7=0 (ATD7=0) on the xbee. The xbee it now waking/sleeping. However I am not getting any communication. I suspect that I need to give the xbee time to establish the connection with the coordinator before sleeping the first time.

Reference: Random Stuff - Adventures in Nerd Land: XBee woes..