# how to control(on/off) LED connected to remote xbee through coordinator xbee using AT commands

**URL:** <https://forums.digi.com/t/how-to-control-on-off-led-connected-to-remote-xbee-through-coordinator-xbee-using-at-commands/12447>\
**Category:** Linux\
**Tags:** s2, xbee\
**Created:** [January 27, 2014, 7:23am UTC](https://forums.digi.com/t/how-to-control-on-off-led-connected-to-remote-xbee-through-coordinator-xbee-using-at-commands/12447 "2014-01-27T07:23:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarathi](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Sarathi](https://forums.digi.com/u/Sarathi)\
**Post date:** [January 27, 2014, 7:23am UTC](https://forums.digi.com/t/how-to-control-on-off-led-connected-to-remote-xbee-through-coordinator-xbee-using-at-commands/12447/1 "2014-01-27T07:23:44Z")

</div>

Hi experts,  
I need to control an LED on Pin 18 (D2) in the remote Xbee (End device) from a coordinator Xbee communicating to it.

I was able to make LED ON(glow) on the coordinator device using the AT command(ATD2 5), but i didn’t get any reference on ON/OFF an LED connected to remote Xbee by using commands sent from coordinator Xbee

Any help on this would be appreciated.

---

<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:** [January 30, 2014, 4:08pm UTC](https://forums.digi.com/t/how-to-control-on-off-led-connected-to-remote-xbee-through-coordinator-xbee-using-at-commands/12447/2 "2014-01-30T16:08:12Z")

</div>

You can use our API Packet Generator utility to generate a packet to send an AT command to a remote module on the network. You will need to change to API mode.

See the utility and tutorial on this page [http://www.digi.com/support/productdetail?pid=4549&amp;type=documentation](http://www.digi.com/support/productdetail?pid=4549&amp;type=documentation) under Diagnostics, Utilities, and MIBs.

---

<div class="post-metadata">

**Author:** ![Sarathi](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@Sarathi](https://forums.digi.com/u/Sarathi)\
**Post date:** [February 2, 2014, 10:09pm UTC](https://forums.digi.com/t/how-to-control-on-off-led-connected-to-remote-xbee-through-coordinator-xbee-using-at-commands/12447/3 "2014-02-02T22:09:39Z")

</div>

Thank you very much for your Reply. Now I am able to control the xbee

---

<div class="post-metadata">

**Author:** ![niftynei](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@niftynei](https://forums.digi.com/u/niftynei)\
**Post date:** [February 16, 2014, 11:19pm UTC](https://forums.digi.com/t/how-to-control-on-off-led-connected-to-remote-xbee-through-coordinator-xbee-using-at-commands/12447/4 "2014-02-16T23:19:13Z")

</div>

Have you checked this tutorial? [http://www.digi.com/support/kbase/kbaseresultdetl?id=3221](http://www.digi.com/support/kbase/kbaseresultdetl?id=3221)
