# timeout setting parameter via xbee\_cmd\_send

**URL:** <https://forums.digi.com/t/timeout-setting-parameter-via-xbee-cmd-send/14772>\
**Category:** XBee Programamble (S2C & 900 HP)\
**Tags:** timeout, xbee-pro\
**Created:** [April 28, 2015, 8:02am UTC](https://forums.digi.com/t/timeout-setting-parameter-via-xbee-cmd-send/14772 "2015-04-28T08:02:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kohlmaier](https://avatars.discourse-cdn.com/v4/letter/k/c2a13f/32.png) [@kohlmaier](https://forums.digi.com/u/kohlmaier)\
**Post date:** [April 28, 2015, 8:02am UTC](https://forums.digi.com/t/timeout-setting-parameter-via-xbee-cmd-send/14772/1 "2015-04-28T08:02:37Z")

</div>

I want to setup the “SP” parameter at runtime in my XBee-Pro Module. (At startup i want to set a short SP paramter, after a setup time of 5 minutes i want to set a large SP parameer to save battery)

When performing the command at startup, everything is working. The associated xbee\_cmd\_callback confirms the success of the command with the flags.

But when i set this parameter after 5 minutes of runtime, the callback shows the flags with the XBEE\_CMD\_RESP\_FLAG\_TIMEOUT bit set. The command is NOT working as expected.  
Retrying the command does not lead to success for sure, most of the time it workes after 5-10 repetitions.  
I tested out the possible delay time: 2 secs after startup works, 4 secs after startup does NOT work.

Am i missing something to “wake” (?) the device before sending the command after some runtime ?

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [April 28, 2015, 11:52am UTC](https://forums.digi.com/t/timeout-setting-parameter-via-xbee-cmd-send/14772/2 "2015-04-28T11:52:21Z")

</div>

Try monitoring CTS flow control to know when the radio is awake and then issue the command.

---

<div class="post-metadata">

**Author:** ![kohlmaier](https://avatars.discourse-cdn.com/v4/letter/k/c2a13f/32.png) [@kohlmaier](https://forums.digi.com/u/kohlmaier)\
**Post date:** [April 30, 2015, 8:21am UTC](https://forums.digi.com/t/timeout-setting-parameter-via-xbee-cmd-send/14772/3 "2015-04-30T08:21:43Z")

</div>

Monitoring the CTS line does not work.  
CTS is always 1.
