# Modifying DO through API frame

**URL:** <https://forums.digi.com/t/modifying-do-through-api-frame/13794>\
**Category:** XBee - 802.15.4\
**Tags:** o, i, api, xbee\
**Created:** [October 23, 2014, 12:46pm UTC](https://forums.digi.com/t/modifying-do-through-api-frame/13794 "2014-10-23T12:46:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![progloverfan](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@progloverfan](https://forums.digi.com/u/progloverfan)\
**Post date:** [October 23, 2014, 12:46pm UTC](https://forums.digi.com/t/modifying-do-through-api-frame/13794/1 "2014-10-23T12:46:19Z")

</div>

Hi. Is it possible to send a packet to a remote Xbee to modify the behavior of a DO pin?  
I read about I/O Line passing but the base Xbee is encapsulated and is impossible to modify the DI input, so I want to send a packet and modify the state of a DO pin sending an API frame on a remote Xbee. How can I accomplish this?

---

<div class="post-metadata">

**Author:** ![Thanatheos](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@Thanatheos](https://forums.digi.com/u/Thanatheos)\
**Post date:** [October 24, 2014, 2:45am UTC](https://forums.digi.com/t/modifying-do-through-api-frame/13794/2 "2014-10-24T02:45:21Z")

</div>

Hi,

if you can get at least one micro-controller (like an Arduino), it’s very simple, you just hate to send en AT frame trough API mode to change the status of you output but with only 2 Xbee I don’t really think about it.

Here is a youtube channel that show you basic exemple of Chat between Xbee : [Your text to link here…](https://www.youtube.com/watch?v=CzH146rR-7I).

And here an official DIGI exemple of “how to do an Xbee switch”.

Hope i can help you

---

<div class="post-metadata">

**Author:** ![progloverfan](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@progloverfan](https://forums.digi.com/u/progloverfan)\
**Post date:** [October 24, 2014, 8:10am UTC](https://forums.digi.com/t/modifying-do-through-api-frame/13794/3 "2014-10-24T08:10:06Z")

</div>

But is not possible to change for example Dn = 4 or 5 through API frames to give a LOW or HIGH to control a switch? Or this works only for I/O Line Passing?  
Thanks.  
PD: I can’t open “how to do an Xbee switch” page.

---

<div class="post-metadata">

**Author:** ![trooper2](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@trooper2](https://forums.digi.com/u/trooper2)\
**Post date:** [October 25, 2014, 11:48am UTC](https://forums.digi.com/t/modifying-do-through-api-frame/13794/4 "2014-10-25T11:48:05Z")

</div>

See the Digi API Packet Generator for ZB (ZigBee) Networks and the Tutorial for the Digi API Packet Generator (Frame Maker) Utility at this link [http://www.digi.com/support/productdetail?pid=4549&amp;type=documentation](http://www.digi.com/support/productdetail?pid=4549&amp;type=documentation) under the Diagnostics, Utilities and MIBs section. See Example #2 in the tutorial.

If you use the newest version of XCTU you can generate the packet from within that application.
