# Communicating with XB SmartPlug ZB

**URL:** <https://forums.digi.com/t/communicating-with-xb-smartplug-zb/816>\
**Category:** XBee - Zigbee\
**Created:** [January 16, 2012, 5:00am UTC](https://forums.digi.com/t/communicating-with-xb-smartplug-zb/816 "2012-01-16T05:00:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RWlodarczyk](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@RWlodarczyk](https://forums.digi.com/u/RWlodarczyk)\
**Post date:** [January 16, 2012, 5:00am UTC](https://forums.digi.com/t/communicating-with-xb-smartplug-zb/816/1 "2012-01-16T05:00:02Z")

</div>

Hi,

I have an XB24-Z7WIT-004 as my coordinator, and I want to be able to talk to my XB SmartPlug ZB without the use of one of the Digi gateways.

I used X-CTU in API mode and did a discover, and was able to find the SmartPlug and send it commands through the UI (by selecting the drop down box).

However when I send AT commands manually in the Terminal when the coordinator is set to AT mode this doesn’t work!

Here’s what I tried:  
+++  
OK  
ATDH xxxxxxx (where xxxxx is the high part of the SmartPlug’s address)  
OK  
ATDL xxxxxxx (where xxxxx is the low part of the SmartPlug’s address)  
OK  
ATD45 (per instructions [here](http://www.digi.com/wiki/developer/index.php/XBee_Smart_Plug) )  
OK  
ATWR  
OK  
ATAC  
OK

However this set DIO pin 4 on my coordinator to value 5, instead of turning on the light!

Am I sending the AT commands correctly? Any help would be greatly appreciated.

Robert.

---

<div class="post-metadata">

**Author:** ![RWlodarczyk](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@RWlodarczyk](https://forums.digi.com/u/RWlodarczyk)\
**Post date:** [January 26, 2012, 3:43am UTC](https://forums.digi.com/t/communicating-with-xb-smartplug-zb/816/2 "2012-01-26T03:43:51Z")

</div>

Can anyone provide some help here?

---

<div class="post-metadata">

**Author:** ![chobichan](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@chobichan](https://forums.digi.com/u/chobichan)\
**Post date:** [January 26, 2012, 4:20am UTC](https://forums.digi.com/t/communicating-with-xb-smartplug-zb/816/3 "2012-01-26T04:20:54Z")

</div>

hi,

It is impossible if that you are trying to do is going to change the state of the terminal of long distance SmartPlug using AT command mode.

Please read the page shown below.

[http://www.digi.com/support/kbase/kbaseresultdetl?id=3222](http://www.digi.com/support/kbase/kbaseresultdetl?id=3222)
