Preventing an xbee from sleeping

My xbee wakes up and waits for data to send. Sometimes it takes time to for to prepare the packet and it falls back a sleep. I then have to pull Pin 9 to ground to wake it back up. Is there a way to hold it awake with out it going back to sleep? I know there is an AT command I can issue to extend that period. I am looking for an indefinite solution.

Hello fnsnoop,

Depending on the module (SMT or THT) you may change the SM parameter to 0 (No sleep), but it does not work in all radio sets.