# control led wirelessly by xbee s2

**URL:** <https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390>\
**Category:** ZNet 2.5\
**Tags:** s2, xbee\
**Created:** [September 13, 2016, 9:37am UTC](https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390 "2016-09-13T09:37:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![baraiyanirav2225](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@baraiyanirav2225](https://forums.digi.com/u/baraiyanirav2225)\
**Post date:** [September 13, 2016, 9:37am UTC](https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390/1 "2016-09-13T09:37:48Z")

</div>

how to control wirelessly with this module  
anyone know pls tell me step

which one in which mode and from what router send api mode .pls tell me brifly.

---

<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:** [September 13, 2016, 9:40am UTC](https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390/2 "2016-09-13T09:40:39Z")

</div>

For that product you must do it via API mode and Remote AT commands. That is I need to tell the remote module to switch the respective line from an output high to an output low via remote AT commands.

---

<div class="post-metadata">

**Author:** ![baraiyanirav2225](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@baraiyanirav2225](https://forums.digi.com/u/baraiyanirav2225)\
**Post date:** [September 13, 2016, 10:06am UTC](https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390/3 "2016-09-13T10:06:59Z")

</div>

i already did that but getting problem can you pls elaborate,

i tell what i did

1 as cordinator api mode  
2 as router at  
i am sending api frame from router at mode to cordinator api radio i get recieve packet but can`t change my remote radio state.  
i am getting error in remote at command response.  
erro is 03 invalid parametre

---

<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:** [September 13, 2016, 10:09am UTC](https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390/4 "2016-09-13T10:09:13Z")

</div>

What is the API frame you are sending and what firmware version and modem part numbers are you working with?

---

<div class="post-metadata">

**Author:** ![baraiyanirav2225](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@baraiyanirav2225](https://forums.digi.com/u/baraiyanirav2225)\
**Post date:** [September 13, 2016, 10:43am UTC](https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390/5 "2016-09-13T10:43:33Z")

</div>

017 REMOTE AT COMMAND FRAME FROM FRAME GENERATOR AND ADDRESS IS OF REMOTE RADIO,  
XCTU 6.3 AND I HAVE XBEE SERIES S2 (ZB)

---

<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:** [September 13, 2016, 11:10am UTC](https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390/6 "2016-09-13T11:10:32Z")

</div>

What I mean is can you provide the full API frame you are sending?

---

<div class="post-metadata">

**Author:** ![baraiyanirav2225](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@baraiyanirav2225](https://forums.digi.com/u/baraiyanirav2225)\
**Post date:** [September 13, 2016, 1:55pm UTC](https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390/7 "2016-09-13T13:55:27Z")

</div>

7E 00 11 17 01 00 13 A2 00 40 F9 6F 14 FF FE 02 44 30 30 35 9E

THIS ONE

---

<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:** [September 13, 2016, 4:00pm UTC](https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390/8 "2016-09-13T16:00:46Z")

</div>

I think I see the reason why. Instead of providing an ASCII 05 (0x30 0x35) make it a Hex 05 for the value.

7E 00 10 17 01 00 13 A2 00 40 F9 6F 14 FF FE 02 44 30 05 FE

---

<div class="post-metadata">

**Author:** ![baraiyanirav2225](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@baraiyanirav2225](https://forums.digi.com/u/baraiyanirav2225)\
**Post date:** [September 14, 2016, 8:37am UTC](https://forums.digi.com/t/control-led-wirelessly-by-xbee-s2/17390/9 "2016-09-14T08:37:43Z")

</div>

thanks for your support  
you solved my problem
