# how to send AT command into API1

**URL:** <https://forums.digi.com/t/how-to-send-at-command-into-api1/18372>\
**Category:** XBee - Zigbee\
**Tags:** api-mode, at-commands, xbee\
**Created:** [May 18, 2017, 2:49pm UTC](https://forums.digi.com/t/how-to-send-at-command-into-api1/18372 "2017-05-18T14:49:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JuanAlcaraz](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@JuanAlcaraz](https://forums.digi.com/u/JuanAlcaraz)\
**Post date:** [May 18, 2017, 2:49pm UTC](https://forums.digi.com/t/how-to-send-at-command-into-api1/18372/1 "2017-05-18T14:49:37Z")

</div>

Hi there, I’m using a xbee s2c in zigbee, and I would like send AT commands into API1

---

<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:** [May 18, 2017, 2:51pm UTC](https://forums.digi.com/t/how-to-send-at-command-into-api1/18372/2 "2017-05-18T14:51:35Z")

</div>

If you are using API mode, the you can issue local AT commands via the 0x08 API frame.

Example: Query ID parameter:  
7E 00 04 08 01 49 44 69

---

<div class="post-metadata">

**Author:** ![JuanAlcaraz](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@JuanAlcaraz](https://forums.digi.com/u/JuanAlcaraz)\
**Post date:** [May 18, 2017, 3:51pm UTC](https://forums.digi.com/t/how-to-send-at-command-into-api1/18372/3 "2017-05-18T15:51:16Z")

</div>

Thank you, I´m working with sleep mode, and I would like to change the sleep time using the AT commands, do you think that it is possible?

---

<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:** [May 18, 2017, 3:51pm UTC](https://forums.digi.com/t/how-to-send-at-command-into-api1/18372/4 "2017-05-18T15:51:51Z")

</div>

Yes, providing you issue the command while the radio is awake.

---

<div class="post-metadata">

**Author:** ![JuanAlcaraz](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@JuanAlcaraz](https://forums.digi.com/u/JuanAlcaraz)\
**Post date:** [May 19, 2017, 3:46pm UTC](https://forums.digi.com/t/how-to-send-at-command-into-api1/18372/5 "2017-05-19T15:46:48Z")

</div>

Thanks for all help.  
Do you know wich AT command you use to change the time of cyclic sleep period?

Regards.

---

<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:** [May 31, 2017, 2:32pm UTC](https://forums.digi.com/t/how-to-send-at-command-into-api1/18372/6 "2017-05-31T14:32:13Z")

</div>

That would be the SP or Sleep Period.

ST is Time before sleep.
